Documentation ¶
Index ¶
- Variables
- type Assorted
- func (*Assorted) Descriptor() ([]byte, []int)deprecated
- func (x *Assorted) GetTBool() bool
- func (x *Assorted) GetTBytes() []byte
- func (x *Assorted) GetTDouble() float64
- func (x *Assorted) GetTFixed32() uint32
- func (x *Assorted) GetTFixed64() uint64
- func (x *Assorted) GetTFloat() float32
- func (x *Assorted) GetTInt32() int32
- func (x *Assorted) GetTInt64() int64
- func (x *Assorted) GetTMessage() *Assorted_Nested
- func (x *Assorted) GetTSfixed32() int32
- func (x *Assorted) GetTSfixed64() int64
- func (x *Assorted) GetTSint32() int32
- func (x *Assorted) GetTSint64() int64
- func (x *Assorted) GetTString() string
- func (x *Assorted) GetTUint32() uint32
- func (x *Assorted) GetTUint64() uint64
- func (*Assorted) ProtoMessage()
- func (x *Assorted) ProtoReflect() protoreflect.Message
- func (x *Assorted) Reset()
- func (x *Assorted) String() string
- type Assorted_Nested
- type Empty
- type Simple
- type WithAny
- func (*WithAny) Descriptor() ([]byte, []int)deprecated
- func (x *WithAny) GetTAny() *anypb.Any
- func (x *WithAny) GetTAnyList() []*anypb.Any
- func (x *WithAny) GetTAnyMapNumber() map[int64]*anypb.Any
- func (x *WithAny) GetTAnyMapString() map[string]*anypb.Any
- func (x *WithAny) GetTString() string
- func (*WithAny) ProtoMessage()
- func (x *WithAny) ProtoReflect() protoreflect.Message
- func (x *WithAny) Reset()
- func (x *WithAny) String() string
- type WithEnum
- type WithEnum_Things
- func (WithEnum_Things) Descriptor() protoreflect.EnumDescriptor
- func (x WithEnum_Things) Enum() *WithEnum_Things
- func (WithEnum_Things) EnumDescriptor() ([]byte, []int)deprecated
- func (x WithEnum_Things) Number() protoreflect.EnumNumber
- func (x WithEnum_Things) String() string
- func (WithEnum_Things) Type() protoreflect.EnumType
- type WithOneOf
- func (*WithOneOf) Descriptor() ([]byte, []int)deprecated
- func (x *WithOneOf) GetA() string
- func (x *WithOneOf) GetB() string
- func (x *WithOneOf) GetOutside() string
- func (m *WithOneOf) GetTOneof() isWithOneOf_TOneof
- func (*WithOneOf) ProtoMessage()
- func (x *WithOneOf) ProtoReflect() protoreflect.Message
- func (x *WithOneOf) Reset()
- func (x *WithOneOf) String() string
- type WithOneOf_A
- type WithOneOf_B
- type WithOptional
- func (*WithOptional) Descriptor() ([]byte, []int)deprecated
- func (x *WithOptional) GetInt32Opt() int32
- func (x *WithOptional) GetInt32Req() int32
- func (x *WithOptional) GetMessageOpt() *WithOptional_Nested
- func (x *WithOptional) GetMessageReq() *WithOptional_Nested
- func (x *WithOptional) GetStringOpt() string
- func (x *WithOptional) GetStringReq() string
- func (*WithOptional) ProtoMessage()
- func (x *WithOptional) ProtoReflect() protoreflect.Message
- func (x *WithOptional) Reset()
- func (x *WithOptional) String() string
- type WithOptional_Nested
- type WithRepeated
- func (*WithRepeated) Descriptor() ([]byte, []int)deprecated
- func (x *WithRepeated) GetTMapNumberBool() map[int64]bool
- func (x *WithRepeated) GetTMapNumberMessage() map[int64]*WithRepeated_Nested
- func (x *WithRepeated) GetTMapStringBool() map[string]bool
- func (x *WithRepeated) GetTMapStringMessage() map[string]*WithRepeated_Nested
- func (x *WithRepeated) GetTMessage() []*WithRepeated_Nested
- func (x *WithRepeated) GetTStrings() []string
- func (*WithRepeated) ProtoMessage()
- func (x *WithRepeated) ProtoReflect() protoreflect.Message
- func (x *WithRepeated) Reset()
- func (x *WithRepeated) String() string
- type WithRepeated_Nested
- func (*WithRepeated_Nested) Descriptor() ([]byte, []int)deprecated
- func (x *WithRepeated_Nested) GetTNestedField() string
- func (*WithRepeated_Nested) ProtoMessage()
- func (x *WithRepeated_Nested) ProtoReflect() protoreflect.Message
- func (x *WithRepeated_Nested) Reset()
- func (x *WithRepeated_Nested) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WithEnum_Things_name = map[int32]string{ 0: "A", 1: "b", 2: "C", 3: "d", } WithEnum_Things_value = map[string]int32{ "A": 0, "b": 1, "C": 2, "d": 3, } )
Enum value maps for WithEnum_Things.
View Source
var File_testproto_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Assorted ¶
type Assorted struct { TDouble float64 `protobuf:"fixed64,1,opt,name=t_double,json=tDouble,proto3" json:"t_double,omitempty"` TFloat float32 `protobuf:"fixed32,2,opt,name=t_float,json=tFloat,proto3" json:"t_float,omitempty"` TInt32 int32 `protobuf:"varint,3,opt,name=t_int32,json=tInt32,proto3" json:"t_int32,omitempty"` TInt64 int64 `protobuf:"varint,4,opt,name=t_int64,json=tInt64,proto3" json:"t_int64,omitempty"` TUint32 uint32 `protobuf:"varint,5,opt,name=t_uint32,json=tUint32,proto3" json:"t_uint32,omitempty"` TUint64 uint64 `protobuf:"varint,6,opt,name=t_uint64,json=tUint64,proto3" json:"t_uint64,omitempty"` TSint32 int32 `protobuf:"zigzag32,7,opt,name=t_sint32,json=tSint32,proto3" json:"t_sint32,omitempty"` TSint64 int64 `protobuf:"zigzag64,8,opt,name=t_sint64,json=tSint64,proto3" json:"t_sint64,omitempty"` TFixed32 uint32 `protobuf:"fixed32,9,opt,name=t_fixed32,json=tFixed32,proto3" json:"t_fixed32,omitempty"` TFixed64 uint64 `protobuf:"fixed64,10,opt,name=t_fixed64,json=tFixed64,proto3" json:"t_fixed64,omitempty"` TSfixed32 int32 `protobuf:"fixed32,11,opt,name=t_sfixed32,json=tSfixed32,proto3" json:"t_sfixed32,omitempty"` TSfixed64 int64 `protobuf:"fixed64,12,opt,name=t_sfixed64,json=tSfixed64,proto3" json:"t_sfixed64,omitempty"` TBool bool `protobuf:"varint,13,opt,name=t_bool,json=tBool,proto3" json:"t_bool,omitempty"` TString string `protobuf:"bytes,14,opt,name=t_string,json=tString,proto3" json:"t_string,omitempty"` TBytes []byte `protobuf:"bytes,15,opt,name=t_bytes,json=tBytes,proto3" json:"t_bytes,omitempty"` TMessage *Assorted_Nested `protobuf:"bytes,16,opt,name=t_message,json=tMessage,proto3" json:"t_message,omitempty"` // contains filtered or unexported fields }
func (*Assorted) Descriptor
deprecated
func (*Assorted) GetTDouble ¶
func (*Assorted) GetTFixed32 ¶
func (*Assorted) GetTFixed64 ¶
func (*Assorted) GetTMessage ¶
func (x *Assorted) GetTMessage() *Assorted_Nested
func (*Assorted) GetTSfixed32 ¶
func (*Assorted) GetTSfixed64 ¶
func (*Assorted) GetTSint32 ¶
func (*Assorted) GetTSint64 ¶
func (*Assorted) GetTString ¶
func (*Assorted) GetTUint32 ¶
func (*Assorted) GetTUint64 ¶
func (*Assorted) ProtoMessage ¶
func (*Assorted) ProtoMessage()
func (*Assorted) ProtoReflect ¶
func (x *Assorted) ProtoReflect() protoreflect.Message
type Assorted_Nested ¶
type Assorted_Nested struct { TNestedField string `protobuf:"bytes,1,opt,name=t_nested_field,json=tNestedField,proto3" json:"t_nested_field,omitempty"` // contains filtered or unexported fields }
func (*Assorted_Nested) Descriptor
deprecated
func (*Assorted_Nested) Descriptor() ([]byte, []int)
Deprecated: Use Assorted_Nested.ProtoReflect.Descriptor instead.
func (*Assorted_Nested) GetTNestedField ¶
func (x *Assorted_Nested) GetTNestedField() string
func (*Assorted_Nested) ProtoMessage ¶
func (*Assorted_Nested) ProtoMessage()
func (*Assorted_Nested) ProtoReflect ¶
func (x *Assorted_Nested) ProtoReflect() protoreflect.Message
func (*Assorted_Nested) Reset ¶
func (x *Assorted_Nested) Reset()
func (*Assorted_Nested) String ¶
func (x *Assorted_Nested) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type Simple ¶
type Simple struct { Foo *Empty `protobuf:"bytes,1,opt,name=foo,proto3" json:"foo,omitempty"` // contains filtered or unexported fields }
func (*Simple) Descriptor
deprecated
func (*Simple) ProtoMessage ¶
func (*Simple) ProtoMessage()
func (*Simple) ProtoReflect ¶
func (x *Simple) ProtoReflect() protoreflect.Message
type WithAny ¶
type WithAny struct { TString string `protobuf:"bytes,1,opt,name=t_string,json=tString,proto3" json:"t_string,omitempty"` TAny *anypb.Any `protobuf:"bytes,2,opt,name=t_any,json=tAny,proto3" json:"t_any,omitempty"` TAnyList []*anypb.Any `protobuf:"bytes,3,rep,name=t_any_list,json=tAnyList,proto3" json:"t_any_list,omitempty"` TAnyMapString map[string]*anypb.Any `` /* 192-byte string literal not displayed */ TAnyMapNumber map[int64]*anypb.Any `` /* 193-byte string literal not displayed */ // contains filtered or unexported fields }
func (*WithAny) Descriptor
deprecated
func (*WithAny) GetTAnyList ¶
func (*WithAny) GetTString ¶
func (*WithAny) ProtoMessage ¶
func (*WithAny) ProtoMessage()
func (*WithAny) ProtoReflect ¶
func (x *WithAny) ProtoReflect() protoreflect.Message
type WithEnum ¶
type WithEnum struct { TString string `protobuf:"bytes,1,opt,name=t_string,json=tString,proto3" json:"t_string,omitempty"` TEnum WithEnum_Things `protobuf:"varint,2,opt,name=t_enum,json=tEnum,proto3,enum=testproto.WithEnum_Things" json:"t_enum,omitempty"` // contains filtered or unexported fields }
func (*WithEnum) Descriptor
deprecated
func (*WithEnum) GetTEnum ¶
func (x *WithEnum) GetTEnum() WithEnum_Things
func (*WithEnum) GetTString ¶
func (*WithEnum) ProtoMessage ¶
func (*WithEnum) ProtoMessage()
func (*WithEnum) ProtoReflect ¶
func (x *WithEnum) ProtoReflect() protoreflect.Message
type WithEnum_Things ¶
type WithEnum_Things int32
const ( WithEnum_A WithEnum_Things = 0 WithEnum_b WithEnum_Things = 1 WithEnum_C WithEnum_Things = 2 WithEnum_d WithEnum_Things = 3 )
func (WithEnum_Things) Descriptor ¶
func (WithEnum_Things) Descriptor() protoreflect.EnumDescriptor
func (WithEnum_Things) Enum ¶
func (x WithEnum_Things) Enum() *WithEnum_Things
func (WithEnum_Things) EnumDescriptor
deprecated
func (WithEnum_Things) EnumDescriptor() ([]byte, []int)
Deprecated: Use WithEnum_Things.Descriptor instead.
func (WithEnum_Things) Number ¶
func (x WithEnum_Things) Number() protoreflect.EnumNumber
func (WithEnum_Things) String ¶
func (x WithEnum_Things) String() string
func (WithEnum_Things) Type ¶
func (WithEnum_Things) Type() protoreflect.EnumType
type WithOneOf ¶
type WithOneOf struct { Outside string `protobuf:"bytes,1,opt,name=outside,proto3" json:"outside,omitempty"` // Types that are assignable to TOneof: // *WithOneOf_A // *WithOneOf_B TOneof isWithOneOf_TOneof `protobuf_oneof:"t_oneof"` // contains filtered or unexported fields }
func (*WithOneOf) Descriptor
deprecated
func (*WithOneOf) GetOutside ¶
func (*WithOneOf) ProtoMessage ¶
func (*WithOneOf) ProtoMessage()
func (*WithOneOf) ProtoReflect ¶
func (x *WithOneOf) ProtoReflect() protoreflect.Message
type WithOneOf_A ¶
type WithOneOf_A struct {
A string `protobuf:"bytes,2,opt,name=a,proto3,oneof"`
}
type WithOneOf_B ¶
type WithOneOf_B struct {
B string `protobuf:"bytes,3,opt,name=b,proto3,oneof"`
}
type WithOptional ¶
type WithOptional struct { StringReq string `protobuf:"bytes,1,opt,name=string_req,json=stringReq,proto3" json:"string_req,omitempty"` StringOpt *string `protobuf:"bytes,2,opt,name=string_opt,json=stringOpt,proto3,oneof" json:"string_opt,omitempty"` Int32Req int32 `protobuf:"varint,3,opt,name=int32_req,json=int32Req,proto3" json:"int32_req,omitempty"` Int32Opt *int32 `protobuf:"varint,4,opt,name=int32_opt,json=int32Opt,proto3,oneof" json:"int32_opt,omitempty"` MessageReq *WithOptional_Nested `protobuf:"bytes,5,opt,name=message_req,json=messageReq,proto3" json:"message_req,omitempty"` // not actually required; messages are always optional MessageOpt *WithOptional_Nested `protobuf:"bytes,6,opt,name=message_opt,json=messageOpt,proto3,oneof" json:"message_opt,omitempty"` // contains filtered or unexported fields }
func (*WithOptional) Descriptor
deprecated
func (*WithOptional) Descriptor() ([]byte, []int)
Deprecated: Use WithOptional.ProtoReflect.Descriptor instead.
func (*WithOptional) GetInt32Opt ¶
func (x *WithOptional) GetInt32Opt() int32
func (*WithOptional) GetInt32Req ¶
func (x *WithOptional) GetInt32Req() int32
func (*WithOptional) GetMessageOpt ¶
func (x *WithOptional) GetMessageOpt() *WithOptional_Nested
func (*WithOptional) GetMessageReq ¶
func (x *WithOptional) GetMessageReq() *WithOptional_Nested
func (*WithOptional) GetStringOpt ¶
func (x *WithOptional) GetStringOpt() string
func (*WithOptional) GetStringReq ¶
func (x *WithOptional) GetStringReq() string
func (*WithOptional) ProtoMessage ¶
func (*WithOptional) ProtoMessage()
func (*WithOptional) ProtoReflect ¶
func (x *WithOptional) ProtoReflect() protoreflect.Message
func (*WithOptional) Reset ¶
func (x *WithOptional) Reset()
func (*WithOptional) String ¶
func (x *WithOptional) String() string
type WithOptional_Nested ¶
type WithOptional_Nested struct {
// contains filtered or unexported fields
}
func (*WithOptional_Nested) Descriptor
deprecated
func (*WithOptional_Nested) Descriptor() ([]byte, []int)
Deprecated: Use WithOptional_Nested.ProtoReflect.Descriptor instead.
func (*WithOptional_Nested) ProtoMessage ¶
func (*WithOptional_Nested) ProtoMessage()
func (*WithOptional_Nested) ProtoReflect ¶
func (x *WithOptional_Nested) ProtoReflect() protoreflect.Message
func (*WithOptional_Nested) Reset ¶
func (x *WithOptional_Nested) Reset()
func (*WithOptional_Nested) String ¶
func (x *WithOptional_Nested) String() string
type WithRepeated ¶
type WithRepeated struct { TStrings []string `protobuf:"bytes,1,rep,name=t_strings,json=tStrings,proto3" json:"t_strings,omitempty"` TMessage []*WithRepeated_Nested `protobuf:"bytes,2,rep,name=t_message,json=tMessage,proto3" json:"t_message,omitempty"` TMapStringBool map[string]bool `` /* 196-byte string literal not displayed */ TMapNumberBool map[int64]bool `` /* 197-byte string literal not displayed */ TMapStringMessage map[string]*WithRepeated_Nested `` /* 204-byte string literal not displayed */ TMapNumberMessage map[int64]*WithRepeated_Nested `` /* 205-byte string literal not displayed */ // contains filtered or unexported fields }
func (*WithRepeated) Descriptor
deprecated
func (*WithRepeated) Descriptor() ([]byte, []int)
Deprecated: Use WithRepeated.ProtoReflect.Descriptor instead.
func (*WithRepeated) GetTMapNumberBool ¶
func (x *WithRepeated) GetTMapNumberBool() map[int64]bool
func (*WithRepeated) GetTMapNumberMessage ¶
func (x *WithRepeated) GetTMapNumberMessage() map[int64]*WithRepeated_Nested
func (*WithRepeated) GetTMapStringBool ¶
func (x *WithRepeated) GetTMapStringBool() map[string]bool
func (*WithRepeated) GetTMapStringMessage ¶
func (x *WithRepeated) GetTMapStringMessage() map[string]*WithRepeated_Nested
func (*WithRepeated) GetTMessage ¶
func (x *WithRepeated) GetTMessage() []*WithRepeated_Nested
func (*WithRepeated) GetTStrings ¶
func (x *WithRepeated) GetTStrings() []string
func (*WithRepeated) ProtoMessage ¶
func (*WithRepeated) ProtoMessage()
func (*WithRepeated) ProtoReflect ¶
func (x *WithRepeated) ProtoReflect() protoreflect.Message
func (*WithRepeated) Reset ¶
func (x *WithRepeated) Reset()
func (*WithRepeated) String ¶
func (x *WithRepeated) String() string
type WithRepeated_Nested ¶
type WithRepeated_Nested struct { TNestedField string `protobuf:"bytes,1,opt,name=t_nested_field,json=tNestedField,proto3" json:"t_nested_field,omitempty"` // contains filtered or unexported fields }
func (*WithRepeated_Nested) Descriptor
deprecated
func (*WithRepeated_Nested) Descriptor() ([]byte, []int)
Deprecated: Use WithRepeated_Nested.ProtoReflect.Descriptor instead.
func (*WithRepeated_Nested) GetTNestedField ¶
func (x *WithRepeated_Nested) GetTNestedField() string
func (*WithRepeated_Nested) ProtoMessage ¶
func (*WithRepeated_Nested) ProtoMessage()
func (*WithRepeated_Nested) ProtoReflect ¶
func (x *WithRepeated_Nested) ProtoReflect() protoreflect.Message
func (*WithRepeated_Nested) Reset ¶
func (x *WithRepeated_Nested) Reset()
func (*WithRepeated_Nested) String ¶
func (x *WithRepeated_Nested) String() string
Click to show internal directories.
Click to hide internal directories.