Documentation ¶
Index ¶
- Variables
- func RegisterEchoServiceServer(s *grpc.Server, srv EchoServiceServer)
- type EchoServiceClient
- type EchoServiceServer
- type ForeignEnum
- type ForeignMessage
- func (*ForeignMessage) Descriptor() ([]byte, []int)
- func (m *ForeignMessage) GetC() int32
- func (*ForeignMessage) ProtoMessage()
- func (m *ForeignMessage) Reset()
- func (m *ForeignMessage) String() string
- func (m *ForeignMessage) XXX_DiscardUnknown()
- func (m *ForeignMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ForeignMessage) XXX_Merge(src proto.Message)
- func (m *ForeignMessage) XXX_Size() int
- func (m *ForeignMessage) XXX_Unmarshal(b []byte) error
- type MapEnum
- type NestedTestAllTypes
- func (*NestedTestAllTypes) Descriptor() ([]byte, []int)
- func (m *NestedTestAllTypes) GetChild() *NestedTestAllTypes
- func (m *NestedTestAllTypes) GetPayload() *TestAllTypes
- func (m *NestedTestAllTypes) GetRepeatedChild() []*NestedTestAllTypes
- func (*NestedTestAllTypes) ProtoMessage()
- func (m *NestedTestAllTypes) Reset()
- func (m *NestedTestAllTypes) String() string
- func (m *NestedTestAllTypes) XXX_DiscardUnknown()
- func (m *NestedTestAllTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NestedTestAllTypes) XXX_Merge(src proto.Message)
- func (m *NestedTestAllTypes) XXX_Size() int
- func (m *NestedTestAllTypes) XXX_Unmarshal(b []byte) error
- type TestAllTypes
- func (*TestAllTypes) Descriptor() ([]byte, []int)
- func (m *TestAllTypes) GetOneofBytes() []byte
- func (m *TestAllTypes) GetOneofField() isTestAllTypes_OneofField
- func (m *TestAllTypes) GetOneofImportedMessage() *multi.Multi1
- func (m *TestAllTypes) GetOneofNestedMessage() *TestAllTypes_NestedMessage
- func (m *TestAllTypes) GetOneofString() string
- func (m *TestAllTypes) GetOneofUint32() uint32
- func (m *TestAllTypes) GetRepeatedBool() []bool
- func (m *TestAllTypes) GetRepeatedBytes() [][]byte
- func (m *TestAllTypes) GetRepeatedDouble() []float64
- func (m *TestAllTypes) GetRepeatedFixed32() []uint32
- func (m *TestAllTypes) GetRepeatedFixed64() []uint64
- func (m *TestAllTypes) GetRepeatedFloat() []float32
- func (m *TestAllTypes) GetRepeatedForeignEnum() []ForeignEnum
- func (m *TestAllTypes) GetRepeatedForeignMessage() []*ForeignMessage
- func (m *TestAllTypes) GetRepeatedImportedMessage() []*multi.Multi1
- func (m *TestAllTypes) GetRepeatedInt32() []int32
- func (m *TestAllTypes) GetRepeatedInt64() []int64
- func (m *TestAllTypes) GetRepeatedNestedEnum() []TestAllTypes_NestedEnum
- func (m *TestAllTypes) GetRepeatedNestedMessage() []*TestAllTypes_NestedMessage
- func (m *TestAllTypes) GetRepeatedSfixed32() []int32
- func (m *TestAllTypes) GetRepeatedSfixed64() []int64
- func (m *TestAllTypes) GetRepeatedSint32() []int32
- func (m *TestAllTypes) GetRepeatedSint64() []int64
- func (m *TestAllTypes) GetRepeatedString() []string
- func (m *TestAllTypes) GetRepeatedUint32() []uint32
- func (m *TestAllTypes) GetRepeatedUint64() []uint64
- func (m *TestAllTypes) GetSingleBool() bool
- func (m *TestAllTypes) GetSingleBytes() []byte
- func (m *TestAllTypes) GetSingleDouble() float64
- func (m *TestAllTypes) GetSingleFixed32() uint32
- func (m *TestAllTypes) GetSingleFixed64() uint64
- func (m *TestAllTypes) GetSingleFloat() float32
- func (m *TestAllTypes) GetSingleForeignEnum() ForeignEnum
- func (m *TestAllTypes) GetSingleForeignMessage() *ForeignMessage
- func (m *TestAllTypes) GetSingleImportedMessage() *multi.Multi1
- func (m *TestAllTypes) GetSingleInt32() int32
- func (m *TestAllTypes) GetSingleInt64() int64
- func (m *TestAllTypes) GetSingleNestedEnum() TestAllTypes_NestedEnum
- func (m *TestAllTypes) GetSingleNestedMessage() *TestAllTypes_NestedMessage
- func (m *TestAllTypes) GetSingleSfixed32() int32
- func (m *TestAllTypes) GetSingleSfixed64() int64
- func (m *TestAllTypes) GetSingleSint32() int32
- func (m *TestAllTypes) GetSingleSint64() int64
- func (m *TestAllTypes) GetSingleString() string
- func (m *TestAllTypes) GetSingleUint32() uint32
- func (m *TestAllTypes) GetSingleUint64() uint64
- func (*TestAllTypes) ProtoMessage()
- func (m *TestAllTypes) Reset()
- func (m *TestAllTypes) String() string
- func (m *TestAllTypes) XXX_DiscardUnknown()
- func (m *TestAllTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TestAllTypes) XXX_Merge(src proto.Message)
- func (*TestAllTypes) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *TestAllTypes) XXX_Size() int
- func (m *TestAllTypes) XXX_Unmarshal(b []byte) error
- type TestAllTypes_NestedEnum
- type TestAllTypes_NestedMessage
- func (*TestAllTypes_NestedMessage) Descriptor() ([]byte, []int)
- func (m *TestAllTypes_NestedMessage) GetB() int32
- func (*TestAllTypes_NestedMessage) ProtoMessage()
- func (m *TestAllTypes_NestedMessage) Reset()
- func (m *TestAllTypes_NestedMessage) String() string
- func (m *TestAllTypes_NestedMessage) XXX_DiscardUnknown()
- func (m *TestAllTypes_NestedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TestAllTypes_NestedMessage) XXX_Merge(src proto.Message)
- func (m *TestAllTypes_NestedMessage) XXX_Size() int
- func (m *TestAllTypes_NestedMessage) XXX_Unmarshal(b []byte) error
- type TestAllTypes_OneofBytes
- type TestAllTypes_OneofImportedMessage
- type TestAllTypes_OneofNestedMessage
- type TestAllTypes_OneofString
- type TestAllTypes_OneofUint32
- type TestMap
- func (*TestMap) Descriptor() ([]byte, []int)
- func (m *TestMap) GetMapBoolBool() map[bool]bool
- func (m *TestMap) GetMapFixed32Fixed32() map[uint32]uint32
- func (m *TestMap) GetMapFixed64Fixed64() map[uint64]uint64
- func (m *TestMap) GetMapInt32Bytes() map[int32][]byte
- func (m *TestMap) GetMapInt32Double() map[int32]float64
- func (m *TestMap) GetMapInt32Enum() map[int32]MapEnum
- func (m *TestMap) GetMapInt32Float() map[int32]float32
- func (m *TestMap) GetMapInt32ForeignMessage() map[int32]*ForeignMessage
- func (m *TestMap) GetMapInt32ImportedMessage() map[int32]*multi.Multi1
- func (m *TestMap) GetMapInt32Int32() map[int32]int32
- func (m *TestMap) GetMapInt64Int64() map[int64]int64
- func (m *TestMap) GetMapSfixed32Sfixed32() map[int32]int32
- func (m *TestMap) GetMapSfixed64Sfixed64() map[int64]int64
- func (m *TestMap) GetMapSint32Sint32() map[int32]int32
- func (m *TestMap) GetMapSint64Sint64() map[int64]int64
- func (m *TestMap) GetMapStringString() map[string]string
- func (m *TestMap) GetMapUint32Uint32() map[uint32]uint32
- func (m *TestMap) GetMapUint64Uint64() map[uint64]uint64
- func (*TestMap) ProtoMessage()
- func (m *TestMap) Reset()
- func (m *TestMap) String() string
- func (m *TestMap) XXX_DiscardUnknown()
- func (m *TestMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TestMap) XXX_Merge(src proto.Message)
- func (m *TestMap) XXX_Size() int
- func (m *TestMap) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ForeignEnum_name = map[int32]string{
0: "FOREIGN_UNSPECIFIED",
4: "FOREIGN_FOO",
5: "FOREIGN_BAR",
6: "FOREIGN_BAZ",
}
View Source
var ForeignEnum_value = map[string]int32{
"FOREIGN_UNSPECIFIED": 0,
"FOREIGN_FOO": 4,
"FOREIGN_BAR": 5,
"FOREIGN_BAZ": 6,
}
View Source
var MapEnum_name = map[int32]string{
0: "MAP_ENUM_FOO",
1: "MAP_ENUM_BAR",
2: "MAP_ENUM_BAZ",
}
View Source
var MapEnum_value = map[string]int32{
"MAP_ENUM_FOO": 0,
"MAP_ENUM_BAR": 1,
"MAP_ENUM_BAZ": 2,
}
View Source
var TestAllTypes_NestedEnum_name = map[int32]string{
0: "NESTED_ENUM_UNSPECIFIED",
1: "FOO",
2: "BAR",
3: "BAZ",
-1: "NEG",
}
View Source
var TestAllTypes_NestedEnum_value = map[string]int32{
"NESTED_ENUM_UNSPECIFIED": 0,
"FOO": 1,
"BAR": 2,
"BAZ": 3,
"NEG": -1,
}
Functions ¶
func RegisterEchoServiceServer ¶
func RegisterEchoServiceServer(s *grpc.Server, srv EchoServiceServer)
Types ¶
type EchoServiceClient ¶
type EchoServiceClient interface { EchoAllTypes(ctx context.Context, in *TestAllTypes, opts ...grpc.CallOption) (*TestAllTypes, error) EchoMaps(ctx context.Context, in *TestMap, opts ...grpc.CallOption) (*TestMap, error) }
func NewEchoServiceClient ¶
func NewEchoServiceClient(cc *grpc.ClientConn) EchoServiceClient
type EchoServiceServer ¶
type EchoServiceServer interface { EchoAllTypes(context.Context, *TestAllTypes) (*TestAllTypes, error) EchoMaps(context.Context, *TestMap) (*TestMap, error) }
type ForeignEnum ¶
type ForeignEnum int32
const ( ForeignEnum_FOREIGN_UNSPECIFIED ForeignEnum = 0 ForeignEnum_FOREIGN_FOO ForeignEnum = 4 ForeignEnum_FOREIGN_BAR ForeignEnum = 5 ForeignEnum_FOREIGN_BAZ ForeignEnum = 6 )
func (ForeignEnum) EnumDescriptor ¶
func (ForeignEnum) EnumDescriptor() ([]byte, []int)
func (ForeignEnum) String ¶
func (x ForeignEnum) String() string
type ForeignMessage ¶
type ForeignMessage struct { C int32 `protobuf:"varint,1,opt,name=c" json:"c,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Define these after TestAllTypes to make sure the compiler can handle that.
func (*ForeignMessage) Descriptor ¶
func (*ForeignMessage) Descriptor() ([]byte, []int)
func (*ForeignMessage) GetC ¶
func (m *ForeignMessage) GetC() int32
func (*ForeignMessage) ProtoMessage ¶
func (*ForeignMessage) ProtoMessage()
func (*ForeignMessage) Reset ¶
func (m *ForeignMessage) Reset()
func (*ForeignMessage) String ¶
func (m *ForeignMessage) String() string
func (*ForeignMessage) XXX_DiscardUnknown ¶ added in v0.7.1
func (m *ForeignMessage) XXX_DiscardUnknown()
func (*ForeignMessage) XXX_Marshal ¶ added in v0.7.1
func (m *ForeignMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ForeignMessage) XXX_Merge ¶ added in v0.7.1
func (dst *ForeignMessage) XXX_Merge(src proto.Message)
func (*ForeignMessage) XXX_Size ¶ added in v0.7.1
func (m *ForeignMessage) XXX_Size() int
func (*ForeignMessage) XXX_Unmarshal ¶ added in v0.7.1
func (m *ForeignMessage) XXX_Unmarshal(b []byte) error
type NestedTestAllTypes ¶
type NestedTestAllTypes struct { Child *NestedTestAllTypes `protobuf:"bytes,1,opt,name=child" json:"child,omitempty"` Payload *TestAllTypes `protobuf:"bytes,2,opt,name=payload" json:"payload,omitempty"` RepeatedChild []*NestedTestAllTypes `protobuf:"bytes,3,rep,name=repeated_child,json=repeatedChild" json:"repeated_child,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
This proto includes a recusively nested message.
func (*NestedTestAllTypes) Descriptor ¶
func (*NestedTestAllTypes) Descriptor() ([]byte, []int)
func (*NestedTestAllTypes) GetChild ¶
func (m *NestedTestAllTypes) GetChild() *NestedTestAllTypes
func (*NestedTestAllTypes) GetPayload ¶
func (m *NestedTestAllTypes) GetPayload() *TestAllTypes
func (*NestedTestAllTypes) GetRepeatedChild ¶
func (m *NestedTestAllTypes) GetRepeatedChild() []*NestedTestAllTypes
func (*NestedTestAllTypes) ProtoMessage ¶
func (*NestedTestAllTypes) ProtoMessage()
func (*NestedTestAllTypes) Reset ¶
func (m *NestedTestAllTypes) Reset()
func (*NestedTestAllTypes) String ¶
func (m *NestedTestAllTypes) String() string
func (*NestedTestAllTypes) XXX_DiscardUnknown ¶ added in v0.7.1
func (m *NestedTestAllTypes) XXX_DiscardUnknown()
func (*NestedTestAllTypes) XXX_Marshal ¶ added in v0.7.1
func (m *NestedTestAllTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NestedTestAllTypes) XXX_Merge ¶ added in v0.7.1
func (dst *NestedTestAllTypes) XXX_Merge(src proto.Message)
func (*NestedTestAllTypes) XXX_Size ¶ added in v0.7.1
func (m *NestedTestAllTypes) XXX_Size() int
func (*NestedTestAllTypes) XXX_Unmarshal ¶ added in v0.7.1
func (m *NestedTestAllTypes) XXX_Unmarshal(b []byte) error
type TestAllTypes ¶
type TestAllTypes struct { // Singular SingleInt32 int32 `protobuf:"varint,1,opt,name=single_int32,json=singleInt32" json:"single_int32,omitempty"` SingleInt64 int64 `protobuf:"varint,2,opt,name=single_int64,json=singleInt64" json:"single_int64,omitempty"` SingleUint32 uint32 `protobuf:"varint,3,opt,name=single_uint32,json=singleUint32" json:"single_uint32,omitempty"` SingleUint64 uint64 `protobuf:"varint,4,opt,name=single_uint64,json=singleUint64" json:"single_uint64,omitempty"` SingleSint32 int32 `protobuf:"zigzag32,5,opt,name=single_sint32,json=singleSint32" json:"single_sint32,omitempty"` SingleSint64 int64 `protobuf:"zigzag64,6,opt,name=single_sint64,json=singleSint64" json:"single_sint64,omitempty"` SingleFixed32 uint32 `protobuf:"fixed32,7,opt,name=single_fixed32,json=singleFixed32" json:"single_fixed32,omitempty"` SingleFixed64 uint64 `protobuf:"fixed64,8,opt,name=single_fixed64,json=singleFixed64" json:"single_fixed64,omitempty"` SingleSfixed32 int32 `protobuf:"fixed32,9,opt,name=single_sfixed32,json=singleSfixed32" json:"single_sfixed32,omitempty"` SingleSfixed64 int64 `protobuf:"fixed64,10,opt,name=single_sfixed64,json=singleSfixed64" json:"single_sfixed64,omitempty"` SingleFloat float32 `protobuf:"fixed32,11,opt,name=single_float,json=singleFloat" json:"single_float,omitempty"` SingleDouble float64 `protobuf:"fixed64,12,opt,name=single_double,json=singleDouble" json:"single_double,omitempty"` SingleBool bool `protobuf:"varint,13,opt,name=single_bool,json=singleBool" json:"single_bool,omitempty"` SingleString string `protobuf:"bytes,14,opt,name=single_string,json=singleString" json:"single_string,omitempty"` SingleBytes []byte `protobuf:"bytes,15,opt,name=single_bytes,json=singleBytes,proto3" json:"single_bytes,omitempty"` SingleImportedMessage *multi.Multi1 `protobuf:"bytes,16,opt,name=single_imported_message,json=singleImportedMessage" json:"single_imported_message,omitempty"` SingleNestedMessage *TestAllTypes_NestedMessage `protobuf:"bytes,18,opt,name=single_nested_message,json=singleNestedMessage" json:"single_nested_message,omitempty"` SingleForeignMessage *ForeignMessage `protobuf:"bytes,19,opt,name=single_foreign_message,json=singleForeignMessage" json:"single_foreign_message,omitempty"` SingleNestedEnum TestAllTypes_NestedEnum `` /* 141-byte string literal not displayed */ SingleForeignEnum ForeignEnum `` /* 132-byte string literal not displayed */ // Repeated RepeatedInt32 []int32 `protobuf:"varint,31,rep,packed,name=repeated_int32,json=repeatedInt32" json:"repeated_int32,omitempty"` RepeatedInt64 []int64 `protobuf:"varint,32,rep,packed,name=repeated_int64,json=repeatedInt64" json:"repeated_int64,omitempty"` RepeatedUint32 []uint32 `protobuf:"varint,33,rep,packed,name=repeated_uint32,json=repeatedUint32" json:"repeated_uint32,omitempty"` RepeatedUint64 []uint64 `protobuf:"varint,34,rep,packed,name=repeated_uint64,json=repeatedUint64" json:"repeated_uint64,omitempty"` RepeatedSint32 []int32 `protobuf:"zigzag32,35,rep,packed,name=repeated_sint32,json=repeatedSint32" json:"repeated_sint32,omitempty"` RepeatedSint64 []int64 `protobuf:"zigzag64,36,rep,packed,name=repeated_sint64,json=repeatedSint64" json:"repeated_sint64,omitempty"` RepeatedFixed32 []uint32 `protobuf:"fixed32,37,rep,packed,name=repeated_fixed32,json=repeatedFixed32" json:"repeated_fixed32,omitempty"` RepeatedFixed64 []uint64 `protobuf:"fixed64,38,rep,packed,name=repeated_fixed64,json=repeatedFixed64" json:"repeated_fixed64,omitempty"` RepeatedSfixed32 []int32 `protobuf:"fixed32,39,rep,packed,name=repeated_sfixed32,json=repeatedSfixed32" json:"repeated_sfixed32,omitempty"` RepeatedSfixed64 []int64 `protobuf:"fixed64,40,rep,packed,name=repeated_sfixed64,json=repeatedSfixed64" json:"repeated_sfixed64,omitempty"` RepeatedFloat []float32 `protobuf:"fixed32,41,rep,packed,name=repeated_float,json=repeatedFloat" json:"repeated_float,omitempty"` RepeatedDouble []float64 `protobuf:"fixed64,42,rep,packed,name=repeated_double,json=repeatedDouble" json:"repeated_double,omitempty"` RepeatedBool []bool `protobuf:"varint,43,rep,packed,name=repeated_bool,json=repeatedBool" json:"repeated_bool,omitempty"` RepeatedString []string `protobuf:"bytes,44,rep,name=repeated_string,json=repeatedString" json:"repeated_string,omitempty"` RepeatedBytes [][]byte `protobuf:"bytes,45,rep,name=repeated_bytes,json=repeatedBytes,proto3" json:"repeated_bytes,omitempty"` RepeatedImportedMessage []*multi.Multi1 `` /* 126-byte string literal not displayed */ RepeatedNestedMessage []*TestAllTypes_NestedMessage `protobuf:"bytes,48,rep,name=repeated_nested_message,json=repeatedNestedMessage" json:"repeated_nested_message,omitempty"` RepeatedForeignMessage []*ForeignMessage `protobuf:"bytes,49,rep,name=repeated_foreign_message,json=repeatedForeignMessage" json:"repeated_foreign_message,omitempty"` RepeatedNestedEnum []TestAllTypes_NestedEnum `` /* 154-byte string literal not displayed */ RepeatedForeignEnum []ForeignEnum `` /* 145-byte string literal not displayed */ // For oneof test // // Types that are valid to be assigned to OneofField: // *TestAllTypes_OneofUint32 // *TestAllTypes_OneofNestedMessage // *TestAllTypes_OneofString // *TestAllTypes_OneofBytes // *TestAllTypes_OneofImportedMessage OneofField isTestAllTypes_OneofField `protobuf_oneof:"oneof_field"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
This proto includes every type of field in both singular and repeated forms.
func (*TestAllTypes) Descriptor ¶
func (*TestAllTypes) Descriptor() ([]byte, []int)
func (*TestAllTypes) GetOneofBytes ¶
func (m *TestAllTypes) GetOneofBytes() []byte
func (*TestAllTypes) GetOneofField ¶
func (m *TestAllTypes) GetOneofField() isTestAllTypes_OneofField
func (*TestAllTypes) GetOneofImportedMessage ¶
func (m *TestAllTypes) GetOneofImportedMessage() *multi.Multi1
func (*TestAllTypes) GetOneofNestedMessage ¶
func (m *TestAllTypes) GetOneofNestedMessage() *TestAllTypes_NestedMessage
func (*TestAllTypes) GetOneofString ¶
func (m *TestAllTypes) GetOneofString() string
func (*TestAllTypes) GetOneofUint32 ¶
func (m *TestAllTypes) GetOneofUint32() uint32
func (*TestAllTypes) GetRepeatedBool ¶
func (m *TestAllTypes) GetRepeatedBool() []bool
func (*TestAllTypes) GetRepeatedBytes ¶
func (m *TestAllTypes) GetRepeatedBytes() [][]byte
func (*TestAllTypes) GetRepeatedDouble ¶
func (m *TestAllTypes) GetRepeatedDouble() []float64
func (*TestAllTypes) GetRepeatedFixed32 ¶
func (m *TestAllTypes) GetRepeatedFixed32() []uint32
func (*TestAllTypes) GetRepeatedFixed64 ¶
func (m *TestAllTypes) GetRepeatedFixed64() []uint64
func (*TestAllTypes) GetRepeatedFloat ¶
func (m *TestAllTypes) GetRepeatedFloat() []float32
func (*TestAllTypes) GetRepeatedForeignEnum ¶
func (m *TestAllTypes) GetRepeatedForeignEnum() []ForeignEnum
func (*TestAllTypes) GetRepeatedForeignMessage ¶
func (m *TestAllTypes) GetRepeatedForeignMessage() []*ForeignMessage
func (*TestAllTypes) GetRepeatedImportedMessage ¶
func (m *TestAllTypes) GetRepeatedImportedMessage() []*multi.Multi1
func (*TestAllTypes) GetRepeatedInt32 ¶
func (m *TestAllTypes) GetRepeatedInt32() []int32
func (*TestAllTypes) GetRepeatedInt64 ¶
func (m *TestAllTypes) GetRepeatedInt64() []int64
func (*TestAllTypes) GetRepeatedNestedEnum ¶
func (m *TestAllTypes) GetRepeatedNestedEnum() []TestAllTypes_NestedEnum
func (*TestAllTypes) GetRepeatedNestedMessage ¶
func (m *TestAllTypes) GetRepeatedNestedMessage() []*TestAllTypes_NestedMessage
func (*TestAllTypes) GetRepeatedSfixed32 ¶
func (m *TestAllTypes) GetRepeatedSfixed32() []int32
func (*TestAllTypes) GetRepeatedSfixed64 ¶
func (m *TestAllTypes) GetRepeatedSfixed64() []int64
func (*TestAllTypes) GetRepeatedSint32 ¶
func (m *TestAllTypes) GetRepeatedSint32() []int32
func (*TestAllTypes) GetRepeatedSint64 ¶
func (m *TestAllTypes) GetRepeatedSint64() []int64
func (*TestAllTypes) GetRepeatedString ¶
func (m *TestAllTypes) GetRepeatedString() []string
func (*TestAllTypes) GetRepeatedUint32 ¶
func (m *TestAllTypes) GetRepeatedUint32() []uint32
func (*TestAllTypes) GetRepeatedUint64 ¶
func (m *TestAllTypes) GetRepeatedUint64() []uint64
func (*TestAllTypes) GetSingleBool ¶
func (m *TestAllTypes) GetSingleBool() bool
func (*TestAllTypes) GetSingleBytes ¶
func (m *TestAllTypes) GetSingleBytes() []byte
func (*TestAllTypes) GetSingleDouble ¶
func (m *TestAllTypes) GetSingleDouble() float64
func (*TestAllTypes) GetSingleFixed32 ¶
func (m *TestAllTypes) GetSingleFixed32() uint32
func (*TestAllTypes) GetSingleFixed64 ¶
func (m *TestAllTypes) GetSingleFixed64() uint64
func (*TestAllTypes) GetSingleFloat ¶
func (m *TestAllTypes) GetSingleFloat() float32
func (*TestAllTypes) GetSingleForeignEnum ¶
func (m *TestAllTypes) GetSingleForeignEnum() ForeignEnum
func (*TestAllTypes) GetSingleForeignMessage ¶
func (m *TestAllTypes) GetSingleForeignMessage() *ForeignMessage
func (*TestAllTypes) GetSingleImportedMessage ¶
func (m *TestAllTypes) GetSingleImportedMessage() *multi.Multi1
func (*TestAllTypes) GetSingleInt32 ¶
func (m *TestAllTypes) GetSingleInt32() int32
func (*TestAllTypes) GetSingleInt64 ¶
func (m *TestAllTypes) GetSingleInt64() int64
func (*TestAllTypes) GetSingleNestedEnum ¶
func (m *TestAllTypes) GetSingleNestedEnum() TestAllTypes_NestedEnum
func (*TestAllTypes) GetSingleNestedMessage ¶
func (m *TestAllTypes) GetSingleNestedMessage() *TestAllTypes_NestedMessage
func (*TestAllTypes) GetSingleSfixed32 ¶
func (m *TestAllTypes) GetSingleSfixed32() int32
func (*TestAllTypes) GetSingleSfixed64 ¶
func (m *TestAllTypes) GetSingleSfixed64() int64
func (*TestAllTypes) GetSingleSint32 ¶
func (m *TestAllTypes) GetSingleSint32() int32
func (*TestAllTypes) GetSingleSint64 ¶
func (m *TestAllTypes) GetSingleSint64() int64
func (*TestAllTypes) GetSingleString ¶
func (m *TestAllTypes) GetSingleString() string
func (*TestAllTypes) GetSingleUint32 ¶
func (m *TestAllTypes) GetSingleUint32() uint32
func (*TestAllTypes) GetSingleUint64 ¶
func (m *TestAllTypes) GetSingleUint64() uint64
func (*TestAllTypes) ProtoMessage ¶
func (*TestAllTypes) ProtoMessage()
func (*TestAllTypes) Reset ¶
func (m *TestAllTypes) Reset()
func (*TestAllTypes) String ¶
func (m *TestAllTypes) String() string
func (*TestAllTypes) XXX_DiscardUnknown ¶ added in v0.7.1
func (m *TestAllTypes) XXX_DiscardUnknown()
func (*TestAllTypes) XXX_Marshal ¶ added in v0.7.1
func (m *TestAllTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TestAllTypes) XXX_Merge ¶ added in v0.7.1
func (dst *TestAllTypes) XXX_Merge(src proto.Message)
func (*TestAllTypes) XXX_OneofFuncs ¶
func (*TestAllTypes) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*TestAllTypes) XXX_Size ¶ added in v0.7.1
func (m *TestAllTypes) XXX_Size() int
func (*TestAllTypes) XXX_Unmarshal ¶ added in v0.7.1
func (m *TestAllTypes) XXX_Unmarshal(b []byte) error
type TestAllTypes_NestedEnum ¶
type TestAllTypes_NestedEnum int32
const ( TestAllTypes_NESTED_ENUM_UNSPECIFIED TestAllTypes_NestedEnum = 0 TestAllTypes_FOO TestAllTypes_NestedEnum = 1 TestAllTypes_BAR TestAllTypes_NestedEnum = 2 TestAllTypes_BAZ TestAllTypes_NestedEnum = 3 TestAllTypes_NEG TestAllTypes_NestedEnum = -1 )
func (TestAllTypes_NestedEnum) EnumDescriptor ¶
func (TestAllTypes_NestedEnum) EnumDescriptor() ([]byte, []int)
func (TestAllTypes_NestedEnum) String ¶
func (x TestAllTypes_NestedEnum) String() string
type TestAllTypes_NestedMessage ¶
type TestAllTypes_NestedMessage struct { B int32 `protobuf:"varint,1,opt,name=b" json:"b,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TestAllTypes_NestedMessage) Descriptor ¶
func (*TestAllTypes_NestedMessage) Descriptor() ([]byte, []int)
func (*TestAllTypes_NestedMessage) GetB ¶
func (m *TestAllTypes_NestedMessage) GetB() int32
func (*TestAllTypes_NestedMessage) ProtoMessage ¶
func (*TestAllTypes_NestedMessage) ProtoMessage()
func (*TestAllTypes_NestedMessage) Reset ¶
func (m *TestAllTypes_NestedMessage) Reset()
func (*TestAllTypes_NestedMessage) String ¶
func (m *TestAllTypes_NestedMessage) String() string
func (*TestAllTypes_NestedMessage) XXX_DiscardUnknown ¶ added in v0.7.1
func (m *TestAllTypes_NestedMessage) XXX_DiscardUnknown()
func (*TestAllTypes_NestedMessage) XXX_Marshal ¶ added in v0.7.1
func (m *TestAllTypes_NestedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TestAllTypes_NestedMessage) XXX_Merge ¶ added in v0.7.1
func (dst *TestAllTypes_NestedMessage) XXX_Merge(src proto.Message)
func (*TestAllTypes_NestedMessage) XXX_Size ¶ added in v0.7.1
func (m *TestAllTypes_NestedMessage) XXX_Size() int
func (*TestAllTypes_NestedMessage) XXX_Unmarshal ¶ added in v0.7.1
func (m *TestAllTypes_NestedMessage) XXX_Unmarshal(b []byte) error
type TestAllTypes_OneofBytes ¶
type TestAllTypes_OneofBytes struct {
OneofBytes []byte `protobuf:"bytes,114,opt,name=oneof_bytes,json=oneofBytes,proto3,oneof"`
}
type TestAllTypes_OneofNestedMessage ¶
type TestAllTypes_OneofNestedMessage struct {
OneofNestedMessage *TestAllTypes_NestedMessage `protobuf:"bytes,112,opt,name=oneof_nested_message,json=oneofNestedMessage,oneof"`
}
type TestAllTypes_OneofString ¶
type TestAllTypes_OneofString struct {
OneofString string `protobuf:"bytes,113,opt,name=oneof_string,json=oneofString,oneof"`
}
type TestAllTypes_OneofUint32 ¶
type TestAllTypes_OneofUint32 struct {
OneofUint32 uint32 `protobuf:"varint,111,opt,name=oneof_uint32,json=oneofUint32,oneof"`
}
type TestMap ¶
type TestMap struct { MapInt32Int32 map[int32]int32 `` /* 171-byte string literal not displayed */ MapInt64Int64 map[int64]int64 `` /* 171-byte string literal not displayed */ MapUint32Uint32 map[uint32]uint32 `` /* 177-byte string literal not displayed */ MapUint64Uint64 map[uint64]uint64 `` /* 177-byte string literal not displayed */ MapSint32Sint32 map[int32]int32 `` /* 181-byte string literal not displayed */ MapSint64Sint64 map[int64]int64 `` /* 181-byte string literal not displayed */ MapFixed32Fixed32 map[uint32]uint32 `` /* 185-byte string literal not displayed */ MapFixed64Fixed64 map[uint64]uint64 `` /* 185-byte string literal not displayed */ MapSfixed32Sfixed32 map[int32]int32 `` /* 191-byte string literal not displayed */ MapSfixed64Sfixed64 map[int64]int64 `` /* 192-byte string literal not displayed */ MapInt32Float map[int32]float32 `` /* 173-byte string literal not displayed */ MapInt32Double map[int32]float64 `` /* 176-byte string literal not displayed */ MapBoolBool map[bool]bool `` /* 166-byte string literal not displayed */ MapStringString map[string]string `` /* 176-byte string literal not displayed */ MapInt32Bytes map[int32][]byte `` /* 178-byte string literal not displayed */ MapInt32Enum map[int32]MapEnum `` /* 188-byte string literal not displayed */ MapInt32ForeignMessage map[int32]*ForeignMessage `` /* 200-byte string literal not displayed */ MapInt32ImportedMessage map[int32]*multi.Multi1 `` /* 203-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Tests maps.
func (*TestMap) Descriptor ¶
func (*TestMap) GetMapBoolBool ¶
func (*TestMap) GetMapFixed32Fixed32 ¶
func (*TestMap) GetMapFixed64Fixed64 ¶
func (*TestMap) GetMapInt32Bytes ¶
func (*TestMap) GetMapInt32Double ¶
func (*TestMap) GetMapInt32Enum ¶
func (*TestMap) GetMapInt32Float ¶
func (*TestMap) GetMapInt32ForeignMessage ¶
func (m *TestMap) GetMapInt32ForeignMessage() map[int32]*ForeignMessage
func (*TestMap) GetMapInt32ImportedMessage ¶
func (*TestMap) GetMapInt32Int32 ¶
func (*TestMap) GetMapInt64Int64 ¶
func (*TestMap) GetMapSfixed32Sfixed32 ¶
func (*TestMap) GetMapSfixed64Sfixed64 ¶
func (*TestMap) GetMapSint32Sint32 ¶
func (*TestMap) GetMapSint64Sint64 ¶
func (*TestMap) GetMapStringString ¶
func (*TestMap) GetMapUint32Uint32 ¶
func (*TestMap) GetMapUint64Uint64 ¶
func (*TestMap) ProtoMessage ¶
func (*TestMap) ProtoMessage()
func (*TestMap) XXX_DiscardUnknown ¶ added in v0.7.1
func (m *TestMap) XXX_DiscardUnknown()
func (*TestMap) XXX_Marshal ¶ added in v0.7.1
func (*TestMap) XXX_Unmarshal ¶ added in v0.7.1
Click to show internal directories.
Click to hide internal directories.