Default values for M fields.
const ( Default_M_S = string("default") )
Enum value maps for E.
var ( E_name = map[int32]string{ 0: "ZERO", } E_value = map[string]int32{ "ZERO": 0, } )
Enum value maps for M_Subenum.
var ( M_Subenum_name = map[int32]string{ 0: "M_ZERO", } M_Subenum_value = map[string]int32{ "M_ZERO": 0, } )
Enum value maps for M_Submessage_Submessage_Subenum.
var ( M_Submessage_Submessage_Subenum_name = map[int32]string{ 0: "M_SUBMESSAGE_ZERO", } M_Submessage_Submessage_Subenum_value = map[string]int32{ "M_SUBMESSAGE_ZERO": 0, } )
Default values for M fields.
var ( Default_M_B = []byte("default") Default_M_F = float64(math.NaN()) )
Extension fields to M.
var ( // optional string extension_field = 100; E_ExtensionField = &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_extTypes[0] )
var File_cmd_protoc_gen_go_testdata_import_public_sub_a_proto protoreflect.FileDescriptor
var File_cmd_protoc_gen_go_testdata_import_public_sub_b_proto protoreflect.FileDescriptor
type E int32
const ( E_ZERO E = 0 )
func (E) Descriptor() protoreflect.EnumDescriptor
func (x E) Enum() *E
func (E) EnumDescriptor() ([]byte, []int)
Deprecated: Use E.Descriptor instead.
func (x E) Number() protoreflect.EnumNumber
func (x E) String() string
func (E) Type() protoreflect.EnumType
func (x *E) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type M struct { // 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 assignable to OneofField: // // *M_OneofInt32 // *M_OneofInt64 OneofField isM_OneofField `protobuf_oneof:"oneof_field"` // contains filtered or unexported fields }
func (*M) Descriptor() ([]byte, []int)
Deprecated: Use M.ProtoReflect.Descriptor instead.
func (x *M) GetB() []byte
func (x *M) GetF() float64
func (x *M) GetM2() *M2
func (m *M) GetOneofField() isM_OneofField
func (x *M) GetOneofInt32() int32
func (x *M) GetOneofInt64() int64
func (x *M) GetS() string
func (*M) ProtoMessage()
func (x *M) ProtoReflect() protoreflect.Message
func (x *M) Reset()
func (x *M) String() string
type M2 struct {
// contains filtered or unexported fields
}
func (*M2) Descriptor() ([]byte, []int)
Deprecated: Use M2.ProtoReflect.Descriptor instead.
func (*M2) ProtoMessage()
func (x *M2) ProtoReflect() protoreflect.Message
func (x *M2) Reset()
func (x *M2) String() string
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"` }
type M_Subenum int32
const ( M_M_ZERO M_Subenum = 0 )
func (M_Subenum) Descriptor() protoreflect.EnumDescriptor
func (x M_Subenum) Enum() *M_Subenum
func (M_Subenum) EnumDescriptor() ([]byte, []int)
Deprecated: Use M_Subenum.Descriptor instead.
func (x M_Subenum) Number() protoreflect.EnumNumber
func (x M_Subenum) String() string
func (M_Subenum) Type() protoreflect.EnumType
func (x *M_Subenum) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type M_Submessage struct { // Types that are assignable to SubmessageOneofField: // // *M_Submessage_SubmessageOneofInt32 // *M_Submessage_SubmessageOneofInt64 SubmessageOneofField isM_Submessage_SubmessageOneofField `protobuf_oneof:"submessage_oneof_field"` // contains filtered or unexported fields }
func (*M_Submessage) Descriptor() ([]byte, []int)
Deprecated: Use M_Submessage.ProtoReflect.Descriptor instead.
func (m *M_Submessage) GetSubmessageOneofField() isM_Submessage_SubmessageOneofField
func (x *M_Submessage) GetSubmessageOneofInt32() int32
func (x *M_Submessage) GetSubmessageOneofInt64() int64
func (*M_Submessage) ProtoMessage()
func (x *M_Submessage) ProtoReflect() protoreflect.Message
func (x *M_Submessage) Reset()
func (x *M_Submessage) String() string
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"` }
type M_Submessage_Submessage_Subenum int32
const ( M_Submessage_M_SUBMESSAGE_ZERO M_Submessage_Submessage_Subenum = 0 )
func (M_Submessage_Submessage_Subenum) Descriptor() protoreflect.EnumDescriptor
func (x M_Submessage_Submessage_Subenum) Enum() *M_Submessage_Submessage_Subenum
func (M_Submessage_Submessage_Subenum) EnumDescriptor() ([]byte, []int)
Deprecated: Use M_Submessage_Submessage_Subenum.Descriptor instead.
func (x M_Submessage_Submessage_Subenum) Number() protoreflect.EnumNumber
func (x M_Submessage_Submessage_Subenum) String() string
func (M_Submessage_Submessage_Subenum) Type() protoreflect.EnumType
func (x *M_Submessage_Submessage_Subenum) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type Sub2Message = sub2.Sub2Message