protobuf-go/cmd/protoc-gen-go/testdata/import_public/sub/a.proto
Damien Neil 73ac885dab cmd/protoc-gen-go: generate public imports
Generate forwarding declarations for all types, consts, and vars in
publicly imported files.

Change-Id: I2f1041fa91b0ae18b1e123935951618b8d594f84
Reviewed-on: https://go-review.googlesource.com/136175
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2018-09-19 15:37:56 +00:00

41 lines
815 B
Protocol Buffer

// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
syntax = "proto3";
package goproto.protoc.import_public.sub;
option go_package = "google.golang.org/proto/cmd/protoc-gen-go/testdata/import_public/sub";
import "import_public/sub/b.proto";
message M {
// Field using a type in the same Go package, but a different source file.
M2 m2 = 1;
oneof oneof_field {
int32 oneof_int32 = 2;
int64 oneof_int64 = 3;
}
message Submessage {
enum Submessage_Subenum {
M_SUBMESSAGE_ZERO = 0;
}
oneof submessage_oneof_field {
int32 submessage_oneof_int32 = 1;
int64 submessage_oneof_int64 = 2;
}
}
enum Subenum {
M_ZERO = 0;
}
}
enum E {
ZERO = 0;
}