conformance

package
v1.0.1-0...-58efb20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2018 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package conformance is a generated protocol buffer package.

It is generated from these files:

conformance_proto/conformance.proto

It has these top-level messages:

ConformanceRequest
ConformanceResponse
TestAllTypes
ForeignMessage

Index

Constants

This section is empty.

Variables

View Source
var ForeignEnum_name = map[int32]string{
	0: "FOREIGN_FOO",
	1: "FOREIGN_BAR",
	2: "FOREIGN_BAZ",
}
View Source
var ForeignEnum_value = map[string]int32{
	"FOREIGN_FOO": 0,
	"FOREIGN_BAR": 1,
	"FOREIGN_BAZ": 2,
}
View Source
var TestAllTypes_NestedEnum_name = map[int32]string{
	0:  "FOO",
	1:  "BAR",
	2:  "BAZ",
	-1: "NEG",
}
View Source
var TestAllTypes_NestedEnum_value = map[string]int32{
	"FOO": 0,
	"BAR": 1,
	"BAZ": 2,
	"NEG": -1,
}
View Source
var WireFormat_name = map[int32]string{
	0: "UNSPECIFIED",
	1: "PROTOBUF",
	2: "JSON",
}
View Source
var WireFormat_value = map[string]int32{
	"UNSPECIFIED": 0,
	"PROTOBUF":    1,
	"JSON":        2,
}

Functions

This section is empty.

Types

type ConformanceRequest

type ConformanceRequest struct {
	// The payload (whether protobuf of JSON) is always for a TestAllTypes proto
	// (see below).
	//
	// Types that are valid to be assigned to Payload:
	//	*ConformanceRequest_ProtobufPayload
	//	*ConformanceRequest_JsonPayload
	Payload isConformanceRequest_Payload `protobuf_oneof:"payload"`
	// Which format should the testee serialize its message to?
	RequestedOutputFormat WireFormat `` /* 155-byte string literal not displayed */
}

Represents a single test case's input. The testee should:

  1. parse this proto (which should always succeed)
  2. parse the protobuf or JSON payload in "payload" (which may fail)
  3. if the parse succeeded, serialize the message in the requested format.

func (*ConformanceRequest) Descriptor

func (*ConformanceRequest) Descriptor() ([]byte, []int)

func (*ConformanceRequest) GetJsonPayload

func (m *ConformanceRequest) GetJsonPayload() string

func (*ConformanceRequest) GetPayload

func (m *ConformanceRequest) GetPayload() isConformanceRequest_Payload

func (*ConformanceRequest) GetProtobufPayload

func (m *ConformanceRequest) GetProtobufPayload() []byte

func (*ConformanceRequest) GetRequestedOutputFormat

func (m *ConformanceRequest) GetRequestedOutputFormat() WireFormat

func (*ConformanceRequest) ProtoMessage

func (*ConformanceRequest) ProtoMessage()

func (*ConformanceRequest) Reset

func (m *ConformanceRequest) Reset()

func (*ConformanceRequest) String

func (m *ConformanceRequest) String() string

func (*ConformanceRequest) XXX_OneofFuncs

func (*ConformanceRequest) 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.

type ConformanceRequest_JsonPayload

type ConformanceRequest_JsonPayload struct {
	JsonPayload string `protobuf:"bytes,2,opt,name=json_payload,json=jsonPayload,proto3,oneof"`
}

type ConformanceRequest_ProtobufPayload

type ConformanceRequest_ProtobufPayload struct {
	ProtobufPayload []byte `protobuf:"bytes,1,opt,name=protobuf_payload,json=protobufPayload,proto3,oneof"`
}

type ConformanceResponse

type ConformanceResponse struct {
	// Types that are valid to be assigned to Result:
	//	*ConformanceResponse_ParseError
	//	*ConformanceResponse_SerializeError
	//	*ConformanceResponse_RuntimeError
	//	*ConformanceResponse_ProtobufPayload
	//	*ConformanceResponse_JsonPayload
	//	*ConformanceResponse_Skipped
	Result isConformanceResponse_Result `protobuf_oneof:"result"`
}

Represents a single test case's output.

func (*ConformanceResponse) Descriptor

func (*ConformanceResponse) Descriptor() ([]byte, []int)

func (*ConformanceResponse) GetJsonPayload

func (m *ConformanceResponse) GetJsonPayload() string

func (*ConformanceResponse) GetParseError

func (m *ConformanceResponse) GetParseError() string

func (*ConformanceResponse) GetProtobufPayload

func (m *ConformanceResponse) GetProtobufPayload() []byte

func (*ConformanceResponse) GetResult

func (m *ConformanceResponse) GetResult() isConformanceResponse_Result

func (*ConformanceResponse) GetRuntimeError

func (m *ConformanceResponse) GetRuntimeError() string

func (*ConformanceResponse) GetSerializeError

func (m *ConformanceResponse) GetSerializeError() string

func (*ConformanceResponse) GetSkipped

func (m *ConformanceResponse) GetSkipped() string

func (*ConformanceResponse) ProtoMessage

func (*ConformanceResponse) ProtoMessage()

func (*ConformanceResponse) Reset

