any_j5t

package
v0.0.0-...-7fdb683 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_j5_types_any_v1_any_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Any

type Any struct {

	// proto fullName (package.name) (not the type URL)
	TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"`
	// Proto encoded message
	Proto []byte `protobuf:"bytes,2,opt,name=proto,proto3" json:"proto,omitempty"`
	// J5 JSON encoded message
	J5Json []byte `protobuf:"bytes,3,opt,name=j5_json,json=j5Json,proto3" json:"j5_json,omitempty"`
	// contains filtered or unexported fields
}

Embed wraps a message from outside of the schema. It works like an 'any' field in proto, but with pre-encoded J5-JSON.

Applications can work with either the Proto or J5-JSON encoded format. producers will usually only set one, but if both are set they MUST be the same data.

gRPC applications should set the proto encoding, allowing Infra-level Adapters to fill the j5_json encoding, using the gRPC reflection API.

Client facing 'edge adapters' will include the J5 json inline.

func FromProto

func FromProto(msg proto.Message) (*Any, error)

func (*Any) Descriptor deprecated

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

Deprecated: Use Any.ProtoReflect.Descriptor instead.

func (*Any) GetJ5Json

func (x *Any) GetJ5Json() []byte

func (*Any) GetProto

func (x *Any) GetProto() []byte

func (*Any) GetTypeName

func (x *Any) GetTypeName() string

func (*Any) ProtoMessage

func (*Any) ProtoMessage()

func (*Any) ProtoReflect

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

func (*Any) Reset

func (x *Any) Reset()

func (*Any) String

func (x *Any) String() string

Jump to

Keyboard shortcuts

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