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 (*Any) Descriptor
deprecated
func (*Any) GetTypeName ¶
func (*Any) ProtoMessage ¶
func (*Any) ProtoMessage()
func (*Any) ProtoReflect ¶
func (x *Any) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.