func (m *ConformanceResponse) Reset()

func (*ConformanceResponse) String

func (m *ConformanceResponse) String() string

func (*ConformanceResponse) XXX_OneofFuncs

func (*ConformanceResponse) 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.

type ConformanceResponse_JsonPayload

type ConformanceResponse_JsonPayload struct {
	JsonPayload string `protobuf:"bytes,4,opt,name=json_payload,json=jsonPayload,proto3,oneof"`
}

type ConformanceResponse_ParseError

type ConformanceResponse_ParseError struct {
	ParseError string `protobuf:"bytes,1,opt,name=parse_error,json=parseError,proto3,oneof"`
}

type ConformanceResponse_ProtobufPayload

type ConformanceResponse_ProtobufPayload struct {
	ProtobufPayload []byte `protobuf:"bytes,3,opt,name=protobuf_payload,json=protobufPayload,proto3,oneof"`
}

type ConformanceResponse_RuntimeError

type ConformanceResponse_RuntimeError struct {
	RuntimeError string `protobuf:"bytes,2,opt,name=runtime_error,json=runtimeError,proto3,oneof"`
}

type ConformanceResponse_SerializeError

type ConformanceResponse_SerializeError struct {
	SerializeError string `protobuf:"bytes,6,opt,name=serialize_error,json=serializeError,proto3,oneof"`
}

type ConformanceResponse_Skipped

type ConformanceResponse_Skipped struct {
	Skipped string `protobuf:"bytes,5,opt,name=skipped,proto3,oneof"`
}

type ForeignEnum

type ForeignEnum int32
const (
	ForeignEnum_FOREIGN_FOO ForeignEnum = 0
	ForeignEnum_FOREIGN_BAR ForeignEnum = 1
	ForeignEnum_FOREIGN_BAZ ForeignEnum = 2
)

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,proto3" json:"c,omitempty"`
}

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

type TestAllTypes

