Documentation ¶
Index ¶
- Variables
- type FieldOptions
- func (*FieldOptions) Descriptor() ([]byte, []int)deprecated
- func (x *FieldOptions) GetIgnore() bool
- func (x *FieldOptions) GetJson() string
- func (x *FieldOptions) GetOmitempty() bool
- func (x *FieldOptions) GetReference() *TypeReference
- func (*FieldOptions) ProtoMessage()
- func (x *FieldOptions) ProtoReflect() protoreflect.Message
- func (x *FieldOptions) Reset()
- func (x *FieldOptions) String() string
- type MapOptions
- type MessageOptions
- func (*MessageOptions) Descriptor() ([]byte, []int)deprecated
- func (x *MessageOptions) GetDisallowUnknownFields() bool
- func (x *MessageOptions) GetIgnore() bool
- func (*MessageOptions) ProtoMessage()
- func (x *MessageOptions) ProtoReflect() protoreflect.Message
- func (x *MessageOptions) Reset()
- func (x *MessageOptions) String() string
- type OneofOptions
- func (*OneofOptions) Descriptor() ([]byte, []int)deprecated
- func (x *OneofOptions) GetIgnore() bool
- func (x *OneofOptions) GetInline() bool
- func (x *OneofOptions) GetJson() string
- func (x *OneofOptions) GetOmitempty() bool
- func (*OneofOptions) ProtoMessage()
- func (x *OneofOptions) ProtoReflect() protoreflect.Message
- func (x *OneofOptions) Reset()
- func (x *OneofOptions) String() string
- type PlainOptions
- type RepeatedOptions
- type TypeAny
- type TypeAny_Codec
- func (TypeAny_Codec) Descriptor() protoreflect.EnumDescriptor
- func (x TypeAny_Codec) Enum() *TypeAny_Codec
- func (TypeAny_Codec) EnumDescriptor() ([]byte, []int)deprecated
- func (x TypeAny_Codec) Number() protoreflect.EnumNumber
- func (x TypeAny_Codec) String() string
- func (TypeAny_Codec) Type() protoreflect.EnumType
- type TypeBool
- type TypeBool_Codec
- func (TypeBool_Codec) Descriptor() protoreflect.EnumDescriptor
- func (x TypeBool_Codec) Enum() *TypeBool_Codec
- func (TypeBool_Codec) EnumDescriptor() ([]byte, []int)deprecated
- func (x TypeBool_Codec) Number() protoreflect.EnumNumber
- func (x TypeBool_Codec) String() string
- func (TypeBool_Codec) Type() protoreflect.EnumType
- type TypeBytes
- type TypeCodec
- func (*TypeCodec) Descriptor() ([]byte, []int)deprecated
- func (x *TypeCodec) GetAny() *TypeAny
- func (x *TypeCodec) GetBool() *TypeBool
- func (x *TypeCodec) GetBytes() *TypeBytes
- func (x *TypeCodec) GetDouble() *TypeDouble
- func (x *TypeCodec) GetDuration() *TypeDuration
- func (x *TypeCodec) GetEnum() *TypeEnum
- func (x *TypeCodec) GetFixed32() *TypeFixed32
- func (x *TypeCodec) GetFixed64() *TypeFixed64
- func (x *TypeCodec) GetFloat() *TypeFloat
- func (x *TypeCodec) GetInt32() *TypeInt32
- func (x *TypeCodec) GetInt64() *TypeInt64
- func (m *TypeCodec) GetKind() isTypeCodec_Kind
- func (x *TypeCodec) GetMessage() *TypeMessage
- func (x *TypeCodec) GetSfixed32() *TypeSFixed32
- func (x *TypeCodec) GetSfixed64() *TypeSFixed64
- func (x *TypeCodec) GetSint32() *TypeSInt32
- func (x *TypeCodec) GetSint64() *TypeSInt64
- func (x *TypeCodec) GetString_() *TypeString
- func (x *TypeCodec) GetTimestamp() *TypeTimestamp
- func (x *TypeCodec) GetUint32() *TypeUint32
- func (x *TypeCodec) GetUint64() *TypeUint64
- func (*TypeCodec) ProtoMessage()
- func (x *TypeCodec) ProtoReflect() protoreflect.Message
- func (x *TypeCodec) Reset()
- func (x *TypeCodec) String() string
- type TypeCodec_Any
- type TypeCodec_Bool
- type TypeCodec_Bytes
- type TypeCodec_Double
- type TypeCodec_Duration
- type TypeCodec_Enum
- type TypeCodec_Fixed32
- type TypeCodec_Fixed64
- type TypeCodec_Float
- type TypeCodec_Int32
- type TypeCodec_Int64
- type TypeCodec_Message
- type TypeCodec_Sfixed32
- type TypeCodec_Sfixed64
- type TypeCodec_Sint32
- type TypeCodec_Sint64
- type TypeCodec_String_
- type TypeCodec_Timestamp
- type TypeCodec_Uint32
- type TypeCodec_Uint64
- type TypeDouble
- type TypeDouble_Codec
- func (TypeDouble_Codec) Descriptor() protoreflect.EnumDescriptor
- func (x TypeDouble_Codec) Enum() *TypeDouble_Codec
- func (TypeDouble_Codec) EnumDescriptor() ([]byte, []int)deprecated
- func (x TypeDouble_Codec) Number() protoreflect.EnumNumber
- func (x TypeDouble_Codec) String() string
- func (TypeDouble_Codec) Type() protoreflect.EnumType
- type TypeDuration
- type TypeDuration_Codec
- func (TypeDuration_Codec) Descriptor() protoreflect.EnumDescriptor
- func (x TypeDuration_Codec) Enum() *TypeDuration_Codec
- func (TypeDuration_Codec) EnumDescriptor() ([]byte, []int)deprecated
- func (x TypeDuration_Codec) Number() protoreflect.EnumNumber
- func (x TypeDuration_Codec) String() string
- func (TypeDuration_Codec) Type() protoreflect.EnumType
- type TypeEnum
- type TypeEnum_Codec
- func (TypeEnum_Codec) Descriptor() protoreflect.EnumDescriptor
- func (x TypeEnum_Codec) Enum() *TypeEnum_Codec
- func (TypeEnum_Codec) EnumDescriptor() ([]byte, []int)deprecated
- func (x TypeEnum_Codec) Number() protoreflect.EnumNumber
- func (x TypeEnum_Codec) String() string
- func (TypeEnum_Codec) Type() protoreflect.EnumType
- type TypeFixed32
- type TypeFixed32_Codec
- func (TypeFixed32_Codec) Descriptor() protoreflect.EnumDescriptor
- func (x TypeFixed32_Codec) Enum() *TypeFixed32_Codec
- func (TypeFixed32_Codec) EnumDescriptor() ([]byte, []int)deprecated
- func (x TypeFixed32_Codec) Number() protoreflect.EnumNumber
- func (x TypeFixed32_Codec) String() string
- func (TypeFixed32_Codec) Type() protoreflect.EnumType
- type TypeFixed64
- type TypeFixed64_Codec
- func (TypeFixed64_Codec) Descriptor() protoreflect.EnumDescriptor
- func (x TypeFixed64_Codec) Enum() *TypeFixed64_Codec
- func (TypeFixed64_Codec) EnumDescriptor() ([]byte, []int)deprecated
- func (x TypeFixed64_Codec) Number() protoreflect.EnumNumber
- func (x TypeFixed64_Codec) String() string
- func (TypeFixed64_Codec) Type() protoreflect.EnumType
- type TypeFloat
- type TypeFloat_Codec
- func (TypeFloat_Codec) Descriptor() protoreflect.EnumDescriptor
- func (x TypeFloat_Codec) Enum() *TypeFloat_Codec
- func (TypeFloat_Codec) EnumDescriptor() ([]byte, []int)deprecated
- func (x TypeFloat_Codec) Number() protoreflect.EnumNumber
- func (x TypeFloat_Codec) String() string
- func (TypeFloat_Codec) Type() protoreflect.EnumType
- type TypeInt32
- type TypeInt32_Codec
- func (TypeInt32_Codec) Descriptor() protoreflect.EnumDescriptor
- func (x TypeInt32_Codec) Enum() *TypeInt32_Codec
- func (TypeInt32_Codec) EnumDescriptor() ([]byte, []int)deprecated
- func (x TypeInt32_Codec) Number() protoreflect.EnumNumber
- func (x TypeInt32_Codec) String() string
- func (TypeInt32_Codec) Type() protoreflect.EnumType
- type TypeInt64
- type TypeInt64_Codec
- func (TypeInt64_Codec) Descriptor() protoreflect.EnumDescriptor
- func (x TypeInt64_Codec) Enum() *TypeInt64_Codec
- func (TypeInt64_Codec) EnumDescriptor() ([]byte, []int)deprecated
- func (x TypeInt64_Codec) Number() protoreflect.EnumNumber
- func (x TypeInt64_Codec) String() string
- func (TypeInt64_Codec) Type() protoreflect.EnumType
- type TypeMessage
- type TypeReference
- func (*TypeReference) Descriptor() ([]byte, []int)deprecated
- func (m *TypeReference) GetKind() isTypeReference_Kind
- func (x *TypeReference) GetMap() *MapOptions
- func (x *TypeReference) GetPlain() *PlainOptions
- func (x *TypeReference) GetRepeated() *RepeatedOptions
- func (*TypeReference) ProtoMessage()
- func (x *TypeReference) ProtoReflect() protoreflect.Message
- func (x *TypeReference) Reset()
- func (x *TypeReference) String() string
- type TypeReference_Map
- type TypeReference_Plain
- type TypeReference_Repeated
- type TypeSFixed32
- type TypeSFixed32_Codec
- func (TypeSFixed32_Codec) Descriptor() protoreflect.EnumDescriptor
- func (x TypeSFixed32_Codec) Enum() *TypeSFixed32_Codec
- func (TypeSFixed32_Codec) EnumDescriptor() ([]byte, []int)deprecated
- func (x TypeSFixed32_Codec) Number() protoreflect.EnumNumber
- func (x TypeSFixed32_Codec) String() string
- func (TypeSFixed32_Codec) Type() protoreflect.EnumType
- type TypeSFixed64
- type TypeSFixed64_Codec
- func (TypeSFixed64_Codec) Descriptor() protoreflect.EnumDescriptor
- func (x TypeSFixed64_Codec) Enum() *TypeSFixed64_Codec
- func (TypeSFixed64_Codec) EnumDescriptor() ([]byte, []int)deprecated
- func (x TypeSFixed64_Codec) Number() protoreflect.EnumNumber
- func (x TypeSFixed64_Codec) String() string
- func (TypeSFixed64_Codec) Type() protoreflect.EnumType
- type TypeSInt32
- type TypeSInt32_Codec
- func (TypeSInt32_Codec) Descriptor() protoreflect.EnumDescriptor
- func (x TypeSInt32_Codec) Enum() *TypeSInt32_Codec
- func (TypeSInt32_Codec) EnumDescriptor() ([]byte, []int)deprecated
- func (x TypeSInt32_Codec) Number() protoreflect.EnumNumber
- func (x TypeSInt32_Codec) String() string
- func (TypeSInt32_Codec) Type() protoreflect.EnumType
- type TypeSInt64
- type TypeSInt64_Codec
- func (TypeSInt64_Codec) Descriptor() protoreflect.EnumDescriptor
- func (x TypeSInt64_Codec) Enum() *TypeSInt64_Codec
- func (TypeSInt64_Codec) EnumDescriptor() ([]byte, []int)deprecated
- func (x TypeSInt64_Codec) Number() protoreflect.EnumNumber
- func (x TypeSInt64_Codec) String() string
- func (TypeSInt64_Codec) Type() protoreflect.EnumType
- type TypeString
- type TypeTimestamp
- func (*TypeTimestamp) Descriptor() ([]byte, []int)deprecated
- func (x *TypeTimestamp) GetCodec() TypeTimestamp_Codec
- func (x *TypeTimestamp) GetLayout() *TypeTimestamp_Layout
- func (*TypeTimestamp) ProtoMessage()
- func (x *TypeTimestamp) ProtoReflect() protoreflect.Message
- func (x *TypeTimestamp) Reset()
- func (x *TypeTimestamp) String() string
- type TypeTimestamp_Codec
- func (TypeTimestamp_Codec) Descriptor() protoreflect.EnumDescriptor
- func (x TypeTimestamp_Codec) Enum() *TypeTimestamp_Codec
- func (TypeTimestamp_Codec) EnumDescriptor() ([]byte, []int)deprecated
- func (x TypeTimestamp_Codec) Number() protoreflect.EnumNumber
- func (x TypeTimestamp_Codec) String() string
- func (TypeTimestamp_Codec) Type() protoreflect.EnumType
- type TypeTimestamp_Layout
- func (*TypeTimestamp_Layout) Descriptor() ([]byte, []int)deprecated
- func (x *TypeTimestamp_Layout) GetGolang() string
- func (x *TypeTimestamp_Layout) GetJava() string
- func (x *TypeTimestamp_Layout) GetPython() string
- func (x *TypeTimestamp_Layout) GetRust() string
- func (*TypeTimestamp_Layout) ProtoMessage()
- func (x *TypeTimestamp_Layout) ProtoReflect() protoreflect.Message
- func (x *TypeTimestamp_Layout) Reset()
- func (x *TypeTimestamp_Layout) String() string
- type TypeUint32
- type TypeUint32_Codec
- func (TypeUint32_Codec) Descriptor() protoreflect.EnumDescriptor
- func (x TypeUint32_Codec) Enum() *TypeUint32_Codec
- func (TypeUint32_Codec) EnumDescriptor() ([]byte, []int)deprecated
- func (x TypeUint32_Codec) Number() protoreflect.EnumNumber
- func (x TypeUint32_Codec) String() string
- func (TypeUint32_Codec) Type() protoreflect.EnumType
- type TypeUint64
- type TypeUint64_Codec
- func (TypeUint64_Codec) Descriptor() protoreflect.EnumDescriptor
- func (x TypeUint64_Codec) Enum() *TypeUint64_Codec
- func (TypeUint64_Codec) EnumDescriptor() ([]byte, []int)deprecated
- func (x TypeUint64_Codec) Number() protoreflect.EnumNumber
- func (x TypeUint64_Codec) String() string
- func (TypeUint64_Codec) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( TypeInt32_Codec_name = map[int32]string{ 0: "Unset", 1: "Number", 2: "String", } TypeInt32_Codec_value = map[string]int32{ "Unset": 0, "Number": 1, "String": 2, } )
Enum value maps for TypeInt32_Codec.
var ( TypeInt64_Codec_name = map[int32]string{ 0: "Unset", 1: "Number", 2: "String", } TypeInt64_Codec_value = map[string]int32{ "Unset": 0, "Number": 1, "String": 2, } )
Enum value maps for TypeInt64_Codec.
var ( TypeSInt32_Codec_name = map[int32]string{ 0: "Unset", 1: "Number", 2: "String", } TypeSInt32_Codec_value = map[string]int32{ "Unset": 0, "Number": 1, "String": 2, } )
Enum value maps for TypeSInt32_Codec.
var ( TypeSInt64_Codec_name = map[int32]string{ 0: "Unset", 1: "Number", 2: "String", } TypeSInt64_Codec_value = map[string]int32{ "Unset": 0, "Number": 1, "String": 2, } )
Enum value maps for TypeSInt64_Codec.
var ( TypeSFixed32_Codec_name = map[int32]string{ 0: "Unset", 1: "Number", 2: "String", } TypeSFixed32_Codec_value = map[string]int32{ "Unset": 0, "Number": 1, "String": 2, } )
Enum value maps for TypeSFixed32_Codec.
var ( TypeSFixed64_Codec_name = map[int32]string{ 0: "Unset", 1: "Number", 2: "String", } TypeSFixed64_Codec_value = map[string]int32{ "Unset": 0, "Number": 1, "String": 2, } )
Enum value maps for TypeSFixed64_Codec.
var ( TypeUint32_Codec_name = map[int32]string{ 0: "Unset", 1: "Number", 2: "String", } TypeUint32_Codec_value = map[string]int32{ "Unset": 0, "Number": 1, "String": 2, } )
Enum value maps for TypeUint32_Codec.
var ( TypeUint64_Codec_name = map[int32]string{ 0: "Unset", 1: "Number", 2: "String", } TypeUint64_Codec_value = map[string]int32{ "Unset": 0, "Number": 1, "String": 2, } )
Enum value maps for TypeUint64_Codec.
var ( TypeFixed32_Codec_name = map[int32]string{ 0: "Unset", 1: "Number", 2: "String", } TypeFixed32_Codec_value = map[string]int32{ "Unset": 0, "Number": 1, "String": 2, } )
Enum value maps for TypeFixed32_Codec.
var ( TypeFixed64_Codec_name = map[int32]string{ 0: "Unset", 1: "Number", 2: "String", } TypeFixed64_Codec_value = map[string]int32{ "Unset": 0, "Number": 1, "String": 2, } )
Enum value maps for TypeFixed64_Codec.
var ( TypeFloat_Codec_name = map[int32]string{ 0: "Unset", 1: "Number", 2: "String", } TypeFloat_Codec_value = map[string]int32{ "Unset": 0, "Number": 1, "String": 2, } )
Enum value maps for TypeFloat_Codec.
var ( TypeDouble_Codec_name = map[int32]string{ 0: "Unset", 1: "Number", 2: "String", } TypeDouble_Codec_value = map[string]int32{ "Unset": 0, "Number": 1, "String": 2, } )
Enum value maps for TypeDouble_Codec.
var ( TypeBool_Codec_name = map[int32]string{ 0: "Unset", 1: "Bool", 2: "String", } TypeBool_Codec_value = map[string]int32{ "Unset": 0, "Bool": 1, "String": 2, } )
Enum value maps for TypeBool_Codec.
var ( TypeEnum_Codec_name = map[int32]string{ 0: "Unset", 1: "Number", 2: "NumberString", 3: "String", } TypeEnum_Codec_value = map[string]int32{ "Unset": 0, "Number": 1, "NumberString": 2, "String": 3, } )
Enum value maps for TypeEnum_Codec.
var ( TypeAny_Codec_name = map[int32]string{ 0: "Unset", 1: "Object", 2: "Proto", } TypeAny_Codec_value = map[string]int32{ "Unset": 0, "Object": 1, "Proto": 2, } )
Enum value maps for TypeAny_Codec.
var ( TypeDuration_Codec_name = map[int32]string{ 0: "Unset", 1: "Object", 2: "String", 3: "Nanosecond", 4: "NanosecondString", 5: "Microsecond", 6: "MicrosecondString", 7: "Millisecond", 8: "MillisecondString", 9: "Second", 10: "SecondString", 11: "Minute", 12: "MinuteString", 13: "Hour", 14: "HourString", } TypeDuration_Codec_value = map[string]int32{ "Unset": 0, "Object": 1, "String": 2, "Nanosecond": 3, "NanosecondString": 4, "Microsecond": 5, "MicrosecondString": 6, "Millisecond": 7, "MillisecondString": 8, "Second": 9, "SecondString": 10, "Minute": 11, "MinuteString": 12, "Hour": 13, "HourString": 14, } )
Enum value maps for TypeDuration_Codec.
var ( TypeTimestamp_Codec_name = map[int32]string{ 0: "Unset", 1: "Object", 2: "TimeLayout", 3: "UnixNano", 4: "UnixNanoString", 5: "UnixMicro", 6: "UnixMicroString", 7: "UnixMilli", 8: "UnixMilliString", 9: "UnixSec", 10: "UnixSecString", } TypeTimestamp_Codec_value = map[string]int32{ "Unset": 0, "Object": 1, "TimeLayout": 2, "UnixNano": 3, "UnixNanoString": 4, "UnixMicro": 5, "UnixMicroString": 6, "UnixMilli": 7, "UnixMilliString": 8, "UnixSec": 9, "UnixSecString": 10, } )
Enum value maps for TypeTimestamp_Codec.
var (
// optional json.FieldOptions field = 64033;
E_Field = &file_json_proto_extTypes[1]
)
Extension fields to descriptorpb.FieldOptions.
var (
// optional json.MessageOptions message = 64032;
E_Message = &file_json_proto_extTypes[0]
)
Extension fields to descriptorpb.MessageOptions.
var (
// optional json.OneofOptions oneof = 64034;
E_Oneof = &file_json_proto_extTypes[2]
)
Extension fields to descriptorpb.OneofOptions.
var File_json_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type FieldOptions ¶
type FieldOptions struct { // The key name in JSON content. Default is the field's name in proto file. // It effect the MarshalJSON and UnmarshalJSON. Json *string `protobuf:"bytes,1,opt,name=json,proto3,oneof" json:"json,omitempty"` // The field will be ignored if true. // It effect the MarshalJSON and UnmarshalJSON. Ignore bool `protobuf:"varint,2,opt,name=ignore,proto3" json:"ignore,omitempty"` // Same as the go struct tag `json:"xxx,omitempty"`. // omitempty indicates whether omit the field if it is empty in MarshalJSON. Omitempty bool `protobuf:"varint,3,opt,name=omitempty,proto3" json:"omitempty,omitempty"` // Format set for field. Reference *TypeReference `protobuf:"bytes,4,opt,name=reference,proto3" json:"reference,omitempty"` // contains filtered or unexported fields }
func (*FieldOptions) Descriptor
deprecated
func (*FieldOptions) Descriptor() ([]byte, []int)
Deprecated: Use FieldOptions.ProtoReflect.Descriptor instead.
func (*FieldOptions) GetIgnore ¶
func (x *FieldOptions) GetIgnore() bool
func (*FieldOptions) GetJson ¶
func (x *FieldOptions) GetJson() string
func (*FieldOptions) GetOmitempty ¶
func (x *FieldOptions) GetOmitempty() bool
func (*FieldOptions) GetReference ¶
func (x *FieldOptions) GetReference() *TypeReference
func (*FieldOptions) ProtoMessage ¶
func (*FieldOptions) ProtoMessage()
func (*FieldOptions) ProtoReflect ¶
func (x *FieldOptions) ProtoReflect() protoreflect.Message
func (*FieldOptions) Reset ¶
func (x *FieldOptions) Reset()
func (*FieldOptions) String ¶
func (x *FieldOptions) String() string
type MapOptions ¶
type MapOptions struct { Key *TypeCodec `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value *TypeCodec `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
MapOptions declares the options applied to the field map.
func (*MapOptions) Descriptor
deprecated
func (*MapOptions) Descriptor() ([]byte, []int)
Deprecated: Use MapOptions.ProtoReflect.Descriptor instead.
func (*MapOptions) GetKey ¶
func (x *MapOptions) GetKey() *TypeCodec
func (*MapOptions) GetValue ¶
func (x *MapOptions) GetValue() *TypeCodec
func (*MapOptions) ProtoMessage ¶
func (*MapOptions) ProtoMessage()
func (*MapOptions) ProtoReflect ¶
func (x *MapOptions) ProtoReflect() protoreflect.Message
func (*MapOptions) Reset ¶
func (x *MapOptions) Reset()
func (*MapOptions) String ¶
func (x *MapOptions) String() string
type MessageOptions ¶
type MessageOptions struct { // Whether ignore generating code for the this message. // It effect the MarshalJSON and UnmarshalJSON. Ignore bool `protobuf:"varint,1,opt,name=ignore,proto3" json:"ignore,omitempty"` // disallow_unknown_fields causes the Unmarshal to return an error when the destination // is a struct and the input contains object keys which do not match any // non-ignored, exported fields in the destination. // It effect the UnmarshalJSON. DisallowUnknownFields bool `` /* 127-byte string literal not displayed */ // contains filtered or unexported fields }
func (*MessageOptions) Descriptor
deprecated
func (*MessageOptions) Descriptor() ([]byte, []int)
Deprecated: Use MessageOptions.ProtoReflect.Descriptor instead.
func (*MessageOptions) GetDisallowUnknownFields ¶
func (x *MessageOptions) GetDisallowUnknownFields() bool
func (*MessageOptions) GetIgnore ¶
func (x *MessageOptions) GetIgnore() bool
func (*MessageOptions) ProtoMessage ¶
func (*MessageOptions) ProtoMessage()
func (*MessageOptions) ProtoReflect ¶
func (x *MessageOptions) ProtoReflect() protoreflect.Message
func (*MessageOptions) Reset ¶
func (x *MessageOptions) Reset()
func (*MessageOptions) String ¶
func (x *MessageOptions) String() string
type OneofOptions ¶
type OneofOptions struct { // The key name in JSON content. Default is the field's name in proto file. // It effect the MarshalJSON and UnmarshalJSON. Json *string `protobuf:"bytes,1,opt,name=json,proto3,oneof" json:"json,omitempty"` // The field and all fields in the oneof parts will be ignored if true. // It effect the MarshalJSON and UnmarshalJSON. Ignore bool `protobuf:"varint,2,opt,name=ignore,proto3" json:"ignore,omitempty"` // Same as the go struct tag `json:"xxx,omitempty"`. // omitempty indicates whether omit the field if it is empty in MarshalJSON. Omitempty bool `protobuf:"varint,3,opt,name=omitempty,proto3" json:"omitempty,omitempty"` // Inline indicates whether expand the all oneof fields directly in the current structure. // If the `inline` is true for a oneof field: // - The empty value will be omitted in JSON content. // - The json key of oneof fields cannot be conflict with the fields that in current structure. // It effect the MarshalJSON and UnmarshalJSON. Inline bool `protobuf:"varint,4,opt,name=inline,proto3" json:"inline,omitempty"` // contains filtered or unexported fields }
func (*OneofOptions) Descriptor
deprecated
func (*OneofOptions) Descriptor() ([]byte, []int)
Deprecated: Use OneofOptions.ProtoReflect.Descriptor instead.
func (*OneofOptions) GetIgnore ¶
func (x *OneofOptions) GetIgnore() bool
func (*OneofOptions) GetInline ¶
func (x *OneofOptions) GetInline() bool
func (*OneofOptions) GetJson ¶
func (x *OneofOptions) GetJson() string
func (*OneofOptions) GetOmitempty ¶
func (x *OneofOptions) GetOmitempty() bool
func (*OneofOptions) ProtoMessage ¶
func (*OneofOptions) ProtoMessage()
func (*OneofOptions) ProtoReflect ¶
func (x *OneofOptions) ProtoReflect() protoreflect.Message
func (*OneofOptions) Reset ¶
func (x *OneofOptions) Reset()
func (*OneofOptions) String ¶
func (x *OneofOptions) String() string
type PlainOptions ¶
type PlainOptions struct { // value declares the default value for field. Value *TypeCodec `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
PlainOptions declares the options applied to the field plain.
func (*PlainOptions) Descriptor
deprecated
func (*PlainOptions) Descriptor() ([]byte, []int)
Deprecated: Use PlainOptions.ProtoReflect.Descriptor instead.
func (*PlainOptions) GetValue ¶
func (x *PlainOptions) GetValue() *TypeCodec
func (*PlainOptions) ProtoMessage ¶
func (*PlainOptions) ProtoMessage()
func (*PlainOptions) ProtoReflect ¶
func (x *PlainOptions) ProtoReflect() protoreflect.Message
func (*PlainOptions) Reset ¶
func (x *PlainOptions) Reset()
func (*PlainOptions) String ¶
func (x *PlainOptions) String() string
type RepeatedOptions ¶
type RepeatedOptions struct { // items declares the default value for field. Elem *TypeCodec `protobuf:"bytes,1,opt,name=elem,proto3" json:"elem,omitempty"` // contains filtered or unexported fields }
RepeatedOptions declares the options applied to the field repeated.
func (*RepeatedOptions) Descriptor
deprecated
func (*RepeatedOptions) Descriptor() ([]byte, []int)
Deprecated: Use RepeatedOptions.ProtoReflect.Descriptor instead.
func (*RepeatedOptions) GetElem ¶
func (x *RepeatedOptions) GetElem() *TypeCodec
func (*RepeatedOptions) ProtoMessage ¶
func (*RepeatedOptions) ProtoMessage()
func (*RepeatedOptions) ProtoReflect ¶
func (x *RepeatedOptions) ProtoReflect() protoreflect.Message
func (*RepeatedOptions) Reset ¶
func (x *RepeatedOptions) Reset()
func (*RepeatedOptions) String ¶
func (x *RepeatedOptions) String() string
type TypeAny ¶
type TypeAny struct { // Codec specifies encoding format for the field type of google.protobuf.Any. // The default is `Object` in plain value, repeated elements and map value. Codec TypeAny_Codec `protobuf:"varint,1,opt,name=codec,proto3,enum=json.TypeAny_Codec" json:"codec,omitempty"` // contains filtered or unexported fields }
TypeInt32 declares the codec for field type google.proto.Any.
func (*TypeAny) Descriptor
deprecated
func (*TypeAny) GetCodec ¶
func (x *TypeAny) GetCodec() TypeAny_Codec
func (*TypeAny) ProtoMessage ¶
func (*TypeAny) ProtoMessage()
func (*TypeAny) ProtoReflect ¶
func (x *TypeAny) ProtoReflect() protoreflect.Message
type TypeAny_Codec ¶
type TypeAny_Codec int32
const ( // Unset represents the default value will be applied when encoding and decoding JSON. TypeAny_Unset TypeAny_Codec = 0 // Object represents convert the google.protobuf.Any as objects and encoding and decoding by standard JSON. TypeAny_Object TypeAny_Codec = 1 // Proto represents encoding and decoding the google.protobuf.Any by library protojson. TypeAny_Proto TypeAny_Codec = 2 )
func (TypeAny_Codec) Descriptor ¶
func (TypeAny_Codec) Descriptor() protoreflect.EnumDescriptor
func (TypeAny_Codec) Enum ¶
func (x TypeAny_Codec) Enum() *TypeAny_Codec
func (TypeAny_Codec) EnumDescriptor
deprecated
func (TypeAny_Codec) EnumDescriptor() ([]byte, []int)
Deprecated: Use TypeAny_Codec.Descriptor instead.
func (TypeAny_Codec) Number ¶
func (x TypeAny_Codec) Number() protoreflect.EnumNumber
func (TypeAny_Codec) String ¶
func (x TypeAny_Codec) String() string
func (TypeAny_Codec) Type ¶
func (TypeAny_Codec) Type() protoreflect.EnumType
type TypeBool ¶
type TypeBool struct { // Codec specifies encoding format for the field type of bool. // The default is `Bool` in plain value, repeated elements and map value. Codec TypeBool_Codec `protobuf:"varint,1,opt,name=codec,proto3,enum=json.TypeBool_Codec" json:"codec,omitempty"` // contains filtered or unexported fields }
TypeInt32 declares the codec for field type bool.
func (*TypeBool) Descriptor
deprecated
func (*TypeBool) GetCodec ¶
func (x *TypeBool) GetCodec() TypeBool_Codec
func (*TypeBool) ProtoMessage ¶
func (*TypeBool) ProtoMessage()
func (*TypeBool) ProtoReflect ¶
func (x *TypeBool) ProtoReflect() protoreflect.Message
type TypeBool_Codec ¶
type TypeBool_Codec int32
const ( // Unset represents the default value will be applied when encoding and decoding JSON. TypeBool_Unset TypeBool_Codec = 0 // Bool represents convert the field as bools when encoding and decoding JSON. TypeBool_Bool TypeBool_Codec = 1 // String represents convert the field as strings when encoding and decoding JSON. TypeBool_String TypeBool_Codec = 2 )
func (TypeBool_Codec) Descriptor ¶
func (TypeBool_Codec) Descriptor() protoreflect.EnumDescriptor
func (TypeBool_Codec) Enum ¶
func (x TypeBool_Codec) Enum() *TypeBool_Codec
func (TypeBool_Codec) EnumDescriptor
deprecated
func (TypeBool_Codec) EnumDescriptor() ([]byte, []int)
Deprecated: Use TypeBool_Codec.Descriptor instead.
func (TypeBool_Codec) Number ¶
func (x TypeBool_Codec) Number() protoreflect.EnumNumber
func (TypeBool_Codec) String ¶
func (x TypeBool_Codec) String() string
func (TypeBool_Codec) Type ¶
func (TypeBool_Codec) Type() protoreflect.EnumType
type TypeBytes ¶
type TypeBytes struct {
// contains filtered or unexported fields
}
TypeBytes declares the codec for field type bytes. Notice: Reserve
func (*TypeBytes) Descriptor
deprecated
func (*TypeBytes) ProtoMessage ¶
func (*TypeBytes) ProtoMessage()
func (*TypeBytes) ProtoReflect ¶
func (x *TypeBytes) ProtoReflect() protoreflect.Message
type TypeCodec ¶
type TypeCodec struct { // Types that are assignable to Kind: // *TypeCodec_Int32 // *TypeCodec_Int64 // *TypeCodec_Sint32 // *TypeCodec_Sint64 // *TypeCodec_Sfixed32 // *TypeCodec_Sfixed64 // *TypeCodec_Uint32 // *TypeCodec_Uint64 // *TypeCodec_Fixed32 // *TypeCodec_Fixed64 // *TypeCodec_Float // *TypeCodec_Double // *TypeCodec_Bool // *TypeCodec_String_ // *TypeCodec_Bytes // *TypeCodec_Message // *TypeCodec_Enum // *TypeCodec_Any // *TypeCodec_Duration // *TypeCodec_Timestamp Kind isTypeCodec_Kind `protobuf_oneof:"Kind"` // contains filtered or unexported fields }
func (*TypeCodec) Descriptor
deprecated
func (*TypeCodec) GetDouble ¶
func (x *TypeCodec) GetDouble() *TypeDouble
func (*TypeCodec) GetDuration ¶
func (x *TypeCodec) GetDuration() *TypeDuration
func (*TypeCodec) GetFixed32 ¶
func (x *TypeCodec) GetFixed32() *TypeFixed32
func (*TypeCodec) GetFixed64 ¶
func (x *TypeCodec) GetFixed64() *TypeFixed64
func (*TypeCodec) GetMessage ¶
func (x *TypeCodec) GetMessage() *TypeMessage
func (*TypeCodec) GetSfixed32 ¶
func (x *TypeCodec) GetSfixed32() *TypeSFixed32
func (*TypeCodec) GetSfixed64 ¶
func (x *TypeCodec) GetSfixed64() *TypeSFixed64
func (*TypeCodec) GetSint32 ¶
func (x *TypeCodec) GetSint32() *TypeSInt32
func (*TypeCodec) GetSint64 ¶
func (x *TypeCodec) GetSint64() *TypeSInt64
func (*TypeCodec) GetString_ ¶
func (x *TypeCodec) GetString_() *TypeString
func (*TypeCodec) GetTimestamp ¶
func (x *TypeCodec) GetTimestamp() *TypeTimestamp
func (*TypeCodec) GetUint32 ¶
func (x *TypeCodec) GetUint32() *TypeUint32
func (*TypeCodec) GetUint64 ¶
func (x *TypeCodec) GetUint64() *TypeUint64
func (*TypeCodec) ProtoMessage ¶
func (*TypeCodec) ProtoMessage()
func (*TypeCodec) ProtoReflect ¶
func (x *TypeCodec) ProtoReflect() protoreflect.Message
type TypeCodec_Any ¶
type TypeCodec_Any struct {
Any *TypeAny `protobuf:"bytes,22,opt,name=any,proto3,oneof"`
}
type TypeCodec_Bool ¶
type TypeCodec_Bool struct {
Bool *TypeBool `protobuf:"bytes,13,opt,name=bool,proto3,oneof"`
}
type TypeCodec_Bytes ¶
type TypeCodec_Bytes struct {
Bytes *TypeBytes `protobuf:"bytes,15,opt,name=bytes,proto3,oneof"` // Reserved.
}
type TypeCodec_Double ¶
type TypeCodec_Double struct {
Double *TypeDouble `protobuf:"bytes,12,opt,name=double,proto3,oneof"`
}
type TypeCodec_Duration ¶
type TypeCodec_Duration struct {
Duration *TypeDuration `protobuf:"bytes,23,opt,name=duration,proto3,oneof"`
}
type TypeCodec_Enum ¶
type TypeCodec_Enum struct {
Enum *TypeEnum `protobuf:"bytes,21,opt,name=enum,proto3,oneof"`
}
type TypeCodec_Fixed32 ¶
type TypeCodec_Fixed32 struct {
Fixed32 *TypeFixed32 `protobuf:"bytes,9,opt,name=fixed32,proto3,oneof"`
}
type TypeCodec_Fixed64 ¶
type TypeCodec_Fixed64 struct {
Fixed64 *TypeFixed64 `protobuf:"bytes,10,opt,name=fixed64,proto3,oneof"`
}
type TypeCodec_Float ¶
type TypeCodec_Float struct {
Float *TypeFloat `protobuf:"bytes,11,opt,name=float,proto3,oneof"`
}
type TypeCodec_Int32 ¶
type TypeCodec_Int32 struct {
Int32 *TypeInt32 `protobuf:"bytes,1,opt,name=int32,proto3,oneof"`
}
type TypeCodec_Int64 ¶
type TypeCodec_Int64 struct {
Int64 *TypeInt64 `protobuf:"bytes,2,opt,name=int64,proto3,oneof"`
}
type TypeCodec_Message ¶
type TypeCodec_Message struct {
Message *TypeMessage `protobuf:"bytes,16,opt,name=message,proto3,oneof"` // Reserved.
}
type TypeCodec_Sfixed32 ¶
type TypeCodec_Sfixed32 struct {
Sfixed32 *TypeSFixed32 `protobuf:"bytes,5,opt,name=sfixed32,proto3,oneof"`
}
type TypeCodec_Sfixed64 ¶
type TypeCodec_Sfixed64 struct {
Sfixed64 *TypeSFixed64 `protobuf:"bytes,6,opt,name=sfixed64,proto3,oneof"`
}
type TypeCodec_Sint32 ¶
type TypeCodec_Sint32 struct {
Sint32 *TypeSInt32 `protobuf:"bytes,3,opt,name=sint32,proto3,oneof"`
}
type TypeCodec_Sint64 ¶
type TypeCodec_Sint64 struct {
Sint64 *TypeSInt64 `protobuf:"bytes,4,opt,name=sint64,proto3,oneof"`
}
type TypeCodec_String_ ¶
type TypeCodec_String_ struct {
String_ *TypeString `protobuf:"bytes,14,opt,name=string,proto3,oneof"` // Reserved.
}
type TypeCodec_Timestamp ¶
type TypeCodec_Timestamp struct {
Timestamp *TypeTimestamp `protobuf:"bytes,24,opt,name=timestamp,proto3,oneof"`
}
type TypeCodec_Uint32 ¶
type TypeCodec_Uint32 struct {
Uint32 *TypeUint32 `protobuf:"bytes,7,opt,name=uint32,proto3,oneof"`
}
type TypeCodec_Uint64 ¶
type TypeCodec_Uint64 struct {
Uint64 *TypeUint64 `protobuf:"bytes,8,opt,name=uint64,proto3,oneof"`
}
type TypeDouble ¶
type TypeDouble struct { // Codec specifies encoding format for the field type of double. // The default is `Number` in plain value, repeated elements and map value. Codec TypeDouble_Codec `protobuf:"varint,1,opt,name=codec,proto3,enum=json.TypeDouble_Codec" json:"codec,omitempty"` // contains filtered or unexported fields }
TypeInt32 declares the codec for field type double.
func (*TypeDouble) Descriptor
deprecated
func (*TypeDouble) Descriptor() ([]byte, []int)
Deprecated: Use TypeDouble.ProtoReflect.Descriptor instead.
func (*TypeDouble) GetCodec ¶
func (x *TypeDouble) GetCodec() TypeDouble_Codec
func (*TypeDouble) ProtoMessage ¶
func (*TypeDouble) ProtoMessage()
func (*TypeDouble) ProtoReflect ¶
func (x *TypeDouble) ProtoReflect() protoreflect.Message
func (*TypeDouble) Reset ¶
func (x *TypeDouble) Reset()
func (*TypeDouble) String ¶
func (x *TypeDouble) String() string
type TypeDouble_Codec ¶
type TypeDouble_Codec int32
const ( // Unset represents the default value will be applied when encoding and decoding JSON. TypeDouble_Unset TypeDouble_Codec = 0 // Number represents convert the field as numbers when encoding and decoding JSON. TypeDouble_Number TypeDouble_Codec = 1 // String represents convert the field as strings when encoding and decoding JSON. TypeDouble_String TypeDouble_Codec = 2 )
func (TypeDouble_Codec) Descriptor ¶
func (TypeDouble_Codec) Descriptor() protoreflect.EnumDescriptor
func (TypeDouble_Codec) Enum ¶
func (x TypeDouble_Codec) Enum() *TypeDouble_Codec
func (TypeDouble_Codec) EnumDescriptor
deprecated
func (TypeDouble_Codec) EnumDescriptor() ([]byte, []int)
Deprecated: Use TypeDouble_Codec.Descriptor instead.
func (TypeDouble_Codec) Number ¶
func (x TypeDouble_Codec) Number() protoreflect.EnumNumber
func (TypeDouble_Codec) String ¶
func (x TypeDouble_Codec) String() string
func (TypeDouble_Codec) Type ¶
func (TypeDouble_Codec) Type() protoreflect.EnumType
type TypeDuration ¶
type TypeDuration struct { // Codec specifies encoding format for the field type of google.protobuf.Duration. // The default is `Object` in plain value, repeated elements and map value. Codec TypeDuration_Codec `protobuf:"varint,1,opt,name=codec,proto3,enum=json.TypeDuration_Codec" json:"codec,omitempty"` // contains filtered or unexported fields }
TypeInt32 declares the codec for field type google.proto.Duration.
func (*TypeDuration) Descriptor
deprecated
func (*TypeDuration) Descriptor() ([]byte, []int)
Deprecated: Use TypeDuration.ProtoReflect.Descriptor instead.
func (*TypeDuration) GetCodec ¶
func (x *TypeDuration) GetCodec() TypeDuration_Codec
func (*TypeDuration) ProtoMessage ¶
func (*TypeDuration) ProtoMessage()
func (*TypeDuration) ProtoReflect ¶
func (x *TypeDuration) ProtoReflect() protoreflect.Message
func (*TypeDuration) Reset ¶
func (x *TypeDuration) Reset()
func (*TypeDuration) String ¶
func (x *TypeDuration) String() string
type TypeDuration_Codec ¶
type TypeDuration_Codec int32
const ( // Unset represents the default value will be applied when encoding and decoding JSON. TypeDuration_Unset TypeDuration_Codec = 0 // Object represents convert the google.protobuf.Duration as objects and encoding and decoding by standard JSON. TypeDuration_Object TypeDuration_Codec = 1 // String represents covert the google.protobuf.Duration as strings when encoding and decoding. // e.g: "1m1s". TypeDuration_String TypeDuration_Codec = 2 // String represents covert the google.protobuf.Duration as nanoseconds of type int64 when encoding and decoding. TypeDuration_Nanosecond TypeDuration_Codec = 3 // String represents use the Nanosecond and convert to string when encoding and decoding. TypeDuration_NanosecondString TypeDuration_Codec = 4 // String represents covert the google.protobuf.Duration as microseconds of type int64 when encoding and decoding. TypeDuration_Microsecond TypeDuration_Codec = 5 // String represents use the Microsecond and convert to string when encoding and decoding. TypeDuration_MicrosecondString TypeDuration_Codec = 6 // String represents covert the google.protobuf.Duration as milliseconds of type int64 when encoding and decoding. TypeDuration_Millisecond TypeDuration_Codec = 7 // String represents use the Millisecond and convert to string when encoding and decoding. TypeDuration_MillisecondString TypeDuration_Codec = 8 // String represents covert the google.protobuf.Duration as seconds of type float64 when encoding and decoding. TypeDuration_Second TypeDuration_Codec = 9 // String represents use the Second and convert to string when encoding and decoding. TypeDuration_SecondString TypeDuration_Codec = 10 // String represents covert the google.protobuf.Duration as minutes of type float64 when encoding and decoding. TypeDuration_Minute TypeDuration_Codec = 11 // String represents use the Minute and convert to string when encoding and decoding. TypeDuration_MinuteString TypeDuration_Codec = 12 // String represents covert the google.protobuf.Duration as hours of type float64 when encoding and decoding. TypeDuration_Hour TypeDuration_Codec = 13 // String represents use the Hour and convert to string when encoding and decoding. TypeDuration_HourString TypeDuration_Codec = 14 )
func (TypeDuration_Codec) Descriptor ¶
func (TypeDuration_Codec) Descriptor() protoreflect.EnumDescriptor
func (TypeDuration_Codec) Enum ¶
func (x TypeDuration_Codec) Enum() *TypeDuration_Codec
func (TypeDuration_Codec) EnumDescriptor
deprecated
func (TypeDuration_Codec) EnumDescriptor() ([]byte, []int)
Deprecated: Use TypeDuration_Codec.Descriptor instead.
func (TypeDuration_Codec) Number ¶
func (x TypeDuration_Codec) Number() protoreflect.EnumNumber
func (TypeDuration_Codec) String ¶
func (x TypeDuration_Codec) String() string
func (TypeDuration_Codec) Type ¶
func (TypeDuration_Codec) Type() protoreflect.EnumType
type TypeEnum ¶
type TypeEnum struct { // Codec specifies encoding format for the field type of Enum. // The default is `Number` in plain value, repeated elements and map value. Codec TypeEnum_Codec `protobuf:"varint,1,opt,name=codec,proto3,enum=json.TypeEnum_Codec" json:"codec,omitempty"` // contains filtered or unexported fields }
TypeInt32 declares the codec for field type enum.
func (*TypeEnum) Descriptor
deprecated
func (*TypeEnum) GetCodec ¶
func (x *TypeEnum) GetCodec() TypeEnum_Codec
func (*TypeEnum) ProtoMessage ¶
func (*TypeEnum) ProtoMessage()
func (*TypeEnum) ProtoReflect ¶
func (x *TypeEnum) ProtoReflect() protoreflect.Message
type TypeEnum_Codec ¶
type TypeEnum_Codec int32
const ( // Unset represents the default value will be applied when encoding and decoding JSON. TypeEnum_Unset TypeEnum_Codec = 0 // Number represents use the enum number in encoding and decoding JSON. TypeEnum_Number TypeEnum_Codec = 1 // NumberString represents use the enum number and convert to string when encoding and decoding JSON. TypeEnum_NumberString TypeEnum_Codec = 2 // String represents use the enum string in encoding and decoding JSON. TypeEnum_String TypeEnum_Codec = 3 )
func (TypeEnum_Codec) Descriptor ¶
func (TypeEnum_Codec) Descriptor() protoreflect.EnumDescriptor
func (TypeEnum_Codec) Enum ¶
func (x TypeEnum_Codec) Enum() *TypeEnum_Codec
func (TypeEnum_Codec) EnumDescriptor
deprecated
func (TypeEnum_Codec) EnumDescriptor() ([]byte, []int)
Deprecated: Use TypeEnum_Codec.Descriptor instead.
func (TypeEnum_Codec) Number ¶
func (x TypeEnum_Codec) Number() protoreflect.EnumNumber
func (TypeEnum_Codec) String ¶
func (x TypeEnum_Codec) String() string
func (TypeEnum_Codec) Type ¶
func (TypeEnum_Codec) Type() protoreflect.EnumType
type TypeFixed32 ¶
type TypeFixed32 struct { // Codec specifies encoding format for the field type of fixed32. // The default is `Number` in plain value, repeated elements and map value. // And the default is `String` in map key. Codec TypeFixed32_Codec `protobuf:"varint,1,opt,name=codec,proto3,enum=json.TypeFixed32_Codec" json:"codec,omitempty"` // contains filtered or unexported fields }
TypeInt32 declares the codec for field type fixed32.
func (*TypeFixed32) Descriptor
deprecated
func (*TypeFixed32) Descriptor() ([]byte, []int)
Deprecated: Use TypeFixed32.ProtoReflect.Descriptor instead.
func (*TypeFixed32) GetCodec ¶
func (x *TypeFixed32) GetCodec() TypeFixed32_Codec
func (*TypeFixed32) ProtoMessage ¶
func (*TypeFixed32) ProtoMessage()
func (*TypeFixed32) ProtoReflect ¶
func (x *TypeFixed32) ProtoReflect() protoreflect.Message
func (*TypeFixed32) Reset ¶
func (x *TypeFixed32) Reset()
func (*TypeFixed32) String ¶
func (x *TypeFixed32) String() string
type TypeFixed32_Codec ¶
type TypeFixed32_Codec int32
const ( // Unset represents the default value will be applied when encoding and decoding JSON. TypeFixed32_Unset TypeFixed32_Codec = 0 // Number represents convert the field as numbers when encoding and decoding JSON. TypeFixed32_Number TypeFixed32_Codec = 1 // String represents convert the field as strings when encoding and decoding JSON. TypeFixed32_String TypeFixed32_Codec = 2 )
func (TypeFixed32_Codec) Descriptor ¶
func (TypeFixed32_Codec) Descriptor() protoreflect.EnumDescriptor
func (TypeFixed32_Codec) Enum ¶
func (x TypeFixed32_Codec) Enum() *TypeFixed32_Codec
func (TypeFixed32_Codec) EnumDescriptor
deprecated
func (TypeFixed32_Codec) EnumDescriptor() ([]byte, []int)
Deprecated: Use TypeFixed32_Codec.Descriptor instead.
func (TypeFixed32_Codec) Number ¶
func (x TypeFixed32_Codec) Number() protoreflect.EnumNumber
func (TypeFixed32_Codec) String ¶
func (x TypeFixed32_Codec) String() string
func (TypeFixed32_Codec) Type ¶
func (TypeFixed32_Codec) Type() protoreflect.EnumType
type TypeFixed64 ¶
type TypeFixed64 struct { // Codec specifies encoding format for the field type of fixed64. // The default is `Number` in plain value, repeated elements and map value. // And the default is `String` in map key. Codec TypeFixed64_Codec `protobuf:"varint,1,opt,name=codec,proto3,enum=json.TypeFixed64_Codec" json:"codec,omitempty"` // contains filtered or unexported fields }
TypeInt32 declares the codec for field type fixed64.
func (*TypeFixed64) Descriptor
deprecated
func (*TypeFixed64) Descriptor() ([]byte, []int)
Deprecated: Use TypeFixed64.ProtoReflect.Descriptor instead.
func (*TypeFixed64) GetCodec ¶
func (x *TypeFixed64) GetCodec() TypeFixed64_Codec
func (*TypeFixed64) ProtoMessage ¶
func (*TypeFixed64) ProtoMessage()
func (*TypeFixed64) ProtoReflect ¶
func (x *TypeFixed64) ProtoReflect() protoreflect.Message
func (*TypeFixed64) Reset ¶
func (x *TypeFixed64) Reset()
func (*TypeFixed64) String ¶
func (x *TypeFixed64) String() string
type TypeFixed64_Codec ¶
type TypeFixed64_Codec int32
const ( // Unset represents the default value will be applied when encoding and decoding JSON. TypeFixed64_Unset TypeFixed64_Codec = 0 // Number represents convert the field as numbers when encoding and decoding JSON. TypeFixed64_Number TypeFixed64_Codec = 1 // String represents convert the field as strings when encoding and decoding JSON. TypeFixed64_String TypeFixed64_Codec = 2 )
func (TypeFixed64_Codec) Descriptor ¶
func (TypeFixed64_Codec) Descriptor() protoreflect.EnumDescriptor
func (TypeFixed64_Codec) Enum ¶
func (x TypeFixed64_Codec) Enum() *TypeFixed64_Codec
func (TypeFixed64_Codec) EnumDescriptor
deprecated
func (TypeFixed64_Codec) EnumDescriptor() ([]byte, []int)
Deprecated: Use TypeFixed64_Codec.Descriptor instead.
func (TypeFixed64_Codec) Number ¶
func (x TypeFixed64_Codec) Number() protoreflect.EnumNumber
func (TypeFixed64_Codec) String ¶
func (x TypeFixed64_Codec) String() string
func (TypeFixed64_Codec) Type ¶
func (TypeFixed64_Codec) Type() protoreflect.EnumType
type TypeFloat ¶
type TypeFloat struct { // Codec specifies encoding format for the field type of float. // The default is `Number` in plain value, repeated elements and map value. Codec TypeFloat_Codec `protobuf:"varint,1,opt,name=codec,proto3,enum=json.TypeFloat_Codec" json:"codec,omitempty"` // contains filtered or unexported fields }
TypeInt32 declares the codec for field type float.
func (*TypeFloat) Descriptor
deprecated
func (*TypeFloat) GetCodec ¶
func (x *TypeFloat) GetCodec() TypeFloat_Codec
func (*TypeFloat) ProtoMessage ¶
func (*TypeFloat) ProtoMessage()
func (*TypeFloat) ProtoReflect ¶
func (x *TypeFloat) ProtoReflect() protoreflect.Message
type TypeFloat_Codec ¶
type TypeFloat_Codec int32
const ( // Unset represents the default value will be applied when encoding and decoding JSON. TypeFloat_Unset TypeFloat_Codec = 0 // Number represents convert the field as numbers when encoding and decoding JSON. TypeFloat_Number TypeFloat_Codec = 1 // String represents convert the field as strings when encoding and decoding JSON. TypeFloat_String TypeFloat_Codec = 2 )
func (TypeFloat_Codec) Descriptor ¶
func (TypeFloat_Codec) Descriptor() protoreflect.EnumDescriptor
func (TypeFloat_Codec) Enum ¶
func (x TypeFloat_Codec) Enum() *TypeFloat_Codec
func (TypeFloat_Codec) EnumDescriptor
deprecated
func (TypeFloat_Codec) EnumDescriptor() ([]byte, []int)
Deprecated: Use TypeFloat_Codec.Descriptor instead.
func (TypeFloat_Codec) Number ¶
func (x TypeFloat_Codec) Number() protoreflect.EnumNumber
func (TypeFloat_Codec) String ¶
func (x TypeFloat_Codec) String() string
func (TypeFloat_Codec) Type ¶
func (TypeFloat_Codec) Type() protoreflect.EnumType
type TypeInt32 ¶
type TypeInt32 struct { // Codec specifies encoding format for the field type of int32. // The default is `Number` in plain value, repeated elements and map value. // And the default is `String` in map key. Codec TypeInt32_Codec `protobuf:"varint,1,opt,name=codec,proto3,enum=json.TypeInt32_Codec" json:"codec,omitempty"` // contains filtered or unexported fields }
TypeInt32 declares the codec for field type int32.
func (*TypeInt32) Descriptor
deprecated
func (*TypeInt32) GetCodec ¶
func (x *TypeInt32) GetCodec() TypeInt32_Codec
func (*TypeInt32) ProtoMessage ¶
func (*TypeInt32) ProtoMessage()
func (*TypeInt32) ProtoReflect ¶
func (x *TypeInt32) ProtoReflect() protoreflect.Message
type TypeInt32_Codec ¶
type TypeInt32_Codec int32
const ( // Unset represents the default value will be applied when encoding and decoding JSON. TypeInt32_Unset TypeInt32_Codec = 0 // Number represents convert the field as numbers when encoding and decoding JSON. TypeInt32_Number TypeInt32_Codec = 1 // String represents convert the field as strings when encoding and decoding JSON. TypeInt32_String TypeInt32_Codec = 2 )
func (TypeInt32_Codec) Descriptor ¶
func (TypeInt32_Codec) Descriptor() protoreflect.EnumDescriptor
func (TypeInt32_Codec) Enum ¶
func (x TypeInt32_Codec) Enum() *TypeInt32_Codec
func (TypeInt32_Codec) EnumDescriptor
deprecated
func (TypeInt32_Codec) EnumDescriptor() ([]byte, []int)
Deprecated: Use TypeInt32_Codec.Descriptor instead.
func (TypeInt32_Codec) Number ¶
func (x TypeInt32_Codec) Number() protoreflect.EnumNumber
func (TypeInt32_Codec) String ¶
func (x TypeInt32_Codec) String() string
func (TypeInt32_Codec) Type ¶
func (TypeInt32_Codec) Type() protoreflect.EnumType
type TypeInt64 ¶
type TypeInt64 struct { // Codec specifies encoding format for the field type of int32. // The default is `Number` in plain value, repeated elements and map value. // And the default is `String` in map key. Codec TypeInt64_Codec `protobuf:"varint,1,opt,name=codec,proto3,enum=json.TypeInt64_Codec" json:"codec,omitempty"` // contains filtered or unexported fields }
TypeInt32 declares the codec for field type int64.
func (*TypeInt64) Descriptor
deprecated
func (*TypeInt64) GetCodec ¶
func (x *TypeInt64) GetCodec() TypeInt64_Codec
func (*TypeInt64) ProtoMessage ¶
func (*TypeInt64) ProtoMessage()
func (*TypeInt64) ProtoReflect ¶
func (x *TypeInt64) ProtoReflect() protoreflect.Message
type TypeInt64_Codec ¶
type TypeInt64_Codec int32
const ( // Unset represents the default value will be applied when encoding and decoding JSON. TypeInt64_Unset TypeInt64_Codec = 0 // Number represents convert the field as numbers when encoding and decoding JSON. TypeInt64_Number TypeInt64_Codec = 1 // String represents convert the field as strings when encoding and decoding JSON. TypeInt64_String TypeInt64_Codec = 2 )
func (TypeInt64_Codec) Descriptor ¶
func (TypeInt64_Codec) Descriptor() protoreflect.EnumDescriptor
func (TypeInt64_Codec) Enum ¶
func (x TypeInt64_Codec) Enum() *TypeInt64_Codec
func (TypeInt64_Codec) EnumDescriptor
deprecated
func (TypeInt64_Codec) EnumDescriptor() ([]byte, []int)
Deprecated: Use TypeInt64_Codec.Descriptor instead.
func (TypeInt64_Codec) Number ¶
func (x TypeInt64_Codec) Number() protoreflect.EnumNumber
func (TypeInt64_Codec) String ¶
func (x TypeInt64_Codec) String() string
func (TypeInt64_Codec) Type ¶
func (TypeInt64_Codec) Type() protoreflect.EnumType
type TypeMessage ¶
type TypeMessage struct {
// contains filtered or unexported fields
}
TypeMessage declares the codec for field type message. Notice: Reserve
func (*TypeMessage) Descriptor
deprecated
func (*TypeMessage) Descriptor() ([]byte, []int)
Deprecated: Use TypeMessage.ProtoReflect.Descriptor instead.
func (*TypeMessage) ProtoMessage ¶
func (*TypeMessage) ProtoMessage()
func (*TypeMessage) ProtoReflect ¶
func (x *TypeMessage) ProtoReflect() protoreflect.Message
func (*TypeMessage) Reset ¶
func (x *TypeMessage) Reset()
func (*TypeMessage) String ¶
func (x *TypeMessage) String() string
type TypeReference ¶
type TypeReference struct { // Types that are assignable to Kind: // *TypeReference_Plain // *TypeReference_Repeated // *TypeReference_Map Kind isTypeReference_Kind `protobuf_oneof:"Kind"` // contains filtered or unexported fields }
func (*TypeReference) Descriptor
deprecated
func (*TypeReference) Descriptor() ([]byte, []int)
Deprecated: Use TypeReference.ProtoReflect.Descriptor instead.
func (*TypeReference) GetKind ¶
func (m *TypeReference) GetKind() isTypeReference_Kind
func (*TypeReference) GetMap ¶
func (x *TypeReference) GetMap() *MapOptions
func (*TypeReference) GetPlain ¶
func (x *TypeReference) GetPlain() *PlainOptions
func (*TypeReference) GetRepeated ¶
func (x *TypeReference) GetRepeated() *RepeatedOptions
func (*TypeReference) ProtoMessage ¶
func (*TypeReference) ProtoMessage()
func (*TypeReference) ProtoReflect ¶
func (x *TypeReference) ProtoReflect() protoreflect.Message
func (*TypeReference) Reset ¶
func (x *TypeReference) Reset()
func (*TypeReference) String ¶
func (x *TypeReference) String() string
type TypeReference_Map ¶
type TypeReference_Map struct { // MapTags declares the tags applied to the map field. Map *MapOptions `protobuf:"bytes,3,opt,name=map,proto3,oneof"` }
type TypeReference_Plain ¶
type TypeReference_Plain struct { // PlainOptions declares the tags applied to the plain field. Plain *PlainOptions `protobuf:"bytes,1,opt,name=plain,proto3,oneof"` }
type TypeReference_Repeated ¶
type TypeReference_Repeated struct { // RepeatedOptions declares the tags applied to the repeated field. Repeated *RepeatedOptions `protobuf:"bytes,2,opt,name=repeated,proto3,oneof"` }
type TypeSFixed32 ¶
type TypeSFixed32 struct { // Codec specifies encoding format for the field type of sfixed32. // The default is `Number` in plain value, repeated elements and map value. // And the default is `String` in map key. Codec TypeSFixed32_Codec `protobuf:"varint,1,opt,name=codec,proto3,enum=json.TypeSFixed32_Codec" json:"codec,omitempty"` // contains filtered or unexported fields }
TypeInt32 declares the codec for field type sfixed32.
func (*TypeSFixed32) Descriptor
deprecated
func (*TypeSFixed32) Descriptor() ([]byte, []int)
Deprecated: Use TypeSFixed32.ProtoReflect.Descriptor instead.
func (*TypeSFixed32) GetCodec ¶
func (x *TypeSFixed32) GetCodec() TypeSFixed32_Codec
func (*TypeSFixed32) ProtoMessage ¶
func (*TypeSFixed32) ProtoMessage()
func (*TypeSFixed32) ProtoReflect ¶
func (x *TypeSFixed32) ProtoReflect() protoreflect.Message
func (*TypeSFixed32) Reset ¶
func (x *TypeSFixed32) Reset()
func (*TypeSFixed32) String ¶
func (x *TypeSFixed32) String() string
type TypeSFixed32_Codec ¶
type TypeSFixed32_Codec int32
const ( // Unset represents the default value will be applied when encoding and decoding JSON. TypeSFixed32_Unset TypeSFixed32_Codec = 0 // Number represents convert the field as numbers when encoding and decoding JSON. TypeSFixed32_Number TypeSFixed32_Codec = 1 // String represents convert the field as strings when encoding and decoding JSON. TypeSFixed32_String TypeSFixed32_Codec = 2 )
func (TypeSFixed32_Codec) Descriptor ¶
func (TypeSFixed32_Codec) Descriptor() protoreflect.EnumDescriptor
func (TypeSFixed32_Codec) Enum ¶
func (x TypeSFixed32_Codec) Enum() *TypeSFixed32_Codec
func (TypeSFixed32_Codec) EnumDescriptor
deprecated
func (TypeSFixed32_Codec) EnumDescriptor() ([]byte, []int)
Deprecated: Use TypeSFixed32_Codec.Descriptor instead.
func (TypeSFixed32_Codec) Number ¶
func (x TypeSFixed32_Codec) Number() protoreflect.EnumNumber
func (TypeSFixed32_Codec) String ¶
func (x TypeSFixed32_Codec) String() string
func (TypeSFixed32_Codec) Type ¶
func (TypeSFixed32_Codec) Type() protoreflect.EnumType
type TypeSFixed64 ¶
type TypeSFixed64 struct { // Codec specifies encoding format for the field type of sfixed64. // The default is `Number` in plain value, repeated elements and map value. // And the default is `String` in map key. Codec TypeSFixed64_Codec `protobuf:"varint,1,opt,name=codec,proto3,enum=json.TypeSFixed64_Codec" json:"codec,omitempty"` // contains filtered or unexported fields }
TypeInt32 declares the codec for field type sfixed64.
func (*TypeSFixed64) Descriptor
deprecated
func (*TypeSFixed64) Descriptor() ([]byte, []int)
Deprecated: Use TypeSFixed64.ProtoReflect.Descriptor instead.
func (*TypeSFixed64) GetCodec ¶
func (x *TypeSFixed64) GetCodec() TypeSFixed64_Codec
func (*TypeSFixed64) ProtoMessage ¶
func (*TypeSFixed64) ProtoMessage()
func (*TypeSFixed64) ProtoReflect ¶
func (x *TypeSFixed64) ProtoReflect() protoreflect.Message
func (*TypeSFixed64) Reset ¶
func (x *TypeSFixed64) Reset()
func (*TypeSFixed64) String ¶
func (x *TypeSFixed64) String() string
type TypeSFixed64_Codec ¶
type TypeSFixed64_Codec int32
const ( // Unset represents the default value will be applied when encoding and decoding JSON. TypeSFixed64_Unset TypeSFixed64_Codec = 0 // Number represents convert the field as numbers when encoding and decoding JSON. TypeSFixed64_Number TypeSFixed64_Codec = 1 // String represents convert the field as strings when encoding and decoding JSON. TypeSFixed64_String TypeSFixed64_Codec = 2 )
func (TypeSFixed64_Codec) Descriptor ¶
func (TypeSFixed64_Codec) Descriptor() protoreflect.EnumDescriptor
func (TypeSFixed64_Codec) Enum ¶
func (x TypeSFixed64_Codec) Enum() *TypeSFixed64_Codec
func (TypeSFixed64_Codec) EnumDescriptor
deprecated
func (TypeSFixed64_Codec) EnumDescriptor() ([]byte, []int)
Deprecated: Use TypeSFixed64_Codec.Descriptor instead.
func (TypeSFixed64_Codec) Number ¶
func (x TypeSFixed64_Codec) Number() protoreflect.EnumNumber
func (TypeSFixed64_Codec) String ¶
func (x TypeSFixed64_Codec) String() string
func (TypeSFixed64_Codec) Type ¶
func (TypeSFixed64_Codec) Type() protoreflect.EnumType
type TypeSInt32 ¶
type TypeSInt32 struct { // Codec specifies encoding format for the field type of sint32. // The default is `Number` in plain value, repeated elements and map value. // And the default is `String` in map key. Codec TypeSInt32_Codec `protobuf:"varint,1,opt,name=codec,proto3,enum=json.TypeSInt32_Codec" json:"codec,omitempty"` // contains filtered or unexported fields }
TypeInt32 declares the codec for field type sint32.
func (*TypeSInt32) Descriptor
deprecated
func (*TypeSInt32) Descriptor() ([]byte, []int)
Deprecated: Use TypeSInt32.ProtoReflect.Descriptor instead.
func (*TypeSInt32) GetCodec ¶
func (x *TypeSInt32) GetCodec() TypeSInt32_Codec
func (*TypeSInt32) ProtoMessage ¶
func (*TypeSInt32) ProtoMessage()
func (*TypeSInt32) ProtoReflect ¶
func (x *TypeSInt32) ProtoReflect() protoreflect.Message
func (*TypeSInt32) Reset ¶
func (x *TypeSInt32) Reset()
func (*TypeSInt32) String ¶
func (x *TypeSInt32) String() string
type TypeSInt32_Codec ¶
type TypeSInt32_Codec int32
const ( // Unset represents the default value will be applied when encoding and decoding JSON. TypeSInt32_Unset TypeSInt32_Codec = 0 // Number represents convert the field as numbers when encoding and decoding JSON. TypeSInt32_Number TypeSInt32_Codec = 1 // String represents convert the field as strings when encoding and decoding JSON. TypeSInt32_String TypeSInt32_Codec = 2 )
func (TypeSInt32_Codec) Descriptor ¶
func (TypeSInt32_Codec) Descriptor() protoreflect.EnumDescriptor
func (TypeSInt32_Codec) Enum ¶
func (x TypeSInt32_Codec) Enum() *TypeSInt32_Codec
func (TypeSInt32_Codec) EnumDescriptor
deprecated
func (TypeSInt32_Codec) EnumDescriptor() ([]byte, []int)
Deprecated: Use TypeSInt32_Codec.Descriptor instead.
func (TypeSInt32_Codec) Number ¶
func (x TypeSInt32_Codec) Number() protoreflect.EnumNumber
func (TypeSInt32_Codec) String ¶
func (x TypeSInt32_Codec) String() string
func (TypeSInt32_Codec) Type ¶
func (TypeSInt32_Codec) Type() protoreflect.EnumType
type TypeSInt64 ¶
type TypeSInt64 struct { // Codec specifies encoding format for the field type of sint64. // The default is `Number` in plain value, repeated elements and map value. // And the default is `String` in map key. Codec TypeSInt64_Codec `protobuf:"varint,1,opt,name=codec,proto3,enum=json.TypeSInt64_Codec" json:"codec,omitempty"` // contains filtered or unexported fields }
TypeInt32 declares the codec for field type sint64.
func (*TypeSInt64) Descriptor
deprecated
func (*TypeSInt64) Descriptor() ([]byte, []int)
Deprecated: Use TypeSInt64.ProtoReflect.Descriptor instead.
func (*TypeSInt64) GetCodec ¶
func (x *TypeSInt64) GetCodec() TypeSInt64_Codec
func (*TypeSInt64) ProtoMessage ¶
func (*TypeSInt64) ProtoMessage()
func (*TypeSInt64) ProtoReflect ¶
func (x *TypeSInt64) ProtoReflect() protoreflect.Message
func (*TypeSInt64) Reset ¶
func (x *TypeSInt64) Reset()
func (*TypeSInt64) String ¶
func (x *TypeSInt64) String() string
type TypeSInt64_Codec ¶
type TypeSInt64_Codec int32
const ( // Unset represents the default value will be applied when encoding and decoding JSON. TypeSInt64_Unset TypeSInt64_Codec = 0 // Number represents convert the field as numbers when encoding and decoding JSON. TypeSInt64_Number TypeSInt64_Codec = 1 // String represents convert the field as strings when encoding and decoding JSON. TypeSInt64_String TypeSInt64_Codec = 2 )
func (TypeSInt64_Codec) Descriptor ¶
func (TypeSInt64_Codec) Descriptor() protoreflect.EnumDescriptor
func (TypeSInt64_Codec) Enum ¶
func (x TypeSInt64_Codec) Enum() *TypeSInt64_Codec
func (TypeSInt64_Codec) EnumDescriptor
deprecated
func (TypeSInt64_Codec) EnumDescriptor() ([]byte, []int)
Deprecated: Use TypeSInt64_Codec.Descriptor instead.
func (TypeSInt64_Codec) Number ¶
func (x TypeSInt64_Codec) Number() protoreflect.EnumNumber
func (TypeSInt64_Codec) String ¶
func (x TypeSInt64_Codec) String() string
func (TypeSInt64_Codec) Type ¶
func (TypeSInt64_Codec) Type() protoreflect.EnumType
type TypeString ¶
type TypeString struct {
// contains filtered or unexported fields
}
TypeString declares the codec for field type string. Notice: Reserve
func (*TypeString) Descriptor
deprecated
func (*TypeString) Descriptor() ([]byte, []int)
Deprecated: Use TypeString.ProtoReflect.Descriptor instead.
func (*TypeString) ProtoMessage ¶
func (*TypeString) ProtoMessage()
func (*TypeString) ProtoReflect ¶
func (x *TypeString) ProtoReflect() protoreflect.Message
func (*TypeString) Reset ¶
func (x *TypeString) Reset()
func (*TypeString) String ¶
func (x *TypeString) String() string
type TypeTimestamp ¶
type TypeTimestamp struct { // Codec specifies encoding format for the field type of google.protobuf.Timestamp. // The default is `Object` in plain value, repeated elements and map value. Codec TypeTimestamp_Codec `protobuf:"varint,1,opt,name=codec,proto3,enum=json.TypeTimestamp_Codec" json:"codec,omitempty"` // Only used if the codec is `TimeLayout`. Layout *TypeTimestamp_Layout `protobuf:"bytes,2,opt,name=layout,proto3" json:"layout,omitempty"` // contains filtered or unexported fields }
TypeInt32 declares the codec for field type google.proto.Timestamp.
func (*TypeTimestamp) Descriptor
deprecated
func (*TypeTimestamp) Descriptor() ([]byte, []int)
Deprecated: Use TypeTimestamp.ProtoReflect.Descriptor instead.
func (*TypeTimestamp) GetCodec ¶
func (x *TypeTimestamp) GetCodec() TypeTimestamp_Codec
func (*TypeTimestamp) GetLayout ¶
func (x *TypeTimestamp) GetLayout() *TypeTimestamp_Layout
func (*TypeTimestamp) ProtoMessage ¶
func (*TypeTimestamp) ProtoMessage()
func (*TypeTimestamp) ProtoReflect ¶
func (x *TypeTimestamp) ProtoReflect() protoreflect.Message
func (*TypeTimestamp) Reset ¶
func (x *TypeTimestamp) Reset()
func (*TypeTimestamp) String ¶
func (x *TypeTimestamp) String() string
type TypeTimestamp_Codec ¶
type TypeTimestamp_Codec int32
const ( // Unset represents the default value will be applied when encoding and decoding JSON. TypeTimestamp_Unset TypeTimestamp_Codec = 0 // Object represents convert the google.protobuf.Timestamp as objects and encoding and decoding by standard JSON. TypeTimestamp_Object TypeTimestamp_Codec = 1 // TimeLayout represents convert the google.protobuf.Timestamp as time strings by `Layout` when encoding and decoding. TypeTimestamp_TimeLayout TypeTimestamp_Codec = 2 // UnixNano represents convert the google.protobuf.Timestamp as nanosecond timestamp of type int64 when encoding and decoding. TypeTimestamp_UnixNano TypeTimestamp_Codec = 3 // String represents use the UnixNano and convert to string when encoding and decoding. TypeTimestamp_UnixNanoString TypeTimestamp_Codec = 4 // UnixMicro represents convert the google.protobuf.Timestamp as microsecond timestamp of type int64 when encoding and decoding. TypeTimestamp_UnixMicro TypeTimestamp_Codec = 5 // String represents use the UnixMicro and convert to string when encoding and decoding. TypeTimestamp_UnixMicroString TypeTimestamp_Codec = 6 // UnixMilli represents convert the google.protobuf.Timestamp as millisecond timestamp of type int64 when encoding and decoding. TypeTimestamp_UnixMilli TypeTimestamp_Codec = 7 // String represents use the UnixMilli and convert to string when encoding and decoding. TypeTimestamp_UnixMilliString TypeTimestamp_Codec = 8 // UnixSec represents convert the google.protobuf.Timestamp as second timestamp of type int64 when encoding and decoding. TypeTimestamp_UnixSec TypeTimestamp_Codec = 9 // String represents use the UnixSec and convert to string when encoding and decoding. TypeTimestamp_UnixSecString TypeTimestamp_Codec = 10 )
func (TypeTimestamp_Codec) Descriptor ¶
func (TypeTimestamp_Codec) Descriptor() protoreflect.EnumDescriptor
func (TypeTimestamp_Codec) Enum ¶
func (x TypeTimestamp_Codec) Enum() *TypeTimestamp_Codec
func (TypeTimestamp_Codec) EnumDescriptor
deprecated
func (TypeTimestamp_Codec) EnumDescriptor() ([]byte, []int)
Deprecated: Use TypeTimestamp_Codec.Descriptor instead.
func (TypeTimestamp_Codec) Number ¶
func (x TypeTimestamp_Codec) Number() protoreflect.EnumNumber
func (TypeTimestamp_Codec) String ¶
func (x TypeTimestamp_Codec) String() string
func (TypeTimestamp_Codec) Type ¶
func (TypeTimestamp_Codec) Type() protoreflect.EnumType
type TypeTimestamp_Layout ¶
type TypeTimestamp_Layout struct { // Used to set the time layout for language Golang. // Default is time.RFC3339Nano(`2006-01-02T15:04:05.999999999Z07:00`) Golang string `protobuf:"bytes,1,opt,name=golang,proto3" json:"golang,omitempty"` // Used to set the time layout for language Java. Java string `protobuf:"bytes,2,opt,name=java,proto3" json:"java,omitempty"` // Used to set the time layout for language Rust. Rust string `protobuf:"bytes,3,opt,name=rust,proto3" json:"rust,omitempty"` // Used to set the time layout for language Python. Python string `protobuf:"bytes,4,opt,name=python,proto3" json:"python,omitempty"` // contains filtered or unexported fields }
func (*TypeTimestamp_Layout) Descriptor
deprecated
func (*TypeTimestamp_Layout) Descriptor() ([]byte, []int)
Deprecated: Use TypeTimestamp_Layout.ProtoReflect.Descriptor instead.
func (*TypeTimestamp_Layout) GetGolang ¶
func (x *TypeTimestamp_Layout) GetGolang() string
func (*TypeTimestamp_Layout) GetJava ¶
func (x *TypeTimestamp_Layout) GetJava() string
func (*TypeTimestamp_Layout) GetPython ¶
func (x *TypeTimestamp_Layout) GetPython() string
func (*TypeTimestamp_Layout) GetRust ¶
func (x *TypeTimestamp_Layout) GetRust() string
func (*TypeTimestamp_Layout) ProtoMessage ¶
func (*TypeTimestamp_Layout) ProtoMessage()
func (*TypeTimestamp_Layout) ProtoReflect ¶
func (x *TypeTimestamp_Layout) ProtoReflect() protoreflect.Message
func (*TypeTimestamp_Layout) Reset ¶
func (x *TypeTimestamp_Layout) Reset()
func (*TypeTimestamp_Layout) String ¶
func (x *TypeTimestamp_Layout) String() string
type TypeUint32 ¶
type TypeUint32 struct { // Codec specifies encoding format for the field type of uint32. // The default is `Number` in plain value, repeated elements and map value. // And the default is `String` in map key. Codec TypeUint32_Codec `protobuf:"varint,1,opt,name=codec,proto3,enum=json.TypeUint32_Codec" json:"codec,omitempty"` // contains filtered or unexported fields }
TypeInt32 declares the codec for field type uint32.
func (*TypeUint32) Descriptor
deprecated
func (*TypeUint32) Descriptor() ([]byte, []int)
Deprecated: Use TypeUint32.ProtoReflect.Descriptor instead.
func (*TypeUint32) GetCodec ¶
func (x *TypeUint32) GetCodec() TypeUint32_Codec
func (*TypeUint32) ProtoMessage ¶
func (*TypeUint32) ProtoMessage()
func (*TypeUint32) ProtoReflect ¶
func (x *TypeUint32) ProtoReflect() protoreflect.Message
func (*TypeUint32) Reset ¶
func (x *TypeUint32) Reset()
func (*TypeUint32) String ¶
func (x *TypeUint32) String() string
type TypeUint32_Codec ¶
type TypeUint32_Codec int32
const ( // Unset represents the default value will be applied when encoding and decoding JSON. TypeUint32_Unset TypeUint32_Codec = 0 // Number represents convert the field as numbers when encoding and decoding JSON. TypeUint32_Number TypeUint32_Codec = 1 // String represents convert the field as strings when encoding and decoding JSON. TypeUint32_String TypeUint32_Codec = 2 )
func (TypeUint32_Codec) Descriptor ¶
func (TypeUint32_Codec) Descriptor() protoreflect.EnumDescriptor
func (TypeUint32_Codec) Enum ¶
func (x TypeUint32_Codec) Enum() *TypeUint32_Codec
func (TypeUint32_Codec) EnumDescriptor
deprecated
func (TypeUint32_Codec) EnumDescriptor() ([]byte, []int)
Deprecated: Use TypeUint32_Codec.Descriptor instead.
func (TypeUint32_Codec) Number ¶
func (x TypeUint32_Codec) Number() protoreflect.EnumNumber
func (TypeUint32_Codec) String ¶
func (x TypeUint32_Codec) String() string
func (TypeUint32_Codec) Type ¶
func (TypeUint32_Codec) Type() protoreflect.EnumType
type TypeUint64 ¶
type TypeUint64 struct { // Codec specifies encoding format for the field type of uint64. // The default is `Number` in plain value, repeated elements and map value. // And the default is `String` in map key. Codec TypeUint64_Codec `protobuf:"varint,1,opt,name=codec,proto3,enum=json.TypeUint64_Codec" json:"codec,omitempty"` // contains filtered or unexported fields }
TypeInt32 declares the codec for field type uint64.
func (*TypeUint64) Descriptor
deprecated
func (*TypeUint64) Descriptor() ([]byte, []int)
Deprecated: Use TypeUint64.ProtoReflect.Descriptor instead.
func (*TypeUint64) GetCodec ¶
func (x *TypeUint64) GetCodec() TypeUint64_Codec
func (*TypeUint64) ProtoMessage ¶
func (*TypeUint64) ProtoMessage()
func (*TypeUint64) ProtoReflect ¶
func (x *TypeUint64) ProtoReflect() protoreflect.Message
func (*TypeUint64) Reset ¶
func (x *TypeUint64) Reset()
func (*TypeUint64) String ¶
func (x *TypeUint64) String() string
type TypeUint64_Codec ¶
type TypeUint64_Codec int32
const ( // Unset represents the default value will be applied when encoding and decoding JSON. TypeUint64_Unset TypeUint64_Codec = 0 // Number represents convert the field as numbers when encoding and decoding JSON. TypeUint64_Number TypeUint64_Codec = 1 // String represents convert the field as strings when encoding and decoding JSON. TypeUint64_String TypeUint64_Codec = 2 )
func (TypeUint64_Codec) Descriptor ¶
func (TypeUint64_Codec) Descriptor() protoreflect.EnumDescriptor
func (TypeUint64_Codec) Enum ¶
func (x TypeUint64_Codec) Enum() *TypeUint64_Codec
func (TypeUint64_Codec) EnumDescriptor
deprecated
func (TypeUint64_Codec) EnumDescriptor() ([]byte, []int)
Deprecated: Use TypeUint64_Codec.Descriptor instead.
func (TypeUint64_Codec) Number ¶
func (x TypeUint64_Codec) Number() protoreflect.EnumNumber
func (TypeUint64_Codec) String ¶
func (x TypeUint64_Codec) String() string
func (TypeUint64_Codec) Type ¶
func (TypeUint64_Codec) Type() protoreflect.EnumType