Documentation ¶
Overview ¶
Package types is a generated protocol buffer package.
It is generated from these files:
types/types.proto
It has these top-level messages:
TestAllTypes NestedTestAllTypes ForeignMessage TestMap
Index ¶
- Variables
- type EchoServiceClient
- type ForeignEnum
- type ForeignMessage
- func (m *ForeignMessage) GetC() (x int32)
- func (m *ForeignMessage) Marshal() []byte
- func (m *ForeignMessage) MarshalToWriter(writer jspb.Writer)
- func (m *ForeignMessage) Unmarshal(rawBytes []byte) (*ForeignMessage, error)
- func (m *ForeignMessage) UnmarshalFromReader(reader jspb.Reader) *ForeignMessage
- type MapEnum
- type NestedTestAllTypes
- func (m *NestedTestAllTypes) GetChild() (x *NestedTestAllTypes)
- func (m *NestedTestAllTypes) GetPayload() (x *TestAllTypes)
- func (m *NestedTestAllTypes) GetRepeatedChild() (x []*NestedTestAllTypes)
- func (m *NestedTestAllTypes) Marshal() []byte
- func (m *NestedTestAllTypes) MarshalToWriter(writer jspb.Writer)
- func (m *NestedTestAllTypes) Unmarshal(rawBytes []byte) (*NestedTestAllTypes, error)
- func (m *NestedTestAllTypes) UnmarshalFromReader(reader jspb.Reader) *NestedTestAllTypes
- type TestAllTypes
- func (m *TestAllTypes) GetOneofBytes() (x []byte)
- func (m *TestAllTypes) GetOneofField() (x isTestAllTypes_OneofField)
- func (m *TestAllTypes) GetOneofImportedMessage() (x *multitest2.Multi1)
- func (m *TestAllTypes) GetOneofNestedMessage() (x *TestAllTypes_NestedMessage)
- func (m *TestAllTypes) GetOneofString() (x string)
- func (m *TestAllTypes) GetOneofUint32() (x uint32)
- func (m *TestAllTypes) GetRepeatedBool() (x []bool)
- func (m *TestAllTypes) GetRepeatedBytes() (x [][]byte)
- func (m *TestAllTypes) GetRepeatedDouble() (x []float64)
- func (m *TestAllTypes) GetRepeatedFixed32() (x []uint32)
- func (m *TestAllTypes) GetRepeatedFixed64() (x []uint64)
- func (m *TestAllTypes) GetRepeatedFloat() (x []float32)
- func (m *TestAllTypes) GetRepeatedForeignEnum() (x []ForeignEnum)
- func (m *TestAllTypes) GetRepeatedForeignMessage() (x []*ForeignMessage)
- func (m *TestAllTypes) GetRepeatedImportedMessage() (x []*multitest2.Multi1)
- func (m *TestAllTypes) GetRepeatedInt32() (x []int32)
- func (m *TestAllTypes) GetRepeatedInt64() (x []int64)
- func (m *TestAllTypes) GetRepeatedNestedEnum() (x []TestAllTypes_NestedEnum)
- func (m *TestAllTypes) GetRepeatedNestedMessage() (x []*TestAllTypes_NestedMessage)
- func (m *TestAllTypes) GetRepeatedSfixed32() (x []int32)
- func (m *TestAllTypes) GetRepeatedSfixed64() (x []int64)
- func (m *TestAllTypes) GetRepeatedSint32() (x []int32)
- func (m *TestAllTypes) GetRepeatedSint64() (x []int64)
- func (m *TestAllTypes) GetRepeatedString() (x []string)
- func (m *TestAllTypes) GetRepeatedUint32() (x []uint32)
- func (m *TestAllTypes) GetRepeatedUint64() (x []uint64)
- func (m *TestAllTypes) GetSingleBool() (x bool)
- func (m *TestAllTypes) GetSingleBytes() (x []byte)
- func (m *TestAllTypes) GetSingleDouble() (x float64)
- func (m *TestAllTypes) GetSingleFixed32() (x uint32)
- func (m *TestAllTypes) GetSingleFixed64() (x uint64)
- func (m *TestAllTypes) GetSingleFloat() (x float32)
- func (m *TestAllTypes) GetSingleForeignEnum() (x ForeignEnum)
- func (m *TestAllTypes) GetSingleForeignMessage() (x *ForeignMessage)
- func (m *TestAllTypes) GetSingleImportedMessage() (x *multitest2.Multi1)
- func (m *TestAllTypes) GetSingleInt32() (x int32)
- func (m *TestAllTypes) GetSingleInt64() (x int64)
- func (m *TestAllTypes) GetSingleNestedEnum() (x TestAllTypes_NestedEnum)
- func (m *TestAllTypes) GetSingleNestedMessage() (x *TestAllTypes_NestedMessage)
- func (m *TestAllTypes) GetSingleSfixed32() (x int32)
- func (m *TestAllTypes) GetSingleSfixed64() (x int64)
- func (m *TestAllTypes) GetSingleSint32() (x int32)
- func (m *TestAllTypes) GetSingleSint64() (x int64)
- func (m *TestAllTypes) GetSingleString() (x string)
- func (m *TestAllTypes) GetSingleUint32() (x uint32)
- func (m *TestAllTypes) GetSingleUint64() (x uint64)
- func (m *TestAllTypes) Marshal() []byte
- func (m *TestAllTypes) MarshalToWriter(writer jspb.Writer)
- func (m *TestAllTypes) Unmarshal(rawBytes []byte) (*TestAllTypes, error)
- func (m *TestAllTypes) UnmarshalFromReader(reader jspb.Reader) *TestAllTypes
- type TestAllTypes_NestedEnum
- type TestAllTypes_NestedMessage
- func (m *TestAllTypes_NestedMessage) GetB() (x int32)
- func (m *TestAllTypes_NestedMessage) Marshal() []byte
- func (m *TestAllTypes_NestedMessage) MarshalToWriter(writer jspb.Writer)
- func (m *TestAllTypes_NestedMessage) Unmarshal(rawBytes []byte) (*TestAllTypes_NestedMessage, error)
- func (m *TestAllTypes_NestedMessage) UnmarshalFromReader(reader jspb.Reader) *TestAllTypes_NestedMessage
- type TestAllTypes_OneofBytes
- type TestAllTypes_OneofImportedMessage
- type TestAllTypes_OneofNestedMessage
- type TestAllTypes_OneofString
- type TestAllTypes_OneofUint32
- type TestMap
- func (m *TestMap) GetMapBoolBool() (x map[bool]bool)
- func (m *TestMap) GetMapFixed32Fixed32() (x map[uint32]uint32)
- func (m *TestMap) GetMapFixed64Fixed64() (x map[uint64]uint64)
- func (m *TestMap) GetMapInt32Bytes() (x map[int32][]byte)
- func (m *TestMap) GetMapInt32Double() (x map[int32]float64)
- func (m *TestMap) GetMapInt32Enum() (x map[int32]MapEnum)
- func (m *TestMap) GetMapInt32Float() (x map[int32]float32)
- func (m *TestMap) GetMapInt32ForeignMessage() (x map[int32]*ForeignMessage)
- func (m *TestMap) GetMapInt32ImportedMessage() (x map[int32]*multitest2.Multi1)
- func (m *TestMap) GetMapInt32Int32() (x map[int32]int32)
- func (m *TestMap) GetMapInt64Int64() (x map[int64]int64)
- func (m *TestMap) GetMapSfixed32Sfixed32() (x map[int32]int32)
- func (m *TestMap) GetMapSfixed64Sfixed64() (x map[int64]int64)
- func (m *TestMap) GetMapSint32Sint32() (x map[int32]int32)
- func (m *TestMap) GetMapSint64Sint64() (x map[int64]int64)
- func (m *TestMap) GetMapStringString() (x map[string]string)
- func (m *TestMap) GetMapUint32Uint32() (x map[uint32]uint32)
- func (m *TestMap) GetMapUint64Uint64() (x map[uint64]uint64)
- func (m *TestMap) Marshal() []byte
- func (m *TestMap) MarshalToWriter(writer jspb.Writer)
- func (m *TestMap) Unmarshal(rawBytes []byte) (*TestMap, error)
- func (m *TestMap) UnmarshalFromReader(reader jspb.Reader) *TestMap
Constants ¶
This section is empty.
Variables ¶
var ForeignEnum_name = map[int]string{
0: "FOREIGN_UNSPECIFIED",
4: "FOREIGN_FOO",
5: "FOREIGN_BAR",
6: "FOREIGN_BAZ",
}
var ForeignEnum_value = map[string]int{
"FOREIGN_UNSPECIFIED": 0,
"FOREIGN_FOO": 4,
"FOREIGN_BAR": 5,
"FOREIGN_BAZ": 6,
}
var MapEnum_name = map[int]string{
0: "MAP_ENUM_FOO",
1: "MAP_ENUM_BAR",
2: "MAP_ENUM_BAZ",
}
var MapEnum_value = map[string]int{
"MAP_ENUM_FOO": 0,
"MAP_ENUM_BAR": 1,
"MAP_ENUM_BAZ": 2,
}
var TestAllTypes_NestedEnum_name = map[int]string{
0: "NESTED_ENUM_UNSPECIFIED",
1: "FOO",
2: "BAR",
3: "BAZ",
-1: "NEG",
}
var TestAllTypes_NestedEnum_value = map[string]int{
"NESTED_ENUM_UNSPECIFIED": 0,
"FOO": 1,
"BAR": 2,
"BAZ": 3,
"NEG": -1,
}
Functions ¶
This section is empty.
Types ¶
type EchoServiceClient ¶
type EchoServiceClient interface { EchoAllTypes(ctx context.Context, in *TestAllTypes, opts ...grpcweb.CallOption) (*TestAllTypes, error) EchoMaps(ctx context.Context, in *TestMap, opts ...grpcweb.CallOption) (*TestMap, error) }
func NewEchoServiceClient ¶
func NewEchoServiceClient(hostname string, opts ...grpcweb.DialOption) EchoServiceClient
NewEchoServiceClient creates a new gRPC-Web client.
type ForeignEnum ¶
type ForeignEnum int
const ( ForeignEnum_FOREIGN_UNSPECIFIED ForeignEnum = 0 ForeignEnum_FOREIGN_FOO ForeignEnum = 4 ForeignEnum_FOREIGN_BAR ForeignEnum = 5 ForeignEnum_FOREIGN_BAZ ForeignEnum = 6 )
func (ForeignEnum) String ¶
func (x ForeignEnum) String() string
type ForeignMessage ¶
type ForeignMessage struct {
C int32
}
Define these after TestAllTypes to make sure the compiler can handle that.
func (*ForeignMessage) GetC ¶
func (m *ForeignMessage) GetC() (x int32)
GetC gets the C of the ForeignMessage.
func (*ForeignMessage) Marshal ¶
func (m *ForeignMessage) Marshal() []byte
Marshal marshals ForeignMessage to a slice of bytes.
func (*ForeignMessage) MarshalToWriter ¶
func (m *ForeignMessage) MarshalToWriter(writer jspb.Writer)
MarshalToWriter marshals ForeignMessage to the provided writer.
func (*ForeignMessage) Unmarshal ¶
func (m *ForeignMessage) Unmarshal(rawBytes []byte) (*ForeignMessage, error)
Unmarshal unmarshals a ForeignMessage from a slice of bytes.
func (*ForeignMessage) UnmarshalFromReader ¶
func (m *ForeignMessage) UnmarshalFromReader(reader jspb.Reader) *ForeignMessage
UnmarshalFromReader unmarshals a ForeignMessage from the provided reader.
type NestedTestAllTypes ¶
type NestedTestAllTypes struct { Child *NestedTestAllTypes Payload *TestAllTypes RepeatedChild []*NestedTestAllTypes }
This proto includes a recusively nested message.
func (*NestedTestAllTypes) GetChild ¶
func (m *NestedTestAllTypes) GetChild() (x *NestedTestAllTypes)
GetChild gets the Child of the NestedTestAllTypes.
func (*NestedTestAllTypes) GetPayload ¶
func (m *NestedTestAllTypes) GetPayload() (x *TestAllTypes)
GetPayload gets the Payload of the NestedTestAllTypes.
func (*NestedTestAllTypes) GetRepeatedChild ¶
func (m *NestedTestAllTypes) GetRepeatedChild() (x []*NestedTestAllTypes)
GetRepeatedChild gets the RepeatedChild of the NestedTestAllTypes.
func (*NestedTestAllTypes) Marshal ¶
func (m *NestedTestAllTypes) Marshal() []byte
Marshal marshals NestedTestAllTypes to a slice of bytes.
func (*NestedTestAllTypes) MarshalToWriter ¶
func (m *NestedTestAllTypes) MarshalToWriter(writer jspb.Writer)
MarshalToWriter marshals NestedTestAllTypes to the provided writer.
func (*NestedTestAllTypes) Unmarshal ¶
func (m *NestedTestAllTypes) Unmarshal(rawBytes []byte) (*NestedTestAllTypes, error)
Unmarshal unmarshals a NestedTestAllTypes from a slice of bytes.
func (*NestedTestAllTypes) UnmarshalFromReader ¶
func (m *NestedTestAllTypes) UnmarshalFromReader(reader jspb.Reader) *NestedTestAllTypes
UnmarshalFromReader unmarshals a NestedTestAllTypes from the provided reader.
type TestAllTypes ¶
type TestAllTypes struct { // Singular SingleInt32 int32 SingleInt64 int64 SingleUint32 uint32 SingleUint64 uint64 SingleSint32 int32 SingleSint64 int64 SingleFixed32 uint32 SingleFixed64 uint64 SingleSfixed32 int32 SingleSfixed64 int64 SingleFloat float32 SingleDouble float64 SingleBool bool SingleString string SingleBytes []byte SingleImportedMessage *multitest2.Multi1 SingleNestedMessage *TestAllTypes_NestedMessage SingleForeignMessage *ForeignMessage SingleNestedEnum TestAllTypes_NestedEnum SingleForeignEnum ForeignEnum // Repeated RepeatedInt32 []int32 RepeatedInt64 []int64 RepeatedUint32 []uint32 RepeatedUint64 []uint64 RepeatedSint32 []int32 RepeatedSint64 []int64 RepeatedFixed32 []uint32 RepeatedFixed64 []uint64 RepeatedSfixed32 []int32 RepeatedSfixed64 []int64 RepeatedFloat []float32 RepeatedDouble []float64 RepeatedBool []bool RepeatedString []string RepeatedBytes [][]byte RepeatedImportedMessage []*multitest2.Multi1 RepeatedNestedMessage []*TestAllTypes_NestedMessage RepeatedForeignMessage []*ForeignMessage RepeatedNestedEnum []TestAllTypes_NestedEnum RepeatedForeignEnum []ForeignEnum // 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 }
This proto includes every type of field in both singular and repeated forms.
func (*TestAllTypes) GetOneofBytes ¶
func (m *TestAllTypes) GetOneofBytes() (x []byte)
GetOneofBytes gets the OneofBytes of the TestAllTypes.
func (*TestAllTypes) GetOneofField ¶
func (m *TestAllTypes) GetOneofField() (x isTestAllTypes_OneofField)
GetOneofField gets the OneofField of the TestAllTypes.
func (*TestAllTypes) GetOneofImportedMessage ¶
func (m *TestAllTypes) GetOneofImportedMessage() (x *multitest2.Multi1)
GetOneofImportedMessage gets the OneofImportedMessage of the TestAllTypes.
func (*TestAllTypes) GetOneofNestedMessage ¶
func (m *TestAllTypes) GetOneofNestedMessage() (x *TestAllTypes_NestedMessage)
GetOneofNestedMessage gets the OneofNestedMessage of the TestAllTypes.
func (*TestAllTypes) GetOneofString ¶
func (m *TestAllTypes) GetOneofString() (x string)
GetOneofString gets the OneofString of the TestAllTypes.
func (*TestAllTypes) GetOneofUint32 ¶
func (m *TestAllTypes) GetOneofUint32() (x uint32)
GetOneofUint32 gets the OneofUint32 of the TestAllTypes.
func (*TestAllTypes) GetRepeatedBool ¶
func (m *TestAllTypes) GetRepeatedBool() (x []bool)
GetRepeatedBool gets the RepeatedBool of the TestAllTypes.
func (*TestAllTypes) GetRepeatedBytes ¶
func (m *TestAllTypes) GetRepeatedBytes() (x [][]byte)
GetRepeatedBytes gets the RepeatedBytes of the TestAllTypes.
func (*TestAllTypes) GetRepeatedDouble ¶
func (m *TestAllTypes) GetRepeatedDouble() (x []float64)
GetRepeatedDouble gets the RepeatedDouble of the TestAllTypes.
func (*TestAllTypes) GetRepeatedFixed32 ¶
func (m *TestAllTypes) GetRepeatedFixed32() (x []uint32)
GetRepeatedFixed32 gets the RepeatedFixed32 of the TestAllTypes.
func (*TestAllTypes) GetRepeatedFixed64 ¶
func (m *TestAllTypes) GetRepeatedFixed64() (x []uint64)
GetRepeatedFixed64 gets the RepeatedFixed64 of the TestAllTypes.
func (*TestAllTypes) GetRepeatedFloat ¶
func (m *TestAllTypes) GetRepeatedFloat() (x []float32)
GetRepeatedFloat gets the RepeatedFloat of the TestAllTypes.
func (*TestAllTypes) GetRepeatedForeignEnum ¶
func (m *TestAllTypes) GetRepeatedForeignEnum() (x []ForeignEnum)
GetRepeatedForeignEnum gets the RepeatedForeignEnum of the TestAllTypes.
func (*TestAllTypes) GetRepeatedForeignMessage ¶
func (m *TestAllTypes) GetRepeatedForeignMessage() (x []*ForeignMessage)
GetRepeatedForeignMessage gets the RepeatedForeignMessage of the TestAllTypes.
func (*TestAllTypes) GetRepeatedImportedMessage ¶
func (m *TestAllTypes) GetRepeatedImportedMessage() (x []*multitest2.Multi1)
GetRepeatedImportedMessage gets the RepeatedImportedMessage of the TestAllTypes.
func (*TestAllTypes) GetRepeatedInt32 ¶
func (m *TestAllTypes) GetRepeatedInt32() (x []int32)
GetRepeatedInt32 gets the RepeatedInt32 of the TestAllTypes.
func (*TestAllTypes) GetRepeatedInt64 ¶
func (m *TestAllTypes) GetRepeatedInt64() (x []int64)
GetRepeatedInt64 gets the RepeatedInt64 of the TestAllTypes.
func (*TestAllTypes) GetRepeatedNestedEnum ¶
func (m *TestAllTypes) GetRepeatedNestedEnum() (x []TestAllTypes_NestedEnum)
GetRepeatedNestedEnum gets the RepeatedNestedEnum of the TestAllTypes.
func (*TestAllTypes) GetRepeatedNestedMessage ¶
func (m *TestAllTypes) GetRepeatedNestedMessage() (x []*TestAllTypes_NestedMessage)
GetRepeatedNestedMessage gets the RepeatedNestedMessage of the TestAllTypes.
func (*TestAllTypes) GetRepeatedSfixed32 ¶
func (m *TestAllTypes) GetRepeatedSfixed32() (x []int32)
GetRepeatedSfixed32 gets the RepeatedSfixed32 of the TestAllTypes.
func (*TestAllTypes) GetRepeatedSfixed64 ¶
func (m *TestAllTypes) GetRepeatedSfixed64() (x []int64)
GetRepeatedSfixed64 gets the RepeatedSfixed64 of the TestAllTypes.
func (*TestAllTypes) GetRepeatedSint32 ¶
func (m *TestAllTypes) GetRepeatedSint32() (x []int32)
GetRepeatedSint32 gets the RepeatedSint32 of the TestAllTypes.
func (*TestAllTypes) GetRepeatedSint64 ¶
func (m *TestAllTypes) GetRepeatedSint64() (x []int64)
GetRepeatedSint64 gets the RepeatedSint64 of the TestAllTypes.
func (*TestAllTypes) GetRepeatedString ¶
func (m *TestAllTypes) GetRepeatedString() (x []string)
GetRepeatedString gets the RepeatedString of the TestAllTypes.
func (*TestAllTypes) GetRepeatedUint32 ¶
func (m *TestAllTypes) GetRepeatedUint32() (x []uint32)
GetRepeatedUint32 gets the RepeatedUint32 of the TestAllTypes.
func (*TestAllTypes) GetRepeatedUint64 ¶
func (m *TestAllTypes) GetRepeatedUint64() (x []uint64)
GetRepeatedUint64 gets the RepeatedUint64 of the TestAllTypes.
func (*TestAllTypes) GetSingleBool ¶
func (m *TestAllTypes) GetSingleBool() (x bool)
GetSingleBool gets the SingleBool of the TestAllTypes.
func (*TestAllTypes) GetSingleBytes ¶
func (m *TestAllTypes) GetSingleBytes() (x []byte)
GetSingleBytes gets the SingleBytes of the TestAllTypes.
func (*TestAllTypes) GetSingleDouble ¶
func (m *TestAllTypes) GetSingleDouble() (x float64)
GetSingleDouble gets the SingleDouble of the TestAllTypes.
func (*TestAllTypes) GetSingleFixed32 ¶
func (m *TestAllTypes) GetSingleFixed32() (x uint32)
GetSingleFixed32 gets the SingleFixed32 of the TestAllTypes.
func (*TestAllTypes) GetSingleFixed64 ¶
func (m *TestAllTypes) GetSingleFixed64() (x uint64)
GetSingleFixed64 gets the SingleFixed64 of the TestAllTypes.
func (*TestAllTypes) GetSingleFloat ¶
func (m *TestAllTypes) GetSingleFloat() (x float32)
GetSingleFloat gets the SingleFloat of the TestAllTypes.
func (*TestAllTypes) GetSingleForeignEnum ¶
func (m *TestAllTypes) GetSingleForeignEnum() (x ForeignEnum)
GetSingleForeignEnum gets the SingleForeignEnum of the TestAllTypes.
func (*TestAllTypes) GetSingleForeignMessage ¶
func (m *TestAllTypes) GetSingleForeignMessage() (x *ForeignMessage)
GetSingleForeignMessage gets the SingleForeignMessage of the TestAllTypes.
func (*TestAllTypes) GetSingleImportedMessage ¶
func (m *TestAllTypes) GetSingleImportedMessage() (x *multitest2.Multi1)
GetSingleImportedMessage gets the SingleImportedMessage of the TestAllTypes.
func (*TestAllTypes) GetSingleInt32 ¶
func (m *TestAllTypes) GetSingleInt32() (x int32)
GetSingleInt32 gets the SingleInt32 of the TestAllTypes.
func (*TestAllTypes) GetSingleInt64 ¶
func (m *TestAllTypes) GetSingleInt64() (x int64)
GetSingleInt64 gets the SingleInt64 of the TestAllTypes.
func (*TestAllTypes) GetSingleNestedEnum ¶
func (m *TestAllTypes) GetSingleNestedEnum() (x TestAllTypes_NestedEnum)
GetSingleNestedEnum gets the SingleNestedEnum of the TestAllTypes.
func (*TestAllTypes) GetSingleNestedMessage ¶
func (m *TestAllTypes) GetSingleNestedMessage() (x *TestAllTypes_NestedMessage)
GetSingleNestedMessage gets the SingleNestedMessage of the TestAllTypes.
func (*TestAllTypes) GetSingleSfixed32 ¶
func (m *TestAllTypes) GetSingleSfixed32() (x int32)
GetSingleSfixed32 gets the SingleSfixed32 of the TestAllTypes.
func (*TestAllTypes) GetSingleSfixed64 ¶
func (m *TestAllTypes) GetSingleSfixed64() (x int64)
GetSingleSfixed64 gets the SingleSfixed64 of the TestAllTypes.
func (*TestAllTypes) GetSingleSint32 ¶
func (m *TestAllTypes) GetSingleSint32() (x int32)
GetSingleSint32 gets the SingleSint32 of the TestAllTypes.
func (*TestAllTypes) GetSingleSint64 ¶
func (m *TestAllTypes) GetSingleSint64() (x int64)
GetSingleSint64 gets the SingleSint64 of the TestAllTypes.
func (*TestAllTypes) GetSingleString ¶
func (m *TestAllTypes) GetSingleString() (x string)
GetSingleString gets the SingleString of the TestAllTypes.
func (*TestAllTypes) GetSingleUint32 ¶
func (m *TestAllTypes) GetSingleUint32() (x uint32)
GetSingleUint32 gets the SingleUint32 of the TestAllTypes.
func (*TestAllTypes) GetSingleUint64 ¶
func (m *TestAllTypes) GetSingleUint64() (x uint64)
GetSingleUint64 gets the SingleUint64 of the TestAllTypes.
func (*TestAllTypes) Marshal ¶
func (m *TestAllTypes) Marshal() []byte
Marshal marshals TestAllTypes to a slice of bytes.
func (*TestAllTypes) MarshalToWriter ¶
func (m *TestAllTypes) MarshalToWriter(writer jspb.Writer)
MarshalToWriter marshals TestAllTypes to the provided writer.
func (*TestAllTypes) Unmarshal ¶
func (m *TestAllTypes) Unmarshal(rawBytes []byte) (*TestAllTypes, error)
Unmarshal unmarshals a TestAllTypes from a slice of bytes.
func (*TestAllTypes) UnmarshalFromReader ¶
func (m *TestAllTypes) UnmarshalFromReader(reader jspb.Reader) *TestAllTypes
UnmarshalFromReader unmarshals a TestAllTypes from the provided reader.
type TestAllTypes_NestedEnum ¶
type TestAllTypes_NestedEnum int
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) String ¶
func (x TestAllTypes_NestedEnum) String() string
type TestAllTypes_NestedMessage ¶
type TestAllTypes_NestedMessage struct {
B int32
}
func (*TestAllTypes_NestedMessage) GetB ¶
func (m *TestAllTypes_NestedMessage) GetB() (x int32)
GetB gets the B of the TestAllTypes_NestedMessage.
func (*TestAllTypes_NestedMessage) Marshal ¶
func (m *TestAllTypes_NestedMessage) Marshal() []byte
Marshal marshals TestAllTypes_NestedMessage to a slice of bytes.
func (*TestAllTypes_NestedMessage) MarshalToWriter ¶
func (m *TestAllTypes_NestedMessage) MarshalToWriter(writer jspb.Writer)
MarshalToWriter marshals TestAllTypes_NestedMessage to the provided writer.
func (*TestAllTypes_NestedMessage) Unmarshal ¶
func (m *TestAllTypes_NestedMessage) Unmarshal(rawBytes []byte) (*TestAllTypes_NestedMessage, error)
Unmarshal unmarshals a TestAllTypes_NestedMessage from a slice of bytes.
func (*TestAllTypes_NestedMessage) UnmarshalFromReader ¶
func (m *TestAllTypes_NestedMessage) UnmarshalFromReader(reader jspb.Reader) *TestAllTypes_NestedMessage
UnmarshalFromReader unmarshals a TestAllTypes_NestedMessage from the provided reader.
type TestAllTypes_OneofBytes ¶
type TestAllTypes_OneofBytes struct {
OneofBytes []byte
}
TestAllTypes_OneofBytes is assignable to OneofField
type TestAllTypes_OneofImportedMessage ¶
type TestAllTypes_OneofImportedMessage struct {
OneofImportedMessage *multitest2.Multi1
}
TestAllTypes_OneofImportedMessage is assignable to OneofField
type TestAllTypes_OneofNestedMessage ¶
type TestAllTypes_OneofNestedMessage struct {
OneofNestedMessage *TestAllTypes_NestedMessage
}
TestAllTypes_OneofNestedMessage is assignable to OneofField
type TestAllTypes_OneofString ¶
type TestAllTypes_OneofString struct {
OneofString string
}
TestAllTypes_OneofString is assignable to OneofField
type TestAllTypes_OneofUint32 ¶
type TestAllTypes_OneofUint32 struct {
OneofUint32 uint32
}
TestAllTypes_OneofUint32 is assignable to OneofField
type TestMap ¶
type TestMap struct { MapInt32Int32 map[int32]int32 MapInt64Int64 map[int64]int64 MapUint32Uint32 map[uint32]uint32 MapUint64Uint64 map[uint64]uint64 MapSint32Sint32 map[int32]int32 MapSint64Sint64 map[int64]int64 MapFixed32Fixed32 map[uint32]uint32 MapFixed64Fixed64 map[uint64]uint64 MapSfixed32Sfixed32 map[int32]int32 MapSfixed64Sfixed64 map[int64]int64 MapInt32Float map[int32]float32 MapInt32Double map[int32]float64 MapBoolBool map[bool]bool MapStringString map[string]string MapInt32Bytes map[int32][]byte MapInt32Enum map[int32]MapEnum MapInt32ForeignMessage map[int32]*ForeignMessage MapInt32ImportedMessage map[int32]*multitest2.Multi1 }
Tests maps.
func (*TestMap) GetMapBoolBool ¶
GetMapBoolBool gets the MapBoolBool of the TestMap.
func (*TestMap) GetMapFixed32Fixed32 ¶
GetMapFixed32Fixed32 gets the MapFixed32Fixed32 of the TestMap.
func (*TestMap) GetMapFixed64Fixed64 ¶
GetMapFixed64Fixed64 gets the MapFixed64Fixed64 of the TestMap.
func (*TestMap) GetMapInt32Bytes ¶
GetMapInt32Bytes gets the MapInt32Bytes of the TestMap.
func (*TestMap) GetMapInt32Double ¶
GetMapInt32Double gets the MapInt32Double of the TestMap.
func (*TestMap) GetMapInt32Enum ¶
GetMapInt32Enum gets the MapInt32Enum of the TestMap.
func (*TestMap) GetMapInt32Float ¶
GetMapInt32Float gets the MapInt32Float of the TestMap.
func (*TestMap) GetMapInt32ForeignMessage ¶
func (m *TestMap) GetMapInt32ForeignMessage() (x map[int32]*ForeignMessage)
GetMapInt32ForeignMessage gets the MapInt32ForeignMessage of the TestMap.
func (*TestMap) GetMapInt32ImportedMessage ¶
func (m *TestMap) GetMapInt32ImportedMessage() (x map[int32]*multitest2.Multi1)
GetMapInt32ImportedMessage gets the MapInt32ImportedMessage of the TestMap.
func (*TestMap) GetMapInt32Int32 ¶
GetMapInt32Int32 gets the MapInt32Int32 of the TestMap.
func (*TestMap) GetMapInt64Int64 ¶
GetMapInt64Int64 gets the MapInt64Int64 of the TestMap.
func (*TestMap) GetMapSfixed32Sfixed32 ¶
GetMapSfixed32Sfixed32 gets the MapSfixed32Sfixed32 of the TestMap.
func (*TestMap) GetMapSfixed64Sfixed64 ¶
GetMapSfixed64Sfixed64 gets the MapSfixed64Sfixed64 of the TestMap.
func (*TestMap) GetMapSint32Sint32 ¶
GetMapSint32Sint32 gets the MapSint32Sint32 of the TestMap.
func (*TestMap) GetMapSint64Sint64 ¶
GetMapSint64Sint64 gets the MapSint64Sint64 of the TestMap.
func (*TestMap) GetMapStringString ¶
GetMapStringString gets the MapStringString of the TestMap.
func (*TestMap) GetMapUint32Uint32 ¶
GetMapUint32Uint32 gets the MapUint32Uint32 of the TestMap.
func (*TestMap) GetMapUint64Uint64 ¶
GetMapUint64Uint64 gets the MapUint64Uint64 of the TestMap.
func (*TestMap) MarshalToWriter ¶
MarshalToWriter marshals TestMap to the provided writer.