type TestAllTypes struct {
	// Singular
	OptionalInt32          int32                       `protobuf:"varint,1,opt,name=optional_int32,json=optionalInt32,proto3" json:"optional_int32,omitempty"`
	OptionalInt64          int64                       `protobuf:"varint,2,opt,name=optional_int64,json=optionalInt64,proto3" json:"optional_int64,omitempty"`
	OptionalUint32         uint32                      `protobuf:"varint,3,opt,name=optional_uint32,json=optionalUint32,proto3" json:"optional_uint32,omitempty"`
	OptionalUint64         uint64                      `protobuf:"varint,4,opt,name=optional_uint64,json=optionalUint64,proto3" json:"optional_uint64,omitempty"`
	OptionalSint32         int32                       `protobuf:"zigzag32,5,opt,name=optional_sint32,json=optionalSint32,proto3" json:"optional_sint32,omitempty"`
	OptionalSint64         int64                       `protobuf:"zigzag64,6,opt,name=optional_sint64,json=optionalSint64,proto3" json:"optional_sint64,omitempty"`
	OptionalFixed32        uint32                      `protobuf:"fixed32,7,opt,name=optional_fixed32,json=optionalFixed32,proto3" json:"optional_fixed32,omitempty"`
	OptionalFixed64        uint64                      `protobuf:"fixed64,8,opt,name=optional_fixed64,json=optionalFixed64,proto3" json:"optional_fixed64,omitempty"`
	OptionalSfixed32       int32                       `protobuf:"fixed32,9,opt,name=optional_sfixed32,json=optionalSfixed32,proto3" json:"optional_sfixed32,omitempty"`
	OptionalSfixed64       int64                       `protobuf:"fixed64,10,opt,name=optional_sfixed64,json=optionalSfixed64,proto3" json:"optional_sfixed64,omitempty"`
	OptionalFloat          float32                     `protobuf:"fixed32,11,opt,name=optional_float,json=optionalFloat,proto3" json:"optional_float,omitempty"`
	OptionalDouble         float64                     `protobuf:"fixed64,12,opt,name=optional_double,json=optionalDouble,proto3" json:"optional_double,omitempty"`
	OptionalBool           bool                        `protobuf:"varint,13,opt,name=optional_bool,json=optionalBool,proto3" json:"optional_bool,omitempty"`
	OptionalString         string                      `protobuf:"bytes,14,opt,name=optional_string,json=optionalString,proto3" json:"optional_string,omitempty"`
	OptionalBytes          []byte                      `protobuf:"bytes,15,opt,name=optional_bytes,json=optionalBytes,proto3" json:"optional_bytes,omitempty"`
	OptionalNestedMessage  *TestAllTypes_NestedMessage `protobuf:"bytes,18,opt,name=optional_nested_message,json=optionalNestedMessage" json:"optional_nested_message,omitempty"`
	OptionalForeignMessage *ForeignMessage             `protobuf:"bytes,19,opt,name=optional_foreign_message,json=optionalForeignMessage" json:"optional_foreign_message,omitempty"`
	OptionalNestedEnum     TestAllTypes_NestedEnum     `` /* 160-byte string literal not displayed */
	OptionalForeignEnum    ForeignEnum                 `` /* 151-byte string literal not displayed */
	OptionalStringPiece    string                      `protobuf:"bytes,24,opt,name=optional_string_piece,json=optionalStringPiece,proto3" json:"optional_string_piece,omitempty"`
	OptionalCord           string                      `protobuf:"bytes,25,opt,name=optional_cord,json=optionalCord,proto3" json:"optional_cord,omitempty"`
	RecursiveMessage       *TestAllTypes               `protobuf:"bytes,27,opt,name=recursive_message,json=recursiveMessage" json:"recursive_message,omitempty"`
	// 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" json:"repeated_bytes,omitempty"`
	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     `` /* 160-byte string literal not displayed */
	RepeatedForeignEnum    []ForeignEnum                 `` /* 151-byte string literal not displayed */
	RepeatedStringPiece    []string                      `protobuf:"bytes,54,rep,name=repeated_string_piece,json=repeatedStringPiece" json:"repeated_string_piece,omitempty"`
	RepeatedCord           []string                      `protobuf:"bytes,55,rep,name=repeated_cord,json=repeatedCord" json:"repeated_cord,omitempty"`
	// Map
	MapInt32Int32           map[int32]int32                        `` /* 186-byte string literal not displayed */
	MapInt64Int64           map[int64]int64                        `` /* 186-byte string literal not displayed */
	MapUint32Uint32         map[uint32]uint32                      `` /* 192-byte string literal not displayed */
	MapUint64Uint64         map[uint64]uint64                      `` /* 192-byte string literal not displayed */
	MapSint32Sint32         map[int32]int32                        `` /* 196-byte string literal not displayed */
	MapSint64Sint64         map[int64]int64                        `` /* 196-byte string literal not displayed */
	MapFixed32Fixed32       map[uint32]uint32                      `` /* 200-byte string literal not displayed */
	MapFixed64Fixed64       map[uint64]uint64                      `` /* 200-byte string literal not displayed */
	MapSfixed32Sfixed32     map[int32]int32                        `` /* 206-byte string literal not displayed */
	MapSfixed64Sfixed64     map[int64]int64                        `` /* 206-byte string literal not displayed */
	MapInt32Float           map[int32]float32                      `` /* 187-byte string literal not displayed */
	MapInt32Double          map[int32]float64                      `` /* 190-byte string literal not displayed */
	MapBoolBool             map[bool]bool                          `` /* 180-byte string literal not displayed */
	MapStringString         map[string]string                      `` /* 190-byte string literal not displayed */
	MapStringBytes          map[string][]byte                      `` /* 187-byte string literal not displayed */
	MapStringNestedMessage  map[string]*TestAllTypes_NestedMessage `` /* 206-byte string literal not displayed */
	MapStringForeignMessage map[string]*ForeignMessage             `` /* 209-byte string literal not displayed */
	MapStringNestedEnum     map[string]TestAllTypes_NestedEnum     `` /* 246-byte string literal not displayed */
	MapStringForeignEnum    map[string]ForeignEnum                 `` /* 237-byte string literal not displayed */
	// Types that are valid to be assigned to OneofField:
	//	*TestAllTypes_OneofUint32
	//	*TestAllTypes_OneofNestedMessage
	//	*TestAllTypes_OneofString
	//	*TestAllTypes_OneofBytes
	//	*TestAllTypes_OneofBool
	//	*TestAllTypes_OneofUint64
	//	*TestAllTypes_OneofFloat
	//	*TestAllTypes_OneofDouble
	//	*TestAllTypes_OneofEnum
	OneofField isTestAllTypes_OneofField `protobuf_oneof:"oneof_field"`
	// Well-known types
	OptionalBoolWrapper   *google_protobuf5.BoolValue     `protobuf:"bytes,201,opt,name=optional_bool_wrapper,json=optionalBoolWrapper" json:"optional_bool_wrapper,omitempty"`
	OptionalInt32Wrapper  *google_protobuf5.Int32Value    `protobuf:"bytes,202,opt,name=optional_int32_wrapper,json=optionalInt32Wrapper" json:"optional_int32_wrapper,omitempty"`
	OptionalInt64Wrapper  *google_protobuf5.Int64Value    `protobuf:"bytes,203,opt,name=optional_int64_wrapper,json=optionalInt64Wrapper" json:"optional_int64_wrapper,omitempty"`
	OptionalUint32Wrapper *google_protobuf5.UInt32Value   `protobuf:"bytes,204,opt,name=optional_uint32_wrapper,json=optionalUint32Wrapper" json:"optional_uint32_wrapper,omitempty"`
	OptionalUint64Wrapper *google_protobuf5.UInt64Value   `protobuf:"bytes,205,opt,name=optional_uint64_wrapper,json=optionalUint64Wrapper" json:"optional_uint64_wrapper,omitempty"`
	OptionalFloatWrapper  *google_protobuf5.FloatValue    `protobuf:"bytes,206,opt,name=optional_float_wrapper,json=optionalFloatWrapper" json:"optional_float_wrapper,omitempty"`
	OptionalDoubleWrapper *google_protobuf5.DoubleValue   `protobuf:"bytes,207,opt,name=optional_double_wrapper,json=optionalDoubleWrapper" json:"optional_double_wrapper,omitempty"`
	OptionalStringWrapper *google_protobuf5.StringValue   `protobuf:"bytes,208,opt,name=optional_string_wrapper,json=optionalStringWrapper" json:"optional_string_wrapper,omitempty"`
	OptionalBytesWrapper  *google_protobuf5.BytesValue    `protobuf:"bytes,209,opt,name=optional_bytes_wrapper,json=optionalBytesWrapper" json:"optional_bytes_wrapper,omitempty"`
	RepeatedBoolWrapper   []*google_protobuf5.BoolValue   `protobuf:"bytes,211,rep,name=repeated_bool_wrapper,json=repeatedBoolWrapper" json:"repeated_bool_wrapper,omitempty"`
	RepeatedInt32Wrapper  []*google_protobuf5.Int32Value  `protobuf:"bytes,212,rep,name=repeated_int32_wrapper,json=repeatedInt32Wrapper" json:"repeated_int32_wrapper,omitempty"`
	RepeatedInt64Wrapper  []*google_protobuf5.Int64Value  `protobuf:"bytes,213,rep,name=repeated_int64_wrapper,json=repeatedInt64Wrapper" json:"repeated_int64_wrapper,omitempty"`
	RepeatedUint32Wrapper []*google_protobuf5.UInt32Value `protobuf:"bytes,214,rep,name=repeated_uint32_wrapper,json=repeatedUint32Wrapper" json:"repeated_uint32_wrapper,omitempty"`
	RepeatedUint64Wrapper []*google_protobuf5.UInt64Value `protobuf:"bytes,215,rep,name=repeated_uint64_wrapper,json=repeatedUint64Wrapper" json:"repeated_uint64_wrapper,omitempty"`
	RepeatedFloatWrapper  []*google_protobuf5.FloatValue  `protobuf:"bytes,216,rep,name=repeated_float_wrapper,json=repeatedFloatWrapper" json:"repeated_float_wrapper,omitempty"`
	RepeatedDoubleWrapper []*google_protobuf5.DoubleValue `protobuf:"bytes,217,rep,name=repeated_double_wrapper,json=repeatedDoubleWrapper" json:"repeated_double_wrapper,omitempty"`
	RepeatedStringWrapper []*google_protobuf5.StringValue `protobuf:"bytes,218,rep,name=repeated_string_wrapper,json=repeatedStringWrapper" json:"repeated_string_wrapper,omitempty"`
	RepeatedBytesWrapper  []*google_protobuf5.BytesValue  `protobuf:"bytes,219,rep,name=repeated_bytes_wrapper,json=repeatedBytesWrapper" json:"repeated_bytes_wrapper,omitempty"`
	OptionalDuration      *google_protobuf1.Duration      `protobuf:"bytes,301,opt,name=optional_duration,json=optionalDuration" json:"optional_duration,omitempty"`
	OptionalTimestamp     *google_protobuf4.Timestamp     `protobuf:"bytes,302,opt,name=optional_timestamp,json=optionalTimestamp" json:"optional_timestamp,omitempty"`
	OptionalFieldMask     *google_protobuf2.FieldMask     `protobuf:"bytes,303,opt,name=optional_field_mask,json=optionalFieldMask" json:"optional_field_mask,omitempty"`
	OptionalStruct        *google_protobuf3.Struct        `protobuf:"bytes,304,opt,name=optional_struct,json=optionalStruct" json:"optional_struct,omitempty"`
	OptionalAny           *google_protobuf.Any            `protobuf:"bytes,305,opt,name=optional_any,json=optionalAny" json:"optional_any,omitempty"`
	OptionalValue         *google_protobuf3.Value         `protobuf:"bytes,306,opt,name=optional_value,json=optionalValue" json:"optional_value,omitempty"`
	RepeatedDuration      []*google_protobuf1.Duration    `protobuf:"bytes,311,rep,name=repeated_duration,json=repeatedDuration" json:"repeated_duration,omitempty"`
	RepeatedTimestamp     []*google_protobuf4.Timestamp   `protobuf:"bytes,312,rep,name=repeated_timestamp,json=repeatedTimestamp" json:"repeated_timestamp,omitempty"`
	RepeatedFieldmask     []*google_protobuf2.FieldMask   `protobuf:"bytes,313,rep,name=repeated_fieldmask,json=repeatedFieldmask" json:"repeated_fieldmask,omitempty"`
	RepeatedStruct        []*google_protobuf3.Struct      `protobuf:"bytes,324,rep,name=repeated_struct,json=repeatedStruct" json:"repeated_struct,omitempty"`
	RepeatedAny           []*google_protobuf.Any          `protobuf:"bytes,315,rep,name=repeated_any,json=repeatedAny" json:"repeated_any,omitempty"`
	RepeatedValue         []*google_protobuf3.Value       `protobuf:"bytes,316,rep,name=repeated_value,json=repeatedValue" json:"repeated_value,omitempty"`
	// Test field-name-to-JSON-name convention.
	// (protobuf says names can be any valid C/C++ identifier.)
	Fieldname1    int32 `protobuf:"varint,401,opt,name=fieldname1,proto3" json:"fieldname1,omitempty"`
	FieldName2    int32 `protobuf:"varint,402,opt,name=field_name2,json=fieldName2,proto3" json:"field_name2,omitempty"`
	XFieldName3   int32 `protobuf:"varint,403,opt,name=_field_name3,json=FieldName3,proto3" json:"_field_name3,omitempty"`
	Field_Name4_  int32 `protobuf:"varint,404,opt,name=field__name4_,json=fieldName4,proto3" json:"field__name4_,omitempty"`
	Field0Name5   int32 `protobuf:"varint,405,opt,name=field0name5,proto3" json:"field0name5,omitempty"`
	Field_0Name6  int32 `protobuf:"varint,406,opt,name=field_0_name6,json=field0Name6,proto3" json:"field_0_name6,omitempty"`
	FieldName7    int32 `protobuf:"varint,407,opt,name=fieldName7,proto3" json:"fieldName7,omitempty"`
	FieldName8    int32 `protobuf:"varint,408,opt,name=FieldName8,proto3" json:"FieldName8,omitempty"`
	Field_Name9   int32 `protobuf:"varint,409,opt,name=field_Name9,json=fieldName9,proto3" json:"field_Name9,omitempty"`
	Field_Name10  int32 `protobuf:"varint,410,opt,name=Field_Name10,json=FieldName10,proto3" json:"Field_Name10,omitempty"`
	FIELD_NAME11  int32 `protobuf:"varint,411,opt,name=FIELD_NAME11,json=FIELDNAME11,proto3" json:"FIELD_NAME11,omitempty"`
	FIELDName12   int32 `protobuf:"varint,412,opt,name=FIELD_name12,json=FIELDName12,proto3" json:"FIELD_name12,omitempty"`
	XFieldName13  int32 `protobuf:"varint,413,opt,name=__field_name13,json=FieldName13,proto3" json:"__field_name13,omitempty"`
	X_FieldName14 int32 `protobuf:"varint,414,opt,name=__Field_name14,json=FieldName14,proto3" json:"__Field_name14,omitempty"`
	Field_Name15  int32 `protobuf:"varint,415,opt,name=field__name15,json=fieldName15,proto3" json:"field__name15,omitempty"`
	Field__Name16 int32 `protobuf:"varint,416,opt,name=field__Name16,json=fieldName16,proto3" json:"field__Name16,omitempty"`
	FieldName17__ int32 `protobuf:"varint,417,opt,name=field_name17__,json=fieldName17,proto3" json:"field_name17__,omitempty"`
	FieldName18__ int32 `protobuf:"varint,418,opt,name=Field_name18__,json=FieldName18,proto3" json:"Field_name18__,omitempty"`
}

