Documentation ¶
Index ¶
- Variables
- type AddressBook
- type Person
- func (*Person) Descriptor() ([]byte, []int)deprecated
- func (x *Person) GetEmail() string
- func (x *Person) GetId() int32
- func (x *Person) GetLastUpdated() *timestamp.Timestamp
- func (x *Person) GetName() string
- func (x *Person) GetPhones() []*Person_PhoneNumber
- func (*Person) ProtoMessage()
- func (x *Person) ProtoReflect() protoreflect.Message
- func (x *Person) Reset()
- func (x *Person) String() string
- type Person_PhoneNumber
- func (*Person_PhoneNumber) Descriptor() ([]byte, []int)deprecated
- func (x *Person_PhoneNumber) GetNumber() string
- func (x *Person_PhoneNumber) GetType() Person_PhoneType
- func (*Person_PhoneNumber) ProtoMessage()
- func (x *Person_PhoneNumber) ProtoReflect() protoreflect.Message
- func (x *Person_PhoneNumber) Reset()
- func (x *Person_PhoneNumber) String() string
- type Person_PhoneType
- func (Person_PhoneType) Descriptor() protoreflect.EnumDescriptor
- func (x Person_PhoneType) Enum() *Person_PhoneType
- func (Person_PhoneType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Person_PhoneType) Number() protoreflect.EnumNumber
- func (x Person_PhoneType) String() string
- func (Person_PhoneType) Type() protoreflect.EnumType
- type Puzzle
- type TestMessage
- type TestNestedMessage
- func (*TestNestedMessage) Descriptor() ([]byte, []int)deprecated
- func (x *TestNestedMessage) GetFuzz() string
- func (x *TestNestedMessage) GetMsg() *TestMessage
- func (*TestNestedMessage) ProtoMessage()
- func (x *TestNestedMessage) ProtoReflect() protoreflect.Message
- func (x *TestNestedMessage) Reset()
- func (x *TestNestedMessage) String() string
- type TestSimpleMessage
- func (*TestSimpleMessage) Descriptor() ([]byte, []int)deprecated
- func (x *TestSimpleMessage) GetBar() uint64
- func (x *TestSimpleMessage) GetFoo() []byte
- func (*TestSimpleMessage) ProtoMessage()
- func (x *TestSimpleMessage) ProtoReflect() protoreflect.Message
- func (x *TestSimpleMessage) Reset()
- func (x *TestSimpleMessage) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Person_PhoneType_name = map[int32]string{ 0: "MOBILE", 1: "HOME", 2: "WORK", } Person_PhoneType_value = map[string]int32{ "MOBILE": 0, "HOME": 1, "WORK": 2, } )
Enum value maps for Person_PhoneType.
View Source
var ( // optional string ssz_size = 60001; E_SszSize = &file_proto_testing_test_proto_extTypes[0] // optional string spec_name = 60003; E_SpecName = &file_proto_testing_test_proto_extTypes[1] )
Extension fields to descriptorpb.FieldOptions.
View Source
var File_proto_testing_test_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AddressBook ¶
type AddressBook struct { People []*Person `protobuf:"bytes,1,rep,name=people,proto3" json:"people,omitempty"` // contains filtered or unexported fields }
func (*AddressBook) Descriptor
deprecated
func (*AddressBook) Descriptor() ([]byte, []int)
Deprecated: Use AddressBook.ProtoReflect.Descriptor instead.
func (*AddressBook) GetPeople ¶
func (x *AddressBook) GetPeople() []*Person
func (*AddressBook) ProtoMessage ¶
func (*AddressBook) ProtoMessage()
func (*AddressBook) ProtoReflect ¶ added in v1.3.10
func (x *AddressBook) ProtoReflect() protoreflect.Message
func (*AddressBook) Reset ¶
func (x *AddressBook) Reset()
func (*AddressBook) String ¶
func (x *AddressBook) String() string
type Person ¶
type Person struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Phones []*Person_PhoneNumber `protobuf:"bytes,4,rep,name=phones,proto3" json:"phones,omitempty"` LastUpdated *timestamp.Timestamp `protobuf:"bytes,5,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` // contains filtered or unexported fields }
func (*Person) Descriptor
deprecated
func (*Person) GetLastUpdated ¶
func (*Person) GetPhones ¶
func (x *Person) GetPhones() []*Person_PhoneNumber
func (*Person) ProtoMessage ¶
func (*Person) ProtoMessage()
func (*Person) ProtoReflect ¶ added in v1.3.10
func (x *Person) ProtoReflect() protoreflect.Message
type Person_PhoneNumber ¶
type Person_PhoneNumber struct { Number string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"` Type Person_PhoneType `protobuf:"varint,2,opt,name=type,proto3,enum=testing.Person_PhoneType" json:"type,omitempty"` // contains filtered or unexported fields }
func (*Person_PhoneNumber) Descriptor
deprecated
func (*Person_PhoneNumber) Descriptor() ([]byte, []int)
Deprecated: Use Person_PhoneNumber.ProtoReflect.Descriptor instead.
func (*Person_PhoneNumber) GetNumber ¶
func (x *Person_PhoneNumber) GetNumber() string
func (*Person_PhoneNumber) GetType ¶
func (x *Person_PhoneNumber) GetType() Person_PhoneType
func (*Person_PhoneNumber) ProtoMessage ¶
func (*Person_PhoneNumber) ProtoMessage()
func (*Person_PhoneNumber) ProtoReflect ¶ added in v1.3.10
func (x *Person_PhoneNumber) ProtoReflect() protoreflect.Message
func (*Person_PhoneNumber) Reset ¶
func (x *Person_PhoneNumber) Reset()
func (*Person_PhoneNumber) String ¶
func (x *Person_PhoneNumber) String() string
type Person_PhoneType ¶
type Person_PhoneType int32
const ( Person_MOBILE Person_PhoneType = 0 Person_HOME Person_PhoneType = 1 Person_WORK Person_PhoneType = 2 )
func (Person_PhoneType) Descriptor ¶ added in v1.3.10
func (Person_PhoneType) Descriptor() protoreflect.EnumDescriptor
func (Person_PhoneType) Enum ¶ added in v1.3.10
func (x Person_PhoneType) Enum() *Person_PhoneType
func (Person_PhoneType) EnumDescriptor
deprecated
func (Person_PhoneType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Person_PhoneType.Descriptor instead.
func (Person_PhoneType) Number ¶ added in v1.3.10
func (x Person_PhoneType) Number() protoreflect.EnumNumber
func (Person_PhoneType) String ¶
func (x Person_PhoneType) String() string
func (Person_PhoneType) Type ¶ added in v1.3.10
func (Person_PhoneType) Type() protoreflect.EnumType
type Puzzle ¶
type Puzzle struct { Challenge string `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"` Answer string `protobuf:"bytes,2,opt,name=answer,proto3" json:"answer,omitempty"` // contains filtered or unexported fields }
func (*Puzzle) Descriptor
deprecated
func (*Puzzle) GetChallenge ¶
func (*Puzzle) ProtoMessage ¶
func (*Puzzle) ProtoMessage()
func (*Puzzle) ProtoReflect ¶ added in v1.3.10
func (x *Puzzle) ProtoReflect() protoreflect.Message
type TestMessage ¶
type TestMessage struct { Foo string `protobuf:"bytes,1,opt,name=foo,proto3" json:"foo,omitempty"` Bar string `protobuf:"bytes,2,opt,name=bar,proto3" json:"bar,omitempty" spec-name:"foo" ssz-size:"32"` // contains filtered or unexported fields }
func (*TestMessage) Descriptor
deprecated
func (*TestMessage) Descriptor() ([]byte, []int)
Deprecated: Use TestMessage.ProtoReflect.Descriptor instead.
func (*TestMessage) GetBar ¶
func (x *TestMessage) GetBar() string
func (*TestMessage) GetFoo ¶
func (x *TestMessage) GetFoo() string
func (*TestMessage) ProtoMessage ¶
func (*TestMessage) ProtoMessage()
func (*TestMessage) ProtoReflect ¶ added in v1.3.10
func (x *TestMessage) ProtoReflect() protoreflect.Message
func (*TestMessage) Reset ¶
func (x *TestMessage) Reset()
func (*TestMessage) String ¶
func (x *TestMessage) String() string
type TestNestedMessage ¶
type TestNestedMessage struct { Fuzz string `protobuf:"bytes,1,opt,name=fuzz,proto3" json:"fuzz,omitempty"` Msg *TestMessage `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*TestNestedMessage) Descriptor
deprecated
func (*TestNestedMessage) Descriptor() ([]byte, []int)
Deprecated: Use TestNestedMessage.ProtoReflect.Descriptor instead.
func (*TestNestedMessage) GetFuzz ¶
func (x *TestNestedMessage) GetFuzz() string
func (*TestNestedMessage) GetMsg ¶
func (x *TestNestedMessage) GetMsg() *TestMessage
func (*TestNestedMessage) ProtoMessage ¶
func (*TestNestedMessage) ProtoMessage()
func (*TestNestedMessage) ProtoReflect ¶ added in v1.3.10
func (x *TestNestedMessage) ProtoReflect() protoreflect.Message
func (*TestNestedMessage) Reset ¶
func (x *TestNestedMessage) Reset()
func (*TestNestedMessage) String ¶
func (x *TestNestedMessage) String() string
type TestSimpleMessage ¶
type TestSimpleMessage struct { Foo []byte `protobuf:"bytes,1,opt,name=foo,proto3" json:"foo,omitempty"` Bar uint64 `protobuf:"varint,2,opt,name=bar,proto3" json:"bar,omitempty"` // contains filtered or unexported fields }
func (*TestSimpleMessage) Descriptor
deprecated
func (*TestSimpleMessage) Descriptor() ([]byte, []int)
Deprecated: Use TestSimpleMessage.ProtoReflect.Descriptor instead.
func (*TestSimpleMessage) GetBar ¶
func (x *TestSimpleMessage) GetBar() uint64
func (*TestSimpleMessage) GetFoo ¶
func (x *TestSimpleMessage) GetFoo() []byte
func (*TestSimpleMessage) ProtoMessage ¶
func (*TestSimpleMessage) ProtoMessage()
func (*TestSimpleMessage) ProtoReflect ¶ added in v1.3.10
func (x *TestSimpleMessage) ProtoReflect() protoreflect.Message
func (*TestSimpleMessage) Reset ¶
func (x *TestSimpleMessage) Reset()
func (*TestSimpleMessage) String ¶
func (x *TestSimpleMessage) String() string
Click to show internal directories.
Click to hide internal directories.