Documentation ¶
Index ¶
- Variables
- type OptionalFieldInProto3
- func (*OptionalFieldInProto3) Descriptor() ([]byte, []int)deprecated
- func (this *OptionalFieldInProto3) EqualVT(that *OptionalFieldInProto3) bool
- func (x *OptionalFieldInProto3) GetOptionalBool() bool
- func (x *OptionalFieldInProto3) GetOptionalBytes() []byte
- func (x *OptionalFieldInProto3) GetOptionalDouble() float64
- func (x *OptionalFieldInProto3) GetOptionalEnum() SimpleEnum
- func (x *OptionalFieldInProto3) GetOptionalFixed32() uint32
- func (x *OptionalFieldInProto3) GetOptionalFixed64() uint64
- func (x *OptionalFieldInProto3) GetOptionalFloat() float32
- func (x *OptionalFieldInProto3) GetOptionalInt32() int32
- func (x *OptionalFieldInProto3) GetOptionalInt64() int64
- func (x *OptionalFieldInProto3) GetOptionalSfixed32() int32
- func (x *OptionalFieldInProto3) GetOptionalSfixed64() int64
- func (x *OptionalFieldInProto3) GetOptionalSint32() int32
- func (x *OptionalFieldInProto3) GetOptionalSint64() int64
- func (x *OptionalFieldInProto3) GetOptionalString() string
- func (x *OptionalFieldInProto3) GetOptionalUint32() uint32
- func (x *OptionalFieldInProto3) GetOptionalUint64() uint64
- func (m *OptionalFieldInProto3) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *OptionalFieldInProto3) MarshalToVT(dAtA []byte) (int, error)
- func (m *OptionalFieldInProto3) MarshalVT() (dAtA []byte, err error)
- func (*OptionalFieldInProto3) ProtoMessage()
- func (x *OptionalFieldInProto3) ProtoReflect() protoreflect.Message
- func (x *OptionalFieldInProto3) Reset()
- func (m *OptionalFieldInProto3) SizeVT() (n int)
- func (x *OptionalFieldInProto3) String() string
- func (m *OptionalFieldInProto3) UnmarshalVT(dAtA []byte) error
- type SimpleEnum
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SimpleEnum_name = map[int32]string{ 0: "ENUM1", 1: "ENUM2", 2: "ENUM3", } SimpleEnum_value = map[string]int32{ "ENUM1": 0, "ENUM2": 1, "ENUM3": 2, } )
Enum value maps for SimpleEnum.
View Source
var ( ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflow = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") )
View Source
var File_proto3opt_opt_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type OptionalFieldInProto3 ¶
type OptionalFieldInProto3 struct { OptionalInt32 *int32 `protobuf:"varint,1,opt,name=optional_int32,json=optionalInt32,proto3,oneof" json:"optional_int32,omitempty"` OptionalInt64 *int64 `protobuf:"varint,2,opt,name=optional_int64,json=optionalInt64,proto3,oneof" json:"optional_int64,omitempty"` OptionalUint32 *uint32 `protobuf:"varint,3,opt,name=optional_uint32,json=optionalUint32,proto3,oneof" json:"optional_uint32,omitempty"` OptionalUint64 *uint64 `protobuf:"varint,4,opt,name=optional_uint64,json=optionalUint64,proto3,oneof" json:"optional_uint64,omitempty"` OptionalSint32 *int32 `protobuf:"zigzag32,5,opt,name=optional_sint32,json=optionalSint32,proto3,oneof" json:"optional_sint32,omitempty"` OptionalSint64 *int64 `protobuf:"zigzag64,6,opt,name=optional_sint64,json=optionalSint64,proto3,oneof" json:"optional_sint64,omitempty"` OptionalFixed32 *uint32 `protobuf:"fixed32,7,opt,name=optional_fixed32,json=optionalFixed32,proto3,oneof" json:"optional_fixed32,omitempty"` OptionalFixed64 *uint64 `protobuf:"fixed64,8,opt,name=optional_fixed64,json=optionalFixed64,proto3,oneof" json:"optional_fixed64,omitempty"` OptionalSfixed32 *int32 `protobuf:"fixed32,9,opt,name=optional_sfixed32,json=optionalSfixed32,proto3,oneof" json:"optional_sfixed32,omitempty"` OptionalSfixed64 *int64 `protobuf:"fixed64,10,opt,name=optional_sfixed64,json=optionalSfixed64,proto3,oneof" json:"optional_sfixed64,omitempty"` OptionalFloat *float32 `protobuf:"fixed32,11,opt,name=optional_float,json=optionalFloat,proto3,oneof" json:"optional_float,omitempty"` OptionalDouble *float64 `protobuf:"fixed64,12,opt,name=optional_double,json=optionalDouble,proto3,oneof" json:"optional_double,omitempty"` OptionalBool *bool `protobuf:"varint,13,opt,name=optional_bool,json=optionalBool,proto3,oneof" json:"optional_bool,omitempty"` OptionalString *string `protobuf:"bytes,14,opt,name=optional_string,json=optionalString,proto3,oneof" json:"optional_string,omitempty"` OptionalBytes []byte `protobuf:"bytes,15,opt,name=optional_bytes,json=optionalBytes,proto3,oneof" json:"optional_bytes,omitempty"` OptionalEnum *SimpleEnum `protobuf:"varint,16,opt,name=optional_enum,json=optionalEnum,proto3,enum=SimpleEnum,oneof" json:"optional_enum,omitempty"` // contains filtered or unexported fields }
func (*OptionalFieldInProto3) Descriptor
deprecated
func (*OptionalFieldInProto3) Descriptor() ([]byte, []int)
Deprecated: Use OptionalFieldInProto3.ProtoReflect.Descriptor instead.
func (*OptionalFieldInProto3) EqualVT ¶
func (this *OptionalFieldInProto3) EqualVT(that *OptionalFieldInProto3) bool
func (*OptionalFieldInProto3) GetOptionalBool ¶
func (x *OptionalFieldInProto3) GetOptionalBool() bool
func (*OptionalFieldInProto3) GetOptionalBytes ¶
func (x *OptionalFieldInProto3) GetOptionalBytes() []byte
func (*OptionalFieldInProto3) GetOptionalDouble ¶
func (x *OptionalFieldInProto3) GetOptionalDouble() float64
func (*OptionalFieldInProto3) GetOptionalEnum ¶
func (x *OptionalFieldInProto3) GetOptionalEnum() SimpleEnum
func (*OptionalFieldInProto3) GetOptionalFixed32 ¶
func (x *OptionalFieldInProto3) GetOptionalFixed32() uint32
func (*OptionalFieldInProto3) GetOptionalFixed64 ¶
func (x *OptionalFieldInProto3) GetOptionalFixed64() uint64
func (*OptionalFieldInProto3) GetOptionalFloat ¶
func (x *OptionalFieldInProto3) GetOptionalFloat() float32
func (*OptionalFieldInProto3) GetOptionalInt32 ¶
func (x *OptionalFieldInProto3) GetOptionalInt32() int32
func (*OptionalFieldInProto3) GetOptionalInt64 ¶
func (x *OptionalFieldInProto3) GetOptionalInt64() int64
func (*OptionalFieldInProto3) GetOptionalSfixed32 ¶
func (x *OptionalFieldInProto3) GetOptionalSfixed32() int32
func (*OptionalFieldInProto3) GetOptionalSfixed64 ¶
func (x *OptionalFieldInProto3) GetOptionalSfixed64() int64
func (*OptionalFieldInProto3) GetOptionalSint32 ¶
func (x *OptionalFieldInProto3) GetOptionalSint32() int32
func (*OptionalFieldInProto3) GetOptionalSint64 ¶
func (x *OptionalFieldInProto3) GetOptionalSint64() int64
func (*OptionalFieldInProto3) GetOptionalString ¶
func (x *OptionalFieldInProto3) GetOptionalString() string
func (*OptionalFieldInProto3) GetOptionalUint32 ¶
func (x *OptionalFieldInProto3) GetOptionalUint32() uint32
func (*OptionalFieldInProto3) GetOptionalUint64 ¶
func (x *OptionalFieldInProto3) GetOptionalUint64() uint64
func (*OptionalFieldInProto3) MarshalToSizedBufferVT ¶
func (m *OptionalFieldInProto3) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*OptionalFieldInProto3) MarshalToVT ¶
func (m *OptionalFieldInProto3) MarshalToVT(dAtA []byte) (int, error)
func (*OptionalFieldInProto3) MarshalVT ¶
func (m *OptionalFieldInProto3) MarshalVT() (dAtA []byte, err error)
func (*OptionalFieldInProto3) ProtoMessage ¶
func (*OptionalFieldInProto3) ProtoMessage()
func (*OptionalFieldInProto3) ProtoReflect ¶
func (x *OptionalFieldInProto3) ProtoReflect() protoreflect.Message
func (*OptionalFieldInProto3) Reset ¶
func (x *OptionalFieldInProto3) Reset()
func (*OptionalFieldInProto3) SizeVT ¶
func (m *OptionalFieldInProto3) SizeVT() (n int)
func (*OptionalFieldInProto3) String ¶
func (x *OptionalFieldInProto3) String() string
func (*OptionalFieldInProto3) UnmarshalVT ¶
func (m *OptionalFieldInProto3) UnmarshalVT(dAtA []byte) error
type SimpleEnum ¶
type SimpleEnum int32
const ( SimpleEnum_ENUM1 SimpleEnum = 0 SimpleEnum_ENUM2 SimpleEnum = 1 SimpleEnum_ENUM3 SimpleEnum = 2 )
func (SimpleEnum) Descriptor ¶
func (SimpleEnum) Descriptor() protoreflect.EnumDescriptor
func (SimpleEnum) Enum ¶
func (x SimpleEnum) Enum() *SimpleEnum
func (SimpleEnum) EnumDescriptor
deprecated
func (SimpleEnum) EnumDescriptor() ([]byte, []int)
Deprecated: Use SimpleEnum.Descriptor instead.
func (SimpleEnum) Number ¶
func (x SimpleEnum) Number() protoreflect.EnumNumber
func (SimpleEnum) String ¶
func (x SimpleEnum) String() string
func (SimpleEnum) Type ¶
func (SimpleEnum) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.