This proto includes every type of field in both singular and repeated forms.

func (*TestAllTypes) Descriptor

func (*TestAllTypes) Descriptor() ([]byte, []int)

func (*TestAllTypes) GetFIELDName12

func (m *TestAllTypes) GetFIELDName12() int32

func (*TestAllTypes) GetFIELD_NAME11

func (m *TestAllTypes) GetFIELD_NAME11() int32

func (*TestAllTypes) GetField0Name5

func (m *TestAllTypes) GetField0Name5() int32

func (*TestAllTypes) GetFieldName17__

func (m *TestAllTypes) GetFieldName17__() int32

func (*TestAllTypes) GetFieldName18__

func (m *TestAllTypes) GetFieldName18__() int32

func (*TestAllTypes) GetFieldName2

func (m *TestAllTypes) GetFieldName2() int32

func (*TestAllTypes) GetFieldName7

func (m *TestAllTypes) GetFieldName7() int32

func (*TestAllTypes) GetFieldName8

func (m *TestAllTypes) GetFieldName8() int32

func (*TestAllTypes) GetField_0Name6

func (m *TestAllTypes) GetField_0Name6() int32

func (*TestAllTypes) GetField_Name10

func (m *TestAllTypes) GetField_Name10() int32

func (*TestAllTypes) GetField_Name15

