any

package
v0.6.10 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 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) Comment added in v0.5.11

func (x Encoding) Comment() string

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) 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"`
	// contains filtered or unexported fields
}

func NewAny

func NewAny(data []byte) (*RawData, error)

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) MarshalJSON added in v0.5.14

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

func (*RawData) MarshalTo added in v0.5.14

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

func (*RawData) MarshalToSizedBuffer added in v0.5.14

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

func (*RawData) ProtoMessage

func (*RawData) ProtoMessage()

func (*RawData) ProtoReflect

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

func (*RawData) Reset

func (x *RawData) Reset()

func (*RawData) Size added in v0.5.14

func (a *RawData) Size() int

func (*RawData) String

func (x *RawData) String() string

func (*RawData) Unmarshal added in v0.5.14

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

type RawEncodingData added in v0.5.14

type RawEncodingData 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 (*RawEncodingData) Descriptor deprecated added in v0.5.14

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

Deprecated: Use RawEncodingData.ProtoReflect.Descriptor instead.

func (*RawEncodingData) GetData added in v0.5.14

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

func (*RawEncodingData) GetEncoding added in v0.5.14

func (x *RawEncodingData) GetEncoding() Encoding

func (*RawEncodingData) ProtoMessage added in v0.5.14

func (*RawEncodingData) ProtoMessage()

func (*RawEncodingData) ProtoReflect added in v0.5.14

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

func (*RawEncodingData) Reset added in v0.5.14

func (x *RawEncodingData) Reset()

func (*RawEncodingData) String added in v0.5.14

func (x *RawEncodingData) String() string

Jump to

Keyboard shortcuts

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