package textpb3
import "google.golang.org/protobuf/internal/testprotos/textpb3"
Index ¶
- Variables
- type Enum
- func (Enum) Descriptor() protoreflect.EnumDescriptor
- func (x Enum) Enum() *Enum
- func (Enum) EnumDescriptor() ([]byte, []int)
- func (x Enum) Number() protoreflect.EnumNumber
- func (x Enum) String() string
- func (Enum) Type() protoreflect.EnumType
- type Enums
- func (*Enums) Descriptor() ([]byte, []int)
- func (x *Enums) GetSEnum() Enum
- func (x *Enums) GetSNestedEnum() Enums_NestedEnum
- func (*Enums) ProtoMessage()
- func (x *Enums) ProtoReflect() protoreflect.Message
- func (x *Enums) Reset()
- func (x *Enums) String() string
- type Enums_NestedEnum
- func (Enums_NestedEnum) Descriptor() protoreflect.EnumDescriptor
- func (x Enums_NestedEnum) Enum() *Enums_NestedEnum
- func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int)
- func (x Enums_NestedEnum) Number() protoreflect.EnumNumber
- func (x Enums_NestedEnum) String() string
- func (Enums_NestedEnum) Type() protoreflect.EnumType
- type JSONNames
- func (*JSONNames) Descriptor() ([]byte, []int)
- func (x *JSONNames) GetSString() string
- func (*JSONNames) ProtoMessage()
- func (x *JSONNames) ProtoReflect() protoreflect.Message
- func (x *JSONNames) Reset()
- func (x *JSONNames) String() string
- type Maps
- func (*Maps) Descriptor() ([]byte, []int)
- func (x *Maps) GetBoolToUint32() map[bool]uint32
- func (x *Maps) GetInt32ToStr() map[int32]string
- func (x *Maps) GetStrToNested() map[string]*Nested
- func (x *Maps) GetStrToOneofs() map[string]*Oneofs
- func (x *Maps) GetUint64ToEnum() map[uint64]Enum
- func (*Maps) ProtoMessage()
- func (x *Maps) ProtoReflect() protoreflect.Message
- func (x *Maps) Reset()
- func (x *Maps) String() string
- type Nested
- func (*Nested) Descriptor() ([]byte, []int)
- func (x *Nested) GetSNested() *Nested
- func (x *Nested) GetSString() string
- func (*Nested) ProtoMessage()
- func (x *Nested) ProtoReflect() protoreflect.Message
- func (x *Nested) Reset()
- func (x *Nested) String() string
- type Nests
- func (*Nests) Descriptor() ([]byte, []int)
- func (x *Nests) GetSNested() *Nested
- func (*Nests) ProtoMessage()
- func (x *Nests) ProtoReflect() protoreflect.Message
- func (x *Nests) Reset()
- func (x *Nests) String() string
- type Oneofs
- func (*Oneofs) Descriptor() ([]byte, []int)
- func (x *Oneofs) GetOneofEnum() Enum
- func (x *Oneofs) GetOneofNested() *Nested
- func (x *Oneofs) GetOneofString() string
- func (x *Oneofs) GetUnion() isOneofs_Union
- func (*Oneofs) ProtoMessage()
- func (x *Oneofs) ProtoReflect() protoreflect.Message
- func (x *Oneofs) Reset()
- func (x *Oneofs) String() string
- type Oneofs_OneofEnum
- type Oneofs_OneofNested
- type Oneofs_OneofString
- type OptionalEnums
- func (*OptionalEnums) Descriptor() ([]byte, []int)
- func (x *OptionalEnums) GetOptEnum() Enum
- func (x *OptionalEnums) GetOptNestedEnum() OptionalEnums_NestedEnum
- func (*OptionalEnums) ProtoMessage()
- func (x *OptionalEnums) ProtoReflect() protoreflect.Message
- func (x *OptionalEnums) Reset()
- func (x *OptionalEnums) String() string
- type OptionalEnums_NestedEnum
- func (OptionalEnums_NestedEnum) Descriptor() protoreflect.EnumDescriptor
- func (x OptionalEnums_NestedEnum) Enum() *OptionalEnums_NestedEnum
- func (OptionalEnums_NestedEnum) EnumDescriptor() ([]byte, []int)
- func (x OptionalEnums_NestedEnum) Number() protoreflect.EnumNumber
- func (x OptionalEnums_NestedEnum) String() string
- func (OptionalEnums_NestedEnum) Type() protoreflect.EnumType
- type Proto3Optional
- func (*Proto3Optional) Descriptor() ([]byte, []int)
- func (x *Proto3Optional) GetOptBool() bool
- func (x *Proto3Optional) GetOptBytes() []byte
- func (x *Proto3Optional) GetOptDouble() float64
- func (x *Proto3Optional) GetOptEnum() Enum
- func (x *Proto3Optional) GetOptFixed32() uint32
- func (x *Proto3Optional) GetOptFixed64() uint64
- func (x *Proto3Optional) GetOptFloat() float32
- func (x *Proto3Optional) GetOptInt32() int32
- func (x *Proto3Optional) GetOptInt64() int64
- func (x *Proto3Optional) GetOptMessage() *Nested
- func (x *Proto3Optional) GetOptSfixed32() int32
- func (x *Proto3Optional) GetOptSfixed64() int64
- func (x *Proto3Optional) GetOptSint32() int32
- func (x *Proto3Optional) GetOptSint64() int64
- func (x *Proto3Optional) GetOptString() string
- func (x *Proto3Optional) GetOptUint32() uint32
- func (x *Proto3Optional) GetOptUint64() uint64
- func (*Proto3Optional) ProtoMessage()
- func (x *Proto3Optional) ProtoReflect() protoreflect.Message
- func (x *Proto3Optional) Reset()
- func (x *Proto3Optional) String() string
- type Repeats
- func (*Repeats) Descriptor() ([]byte, []int)
- func (x *Repeats) GetRptBool() []bool
- func (x *Repeats) GetRptBytes() [][]byte
- func (x *Repeats) GetRptDouble() []float64
- func (x *Repeats) GetRptFloat() []float32
- func (x *Repeats) GetRptInt32() []int32
- func (x *Repeats) GetRptInt64() []int64
- func (x *Repeats) GetRptString() []string
- func (x *Repeats) GetRptUint32() []uint32
- func (x *Repeats) GetRptUint64() []uint64
- func (*Repeats) ProtoMessage()
- func (x *Repeats) ProtoReflect() protoreflect.Message
- func (x *Repeats) Reset()
- func (x *Repeats) String() string
- type ReservedFieldNames
- func (*ReservedFieldNames) Descriptor() ([]byte, []int)
- func (x *ReservedFieldNames) GetOptInt32() int32
- func (*ReservedFieldNames) ProtoMessage()
- func (x *ReservedFieldNames) ProtoReflect() protoreflect.Message
- func (x *ReservedFieldNames) Reset()
- func (x *ReservedFieldNames) String() string
- type Scalars
- func (*Scalars) Descriptor() ([]byte, []int)
- func (x *Scalars) GetSBool() bool
- func (x *Scalars) GetSBytes() []byte
- func (x *Scalars) GetSDouble() float64
- func (x *Scalars) GetSFixed32() uint32
- func (x *Scalars) GetSFixed64() uint64
- func (x *Scalars) GetSFloat() float32
- func (x *Scalars) GetSInt32() int32
- func (x *Scalars) GetSInt64() int64
- func (x *Scalars) GetSSfixed32() int32
- func (x *Scalars) GetSSfixed64() int64
- func (x *Scalars) GetSSint32() int32
- func (x *Scalars) GetSSint64() int64
- func (x *Scalars) GetSString() string
- func (x *Scalars) GetSUint32() uint32
- func (x *Scalars) GetSUint64() uint64
- func (*Scalars) ProtoMessage()
- func (x *Scalars) ProtoReflect() protoreflect.Message
- func (x *Scalars) Reset()
- func (x *Scalars) String() string
Variables ¶
var ( Enum_name = map[int32]string{ 0: "ZERO", 1: "ONE", 2: "TWO", 10: "TEN", } Enum_value = map[string]int32{ "ZERO": 0, "ONE": 1, "TWO": 2, "TEN": 10, } )
Enum value maps for Enum.
var ( OptionalEnums_NestedEnum_name = map[int32]string{ 0: "CERO", 1: "UNO", 2: "DOS", 10: "DIEZ", } OptionalEnums_NestedEnum_value = map[string]int32{ "CERO": 0, "UNO": 1, "DOS": 2, "DIEZ": 10, } )
Enum value maps for OptionalEnums_NestedEnum.
var ( Enums_NestedEnum_name = map[int32]string{ 0: "CERO", 1: "UNO", 2: "DOS", 10: "DIEZ", } Enums_NestedEnum_value = map[string]int32{ "CERO": 0, "UNO": 1, "DOS": 2, "DIEZ": 10, } )
Enum value maps for Enums_NestedEnum.
var File_internal_testprotos_textpb3_test_proto protoreflect.FileDescriptor
Types ¶
type Enum ¶
type Enum int32
func (Enum) Descriptor ¶
func (Enum) Descriptor() protoreflect.EnumDescriptor
func (Enum) Enum ¶
func (Enum) EnumDescriptor ¶
Deprecated: Use Enum.Descriptor instead.
func (Enum) Number ¶
func (x Enum) Number() protoreflect.EnumNumber
func (Enum) String ¶
func (Enum) Type ¶
func (Enum) Type() protoreflect.EnumType
type Enums ¶
type Enums struct { SEnum Enum `protobuf:"varint,1,opt,name=s_enum,json=sEnum,proto3,enum=pb3.Enum" json:"s_enum,omitempty"` SNestedEnum Enums_NestedEnum `protobuf:"varint,3,opt,name=s_nested_enum,json=sNestedEnum,proto3,enum=pb3.Enums_NestedEnum" json:"s_nested_enum,omitempty"` // contains filtered or unexported fields }
Message contains enum fields.
func (*Enums) Descriptor ¶
Deprecated: Use Enums.ProtoReflect.Descriptor instead.
func (*Enums) GetSEnum ¶
func (*Enums) GetSNestedEnum ¶
func (x *Enums) GetSNestedEnum() Enums_NestedEnum
func (*Enums) ProtoMessage ¶
func (*Enums) ProtoMessage()
func (*Enums) ProtoReflect ¶
func (x *Enums) ProtoReflect() protoreflect.Message
func (*Enums) Reset ¶
func (x *Enums) Reset()
func (*Enums) String ¶
type Enums_NestedEnum ¶
type Enums_NestedEnum int32
const ( Enums_CERO Enums_NestedEnum = 0 Enums_UNO Enums_NestedEnum = 1 Enums_DOS Enums_NestedEnum = 2 Enums_DIEZ Enums_NestedEnum = 10 )
func (Enums_NestedEnum) Descriptor ¶
func (Enums_NestedEnum) Descriptor() protoreflect.EnumDescriptor
func (Enums_NestedEnum) Enum ¶
func (x Enums_NestedEnum) Enum() *Enums_NestedEnum
func (Enums_NestedEnum) EnumDescriptor ¶
func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int)
Deprecated: Use Enums_NestedEnum.Descriptor instead.
func (Enums_NestedEnum) Number ¶
func (x Enums_NestedEnum) Number() protoreflect.EnumNumber
func (Enums_NestedEnum) String ¶
func (x Enums_NestedEnum) String() string
func (Enums_NestedEnum) Type ¶
func (Enums_NestedEnum) Type() protoreflect.EnumType
type JSONNames ¶
type JSONNames struct { SString string `protobuf:"bytes,1,opt,name=s_string,json=foo_bar,proto3" json:"s_string,omitempty"` // contains filtered or unexported fields }
Message for testing json_name option.
func (*JSONNames) Descriptor ¶
Deprecated: Use JSONNames.ProtoReflect.Descriptor instead.
func (*JSONNames) GetSString ¶
func (*JSONNames) ProtoMessage ¶
func (*JSONNames) ProtoMessage()
func (*JSONNames) ProtoReflect ¶
func (x *JSONNames) ProtoReflect() protoreflect.Message
func (*JSONNames) Reset ¶
func (x *JSONNames) Reset()
func (*JSONNames) String ¶
type Maps ¶
type Maps struct { Int32ToStr map[int32]string `protobuf:"bytes,1,rep,name=int32_to_str,json=int32ToStr,proto3" json:"int32_to_str,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` BoolToUint32 map[bool]uint32 `protobuf:"bytes,2,rep,name=bool_to_uint32,json=boolToUint32,proto3" json:"bool_to_uint32,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` Uint64ToEnum map[uint64]Enum `protobuf:"bytes,3,rep,name=uint64_to_enum,json=uint64ToEnum,proto3" json:"uint64_to_enum,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=pb3.Enum"` StrToNested map[string]*Nested `protobuf:"bytes,4,rep,name=str_to_nested,json=strToNested,proto3" json:"str_to_nested,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` StrToOneofs map[string]*Oneofs `protobuf:"bytes,5,rep,name=str_to_oneofs,json=strToOneofs,proto3" json:"str_to_oneofs,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // contains filtered or unexported fields }
Message contains map fields.
func (*Maps) Descriptor ¶
Deprecated: Use Maps.ProtoReflect.Descriptor instead.
func (*Maps) GetBoolToUint32 ¶
func (*Maps) GetInt32ToStr ¶
func (*Maps) GetStrToNested ¶
func (*Maps) GetStrToOneofs ¶
func (*Maps) GetUint64ToEnum ¶
func (*Maps) ProtoMessage ¶
func (*Maps) ProtoMessage()
func (*Maps) ProtoReflect ¶
func (x *Maps) ProtoReflect() protoreflect.Message
func (*Maps) Reset ¶
func (x *Maps) Reset()
func (*Maps) String ¶
type Nested ¶
type Nested struct { SString string `protobuf:"bytes,1,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"` SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"` // contains filtered or unexported fields }
Message type used as submessage.
func (*Nested) Descriptor ¶
Deprecated: Use Nested.ProtoReflect.Descriptor instead.
func (*Nested) GetSNested ¶
func (*Nested) GetSString ¶
func (*Nested) ProtoMessage ¶
func (*Nested) ProtoMessage()
func (*Nested) ProtoReflect ¶
func (x *Nested) ProtoReflect() protoreflect.Message
func (*Nested) Reset ¶
func (x *Nested) Reset()
func (*Nested) String ¶
type Nests ¶
type Nests struct { SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"` // contains filtered or unexported fields }
Message contains nested message field.
func (*Nests) Descriptor ¶
Deprecated: Use Nests.ProtoReflect.Descriptor instead.
func (*Nests) GetSNested ¶
func (*Nests) ProtoMessage ¶
func (*Nests) ProtoMessage()
func (*Nests) ProtoReflect ¶
func (x *Nests) ProtoReflect() protoreflect.Message
func (*Nests) Reset ¶
func (x *Nests) Reset()
func (*Nests) String ¶
type Oneofs ¶
type Oneofs struct { // Types that are valid to be assigned to Union: // // *Oneofs_OneofEnum // *Oneofs_OneofString // *Oneofs_OneofNested Union isOneofs_Union `protobuf_oneof:"union"` // contains filtered or unexported fields }
Message contains oneof field.
func (*Oneofs) Descriptor ¶
Deprecated: Use Oneofs.ProtoReflect.Descriptor instead.
func (*Oneofs) GetOneofEnum ¶
func (*Oneofs) GetOneofNested ¶
func (*Oneofs) GetOneofString ¶
func (*Oneofs) GetUnion ¶
func (x *Oneofs) GetUnion() isOneofs_Union
func (*Oneofs) ProtoMessage ¶
func (*Oneofs) ProtoMessage()
func (*Oneofs) ProtoReflect ¶
func (x *Oneofs) ProtoReflect() protoreflect.Message
func (*Oneofs) Reset ¶
func (x *Oneofs) Reset()
func (*Oneofs) String ¶
type Oneofs_OneofEnum ¶
type Oneofs_OneofEnum struct { OneofEnum Enum `protobuf:"varint,1,opt,name=oneof_enum,json=oneofEnum,proto3,enum=pb3.Enum,oneof"` }
type Oneofs_OneofNested ¶
type Oneofs_OneofNested struct { OneofNested *Nested `protobuf:"bytes,3,opt,name=oneof_nested,json=oneofNested,proto3,oneof"` }
type Oneofs_OneofString ¶
type Oneofs_OneofString struct { OneofString string `protobuf:"bytes,2,opt,name=oneof_string,json=oneofString,proto3,oneof"` }
type OptionalEnums ¶
type OptionalEnums struct { OptEnum *Enum `protobuf:"varint,1,opt,name=opt_enum,json=optEnum,proto3,enum=pb3.Enum,oneof" json:"opt_enum,omitempty"` OptNestedEnum OptionalEnums_NestedEnum `protobuf:"varint,3,opt,name=opt_nested_enum,json=optNestedEnum,proto3,enum=pb3.OptionalEnums_NestedEnum" json:"opt_nested_enum,omitempty"` // contains filtered or unexported fields }
func (*OptionalEnums) Descriptor ¶
func (*OptionalEnums) Descriptor() ([]byte, []int)
Deprecated: Use OptionalEnums.ProtoReflect.Descriptor instead.
func (*OptionalEnums) GetOptEnum ¶
func (x *OptionalEnums) GetOptEnum() Enum
func (*OptionalEnums) GetOptNestedEnum ¶
func (x *OptionalEnums) GetOptNestedEnum() OptionalEnums_NestedEnum
func (*OptionalEnums) ProtoMessage ¶
func (*OptionalEnums) ProtoMessage()
func (*OptionalEnums) ProtoReflect ¶
func (x *OptionalEnums) ProtoReflect() protoreflect.Message
func (*OptionalEnums) Reset ¶
func (x *OptionalEnums) Reset()
func (*OptionalEnums) String ¶
func (x *OptionalEnums) String() string
type OptionalEnums_NestedEnum ¶
type OptionalEnums_NestedEnum int32
const ( OptionalEnums_CERO OptionalEnums_NestedEnum = 0 OptionalEnums_UNO OptionalEnums_NestedEnum = 1 OptionalEnums_DOS OptionalEnums_NestedEnum = 2 OptionalEnums_DIEZ OptionalEnums_NestedEnum = 10 )
func (OptionalEnums_NestedEnum) Descriptor ¶
func (OptionalEnums_NestedEnum) Descriptor() protoreflect.EnumDescriptor
func (OptionalEnums_NestedEnum) Enum ¶
func (x OptionalEnums_NestedEnum) Enum() *OptionalEnums_NestedEnum
func (OptionalEnums_NestedEnum) EnumDescriptor ¶
func (OptionalEnums_NestedEnum) EnumDescriptor() ([]byte, []int)
Deprecated: Use OptionalEnums_NestedEnum.Descriptor instead.
func (OptionalEnums_NestedEnum) Number ¶
func (x OptionalEnums_NestedEnum) Number() protoreflect.EnumNumber
func (OptionalEnums_NestedEnum) String ¶
func (x OptionalEnums_NestedEnum) String() string
func (OptionalEnums_NestedEnum) Type ¶
func (OptionalEnums_NestedEnum) Type() protoreflect.EnumType
type Proto3Optional ¶
type Proto3Optional struct { OptBool *bool `protobuf:"varint,1,opt,name=opt_bool,json=optBool,proto3,oneof" json:"opt_bool,omitempty"` OptInt32 *int32 `protobuf:"varint,2,opt,name=opt_int32,json=optInt32,proto3,oneof" json:"opt_int32,omitempty"` OptInt64 *int64 `protobuf:"varint,3,opt,name=opt_int64,json=optInt64,proto3,oneof" json:"opt_int64,omitempty"` OptUint32 *uint32 `protobuf:"varint,4,opt,name=opt_uint32,json=optUint32,proto3,oneof" json:"opt_uint32,omitempty"` OptUint64 *uint64 `protobuf:"varint,5,opt,name=opt_uint64,json=optUint64,proto3,oneof" json:"opt_uint64,omitempty"` OptSint32 *int32 `protobuf:"zigzag32,12,opt,name=opt_sint32,json=optSint32,proto3,oneof" json:"opt_sint32,omitempty"` OptSint64 *int64 `protobuf:"zigzag64,13,opt,name=opt_sint64,json=optSint64,proto3,oneof" json:"opt_sint64,omitempty"` OptFixed32 *uint32 `protobuf:"fixed32,14,opt,name=opt_fixed32,json=optFixed32,proto3,oneof" json:"opt_fixed32,omitempty"` OptFixed64 *uint64 `protobuf:"fixed64,15,opt,name=opt_fixed64,json=optFixed64,proto3,oneof" json:"opt_fixed64,omitempty"` OptSfixed32 *int32 `protobuf:"fixed32,16,opt,name=opt_sfixed32,json=optSfixed32,proto3,oneof" json:"opt_sfixed32,omitempty"` OptSfixed64 *int64 `protobuf:"fixed64,17,opt,name=opt_sfixed64,json=optSfixed64,proto3,oneof" json:"opt_sfixed64,omitempty"` OptFloat *float32 `protobuf:"fixed32,20,opt,name=opt_float,json=optFloat,proto3,oneof" json:"opt_float,omitempty"` OptDouble *float64 `protobuf:"fixed64,21,opt,name=opt_double,json=optDouble,proto3,oneof" json:"opt_double,omitempty"` OptBytes []byte `protobuf:"bytes,8,opt,name=opt_bytes,json=optBytes,proto3,oneof" json:"opt_bytes,omitempty"` OptString *string `protobuf:"bytes,9,opt,name=opt_string,json=optString,proto3,oneof" json:"opt_string,omitempty"` OptEnum *Enum `protobuf:"varint,10,opt,name=opt_enum,json=optEnum,proto3,enum=pb3.Enum,oneof" json:"opt_enum,omitempty"` OptMessage *Nested `protobuf:"bytes,11,opt,name=opt_message,json=optMessage,proto3,oneof" json:"opt_message,omitempty"` // contains filtered or unexported fields }
func (*Proto3Optional) Descriptor ¶
func (*Proto3Optional) Descriptor() ([]byte, []int)
Deprecated: Use Proto3Optional.ProtoReflect.Descriptor instead.
func (*Proto3Optional) GetOptBool ¶
func (x *Proto3Optional) GetOptBool() bool
func (*Proto3Optional) GetOptBytes ¶
func (x *Proto3Optional) GetOptBytes() []byte
func (*Proto3Optional) GetOptDouble ¶
func (x *Proto3Optional) GetOptDouble() float64
func (*Proto3Optional) GetOptEnum ¶
func (x *Proto3Optional) GetOptEnum() Enum
func (*Proto3Optional) GetOptFixed32 ¶
func (x *Proto3Optional) GetOptFixed32() uint32
func (*Proto3Optional) GetOptFixed64 ¶
func (x *Proto3Optional) GetOptFixed64() uint64
func (*Proto3Optional) GetOptFloat ¶
func (x *Proto3Optional) GetOptFloat() float32
func (*Proto3Optional) GetOptInt32 ¶
func (x *Proto3Optional) GetOptInt32() int32
func (*Proto3Optional) GetOptInt64 ¶
func (x *Proto3Optional) GetOptInt64() int64
func (*Proto3Optional) GetOptMessage ¶
func (x *Proto3Optional) GetOptMessage() *Nested
func (*Proto3Optional) GetOptSfixed32 ¶
func (x *Proto3Optional) GetOptSfixed32() int32
func (*Proto3Optional) GetOptSfixed64 ¶
func (x *Proto3Optional) GetOptSfixed64() int64
func (*Proto3Optional) GetOptSint32 ¶
func (x *Proto3Optional) GetOptSint32() int32
func (*Proto3Optional) GetOptSint64 ¶
func (x *Proto3Optional) GetOptSint64() int64
func (*Proto3Optional) GetOptString ¶
func (x *Proto3Optional) GetOptString() string
func (*Proto3Optional) GetOptUint32 ¶
func (x *Proto3Optional) GetOptUint32() uint32
func (*Proto3Optional) GetOptUint64 ¶
func (x *Proto3Optional) GetOptUint64() uint64
func (*Proto3Optional) ProtoMessage ¶
func (*Proto3Optional) ProtoMessage()
func (*Proto3Optional) ProtoReflect ¶
func (x *Proto3Optional) ProtoReflect() protoreflect.Message
func (*Proto3Optional) Reset ¶
func (x *Proto3Optional) Reset()
func (*Proto3Optional) String ¶
func (x *Proto3Optional) String() string
type Repeats ¶
type Repeats struct { RptBool []bool `protobuf:"varint,1,rep,packed,name=rpt_bool,json=rptBool,proto3" json:"rpt_bool,omitempty"` RptInt32 []int32 `protobuf:"varint,2,rep,packed,name=rpt_int32,json=rptInt32,proto3" json:"rpt_int32,omitempty"` RptInt64 []int64 `protobuf:"varint,3,rep,packed,name=rpt_int64,json=rptInt64,proto3" json:"rpt_int64,omitempty"` RptUint32 []uint32 `protobuf:"varint,4,rep,packed,name=rpt_uint32,json=rptUint32,proto3" json:"rpt_uint32,omitempty"` RptUint64 []uint64 `protobuf:"varint,5,rep,packed,name=rpt_uint64,json=rptUint64,proto3" json:"rpt_uint64,omitempty"` RptFloat []float32 `protobuf:"fixed32,6,rep,packed,name=rpt_float,json=rptFloat,proto3" json:"rpt_float,omitempty"` RptDouble []float64 `protobuf:"fixed64,7,rep,packed,name=rpt_double,json=rptDouble,proto3" json:"rpt_double,omitempty"` RptString []string `protobuf:"bytes,8,rep,name=rpt_string,json=rptString,proto3" json:"rpt_string,omitempty"` RptBytes [][]byte `protobuf:"bytes,9,rep,name=rpt_bytes,json=rptBytes,proto3" json:"rpt_bytes,omitempty"` // contains filtered or unexported fields }
Message contains repeated fields.
func (*Repeats) Descriptor ¶
Deprecated: Use Repeats.ProtoReflect.Descriptor instead.
func (*Repeats) GetRptBool ¶
func (*Repeats) GetRptBytes ¶
func (*Repeats) GetRptDouble ¶
func (*Repeats) GetRptFloat ¶
func (*Repeats) GetRptInt32 ¶
func (*Repeats) GetRptInt64 ¶
func (*Repeats) GetRptString ¶
func (*Repeats) GetRptUint32 ¶
func (*Repeats) GetRptUint64 ¶
func (*Repeats) ProtoMessage ¶
func (*Repeats) ProtoMessage()
func (*Repeats) ProtoReflect ¶
func (x *Repeats) ProtoReflect() protoreflect.Message
func (*Repeats) Reset ¶
func (x *Repeats) Reset()
func (*Repeats) String ¶
type ReservedFieldNames ¶
type ReservedFieldNames struct { OptInt32 int32 `protobuf:"varint,1,opt,name=opt_int32,json=optInt32,proto3" json:"opt_int32,omitempty"` // contains filtered or unexported fields }
Message contains reserved field name.
func (*ReservedFieldNames) Descriptor ¶
func (*ReservedFieldNames) Descriptor() ([]byte, []int)
Deprecated: Use ReservedFieldNames.ProtoReflect.Descriptor instead.
func (*ReservedFieldNames) GetOptInt32 ¶
func (x *ReservedFieldNames) GetOptInt32() int32
func (*ReservedFieldNames) ProtoMessage ¶
func (*ReservedFieldNames) ProtoMessage()
func (*ReservedFieldNames) ProtoReflect ¶
func (x *ReservedFieldNames) ProtoReflect() protoreflect.Message
func (*ReservedFieldNames) Reset ¶
func (x *ReservedFieldNames) Reset()
func (*ReservedFieldNames) String ¶
func (x *ReservedFieldNames) String() string
type Scalars ¶
type Scalars struct { SBool bool `protobuf:"varint,1,opt,name=s_bool,json=sBool,proto3" json:"s_bool,omitempty"` SInt32 int32 `protobuf:"varint,2,opt,name=s_int32,json=sInt32,proto3" json:"s_int32,omitempty"` SInt64 int64 `protobuf:"varint,3,opt,name=s_int64,json=sInt64,proto3" json:"s_int64,omitempty"` SUint32 uint32 `protobuf:"varint,4,opt,name=s_uint32,json=sUint32,proto3" json:"s_uint32,omitempty"` SUint64 uint64 `protobuf:"varint,5,opt,name=s_uint64,json=sUint64,proto3" json:"s_uint64,omitempty"` SSint32 int32 `protobuf:"zigzag32,6,opt,name=s_sint32,json=sSint32,proto3" json:"s_sint32,omitempty"` SSint64 int64 `protobuf:"zigzag64,7,opt,name=s_sint64,json=sSint64,proto3" json:"s_sint64,omitempty"` SFixed32 uint32 `protobuf:"fixed32,8,opt,name=s_fixed32,json=sFixed32,proto3" json:"s_fixed32,omitempty"` SFixed64 uint64 `protobuf:"fixed64,9,opt,name=s_fixed64,json=sFixed64,proto3" json:"s_fixed64,omitempty"` SSfixed32 int32 `protobuf:"fixed32,10,opt,name=s_sfixed32,json=sSfixed32,proto3" json:"s_sfixed32,omitempty"` SSfixed64 int64 `protobuf:"fixed64,11,opt,name=s_sfixed64,json=sSfixed64,proto3" json:"s_sfixed64,omitempty"` SFloat float32 `protobuf:"fixed32,20,opt,name=s_float,json=sFloat,proto3" json:"s_float,omitempty"` SDouble float64 `protobuf:"fixed64,21,opt,name=s_double,json=sDouble,proto3" json:"s_double,omitempty"` SBytes []byte `protobuf:"bytes,14,opt,name=s_bytes,json=sBytes,proto3" json:"s_bytes,omitempty"` SString string `protobuf:"bytes,13,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"` // contains filtered or unexported fields }
Scalars contains scalar field types.
func (*Scalars) Descriptor ¶
Deprecated: Use Scalars.ProtoReflect.Descriptor instead.
func (*Scalars) GetSBool ¶
func (*Scalars) GetSBytes ¶
func (*Scalars) GetSDouble ¶
func (*Scalars) GetSFixed32 ¶
func (*Scalars) GetSFixed64 ¶
func (*Scalars) GetSFloat ¶
func (*Scalars) GetSInt32 ¶
func (*Scalars) GetSInt64 ¶
func (*Scalars) GetSSfixed32 ¶
func (*Scalars) GetSSfixed64 ¶
func (*Scalars) GetSSint32 ¶
func (*Scalars) GetSSint64 ¶
func (*Scalars) GetSString ¶
func (*Scalars) GetSUint32 ¶
func (*Scalars) GetSUint64 ¶
func (*Scalars) ProtoMessage ¶
func (*Scalars) ProtoMessage()
func (*Scalars) ProtoReflect ¶
func (x *Scalars) ProtoReflect() protoreflect.Message
func (*Scalars) Reset ¶
func (x *Scalars) Reset()
func (*Scalars) String ¶
Source Files ¶
test.pb.go
- Version
- v1.36.5 (latest)
- Published
- Feb 6, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 10 hours ago –
Tools for package owners.