func (m *TestAllTypes) GetField_Name15() int32

func (*TestAllTypes) GetField_Name4_

func (m *TestAllTypes) GetField_Name4_() int32

func (*TestAllTypes) GetField_Name9

func (m *TestAllTypes) GetField_Name9() int32

func (*TestAllTypes) GetField__Name16

func (m *TestAllTypes) GetField__Name16() int32

func (*TestAllTypes) GetFieldname1

func (m *TestAllTypes) GetFieldname1() int32

func (*TestAllTypes) GetMapBoolBool

func (m *TestAllTypes) GetMapBoolBool() map[bool]bool

func (*TestAllTypes) GetMapFixed32Fixed32

func (m *TestAllTypes) GetMapFixed32Fixed32() map[uint32]uint32

func (*TestAllTypes) GetMapFixed64Fixed64

func (m *TestAllTypes) GetMapFixed64Fixed64() map[uint64]uint64

func (*TestAllTypes) GetMapInt32Double

func (m *TestAllTypes) GetMapInt32Double() map[int32]float64

func (*TestAllTypes) GetMapInt32Float

func (m *TestAllTypes) GetMapInt32Float() map[int32]float32

func (*TestAllTypes) GetMapInt32Int32

func (m *TestAllTypes) GetMapInt32Int32() map[int32]int32

