Documentation ¶
Index ¶
- Variables
- type Basic
- func (*Basic) Descriptor() ([]byte, []int)deprecated
- func (x *Basic) GetA() string
- func (x *Basic) GetMeta() *_struct.Struct
- func (m *Basic) MarshalJSON() ([]byte, error)
- func (*Basic) ProtoMessage()
- func (x *Basic) ProtoReflect() protoreflect.Message
- func (x *Basic) Reset()
- func (x *Basic) String() string
- func (m *Basic) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var BasicJSONMarshaler = protojson.MarshalOptions{}
BasicJSONMarshaler describes the default jsonpb.Marshaler used by all instances of Basic. This struct is safe to replace or modify but should not be done so concurrently.
View Source
var BasicJSONUnmarshaler = protojson.UnmarshalOptions{ DiscardUnknown: true, }
BasicJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of Basic. This struct is safe to replace or modify but should not be done so concurrently.
View Source
var File_example_e2e_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Basic ¶
type Basic struct { A string `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"` Meta *_struct.Struct `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*Basic) Descriptor
deprecated
func (*Basic) MarshalJSON ¶
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*Basic) ProtoMessage ¶
func (*Basic) ProtoMessage()
func (*Basic) ProtoReflect ¶
func (x *Basic) ProtoReflect() protoreflect.Message
func (*Basic) UnmarshalJSON ¶
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
Click to show internal directories.
Click to hide internal directories.