proto3pb

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: Apache-2.0, BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GlobalEnum_name = map[int32]string{
		0: "GOO",
		1: "GAR",
		2: "GAZ",
	}
	GlobalEnum_value = map[string]int32{
		"GOO": 0,
		"GAR": 1,
		"GAZ": 2,
	}
)

Enum value maps for GlobalEnum.

View Source
var (
	TestAllTypes_NestedEnum_name = map[int32]string{
		0: "FOO",
		1: "BAR",
		2: "BAZ",
	}
	TestAllTypes_NestedEnum_value = map[string]int32{
		"FOO": 0,
		"BAR": 1,
		"BAZ": 2,
	}
)

Enum value maps for TestAllTypes_NestedEnum.

View Source
var (
	ImportedGlobalEnum_name = map[int32]string{
		0: "IMPORT_FOO",
		1: "IMPORT_BAR",
		2: "IMPORT_BAZ",
	}
	ImportedGlobalEnum_value = map[string]int32{
		"IMPORT_FOO": 0,
		"IMPORT_BAR": 1,
		"IMPORT_BAZ": 2,
	}
)

Enum value maps for ImportedGlobalEnum.

View Source
var File_test_proto3pb_test_all_types_proto protoreflect.FileDescriptor
View Source
var File_test_proto3pb_test_import_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type GlobalEnum

type GlobalEnum int32

This proto tests that global enums are resolved correctly.

const (
	GlobalEnum_GOO GlobalEnum = 0
	GlobalEnum_GAR GlobalEnum = 1
	GlobalEnum_GAZ GlobalEnum = 2
)

func (GlobalEnum) Descriptor added in v0.7.0

func (GlobalEnum) Descriptor() protoreflect.EnumDescriptor

func (GlobalEnum) Enum added in v0.7.0

func (x GlobalEnum) Enum() *GlobalEnum

func (GlobalEnum) EnumDescriptor deprecated

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

Deprecated: Use GlobalEnum.Descriptor instead.

func (GlobalEnum) Number added in v0.7.0

func (x GlobalEnum) Number() protoreflect.EnumNumber

func (GlobalEnum) String

func (x GlobalEnum) String() string

func (GlobalEnum) Type added in v0.7.0

type ImportedGlobalEnum added in v0.4.0

type ImportedGlobalEnum int32
const (
	ImportedGlobalEnum_IMPORT_FOO ImportedGlobalEnum = 0
	ImportedGlobalEnum_IMPORT_BAR ImportedGlobalEnum = 1
	ImportedGlobalEnum_IMPORT_BAZ ImportedGlobalEnum = 2
)

func (ImportedGlobalEnum) Descriptor added in v0.7.0

func (ImportedGlobalEnum) Enum added in v0.7.0

func (ImportedGlobalEnum) EnumDescriptor deprecated added in v0.4.0

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

Deprecated: Use ImportedGlobalEnum.Descriptor instead.

func (ImportedGlobalEnum) Number added in v0.7.0

func (ImportedGlobalEnum) String added in v0.4.0

func (x ImportedGlobalEnum) String() string

func (ImportedGlobalEnum) Type added in v0.7.0

type NestedTestAllTypes