func (*TestAllTypes) GetMapInt64Int64

func (m *TestAllTypes) GetMapInt64Int64() map[int64]int64

func (*TestAllTypes) GetMapSfixed32Sfixed32

func (m *TestAllTypes) GetMapSfixed32Sfixed32() map[int32]int32

func (*TestAllTypes) GetMapSfixed64Sfixed64

func (m *TestAllTypes) GetMapSfixed64Sfixed64() map[int64]int64

func (*TestAllTypes) GetMapSint32Sint32

func (m *TestAllTypes) GetMapSint32Sint32() map[int32]int32

func (*TestAllTypes) GetMapSint64Sint64

func (m *TestAllTypes) GetMapSint64Sint64() map[int64]int64

func (*TestAllTypes) GetMapStringBytes

func (m *TestAllTypes) GetMapStringBytes() map[string][]byte

func (*TestAllTypes) GetMapStringForeignEnum

func (m *TestAllTypes) GetMapStringForeignEnum() map[string]ForeignEnum

func (*TestAllTypes) GetMapStringForeignMessage

func (m *TestAllTypes) GetMapStringForeignMessage() map[string]*ForeignMessage

func (*TestAllTypes) GetMapStringNestedEnum

func (m *TestAllTypes) GetMapStringNestedEnum() map[string]TestAllTypes_NestedEnum

func (*TestAllTypes) GetMapStringNestedMessage

func (m *TestAllTypes) GetMapStringNestedMessage() map[string]*TestAllTypes_NestedMessage

func (*TestAllTypes) GetMapStringString

func (m *TestAllTypes) GetMapStringString() map[string]string

func (*TestAllTypes) GetMapUint32Uint32

func (m *TestAllTypes) GetMapUint32Uint32() map[uint32]uint32

func (*TestAllTypes) GetMapUint64Uint64

func (m *TestAllTypes) GetMapUint64Uint64() map[uint64]uint64

func (*TestAllTypes) GetOneofBool

func (m *TestAllTypes) GetOneofBool() bool

func (*TestAllTypes) GetOneofBytes

func (m *TestAllTypes) GetOneofBytes() []byte

func (*TestAllTypes) GetOneofDouble

func (m *TestAllTypes) GetOneofDouble() float64

func (*TestAllTypes) GetOneofEnum

func (m *TestAllTypes) GetOneofEnum() TestAllTypes_NestedEnum

func (*TestAllTypes) GetOneofField

func (m *TestAllTypes) GetOneofField() isTestAllTypes_OneofField

func (*TestAllTypes) GetOneofFloat

func (m *TestAllTypes) GetOneofFloat() float32

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) GetOneofUint64

func (m *TestAllTypes) GetOneofUint64() uint64

func (*TestAllTypes) GetOptionalAny

func (m *TestAllTypes) GetOptionalAny() *google_protobuf.Any

func (*TestAllTypes) GetOptionalBool

func (m *TestAllTypes) GetOptionalBool() bool

func (*TestAllTypes) GetOptionalBoolWrapper

func (m *TestAllTypes) GetOptionalBoolWrapper() *google_protobuf5.BoolValue

func (*TestAllTypes) GetOptionalBytes

func (m *TestAllTypes) GetOptionalBytes() []byte

func (*TestAllTypes) GetOptionalBytesWrapper

func (m *TestAllTypes) GetOptionalBytesWrapper() *google_protobuf5.BytesValue

func (*TestAllTypes) GetOptionalCord

func (m *TestAllTypes) GetOptionalCord() string

func (*TestAllTypes) GetOptionalDouble

func (m *TestAllTypes) GetOptionalDouble() float64

func (*TestAllTypes) GetOptionalDoubleWrapper

func (m *TestAllTypes) GetOptionalDoubleWrapper() *google_protobuf5.DoubleValue

func (*TestAllTypes) GetOptionalDuration

func (m *TestAllTypes) GetOptionalDuration() *google_protobuf1.Duration

func (*TestAllTypes) GetOptionalFieldMask

func (m *TestAllTypes) GetOptionalFieldMask() *google_protobuf2.FieldMask

func (*TestAllTypes) GetOptionalFixed32

func (m *TestAllTypes) GetOptionalFixed32() uint32

func (*TestAllTypes) GetOptionalFixed64

func (m *TestAllTypes) GetOptionalFixed64() uint64

func (*TestAllTypes) GetOptionalFloat

func (m *TestAllTypes) GetOptionalFloat() float32

func (*TestAllTypes) GetOptionalFloatWrapper

func (m *TestAllTypes) GetOptionalFloatWrapper() *google_protobuf5.FloatValue

func (*TestAllTypes) GetOptionalForeignEnum

func (m *TestAllTypes) GetOptionalForeignEnum() ForeignEnum

func (*TestAllTypes) GetOptionalForeignMessage

func (m *TestAllTypes) GetOptionalForeignMessage() *ForeignMessage

func (*TestAllTypes) GetOptionalInt32

