Documentation ¶
Index ¶
- Variables
- type AddressBook
- func (*AddressBook) Descriptor() ([]byte, []int)
- func (m *AddressBook) GetPeople() []*Person
- func (m *AddressBook) Marshal() (dAtA []byte, err error)
- func (m *AddressBook) MarshalTo(dAtA []byte) (int, error)
- func (m *AddressBook) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AddressBook) ProtoMessage()
- func (m *AddressBook) Reset()
- func (m *AddressBook) Size() (n int)
- func (m *AddressBook) String() string
- func (m *AddressBook) Unmarshal(dAtA []byte) error
- func (m *AddressBook) XXX_DiscardUnknown()
- func (m *AddressBook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddressBook) XXX_Merge(src proto.Message)
- func (m *AddressBook) XXX_Size() int
- func (m *AddressBook) XXX_Unmarshal(b []byte) error
- type Person
- func (*Person) Descriptor() ([]byte, []int)
- func (m *Person) GetEmail() string
- func (m *Person) GetId() int32
- func (m *Person) GetLastUpdated() *types.Timestamp
- func (m *Person) GetName() string
- func (m *Person) GetPhones() []*Person_PhoneNumber
- func (m *Person) Marshal() (dAtA []byte, err error)
- func (m *Person) MarshalTo(dAtA []byte) (int, error)
- func (m *Person) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Person) ProtoMessage()
- func (m *Person) Reset()
- func (m *Person) Size() (n int)
- func (m *Person) String() string
- func (m *Person) Unmarshal(dAtA []byte) error
- func (m *Person) XXX_DiscardUnknown()
- func (m *Person) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Person) XXX_Merge(src proto.Message)
- func (m *Person) XXX_Size() int
- func (m *Person) XXX_Unmarshal(b []byte) error
- type Person_PhoneNumber
- func (*Person_PhoneNumber) Descriptor() ([]byte, []int)
- func (m *Person_PhoneNumber) GetNumber() string
- func (m *Person_PhoneNumber) GetType() Person_PhoneType
- func (m *Person_PhoneNumber) Marshal() (dAtA []byte, err error)
- func (m *Person_PhoneNumber) MarshalTo(dAtA []byte) (int, error)
- func (m *Person_PhoneNumber) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Person_PhoneNumber) ProtoMessage()
- func (m *Person_PhoneNumber) Reset()
- func (m *Person_PhoneNumber) Size() (n int)
- func (m *Person_PhoneNumber) String() string
- func (m *Person_PhoneNumber) Unmarshal(dAtA []byte) error
- func (m *Person_PhoneNumber) XXX_DiscardUnknown()
- func (m *Person_PhoneNumber) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Person_PhoneNumber) XXX_Merge(src proto.Message)
- func (m *Person_PhoneNumber) XXX_Size() int
- func (m *Person_PhoneNumber) XXX_Unmarshal(b []byte) error
- type Person_PhoneType
- type Puzzle
- func (*Puzzle) Descriptor() ([]byte, []int)
- func (m *Puzzle) GetAnswer() string
- func (m *Puzzle) GetChallenge() string
- func (m *Puzzle) Marshal() (dAtA []byte, err error)
- func (m *Puzzle) MarshalTo(dAtA []byte) (int, error)
- func (m *Puzzle) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Puzzle) ProtoMessage()
- func (m *Puzzle) Reset()
- func (m *Puzzle) Size() (n int)
- func (m *Puzzle) String() string
- func (m *Puzzle) Unmarshal(dAtA []byte) error
- func (m *Puzzle) XXX_DiscardUnknown()
- func (m *Puzzle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Puzzle) XXX_Merge(src proto.Message)
- func (m *Puzzle) XXX_Size() int
- func (m *Puzzle) XXX_Unmarshal(b []byte) error
- type TestMessage
- func (*TestMessage) Descriptor() ([]byte, []int)
- func (m *TestMessage) GetBar() string
- func (m *TestMessage) GetFoo() string
- func (m *TestMessage) Marshal() (dAtA []byte, err error)
- func (m *TestMessage) MarshalTo(dAtA []byte) (int, error)
- func (m *TestMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TestMessage) ProtoMessage()
- func (m *TestMessage) Reset()
- func (m *TestMessage) Size() (n int)
- func (m *TestMessage) String() string
- func (m *TestMessage) Unmarshal(dAtA []byte) error
- func (m *TestMessage) XXX_DiscardUnknown()
- func (m *TestMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TestMessage) XXX_Merge(src proto.Message)
- func (m *TestMessage) XXX_Size() int
- func (m *TestMessage) XXX_Unmarshal(b []byte) error
- type TestNestedMessage
- func (*TestNestedMessage) Descriptor() ([]byte, []int)
- func (m *TestNestedMessage) GetFuzz() string
- func (m *TestNestedMessage) GetMsg() *TestMessage
- func (m *TestNestedMessage) Marshal() (dAtA []byte, err error)
- func (m *TestNestedMessage) MarshalTo(dAtA []byte) (int, error)
- func (m *TestNestedMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TestNestedMessage) ProtoMessage()
- func (m *TestNestedMessage) Reset()
- func (m *TestNestedMessage) Size() (n int)
- func (m *TestNestedMessage) String() string
- func (m *TestNestedMessage) Unmarshal(dAtA []byte) error
- func (m *TestNestedMessage) XXX_DiscardUnknown()
- func (m *TestNestedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TestNestedMessage) XXX_Merge(src proto.Message)
- func (m *TestNestedMessage) XXX_Size() int
- func (m *TestNestedMessage) XXX_Unmarshal(b []byte) error
- type TestSimpleMessage
- func (*TestSimpleMessage) Descriptor() ([]byte, []int)
- func (m *TestSimpleMessage) GetBar() uint64
- func (m *TestSimpleMessage) GetFoo() []byte
- func (m *TestSimpleMessage) Marshal() (dAtA []byte, err error)
- func (m *TestSimpleMessage) MarshalTo(dAtA []byte) (int, error)
- func (m *TestSimpleMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TestSimpleMessage) ProtoMessage()
- func (m *TestSimpleMessage) Reset()
- func (m *TestSimpleMessage) Size() (n int)
- func (m *TestSimpleMessage) String() string
- func (m *TestSimpleMessage) Unmarshal(dAtA []byte) error
- func (m *TestSimpleMessage) XXX_DiscardUnknown()
- func (m *TestSimpleMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TestSimpleMessage) XXX_Merge(src proto.Message)
- func (m *TestSimpleMessage) XXX_Size() int
- func (m *TestSimpleMessage) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthTest = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTest = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTest = fmt.Errorf("proto: unexpected end of group") )
View Source
var Person_PhoneType_name = map[int32]string{
0: "MOBILE",
1: "HOME",
2: "WORK",
}
View Source
var Person_PhoneType_value = map[string]int32{
"MOBILE": 0,
"HOME": 1,
"WORK": 2,
}
Functions ¶
This section is empty.
Types ¶
type AddressBook ¶
type AddressBook struct { People []*Person `protobuf:"bytes,1,rep,name=people,proto3" json:"people,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddressBook) Descriptor ¶
func (*AddressBook) Descriptor() ([]byte, []int)
func (*AddressBook) GetPeople ¶
func (m *AddressBook) GetPeople() []*Person
func (*AddressBook) Marshal ¶
func (m *AddressBook) Marshal() (dAtA []byte, err error)
func (*AddressBook) MarshalToSizedBuffer ¶ added in v0.3.2
func (m *AddressBook) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AddressBook) ProtoMessage ¶
func (*AddressBook) ProtoMessage()
func (*AddressBook) Reset ¶
func (m *AddressBook) Reset()
func (*AddressBook) Size ¶
func (m *AddressBook) Size() (n int)
func (*AddressBook) String ¶
func (m *AddressBook) String() string
func (*AddressBook) Unmarshal ¶
func (m *AddressBook) Unmarshal(dAtA []byte) error
func (*AddressBook) XXX_DiscardUnknown ¶
func (m *AddressBook) XXX_DiscardUnknown()
func (*AddressBook) XXX_Marshal ¶
func (m *AddressBook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddressBook) XXX_Merge ¶
func (m *AddressBook) XXX_Merge(src proto.Message)
func (*AddressBook) XXX_Size ¶
func (m *AddressBook) XXX_Size() int
func (*AddressBook) XXX_Unmarshal ¶
func (m *AddressBook) XXX_Unmarshal(b []byte) error
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 *types.Timestamp `protobuf:"bytes,5,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Person) Descriptor ¶
func (*Person) GetLastUpdated ¶
func (*Person) GetPhones ¶
func (m *Person) GetPhones() []*Person_PhoneNumber
func (*Person) MarshalToSizedBuffer ¶ added in v0.3.2
func (*Person) ProtoMessage ¶
func (*Person) ProtoMessage()
func (*Person) XXX_DiscardUnknown ¶
func (m *Person) XXX_DiscardUnknown()
func (*Person) XXX_Marshal ¶
func (*Person) XXX_Unmarshal ¶
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Person_PhoneNumber) Descriptor ¶
func (*Person_PhoneNumber) Descriptor() ([]byte, []int)
func (*Person_PhoneNumber) GetNumber ¶
func (m *Person_PhoneNumber) GetNumber() string
func (*Person_PhoneNumber) GetType ¶
func (m *Person_PhoneNumber) GetType() Person_PhoneType
func (*Person_PhoneNumber) Marshal ¶
func (m *Person_PhoneNumber) Marshal() (dAtA []byte, err error)
func (*Person_PhoneNumber) MarshalTo ¶
func (m *Person_PhoneNumber) MarshalTo(dAtA []byte) (int, error)
func (*Person_PhoneNumber) MarshalToSizedBuffer ¶ added in v0.3.2
func (m *Person_PhoneNumber) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Person_PhoneNumber) ProtoMessage ¶
func (*Person_PhoneNumber) ProtoMessage()
func (*Person_PhoneNumber) Reset ¶
func (m *Person_PhoneNumber) Reset()
func (*Person_PhoneNumber) Size ¶
func (m *Person_PhoneNumber) Size() (n int)
func (*Person_PhoneNumber) String ¶
func (m *Person_PhoneNumber) String() string
func (*Person_PhoneNumber) Unmarshal ¶
func (m *Person_PhoneNumber) Unmarshal(dAtA []byte) error
func (*Person_PhoneNumber) XXX_DiscardUnknown ¶
func (m *Person_PhoneNumber) XXX_DiscardUnknown()
func (*Person_PhoneNumber) XXX_Marshal ¶
func (m *Person_PhoneNumber) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Person_PhoneNumber) XXX_Merge ¶
func (m *Person_PhoneNumber) XXX_Merge(src proto.Message)
func (*Person_PhoneNumber) XXX_Size ¶
func (m *Person_PhoneNumber) XXX_Size() int
func (*Person_PhoneNumber) XXX_Unmarshal ¶
func (m *Person_PhoneNumber) XXX_Unmarshal(b []byte) error
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) EnumDescriptor ¶
func (Person_PhoneType) EnumDescriptor() ([]byte, []int)
func (Person_PhoneType) String ¶
func (x Person_PhoneType) String() string
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Puzzle) Descriptor ¶
func (*Puzzle) GetChallenge ¶
func (*Puzzle) MarshalToSizedBuffer ¶ added in v0.3.2
func (*Puzzle) ProtoMessage ¶
func (*Puzzle) ProtoMessage()
func (*Puzzle) XXX_DiscardUnknown ¶
func (m *Puzzle) XXX_DiscardUnknown()
func (*Puzzle) XXX_Marshal ¶
func (*Puzzle) XXX_Unmarshal ¶
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" fizz:"buzz" spec-name:"baz"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TestMessage) Descriptor ¶
func (*TestMessage) Descriptor() ([]byte, []int)
func (*TestMessage) GetBar ¶
func (m *TestMessage) GetBar() string
func (*TestMessage) GetFoo ¶
func (m *TestMessage) GetFoo() string
func (*TestMessage) Marshal ¶
func (m *TestMessage) Marshal() (dAtA []byte, err error)
func (*TestMessage) MarshalToSizedBuffer ¶ added in v0.3.2
func (m *TestMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TestMessage) ProtoMessage ¶
func (*TestMessage) ProtoMessage()
func (*TestMessage) Reset ¶
func (m *TestMessage) Reset()
func (*TestMessage) Size ¶
func (m *TestMessage) Size() (n int)
func (*TestMessage) String ¶
func (m *TestMessage) String() string
func (*TestMessage) Unmarshal ¶
func (m *TestMessage) Unmarshal(dAtA []byte) error
func (*TestMessage) XXX_DiscardUnknown ¶
func (m *TestMessage) XXX_DiscardUnknown()
func (*TestMessage) XXX_Marshal ¶
func (m *TestMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TestMessage) XXX_Merge ¶
func (m *TestMessage) XXX_Merge(src proto.Message)
func (*TestMessage) XXX_Size ¶
func (m *TestMessage) XXX_Size() int
func (*TestMessage) XXX_Unmarshal ¶
func (m *TestMessage) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TestNestedMessage) Descriptor ¶
func (*TestNestedMessage) Descriptor() ([]byte, []int)
func (*TestNestedMessage) GetFuzz ¶
func (m *TestNestedMessage) GetFuzz() string
func (*TestNestedMessage) GetMsg ¶
func (m *TestNestedMessage) GetMsg() *TestMessage
func (*TestNestedMessage) Marshal ¶
func (m *TestNestedMessage) Marshal() (dAtA []byte, err error)
func (*TestNestedMessage) MarshalTo ¶
func (m *TestNestedMessage) MarshalTo(dAtA []byte) (int, error)
func (*TestNestedMessage) MarshalToSizedBuffer ¶ added in v0.3.2
func (m *TestNestedMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TestNestedMessage) ProtoMessage ¶
func (*TestNestedMessage) ProtoMessage()
func (*TestNestedMessage) Reset ¶
func (m *TestNestedMessage) Reset()
func (*TestNestedMessage) Size ¶
func (m *TestNestedMessage) Size() (n int)
func (*TestNestedMessage) String ¶
func (m *TestNestedMessage) String() string
func (*TestNestedMessage) Unmarshal ¶
func (m *TestNestedMessage) Unmarshal(dAtA []byte) error
func (*TestNestedMessage) XXX_DiscardUnknown ¶
func (m *TestNestedMessage) XXX_DiscardUnknown()
func (*TestNestedMessage) XXX_Marshal ¶
func (m *TestNestedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TestNestedMessage) XXX_Merge ¶
func (m *TestNestedMessage) XXX_Merge(src proto.Message)
func (*TestNestedMessage) XXX_Size ¶
func (m *TestNestedMessage) XXX_Size() int
func (*TestNestedMessage) XXX_Unmarshal ¶
func (m *TestNestedMessage) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TestSimpleMessage) Descriptor ¶
func (*TestSimpleMessage) Descriptor() ([]byte, []int)
func (*TestSimpleMessage) GetBar ¶
func (m *TestSimpleMessage) GetBar() uint64
func (*TestSimpleMessage) GetFoo ¶
func (m *TestSimpleMessage) GetFoo() []byte
func (*TestSimpleMessage) Marshal ¶
func (m *TestSimpleMessage) Marshal() (dAtA []byte, err error)
func (*TestSimpleMessage) MarshalTo ¶
func (m *TestSimpleMessage) MarshalTo(dAtA []byte) (int, error)
func (*TestSimpleMessage) MarshalToSizedBuffer ¶ added in v0.3.2
func (m *TestSimpleMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TestSimpleMessage) ProtoMessage ¶
func (*TestSimpleMessage) ProtoMessage()
func (*TestSimpleMessage) Reset ¶
func (m *TestSimpleMessage) Reset()
func (*TestSimpleMessage) Size ¶
func (m *TestSimpleMessage) Size() (n int)
func (*TestSimpleMessage) String ¶
func (m *TestSimpleMessage) String() string
func (*TestSimpleMessage) Unmarshal ¶
func (m *TestSimpleMessage) Unmarshal(dAtA []byte) error
func (*TestSimpleMessage) XXX_DiscardUnknown ¶
func (m *TestSimpleMessage) XXX_DiscardUnknown()
func (*TestSimpleMessage) XXX_Marshal ¶
func (m *TestSimpleMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TestSimpleMessage) XXX_Merge ¶
func (m *TestSimpleMessage) XXX_Merge(src proto.Message)
func (*TestSimpleMessage) XXX_Size ¶
func (m *TestSimpleMessage) XXX_Size() int
func (*TestSimpleMessage) XXX_Unmarshal ¶
func (m *TestSimpleMessage) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.