any

package
v1.15.5 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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) Enum added in v1.5.11

func (x Encoding) Enum() *Encoding

func (Encoding) EnumDescriptor deprecated added in v1.5.11

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

Deprecated: Use Encoding.Descriptor instead.

func (Encoding) MarshalGQL added in v1.5.11

func (x Encoding) MarshalGQL(w io.Writer)

func (Encoding) NewString added in v1.5.11

func (x Encoding) NewString() string

func (Encoding) Number added in v1.5.11

func (x Encoding) Number() protoreflect.EnumNumber

func (Encoding) String added in v1.5.11

func (x Encoding) String() string

func (Encoding) Type added in v1.5.11

func (*Encoding) UnmarshalGQL added in v1.5.11

func (x *Encoding) UnmarshalGQL(v interface{}) error

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) Descriptor() ([]byte, []int)

Deprecated: Use RawData.ProtoReflect.Descriptor instead.

func (*RawData) GetData added in v1.5.11

func (x *RawData) GetData() []byte

func (*RawData) GetEncoding added in v1.5.11

func (x *RawData) GetEncoding() Encoding

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

func (*RawData) Reset added in v1.5.11

func (x *RawData) Reset()

func (*RawData) String added in v1.5.11

func (x *RawData) String() string

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 BytesToJsonAny(b []byte) *RawJson

func NewAny

func NewAny(v interface{}) (*RawJson, error)

func StringToJsonAny

func StringToJsonAny(s string) *RawJson

func (*RawJson) Descriptor deprecated

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

Deprecated: Use RawJson.ProtoReflect.Descriptor instead.

func (*RawJson) GetData added in v1.5.11

func (x *RawJson) GetData() []byte

func (*RawJson) MarshalJSON

func (a *RawJson) MarshalJSON() ([]byte, error)

func (*RawJson) MarshalTo

func (a *RawJson) MarshalTo(b []byte) (int, error)

func (*RawJson) MarshalToSizedBuffer

func (a *RawJson) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RawJson) ProtoMessage

func (*RawJson) ProtoMessage()

func (*RawJson) ProtoReflect

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

func (*RawJson) Reset

func (x *RawJson) Reset()

func (*RawJson) Size

func (a *RawJson) Size() int

func (*RawJson) String

func (x *RawJson) String() string

func (*RawJson) Unmarshal

func (a *RawJson) Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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