func (m *TestAllTypes) GetOptionalInt32() int32

func (*TestAllTypes) GetOptionalInt32Wrapper

func (m *TestAllTypes) GetOptionalInt32Wrapper() *google_protobuf5.Int32Value

func (*TestAllTypes) GetOptionalInt64

func (m *TestAllTypes) GetOptionalInt64() int64

func (*TestAllTypes) GetOptionalInt64Wrapper

func (m *TestAllTypes) GetOptionalInt64Wrapper() *google_protobuf5.Int64Value

func (*TestAllTypes) GetOptionalNestedEnum

func (m *TestAllTypes) GetOptionalNestedEnum() TestAllTypes_NestedEnum

func (*TestAllTypes) GetOptionalNestedMessage

func (m *TestAllTypes) GetOptionalNestedMessage() *TestAllTypes_NestedMessage

func (*TestAllTypes) GetOptionalSfixed32

func (m *TestAllTypes) GetOptionalSfixed32() int32

func (*TestAllTypes) GetOptionalSfixed64

func (m *TestAllTypes) GetOptionalSfixed64() int64

func (*TestAllTypes) GetOptionalSint32

func (m *TestAllTypes) GetOptionalSint32() int32

func (*TestAllTypes) GetOptionalSint64

func (m *TestAllTypes) GetOptionalSint64() int64

func (*TestAllTypes) GetOptionalString

func (m *TestAllTypes) GetOptionalString() string

func (*TestAllTypes) GetOptionalStringPiece

func (m *TestAllTypes) GetOptionalStringPiece() string

func (*TestAllTypes) GetOptionalStringWrapper

func (m *TestAllTypes) GetOptionalStringWrapper() *google_protobuf5.StringValue

func (*TestAllTypes) GetOptionalStruct

func (m *TestAllTypes) GetOptionalStruct() *google_protobuf3.Struct

func (*TestAllTypes) GetOptionalTimestamp

func (m *TestAllTypes) GetOptionalTimestamp() *google_protobuf4.Timestamp

func (*TestAllTypes) GetOptionalUint32

func (m *TestAllTypes) GetOptionalUint32() uint32

func (*TestAllTypes) GetOptionalUint32Wrapper

func (m *TestAllTypes) GetOptionalUint32Wrapper() *google_protobuf5.UInt32Value

func (*TestAllTypes) GetOptionalUint64

func (m *TestAllTypes) GetOptionalUint64() uint64

func (*TestAllTypes) GetOptionalUint64Wrapper

func (m *TestAllTypes) GetOptionalUint64Wrapper() *google_protobuf5.UInt64Value

func (*TestAllTypes) GetOptionalValue

func (m *TestAllTypes) GetOptionalValue() *google_protobuf3.Value

func (*TestAllTypes) GetRecursiveMessage

func (m *TestAllTypes) GetRecursiveMessage() *TestAllTypes

func (*TestAllTypes) GetRepeatedAny

func (m *TestAllTypes) GetRepeatedAny() []*google_protobuf.Any

func (*TestAllTypes) GetRepeatedBool

func (m *TestAllTypes) GetRepeatedBool() []bool

func (*TestAllTypes) GetRepeatedBoolWrapper

func (m *TestAllTypes) GetRepeatedBoolWrapper() []*google_protobuf5.BoolValue

func (*TestAllTypes) GetRepeatedBytes

func (m *TestAllTypes) GetRepeatedBytes() [][]byte

func (*TestAllTypes) GetRepeatedBytesWrapper

func (m *TestAllTypes) GetRepeatedBytesWrapper() []*google_protobuf5.BytesValue

func (*TestAllTypes) GetRepeatedCord

func (m *TestAllTypes) GetRepeatedCord() []string

func (*TestAllTypes) GetRepeatedDouble

func (m *TestAllTypes) GetRepeatedDouble() []float64

func (*TestAllTypes) GetRepeatedDoubleWrapper

func (m *TestAllTypes) GetRepeatedDoubleWrapper() []*google_protobuf5.DoubleValue

func (*TestAllTypes) GetRepeatedDuration

func (m *TestAllTypes) GetRepeatedDuration() []*google_protobuf1.Duration

func (*TestAllTypes) GetRepeatedFieldmask

func (m *TestAllTypes) GetRepeatedFieldmask() []*google_protobuf2.FieldMask

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) GetRepeatedFloatWrapper

func (m *TestAllTypes) GetRepeatedFloatWrapper() []*google_protobuf5.FloatValue

func (*TestAllTypes) GetRepeatedForeignEnum

func (m *TestAllTypes) GetRepeatedForeignEnum() []ForeignEnum

func (*TestAllTypes) GetRepeatedForeignMessage

func (m *TestAllTypes) GetRepeatedForeignMessage() []*ForeignMessage

func (*TestAllTypes) GetRepeatedInt32

func (m *TestAllTypes) GetRepeatedInt32() []int32

func (*TestAllTypes) GetRepeatedInt32Wrapper

func (m *TestAllTypes) GetRepeatedInt32Wrapper() []*google_protobuf5.Int32Value

func (*TestAllTypes) GetRepeatedInt64

