any

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 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_hopeio_any_any_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Encoding

type Encoding int32
const (
	Encoding_JSON Encoding = 0
)

func (Encoding) Descriptor

func (Encoding) Descriptor() protoreflect.EnumDescriptor

func (Encoding) Enum

func (x Encoding) Enum() *Encoding

func (Encoding) EnumDescriptor deprecated

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

Deprecated: Use Encoding.Descriptor instead.

func (Encoding) MarshalGQL

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

func (Encoding) NewString

func (x Encoding) NewString() string

func (Encoding) Number

func (x Encoding) Number() protoreflect.EnumNumber

func (Encoding) String

func (x Encoding) String() string

func (Encoding) Type

func (*Encoding) UnmarshalGQL

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

type RawData

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

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

Deprecated: Use RawData.ProtoReflect.Descriptor instead.

func (*RawData) GetData

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

func (*RawData) GetEncoding

func (x *RawData) GetEncoding() Encoding

func (*RawData) ProtoMessage

func (*RawData) ProtoMessage()

func (*RawData) ProtoReflect

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

func (*RawData) Reset

func (x *RawData) Reset()

func (*RawData) String

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

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