type NestedTestAllTypes struct {
	Child   *NestedTestAllTypes `protobuf:"bytes,1,opt,name=child,proto3" json:"child,omitempty"`
	Payload *TestAllTypes       `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

This proto includes a recursively nested message.

func (*NestedTestAllTypes) Descriptor deprecated

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

Deprecated: Use NestedTestAllTypes.ProtoReflect.Descriptor instead.

func (*NestedTestAllTypes) GetChild

func (x *NestedTestAllTypes) GetChild() *NestedTestAllTypes

func (*NestedTestAllTypes) GetPayload

func (x *NestedTestAllTypes) GetPayload() *TestAllTypes

func (*NestedTestAllTypes) ProtoMessage

func (*NestedTestAllTypes) ProtoMessage()

func (*NestedTestAllTypes) ProtoReflect added in v0.7.0

func (x *NestedTestAllTypes) ProtoReflect() protoreflect.Message

func (*NestedTestAllTypes) Reset

func (x *NestedTestAllTypes) Reset()

func (*NestedTestAllTypes) String

func (x *NestedTestAllTypes) String() string

type TestAllTypes

type TestAllTypes struct {

	// Singular
	SingleInt32    int32                   `protobuf:"varint,1,opt,name=single_int32,json=singleInt32,proto3" json:"single_int32,omitempty"`
	SingleInt64    int64                   `protobuf:"varint,2,opt,name=single_int64,json=singleInt64,proto3" json:"single_int64,omitempty"`
	SingleUint32   uint32                  `protobuf:"varint,3,opt,name=single_uint32,json=singleUint32,proto3" json:"single_uint32,omitempty"`
	SingleUint64   uint64                  `protobuf:"varint,4,opt,name=single_uint64,json=singleUint64,proto3" json:"single_uint64,omitempty"`
	SingleSint32   int32                   `protobuf:"zigzag32,5,opt,name=single_sint32,json=singleSint32,proto3" json:"single_sint32,omitempty"`
	SingleSint64   int64                   `protobuf:"zigzag64,6,opt,name=single_sint64,json=singleSint64,proto3" json:"single_sint64,omitempty"`
	SingleFixed32  uint32                  `protobuf:"fixed32,7,opt,name=single_fixed32,json=singleFixed32,proto3" json:"single_fixed32,omitempty"`
	SingleFixed64  uint64                  `protobuf:"fixed64,8,opt,name=single_fixed64,json=singleFixed64,proto3" json:"single_fixed64,omitempty"`
	SingleSfixed32 int32                   `protobuf:"fixed32,9,opt,name=single_sfixed32,json=singleSfixed32,proto3" json:"single_sfixed32,omitempty"`
	SingleSfixed64 int64                   `protobuf:"fixed64,10,opt,name=single_sfixed64,json=singleSfixed64,proto3" json:"single_sfixed64,omitempty"`
	SingleFloat    float32                 `protobuf:"fixed32,11,opt,name=single_float,json=singleFloat,proto3" json:"single_float,omitempty"`
	SingleDouble   float64                 `protobuf:"fixed64,12,opt,name=single_double,json=singleDouble,proto3" json:"single_double,omitempty"`
	SingleBool     bool                    `protobuf:"varint,13,opt,name=single_bool,json=singleBool,proto3" json:"single_bool,omitempty"`
	SingleString   string                  `protobuf:"bytes,14,opt,name=single_string,json=singleString,proto3" json:"single_string,omitempty"`
	SingleBytes    []byte                  `protobuf:"bytes,15,opt,name=single_bytes,json=singleBytes,proto3" json:"single_bytes,omitempty"`
	StandaloneEnum TestAllTypes_NestedEnum `` /* 158-byte string literal not displayed */
	// Wellknown.
	SingleAny           *anypb.Any              `protobuf:"bytes,100,opt,name=single_any,json=singleAny,proto3" json:"single_any,omitempty"`
	SingleDuration      *durationpb.Duration    `protobuf:"bytes,101,opt,name=single_duration,json=singleDuration,proto3" json:"single_duration,omitempty"`
	SingleTimestamp     *timestamppb.Timestamp  `protobuf:"bytes,102,opt,name=single_timestamp,json=singleTimestamp,proto3" json:"single_timestamp,omitempty"`
	SingleStruct        *structpb.Struct        `protobuf:"bytes,103,opt,name=single_struct,json=singleStruct,proto3" json:"single_struct,omitempty"`
	SingleValue         *structpb.Value         `protobuf:"bytes,104,opt,name=single_value,json=singleValue,proto3" json:"single_value,omitempty"`
	SingleInt64Wrapper  *wrapperspb.Int64Value  `protobuf:"bytes,105,opt,name=single_int64_wrapper,json=singleInt64Wrapper,proto3" json:"single_int64_wrapper,omitempty"`
	SingleInt32Wrapper  *wrapperspb.Int32Value  `protobuf:"bytes,106,opt,name=single_int32_wrapper,json=singleInt32Wrapper,proto3" json:"single_int32_wrapper,omitempty"`
	SingleDoubleWrapper *wrapperspb.DoubleValue `protobuf:"bytes,107,opt,name=single_double_wrapper,json=singleDoubleWrapper,proto3" json:"single_double_wrapper,omitempty"`
	SingleFloatWrapper  *wrapperspb.FloatValue  `protobuf:"bytes,108,opt,name=single_float_wrapper,json=singleFloatWrapper,proto3" json:"single_float_wrapper,omitempty"`
	SingleUint64Wrapper *wrapperspb.UInt64Value `protobuf:"bytes,109,opt,name=single_uint64_wrapper,json=singleUint64Wrapper,proto3" json:"single_uint64_wrapper,omitempty"`
	SingleUint32Wrapper *wrapperspb.UInt32Value `protobuf:"bytes,110,opt,name=single_uint32_wrapper,json=singleUint32Wrapper,proto3" json:"single_uint32_wrapper,omitempty"`
	SingleStringWrapper *wrapperspb.StringValue `protobuf:"bytes,111,opt,name=single_string_wrapper,json=singleStringWrapper,proto3" json:"single_string_wrapper,omitempty"`
	SingleBoolWrapper   *wrapperspb.BoolValue   `protobuf:"bytes,112,opt,name=single_bool_wrapper,json=singleBoolWrapper,proto3" json:"single_bool_wrapper,omitempty"`
	SingleBytesWrapper  *wrapperspb.BytesValue  `protobuf:"bytes,113,opt,name=single_bytes_wrapper,json=singleBytesWrapper,proto3" json:"single_bytes_wrapper,omitempty"`
	// Nested messages
	//
	// Types that are assignable to NestedType:
	//	*TestAllTypes_SingleNestedMessage
	//	*TestAllTypes_SingleNestedEnum
	NestedType isTestAllTypes_NestedType `protobuf_oneof:"nested_type"`
	// Repeated
	RepeatedInt32         []int32                       `protobuf:"varint,31,rep,packed,name=repeated_int32,json=repeatedInt32,proto3" json:"repeated_int32,omitempty"`
	RepeatedInt64         []int64                       `protobuf:"varint,32,rep,packed,name=repeated_int64,json=repeatedInt64,proto3" json:"repeated_int64,omitempty"`
	RepeatedUint32        []uint32                      `protobuf:"varint,33,rep,packed,name=repeated_uint32,json=repeatedUint32,proto3" json:"repeated_uint32,omitempty"`
	RepeatedUint64        []uint64                      `protobuf:"varint,34,rep,packed,name=repeated_uint64,json=repeatedUint64,proto3" json:"repeated_uint64,omitempty"`
	RepeatedSint32        []int32                       `protobuf:"zigzag32,35,rep,packed,name=repeated_sint32,json=repeatedSint32,proto3" json:"repeated_sint32,omitempty"`
	RepeatedSint64        []int64                       `protobuf:"zigzag64,36,rep,packed,name=repeated_sint64,json=repeatedSint64,proto3" json:"repeated_sint64,omitempty"`
	RepeatedFixed32       []uint32                      `protobuf:"fixed32,37,rep,packed,name=repeated_fixed32,json=repeatedFixed32,proto3" json:"repeated_fixed32,omitempty"`
	RepeatedFixed64       []uint64                      `protobuf:"fixed64,38,rep,packed,name=repeated_fixed64,json=repeatedFixed64,proto3" json:"repeated_fixed64,omitempty"`
	RepeatedSfixed32      []int32                       `protobuf:"fixed32,39,rep,packed,name=repeated_sfixed32,json=repeatedSfixed32,proto3" json:"repeated_sfixed32,omitempty"`
	RepeatedSfixed64      []int64                       `protobuf:"fixed64,40,rep,packed,name=repeated_sfixed64,json=repeatedSfixed64,proto3" json:"repeated_sfixed64,omitempty"`
	RepeatedFloat         []float32                     `protobuf:"fixed32,41,rep,packed,name=repeated_float,json=repeatedFloat,proto3" json:"repeated_float,omitempty"`
	RepeatedDouble        []float64                     `protobuf:"fixed64,42,rep,packed,name=repeated_double,json=repeatedDouble,proto3" json:"repeated_double,omitempty"`
	RepeatedBool          []bool                        `protobuf:"varint,43,rep,packed,name=repeated_bool,json=repeatedBool,proto3" json:"repeated_bool,omitempty"`
	RepeatedString        []string                      `protobuf:"bytes,44,rep,name=repeated_string,json=repeatedString,proto3" json:"repeated_string,omitempty"`
	RepeatedBytes         [][]byte                      `protobuf:"bytes,45,rep,name=repeated_bytes,json=repeatedBytes,proto3" json:"repeated_bytes,omitempty"`
	RepeatedNestedMessage []*TestAllTypes_NestedMessage `` /* 127-byte string literal not displayed */
	RepeatedNestedEnum    []TestAllTypes_NestedEnum     `` /* 179-byte string literal not displayed */
	RepeatedStringPiece   []string                      `protobuf:"bytes,54,rep,name=repeated_string_piece,json=repeatedStringPiece,proto3" json:"repeated_string_piece,omitempty"`
	RepeatedCord          []string                      `protobuf:"bytes,55,rep,name=repeated_cord,json=repeatedCord,proto3" json:"repeated_cord,omitempty"`
	RepeatedLazyMessage   []*TestAllTypes_NestedMessage `protobuf:"bytes,57,rep,name=repeated_lazy_message,json=repeatedLazyMessage,proto3" json:"repeated_lazy_message,omitempty"`
	// Map
	MapStringString    map[string]string             `` /* 197-byte string literal not displayed */
	MapInt64NestedType map[int64]*NestedTestAllTypes `` /* 209-byte string literal not displayed */
	// Imports
	ImportedEnums []ImportedGlobalEnum `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

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

func (*TestAllTypes) Descriptor deprecated

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

Deprecated: Use TestAllTypes.ProtoReflect.Descriptor instead.

func (*TestAllTypes) GetImportedEnums added in v0.4.0

func (x *TestAllTypes) GetImportedEnums() []ImportedGlobalEnum

func (*TestAllTypes) GetMapInt64NestedType

func (x *TestAllTypes) GetMapInt64NestedType() map[int64]*NestedTestAllTypes

func (*TestAllTypes) GetMapStringString

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

func (*TestAllTypes) GetNestedType

func (m *TestAllTypes) GetNestedType() isTestAllTypes_NestedType

func (*TestAllTypes) GetRepeatedBool

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

func (*TestAllTypes) GetRepeatedBytes

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

func (*TestAllTypes) GetRepeatedCord

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

func (*TestAllTypes) GetRepeatedDouble

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

func (*TestAllTypes) GetRepeatedFixed32

func (x *TestAllTypes) GetRepeatedFixed32() []uint32

func (*TestAllTypes) GetRepeatedFixed64

func (x *TestAllTypes) GetRepeatedFixed64() []uint64

func (*TestAllTypes) GetRepeatedFloat

func (x *TestAllTypes) GetRepeatedFloat() []float32

func (*TestAllTypes) GetRepeatedInt32

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

func (*TestAllTypes) GetRepeatedInt64

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

func (*TestAllTypes) GetRepeatedLazyMessage

func (x *TestAllTypes) GetRepeatedLazyMessage() []*TestAllTypes_NestedMessage

func (*TestAllTypes) GetRepeatedNestedEnum

func (x *TestAllTypes) GetRepeatedNestedEnum() []TestAllTypes_NestedEnum

func (*TestAllTypes) GetRepeatedNestedMessage

func (x *TestAllTypes) GetRepeatedNestedMessage() []*TestAllTypes_NestedMessage

func (*TestAllTypes) GetRepeatedSfixed32

func (x *TestAllTypes) GetRepeatedSfixed32() []int32

func (*TestAllTypes) GetRepeatedSfixed64

func (x *TestAllTypes) GetRepeatedSfixed64() []int64

func (*TestAllTypes) GetRepeatedSint32

func (x *TestAllTypes) GetRepeatedSint32() []int32

func (*TestAllTypes) GetRepeatedSint64

func (x *TestAllTypes) GetRepeatedSint64() []int64

func (*TestAllTypes) GetRepeatedString

func (x *TestAllTypes) GetRepeatedString() []string

func (*TestAllTypes) GetRepeatedStringPiece

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

func (*TestAllTypes) GetRepeatedUint32

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

func (*TestAllTypes) GetRepeatedUint64

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

func (*TestAllTypes) GetSingleAny

func (x *TestAllTypes) GetSingleAny() *anypb.Any

func (*TestAllTypes) GetSingleBool

func (x *TestAllTypes) GetSingleBool() bool

func (*TestAllTypes) GetSingleBoolWrapper added in v0.3.0

func (x *TestAllTypes) GetSingleBoolWrapper() *wrapperspb.BoolValue

func (*TestAllTypes) GetSingleBytes

func (x *TestAllTypes) GetSingleBytes() []byte

func (*TestAllTypes) GetSingleBytesWrapper added in v0.3.0

func (x *TestAllTypes) GetSingleBytesWrapper() *wrapperspb.BytesValue

func (*TestAllTypes) GetSingleDouble

func (x *TestAllTypes) GetSingleDouble() float64

func (*TestAllTypes) GetSingleDoubleWrapper added in v0.3.0

func (x *TestAllTypes) GetSingleDoubleWrapper() *wrapperspb.DoubleValue

func (*TestAllTypes) GetSingleDuration

func (x *TestAllTypes) GetSingleDuration() *durationpb.Duration

func (*TestAllTypes) GetSingleFixed32

func (x *TestAllTypes) GetSingleFixed32() uint32

func (*TestAllTypes) GetSingleFixed64

func (x *TestAllTypes) GetSingleFixed64() uint64

func (*TestAllTypes) GetSingleFloat

func (x *TestAllTypes) GetSingleFloat() float32

func (*TestAllTypes) GetSingleFloatWrapper added in v0.3.0

func (x *TestAllTypes) GetSingleFloatWrapper() *wrapperspb.FloatValue

func (*TestAllTypes) GetSingleInt32

func (x *TestAllTypes) GetSingleInt32() int32

func (*TestAllTypes) GetSingleInt32Wrapper added in v0.3.0

func (x *TestAllTypes) GetSingleInt32Wrapper() *wrapperspb.Int32Value

func (*TestAllTypes) GetSingleInt64

func (x *TestAllTypes) GetSingleInt64() int64

func (*TestAllTypes) GetSingleInt64Wrapper

func (x *TestAllTypes) GetSingleInt64Wrapper() *wrapperspb.Int64Value

func (*TestAllTypes) GetSingleNestedEnum

func (x *TestAllTypes) GetSingleNestedEnum() TestAllTypes_NestedEnum

func (*TestAllTypes) GetSingleNestedMessage

func (x *TestAllTypes) GetSingleNestedMessage() *TestAllTypes_NestedMessage

func (*TestAllTypes) GetSingleSfixed32

func (x *TestAllTypes) GetSingleSfixed32() int32

func (*TestAllTypes) GetSingleSfixed64

func (x *TestAllTypes) GetSingleSfixed64() int64

func (*TestAllTypes) GetSingleSint32

func (x *TestAllTypes) GetSingleSint32() int32

func (*TestAllTypes) GetSingleSint64

func (x *TestAllTypes) GetSingleSint64() int64

func (*TestAllTypes) GetSingleString

func (x *TestAllTypes) GetSingleString() string

func (*TestAllTypes) GetSingleStringWrapper added in v0.3.0

func (x *TestAllTypes) GetSingleStringWrapper() *wrapperspb.StringValue

func (*TestAllTypes) GetSingleStruct

func (x *TestAllTypes) GetSingleStruct() *structpb.Struct

func (*TestAllTypes) GetSingleTimestamp

func (x *TestAllTypes) GetSingleTimestamp() *timestamppb.Timestamp

func (*TestAllTypes) GetSingleUint32

func (x *TestAllTypes) GetSingleUint32() uint32

func (*TestAllTypes) GetSingleUint32Wrapper added in v0.3.0

func (x *TestAllTypes) GetSingleUint32Wrapper() *wrapperspb.UInt32Value

func (*TestAllTypes) GetSingleUint64

func (x *TestAllTypes) GetSingleUint64() uint64

func (*TestAllTypes) GetSingleUint64Wrapper added in v0.3.0

func (x *TestAllTypes) GetSingleUint64Wrapper() *wrapperspb.UInt64Value

func (*TestAllTypes) GetSingleValue

func (x *TestAllTypes) GetSingleValue() *structpb.Value

func (*TestAllTypes) GetStandaloneEnum added in v0.4.2

func (x *TestAllTypes) GetStandaloneEnum() TestAllTypes_NestedEnum

func (*TestAllTypes) ProtoMessage

func (*TestAllTypes) ProtoMessage()

func (*TestAllTypes) ProtoReflect added in v0.7.0

func (x *TestAllTypes) ProtoReflect() protoreflect.Message

func (*TestAllTypes) Reset

func (x *TestAllTypes) Reset()

func (*TestAllTypes) String

func (x *TestAllTypes) String() string

type TestAllTypes_NestedEnum

type TestAllTypes_NestedEnum int32
const (
	TestAllTypes_FOO TestAllTypes_NestedEnum = 0
	TestAllTypes_BAR TestAllTypes_NestedEnum = 1
	TestAllTypes_BAZ TestAllTypes_NestedEnum = 2
)

func (TestAllTypes_NestedEnum) Descriptor added in v0.7.0

func (TestAllTypes_NestedEnum) Enum added in v0.7.0

func (TestAllTypes_NestedEnum) EnumDescriptor deprecated

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

Deprecated: Use TestAllTypes_NestedEnum.Descriptor instead.

func (TestAllTypes_NestedEnum) Number added in v0.7.0

func (TestAllTypes_NestedEnum) String

func (x TestAllTypes_NestedEnum) String() string

func (TestAllTypes_NestedEnum) Type added in v0.7.0

type TestAllTypes_NestedMessage

type TestAllTypes_NestedMessage struct {

	// The field name "b" fails to compile in proto1 because it conflicts with
	// a local variable named "b" in one of the generated methods.
	// This file needs to compile in proto1 to test backwards-compatibility.
	Bb int32 `protobuf:"varint,1,opt,name=bb,proto3" json:"bb,omitempty"`
	// contains filtered or unexported fields
}

func (*TestAllTypes_NestedMessage) Descriptor deprecated

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

Deprecated: Use TestAllTypes_NestedMessage.ProtoReflect.Descriptor instead.

func (*TestAllTypes_NestedMessage) GetBb

func (x *TestAllTypes_NestedMessage) GetBb() int32

func (*TestAllTypes_NestedMessage) ProtoMessage

func (*TestAllTypes_NestedMessage) ProtoMessage()

func (*TestAllTypes_NestedMessage) ProtoReflect added in v0.7.0

func (*TestAllTypes_NestedMessage) Reset

func (x *TestAllTypes_NestedMessage) Reset()

func (*TestAllTypes_NestedMessage) String

func (x *TestAllTypes_NestedMessage) String() string

type TestAllTypes_SingleNestedEnum

type TestAllTypes_SingleNestedEnum struct {
	SingleNestedEnum TestAllTypes_NestedEnum `` /* 136-byte string literal not displayed */
}

type TestAllTypes_SingleNestedMessage

type TestAllTypes_SingleNestedMessage struct {
	SingleNestedMessage *TestAllTypes_NestedMessage `protobuf:"bytes,18,opt,name=single_nested_message,json=singleNestedMessage,proto3,oneof"`
}

type TestJsonNames added in v0.28.0

type TestJsonNames struct {
	Int32SnakeCaseJsonName int32  `protobuf:"varint,1,opt,name=int32_snake_case_json_name,proto3" json:"int32_snake_case_json_name,omitempty"`
	Int64CamelCaseJsonName int64  `` /* 134-byte string literal not displayed */
	Uint32DefaultJsonName  uint32 `` /* 129-byte string literal not displayed */
	Uint64CustomJsonName   uint64 `` /* 129-byte string literal not displayed */
	// Collides with normal field name.
	StringJsonNameShadows string `protobuf:"bytes,5,opt,name=string_json_name_shadows,json=single_string,proto3" json:"string_json_name_shadows,omitempty"`
	SingleString          string `protobuf:"bytes,6,opt,name=single_string,json=singleString,proto3" json:"single_string,omitempty"`
	// contains filtered or unexported fields
}

This proto tests json_name options

func (*TestJsonNames) Descriptor deprecated added in v0.28.0

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

Deprecated: Use TestJsonNames.ProtoReflect.Descriptor instead.

func (*TestJsonNames) GetInt32SnakeCaseJsonName added in v0.28.0

func (x *TestJsonNames) GetInt32SnakeCaseJsonName() int32

func (*TestJsonNames) GetInt64CamelCaseJsonName added in v0.28.0

func (x *TestJsonNames) GetInt64CamelCaseJsonName() int64

func (*TestJsonNames) GetSingleString added in v0.28.0

func (x *TestJsonNames) GetSingleString() string

func (*TestJsonNames) GetStringJsonNameShadows added in v0.28.0

func (x *TestJsonNames) GetStringJsonNameShadows() string

func (*TestJsonNames) GetUint32DefaultJsonName added in v0.28.0

func (x *TestJsonNames) GetUint32DefaultJsonName() uint32

func (*TestJsonNames) GetUint64CustomJsonName added in v0.28.0

func (x *TestJsonNames) GetUint64CustomJsonName() uint64

func (*TestJsonNames) ProtoMessage added in v0.28.0

func (*TestJsonNames) ProtoMessage()

func (*TestJsonNames) ProtoReflect added in v0.28.0

func (x *TestJsonNames) ProtoReflect() protoreflect.Message

func (*TestJsonNames) Reset added in v0.28.0

func (x *TestJsonNames) Reset()

func (*TestJsonNames) String added in v0.28.0

func (x *TestJsonNames) String() string

Jump to

Keyboard shortcuts

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