Documentation
¶
Index ¶
- Variables
- type Encoding
- func (Encoding) Descriptor() protoreflect.EnumDescriptor
- func (x Encoding) Enum() *Encoding
- func (Encoding) EnumDescriptor() ([]byte, []int)deprecated
- func (x Encoding) MarshalGQL(w io.Writer)
- func (x Encoding) NewString() string
- func (x Encoding) Number() protoreflect.EnumNumber
- func (x Encoding) String() string
- func (Encoding) Type() protoreflect.EnumType
- func (x *Encoding) UnmarshalGQL(v interface{}) error
- type RawData
- type RawJson
- func (*RawJson) Descriptor() ([]byte, []int)deprecated
- func (x *RawJson) GetData() []byte
- func (a *RawJson) MarshalJSON() ([]byte, error)
- func (a *RawJson) MarshalTo(b []byte) (int, error)
- func (a *RawJson) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RawJson) ProtoMessage()
- func (x *RawJson) ProtoReflect() protoreflect.Message
- func (x *RawJson) Reset()
- func (a *RawJson) Size() int
- func (x *RawJson) String() string
- func (a *RawJson) Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Encoding_name = map[int32]string{ 0: "JSON", } Encoding_value = map[string]int32{ "JSON": 0, } )
Enum value maps for Encoding.
View Source
var File_cherry_protobuf_any_any_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Encoding ¶ added in v1.5.11
type Encoding int32
const (
Encoding_JSON Encoding = 0
)
func (Encoding) Descriptor ¶ added in v1.5.11
func (Encoding) Descriptor() protoreflect.EnumDescriptor
func (Encoding) EnumDescriptor
deprecated
added in
v1.5.11
func (Encoding) MarshalGQL ¶ added in v1.5.11
func (Encoding) Number ¶ added in v1.5.11
func (x Encoding) Number() protoreflect.EnumNumber
func (Encoding) Type ¶ added in v1.5.11
func (Encoding) Type() protoreflect.EnumType
func (*Encoding) UnmarshalGQL ¶ added in v1.5.11
type RawData ¶ added in v1.5.11
type RawData struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Encoding Encoding `protobuf:"varint,2,opt,name=encoding,proto3,enum=any.Encoding" json:"encoding,omitempty"` // contains filtered or unexported fields }
func (*RawData) Descriptor
deprecated
added in
v1.5.11
func (*RawData) GetEncoding ¶ added in v1.5.11
func (*RawData) ProtoMessage ¶ added in v1.5.11
func (*RawData) ProtoMessage()
func (*RawData) ProtoReflect ¶ added in v1.5.11
func (x *RawData) ProtoReflect() protoreflect.Message
type RawJson ¶
type RawJson struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func BytesToJsonAny ¶
func StringToJsonAny ¶
func (*RawJson) Descriptor
deprecated
func (*RawJson) MarshalJSON ¶
func (*RawJson) MarshalToSizedBuffer ¶
func (*RawJson) ProtoMessage ¶
func (*RawJson) ProtoMessage()
func (*RawJson) ProtoReflect ¶
func (x *RawJson) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.