func (m *TestAllTypes) GetRepeatedInt64() []int64

func (*TestAllTypes) GetRepeatedInt64Wrapper

func (m *TestAllTypes) GetRepeatedInt64Wrapper() []*google_protobuf5.Int64Value

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) GetRepeatedStringPiece

func (m *TestAllTypes) GetRepeatedStringPiece() []string

func (*TestAllTypes) GetRepeatedStringWrapper

func (m *TestAllTypes) GetRepeatedStringWrapper() []*google_protobuf5.StringValue

func (*TestAllTypes) GetRepeatedStruct

func (m *TestAllTypes) GetRepeatedStruct() []*google_protobuf3.Struct

func (*TestAllTypes) GetRepeatedTimestamp

func (m *TestAllTypes) GetRepeatedTimestamp() []*google_protobuf4.Timestamp

func (*TestAllTypes) GetRepeatedUint32

func (m *TestAllTypes) GetRepeatedUint32() []uint32

func (*TestAllTypes) GetRepeatedUint32Wrapper

func (m *TestAllTypes) GetRepeatedUint32Wrapper() []*google_protobuf5.UInt32Value

func (*TestAllTypes) GetRepeatedUint64

func (m *TestAllTypes) GetRepeatedUint64() []uint64

func (*TestAllTypes) GetRepeatedUint64Wrapper

func (m *TestAllTypes) GetRepeatedUint64Wrapper() []*google_protobuf5.UInt64Value

func (*TestAllTypes) GetRepeatedValue

func (m *TestAllTypes) GetRepeatedValue() []*google_protobuf3.Value

func (*TestAllTypes) GetXFieldName13

func (m *TestAllTypes) GetXFieldName13() int32

func (*TestAllTypes) GetXFieldName3

func (m *TestAllTypes) GetXFieldName3() int32

func (*TestAllTypes) GetX_FieldName14

func (m *TestAllTypes) GetX_FieldName14() int32

func (*TestAllTypes) ProtoMessage

func (*TestAllTypes) ProtoMessage()

func (*TestAllTypes) Reset

func (m *TestAllTypes) Reset()

func (*TestAllTypes) String

func (m *TestAllTypes) String() string

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.

type TestAllTypes_NestedEnum

type TestAllTypes_NestedEnum int32
const (
	TestAllTypes_FOO TestAllTypes_NestedEnum = 0
	TestAllTypes_BAR TestAllTypes_NestedEnum = 1
	TestAllTypes_BAZ TestAllTypes_NestedEnum = 2
	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 {
	A           int32         `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"`
	Corecursive *TestAllTypes `protobuf:"bytes,2,opt,name=corecursive" json:"corecursive,omitempty"`
}

func (*TestAllTypes_NestedMessage) Descriptor

func (*TestAllTypes_NestedMessage) Descriptor() ([]byte, []int)

func (*TestAllTypes_NestedMessage) GetA

func (*TestAllTypes_NestedMessage) GetCorecursive

func (m *TestAllTypes_NestedMessage) GetCorecursive() *TestAllTypes

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

type TestAllTypes_OneofBool

type TestAllTypes_OneofBool struct {
	OneofBool bool `protobuf:"varint,115,opt,name=oneof_bool,json=oneofBool,proto3,oneof"`
}

type TestAllTypes_OneofBytes

type TestAllTypes_OneofBytes struct {
	OneofBytes []byte `protobuf:"bytes,114,opt,name=oneof_bytes,json=oneofBytes,proto3,oneof"`
}

type TestAllTypes_OneofDouble

type TestAllTypes_OneofDouble struct {
	OneofDouble float64 `protobuf:"fixed64,118,opt,name=oneof_double,json=oneofDouble,proto3,oneof"`
}

type TestAllTypes_OneofEnum

type TestAllTypes_OneofEnum struct {
	OneofEnum TestAllTypes_NestedEnum `protobuf:"varint,119,opt,name=oneof_enum,json=oneofEnum,proto3,enum=conformance.TestAllTypes_NestedEnum,oneof"`
}

type TestAllTypes_OneofFloat

type TestAllTypes_OneofFloat struct {
	OneofFloat float32 `protobuf:"fixed32,117,opt,name=oneof_float,json=oneofFloat,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,proto3,oneof"`
}

type TestAllTypes_OneofUint32

type TestAllTypes_OneofUint32 struct {
	OneofUint32 uint32 `protobuf:"varint,111,opt,name=oneof_uint32,json=oneofUint32,proto3,oneof"`
}

type TestAllTypes_OneofUint64

type TestAllTypes_OneofUint64 struct {
	OneofUint64 uint64 `protobuf:"varint,116,opt,name=oneof_uint64,json=oneofUint64,proto3,oneof"`
}

type WireFormat

type WireFormat int32
const (
	WireFormat_UNSPECIFIED WireFormat = 0
	WireFormat_PROTOBUF    WireFormat = 1
	WireFormat_JSON        WireFormat = 2
)

func (WireFormat) EnumDescriptor

func (WireFormat) EnumDescriptor() ([]byte, []int)

func (WireFormat) String

func (x WireFormat) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL