mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-31 06:32:40 +00:00
fb3ff727f0
This CL makes no feature changes except to move code around. The only change to the actual generated code is the placement of the default constants and variables. They move because the new logic generates all methods together, while previously the constants were interspersed in-between. Change-Id: I45932d5aeec5ba45180fb255ea17898beb6c3bd2 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/186878 Reviewed-by: Herbie Ong <herbie@google.com>
537 lines
17 KiB
Go
537 lines
17 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: import_public/sub/a.proto
|
|
|
|
package sub
|
|
|
|
import (
|
|
sub2 "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub2"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
prototype "google.golang.org/protobuf/reflect/prototype"
|
|
protoiface "google.golang.org/protobuf/runtime/protoiface"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
math "math"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
)
|
|
|
|
const (
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0)
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion)
|
|
)
|
|
|
|
// Symbols defined in public import of import_public/sub2/a.proto
|
|
|
|
type Sub2Message = sub2.Sub2Message
|
|
|
|
type E int32
|
|
|
|
const (
|
|
E_ZERO E = 0
|
|
)
|
|
|
|
var E_name = map[int32]string{
|
|
0: "ZERO",
|
|
}
|
|
|
|
var E_value = map[string]int32{
|
|
"ZERO": 0,
|
|
}
|
|
|
|
func (x E) Enum() *E {
|
|
p := new(E)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x E) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (E) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_import_public_sub_a_proto_enumTypes[0].EnumDescriptor
|
|
}
|
|
|
|
func (E) Type() protoreflect.EnumType {
|
|
return &file_import_public_sub_a_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x E) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Do not use.
|
|
func (x *E) UnmarshalJSON(b []byte) error {
|
|
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
*x = E(num)
|
|
return nil
|
|
}
|
|
|
|
// Deprecated: Use E.Descriptor instead.
|
|
func (E) EnumDescriptor() ([]byte, []int) {
|
|
return file_import_public_sub_a_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type M_Subenum int32
|
|
|
|
const (
|
|
M_M_ZERO M_Subenum = 0
|
|
)
|
|
|
|
var M_Subenum_name = map[int32]string{
|
|
0: "M_ZERO",
|
|
}
|
|
|
|
var M_Subenum_value = map[string]int32{
|
|
"M_ZERO": 0,
|
|
}
|
|
|
|
func (x M_Subenum) Enum() *M_Subenum {
|
|
p := new(M_Subenum)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x M_Subenum) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (M_Subenum) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_import_public_sub_a_proto_enumTypes[1].EnumDescriptor
|
|
}
|
|
|
|
func (M_Subenum) Type() protoreflect.EnumType {
|
|
return &file_import_public_sub_a_proto_enumTypes[1]
|
|
}
|
|
|
|
func (x M_Subenum) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Do not use.
|
|
func (x *M_Subenum) UnmarshalJSON(b []byte) error {
|
|
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
*x = M_Subenum(num)
|
|
return nil
|
|
}
|
|
|
|
// Deprecated: Use M_Subenum.Descriptor instead.
|
|
func (M_Subenum) EnumDescriptor() ([]byte, []int) {
|
|
return file_import_public_sub_a_proto_rawDescGZIP(), []int{0, 0}
|
|
}
|
|
|
|
type M_Submessage_Submessage_Subenum int32
|
|
|
|
const (
|
|
M_Submessage_M_SUBMESSAGE_ZERO M_Submessage_Submessage_Subenum = 0
|
|
)
|
|
|
|
var M_Submessage_Submessage_Subenum_name = map[int32]string{
|
|
0: "M_SUBMESSAGE_ZERO",
|
|
}
|
|
|
|
var M_Submessage_Submessage_Subenum_value = map[string]int32{
|
|
"M_SUBMESSAGE_ZERO": 0,
|
|
}
|
|
|
|
func (x M_Submessage_Submessage_Subenum) Enum() *M_Submessage_Submessage_Subenum {
|
|
p := new(M_Submessage_Submessage_Subenum)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x M_Submessage_Submessage_Subenum) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (M_Submessage_Submessage_Subenum) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_import_public_sub_a_proto_enumTypes[2].EnumDescriptor
|
|
}
|
|
|
|
func (M_Submessage_Submessage_Subenum) Type() protoreflect.EnumType {
|
|
return &file_import_public_sub_a_proto_enumTypes[2]
|
|
}
|
|
|
|
func (x M_Submessage_Submessage_Subenum) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Do not use.
|
|
func (x *M_Submessage_Submessage_Subenum) UnmarshalJSON(b []byte) error {
|
|
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
*x = M_Submessage_Submessage_Subenum(num)
|
|
return nil
|
|
}
|
|
|
|
// Deprecated: Use M_Submessage_Submessage_Subenum.Descriptor instead.
|
|
func (M_Submessage_Submessage_Subenum) EnumDescriptor() ([]byte, []int) {
|
|
return file_import_public_sub_a_proto_rawDescGZIP(), []int{0, 0, 0}
|
|
}
|
|
|
|
type M struct {
|
|
state protoimpl.MessageState
|
|
// Field using a type in the same Go package, but a different source file.
|
|
M2 *M2 `protobuf:"bytes,1,opt,name=m2" json:"m2,omitempty"`
|
|
S *string `protobuf:"bytes,4,opt,name=s,def=default" json:"s,omitempty"`
|
|
B []byte `protobuf:"bytes,5,opt,name=b,def=default" json:"b,omitempty"`
|
|
F *float64 `protobuf:"fixed64,6,opt,name=f,def=nan" json:"f,omitempty"`
|
|
// Types that are valid to be assigned to OneofField:
|
|
// *M_OneofInt32
|
|
// *M_OneofInt64
|
|
OneofField isM_OneofField `protobuf_oneof:"oneof_field"`
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
extensionFields protoimpl.ExtensionFields
|
|
}
|
|
|
|
const Default_M_S string = "default"
|
|
|
|
var Default_M_B []byte = []byte("default")
|
|
var Default_M_F float64 = math.NaN()
|
|
|
|
func (x *M) Reset() {
|
|
*x = M{}
|
|
}
|
|
|
|
func (x *M) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*M) ProtoMessage() {}
|
|
|
|
func (x *M) ProtoReflect() protoreflect.Message {
|
|
mi := &file_import_public_sub_a_proto_msgTypes[0]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use M.ProtoReflect.Descriptor instead.
|
|
func (*M) Descriptor() ([]byte, []int) {
|
|
return file_import_public_sub_a_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
var extRange_M = []protoiface.ExtensionRangeV1{
|
|
{Start: 100, End: 536870911},
|
|
}
|
|
|
|
// Deprecated: Use M.ProtoReflect.Descriptor.ExtensionRanges instead.
|
|
func (*M) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
|
|
return extRange_M
|
|
}
|
|
|
|
func (x *M) GetM2() *M2 {
|
|
if x != nil {
|
|
return x.M2
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *M) GetS() string {
|
|
if x != nil && x.S != nil {
|
|
return *x.S
|
|
}
|
|
return Default_M_S
|
|
}
|
|
|
|
func (x *M) GetB() []byte {
|
|
if x != nil && x.B != nil {
|
|
return x.B
|
|
}
|
|
return append([]byte(nil), Default_M_B...)
|
|
}
|
|
|
|
func (x *M) GetF() float64 {
|
|
if x != nil && x.F != nil {
|
|
return *x.F
|
|
}
|
|
return Default_M_F
|
|
}
|
|
|
|
func (m *M) GetOneofField() isM_OneofField {
|
|
if m != nil {
|
|
return m.OneofField
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *M) GetOneofInt32() int32 {
|
|
if x, ok := x.GetOneofField().(*M_OneofInt32); ok {
|
|
return x.OneofInt32
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *M) GetOneofInt64() int64 {
|
|
if x, ok := x.GetOneofField().(*M_OneofInt64); ok {
|
|
return x.OneofInt64
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type isM_OneofField interface {
|
|
isM_OneofField()
|
|
}
|
|
|
|
type M_OneofInt32 struct {
|
|
OneofInt32 int32 `protobuf:"varint,2,opt,name=oneof_int32,json=oneofInt32,oneof"`
|
|
}
|
|
|
|
type M_OneofInt64 struct {
|
|
OneofInt64 int64 `protobuf:"varint,3,opt,name=oneof_int64,json=oneofInt64,oneof"`
|
|
}
|
|
|
|
func (*M_OneofInt32) isM_OneofField() {}
|
|
|
|
func (*M_OneofInt64) isM_OneofField() {}
|
|
|
|
type M_Submessage struct {
|
|
state protoimpl.MessageState
|
|
// Types that are valid to be assigned to SubmessageOneofField:
|
|
// *M_Submessage_SubmessageOneofInt32
|
|
// *M_Submessage_SubmessageOneofInt64
|
|
SubmessageOneofField isM_Submessage_SubmessageOneofField `protobuf_oneof:"submessage_oneof_field"`
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *M_Submessage) Reset() {
|
|
*x = M_Submessage{}
|
|
}
|
|
|
|
func (x *M_Submessage) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*M_Submessage) ProtoMessage() {}
|
|
|
|
func (x *M_Submessage) ProtoReflect() protoreflect.Message {
|
|
mi := &file_import_public_sub_a_proto_msgTypes[1]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use M_Submessage.ProtoReflect.Descriptor instead.
|
|
func (*M_Submessage) Descriptor() ([]byte, []int) {
|
|
return file_import_public_sub_a_proto_rawDescGZIP(), []int{0, 0}
|
|
}
|
|
|
|
func (m *M_Submessage) GetSubmessageOneofField() isM_Submessage_SubmessageOneofField {
|
|
if m != nil {
|
|
return m.SubmessageOneofField
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *M_Submessage) GetSubmessageOneofInt32() int32 {
|
|
if x, ok := x.GetSubmessageOneofField().(*M_Submessage_SubmessageOneofInt32); ok {
|
|
return x.SubmessageOneofInt32
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *M_Submessage) GetSubmessageOneofInt64() int64 {
|
|
if x, ok := x.GetSubmessageOneofField().(*M_Submessage_SubmessageOneofInt64); ok {
|
|
return x.SubmessageOneofInt64
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type isM_Submessage_SubmessageOneofField interface {
|
|
isM_Submessage_SubmessageOneofField()
|
|
}
|
|
|
|
type M_Submessage_SubmessageOneofInt32 struct {
|
|
SubmessageOneofInt32 int32 `protobuf:"varint,1,opt,name=submessage_oneof_int32,json=submessageOneofInt32,oneof"`
|
|
}
|
|
|
|
type M_Submessage_SubmessageOneofInt64 struct {
|
|
SubmessageOneofInt64 int64 `protobuf:"varint,2,opt,name=submessage_oneof_int64,json=submessageOneofInt64,oneof"`
|
|
}
|
|
|
|
func (*M_Submessage_SubmessageOneofInt32) isM_Submessage_SubmessageOneofField() {}
|
|
|
|
func (*M_Submessage_SubmessageOneofInt64) isM_Submessage_SubmessageOneofField() {}
|
|
|
|
var file_import_public_sub_a_proto_extDescs = []protoiface.ExtensionDescV1{
|
|
{
|
|
ExtendedType: (*M)(nil),
|
|
ExtensionType: (*string)(nil),
|
|
Field: 100,
|
|
Name: "goproto.protoc.import_public.sub.extension_field",
|
|
Tag: "bytes,100,opt,name=extension_field",
|
|
Filename: "import_public/sub/a.proto",
|
|
},
|
|
}
|
|
var (
|
|
// extend goproto.protoc.import_public.sub.M { optional string extension_field = 100; }
|
|
E_ExtensionField = &file_import_public_sub_a_proto_extDescs[0]
|
|
)
|
|
var File_import_public_sub_a_proto protoreflect.FileDescriptor
|
|
|
|
var file_import_public_sub_a_proto_rawDesc = []byte{
|
|
0x0a, 0x19, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2f,
|
|
0x73, 0x75, 0x62, 0x2f, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x67, 0x6f, 0x70,
|
|
0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x69, 0x6d, 0x70, 0x6f,
|
|
0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2e, 0x73, 0x75, 0x62, 0x1a, 0x19, 0x69,
|
|
0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2f, 0x73, 0x75, 0x62,
|
|
0x2f, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74,
|
|
0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2f, 0x73, 0x75, 0x62, 0x32, 0x2f, 0x61, 0x2e, 0x70,
|
|
0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb6, 0x03, 0x0a, 0x01, 0x4d, 0x12, 0x34, 0x0a, 0x02, 0x6d, 0x32,
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70,
|
|
0x75, 0x62, 0x6c, 0x69, 0x63, 0x2e, 0x73, 0x75, 0x62, 0x2e, 0x4d, 0x32, 0x52, 0x02, 0x6d, 0x32,
|
|
0x12, 0x15, 0x0a, 0x01, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x07, 0x64, 0x65, 0x66,
|
|
0x61, 0x75, 0x6c, 0x74, 0x52, 0x01, 0x73, 0x12, 0x15, 0x0a, 0x01, 0x62, 0x18, 0x05, 0x20, 0x01,
|
|
0x28, 0x0c, 0x3a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x01, 0x62, 0x12, 0x11,
|
|
0x0a, 0x01, 0x66, 0x18, 0x06, 0x20, 0x01, 0x28, 0x01, 0x3a, 0x03, 0x6e, 0x61, 0x6e, 0x52, 0x01,
|
|
0x66, 0x12, 0x21, 0x0a, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32,
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x49,
|
|
0x6e, 0x74, 0x33, 0x32, 0x12, 0x21, 0x0a, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x69, 0x6e,
|
|
0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x6e, 0x65,
|
|
0x6f, 0x66, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x1a, 0xc3, 0x01, 0x0a, 0x0a, 0x53, 0x75, 0x62, 0x6d,
|
|
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x16, 0x73, 0x75, 0x62, 0x6d, 0x65, 0x73,
|
|
0x73, 0x61, 0x67, 0x65, 0x5f, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32,
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x14, 0x73, 0x75, 0x62, 0x6d, 0x65, 0x73,
|
|
0x73, 0x61, 0x67, 0x65, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x36,
|
|
0x0a, 0x16, 0x73, 0x75, 0x62, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6f, 0x6e, 0x65,
|
|
0x6f, 0x66, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00,
|
|
0x52, 0x14, 0x73, 0x75, 0x62, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x6e, 0x65, 0x6f,
|
|
0x66, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x22, 0x2b, 0x0a, 0x12, 0x53, 0x75, 0x62, 0x6d, 0x65, 0x73,
|
|
0x73, 0x61, 0x67, 0x65, 0x5f, 0x53, 0x75, 0x62, 0x65, 0x6e, 0x75, 0x6d, 0x12, 0x15, 0x0a, 0x11,
|
|
0x4d, 0x5f, 0x53, 0x55, 0x42, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x5a, 0x45, 0x52,
|
|
0x4f, 0x10, 0x00, 0x42, 0x18, 0x0a, 0x16, 0x73, 0x75, 0x62, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
|
0x65, 0x5f, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x22, 0x15, 0x0a,
|
|
0x07, 0x53, 0x75, 0x62, 0x65, 0x6e, 0x75, 0x6d, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x5f, 0x5a, 0x45,
|
|
0x52, 0x4f, 0x10, 0x00, 0x2a, 0x08, 0x08, 0x64, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x42, 0x0d,
|
|
0x0a, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x2a, 0x0d, 0x0a,
|
|
0x01, 0x45, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x3a, 0x4c, 0x0a, 0x0f,
|
|
0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12,
|
|
0x23, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63,
|
|
0x2e, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2e, 0x73,
|
|
0x75, 0x62, 0x2e, 0x4d, 0x18, 0x64, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x78, 0x74, 0x65,
|
|
0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x49, 0x5a, 0x47, 0x67, 0x6f,
|
|
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f,
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f,
|
|
0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64,
|
|
0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69,
|
|
0x63, 0x2f, 0x73, 0x75, 0x62, 0x50, 0x01,
|
|
}
|
|
|
|
var (
|
|
file_import_public_sub_a_proto_rawDescOnce sync.Once
|
|
file_import_public_sub_a_proto_rawDescData = file_import_public_sub_a_proto_rawDesc
|
|
)
|
|
|
|
func file_import_public_sub_a_proto_rawDescGZIP() []byte {
|
|
file_import_public_sub_a_proto_rawDescOnce.Do(func() {
|
|
file_import_public_sub_a_proto_rawDescData = protoimpl.X.CompressGZIP(file_import_public_sub_a_proto_rawDescData)
|
|
})
|
|
return file_import_public_sub_a_proto_rawDescData
|
|
}
|
|
|
|
var file_import_public_sub_a_proto_enumTypes = make([]prototype.Enum, 3)
|
|
var file_import_public_sub_a_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
var file_import_public_sub_a_proto_goTypes = []interface{}{
|
|
(E)(0), // 0: goproto.protoc.import_public.sub.E
|
|
(M_Subenum)(0), // 1: goproto.protoc.import_public.sub.M.Subenum
|
|
(M_Submessage_Submessage_Subenum)(0), // 2: goproto.protoc.import_public.sub.M.Submessage.Submessage_Subenum
|
|
(*M)(nil), // 3: goproto.protoc.import_public.sub.M
|
|
(*M_Submessage)(nil), // 4: goproto.protoc.import_public.sub.M.Submessage
|
|
(*M2)(nil), // 5: goproto.protoc.import_public.sub.M2
|
|
}
|
|
var file_import_public_sub_a_proto_depIdxs = []int32{
|
|
5, // goproto.protoc.import_public.sub.M.m2:type_name -> goproto.protoc.import_public.sub.M2
|
|
3, // goproto.protoc.import_public.sub.extension_field:extendee -> goproto.protoc.import_public.sub.M
|
|
2, // starting offset of method output_type sub-list
|
|
2, // starting offset of method input_type sub-list
|
|
2, // starting offset of extension type_name sub-list
|
|
1, // starting offset of extension extendee sub-list
|
|
0, // starting offset of field type_name sub-list
|
|
}
|
|
|
|
func init() { file_import_public_sub_a_proto_init() }
|
|
func file_import_public_sub_a_proto_init() {
|
|
if File_import_public_sub_a_proto != nil {
|
|
return
|
|
}
|
|
file_import_public_sub_b_proto_init()
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_import_public_sub_a_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*M); i {
|
|
case 0:
|
|
return &v.state
|
|
case 6:
|
|
return &v.sizeCache
|
|
case 7:
|
|
return &v.unknownFields
|
|
case 8:
|
|
return &v.extensionFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_import_public_sub_a_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*M_Submessage); i {
|
|
case 0:
|
|
return &v.state
|
|
case 2:
|
|
return &v.sizeCache
|
|
case 3:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
file_import_public_sub_a_proto_msgTypes[0].OneofWrappers = []interface{}{
|
|
(*M_OneofInt32)(nil),
|
|
(*M_OneofInt64)(nil),
|
|
}
|
|
file_import_public_sub_a_proto_msgTypes[1].OneofWrappers = []interface{}{
|
|
(*M_Submessage_SubmessageOneofInt32)(nil),
|
|
(*M_Submessage_SubmessageOneofInt64)(nil),
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_import_public_sub_a_proto_rawDesc,
|
|
NumEnums: 3,
|
|
NumMessages: 2,
|
|
NumExtensions: 1,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_import_public_sub_a_proto_goTypes,
|
|
DependencyIndexes: file_import_public_sub_a_proto_depIdxs,
|
|
MessageInfos: file_import_public_sub_a_proto_msgTypes,
|
|
LegacyExtensions: file_import_public_sub_a_proto_extDescs,
|
|
}.Build()
|
|
File_import_public_sub_a_proto = out.File
|
|
file_import_public_sub_a_proto_enumTypes = out.Enums
|
|
file_import_public_sub_a_proto_rawDesc = nil
|
|
file_import_public_sub_a_proto_goTypes = nil
|
|
file_import_public_sub_a_proto_depIdxs = nil
|
|
}
|