Documentation ¶
Index ¶
- Variables
- type EchoMsg
- func (m *EchoMsg) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *EchoMsg) CloneVT() *EchoMsg
- func (this *EchoMsg) EqualMessageVT(thatMsg any) bool
- func (this *EchoMsg) EqualVT(that *EchoMsg) bool
- func (x *EchoMsg) GetBody() string
- func (m *EchoMsg) GetDemo() isEchoMsg_Demo
- func (x *EchoMsg) GetExampleEnum() ExampleEnum
- func (x *EchoMsg) GetExampleString() string
- func (x *EchoMsg) GetTimestamps() []*timestamppb.Timestamp
- func (x *EchoMsg) GetTs() *timestamppb.Timestamp
- func (x *EchoMsg) MarshalJSON() ([]byte, error)
- func (x *EchoMsg) MarshalProtoJSON(s *json.MarshalState)
- func (x *EchoMsg) MarshalProtoText() string
- func (m *EchoMsg) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *EchoMsg) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
- func (m *EchoMsg) MarshalToVT(dAtA []byte) (int, error)
- func (m *EchoMsg) MarshalToVTStrict(dAtA []byte) (int, error)
- func (m *EchoMsg) MarshalVT() (dAtA []byte, err error)
- func (m *EchoMsg) MarshalVTStrict() (dAtA []byte, err error)
- func (*EchoMsg) ProtoMessage()
- func (x *EchoMsg) Reset()
- func (m *EchoMsg) SizeVT() (n int)
- func (x *EchoMsg) String() string
- func (x *EchoMsg) UnmarshalJSON(b []byte) error
- func (x *EchoMsg) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *EchoMsg) UnmarshalVT(dAtA []byte) error
- func (m *EchoMsg) UnmarshalVTUnsafe(dAtA []byte) error
- type EchoMsg_ExampleEnum
- func (m *EchoMsg_ExampleEnum) CloneOneofVT() isEchoMsg_Demo
- func (m *EchoMsg_ExampleEnum) CloneVT() *EchoMsg_ExampleEnum
- func (this *EchoMsg_ExampleEnum) EqualVT(thatIface isEchoMsg_Demo) bool
- func (m *EchoMsg_ExampleEnum) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *EchoMsg_ExampleEnum) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
- func (m *EchoMsg_ExampleEnum) MarshalToVT(dAtA []byte) (int, error)
- func (m *EchoMsg_ExampleEnum) MarshalToVTStrict(dAtA []byte) (int, error)
- func (m *EchoMsg_ExampleEnum) SizeVT() (n int)
- type EchoMsg_ExampleString
- func (m *EchoMsg_ExampleString) CloneOneofVT() isEchoMsg_Demo
- func (m *EchoMsg_ExampleString) CloneVT() *EchoMsg_ExampleString
- func (this *EchoMsg_ExampleString) EqualVT(thatIface isEchoMsg_Demo) bool
- func (m *EchoMsg_ExampleString) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *EchoMsg_ExampleString) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
- func (m *EchoMsg_ExampleString) MarshalToVT(dAtA []byte) (int, error)
- func (m *EchoMsg_ExampleString) MarshalToVTStrict(dAtA []byte) (int, error)
- func (m *EchoMsg_ExampleString) SizeVT() (n int)
- type ExampleEnum
- func (x ExampleEnum) Enum() *ExampleEnum
- func (x ExampleEnum) MarshalJSON() ([]byte, error)
- func (x ExampleEnum) MarshalProtoJSON(s *json.MarshalState)
- func (x ExampleEnum) MarshalProtoText() string
- func (x ExampleEnum) MarshalText() ([]byte, error)
- func (x ExampleEnum) String() string
- func (x *ExampleEnum) UnmarshalJSON(b []byte) error
- func (x *ExampleEnum) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *ExampleEnum) UnmarshalText(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ExampleEnum_name = map[int32]string{ 0: "UNKNOWN", 1: "FIRST", 2: "SECOND", } ExampleEnum_value = map[string]int32{ "UNKNOWN": 0, "FIRST": 1, "SECOND": 2, } )
Enum value maps for ExampleEnum.
Functions ¶
This section is empty.
Types ¶
type EchoMsg ¶
type EchoMsg struct { Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` Ts *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=ts,proto3" json:"ts,omitempty"` // Types that are assignable to Demo: // // *EchoMsg_ExampleEnum // *EchoMsg_ExampleString Demo isEchoMsg_Demo `protobuf_oneof:"demo"` Timestamps []*timestamppb.Timestamp `protobuf:"bytes,5,rep,name=timestamps,proto3" json:"timestamps,omitempty"` // contains filtered or unexported fields }
EchoMsg is the message body for Echo.
func (*EchoMsg) CloneMessageVT ¶
func (m *EchoMsg) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*EchoMsg) EqualMessageVT ¶
func (*EchoMsg) GetExampleEnum ¶
func (x *EchoMsg) GetExampleEnum() ExampleEnum
func (*EchoMsg) GetExampleString ¶
func (*EchoMsg) GetTimestamps ¶
func (x *EchoMsg) GetTimestamps() []*timestamppb.Timestamp
func (*EchoMsg) GetTs ¶
func (x *EchoMsg) GetTs() *timestamppb.Timestamp
func (*EchoMsg) MarshalJSON ¶
MarshalJSON marshals the EchoMsg to JSON.
func (*EchoMsg) MarshalProtoJSON ¶
func (x *EchoMsg) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the EchoMsg message to JSON.
func (*EchoMsg) MarshalProtoText ¶
func (*EchoMsg) MarshalToSizedBufferVT ¶
func (*EchoMsg) MarshalToSizedBufferVTStrict ¶
func (*EchoMsg) MarshalVTStrict ¶
func (*EchoMsg) ProtoMessage ¶
func (*EchoMsg) ProtoMessage()
func (*EchoMsg) UnmarshalJSON ¶
UnmarshalJSON unmarshals the EchoMsg from JSON.
func (*EchoMsg) UnmarshalProtoJSON ¶
func (x *EchoMsg) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the EchoMsg message from JSON.
func (*EchoMsg) UnmarshalVT ¶
func (*EchoMsg) UnmarshalVTUnsafe ¶
type EchoMsg_ExampleEnum ¶
type EchoMsg_ExampleEnum struct {
ExampleEnum ExampleEnum `protobuf:"varint,3,opt,name=example_enum,json=exampleEnum,proto3,oneof"`
}
func (*EchoMsg_ExampleEnum) CloneOneofVT ¶
func (m *EchoMsg_ExampleEnum) CloneOneofVT() isEchoMsg_Demo
func (*EchoMsg_ExampleEnum) CloneVT ¶
func (m *EchoMsg_ExampleEnum) CloneVT() *EchoMsg_ExampleEnum
func (*EchoMsg_ExampleEnum) EqualVT ¶
func (this *EchoMsg_ExampleEnum) EqualVT(thatIface isEchoMsg_Demo) bool
func (*EchoMsg_ExampleEnum) MarshalToSizedBufferVT ¶
func (m *EchoMsg_ExampleEnum) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*EchoMsg_ExampleEnum) MarshalToSizedBufferVTStrict ¶
func (m *EchoMsg_ExampleEnum) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
func (*EchoMsg_ExampleEnum) MarshalToVT ¶
func (m *EchoMsg_ExampleEnum) MarshalToVT(dAtA []byte) (int, error)
func (*EchoMsg_ExampleEnum) MarshalToVTStrict ¶
func (m *EchoMsg_ExampleEnum) MarshalToVTStrict(dAtA []byte) (int, error)
func (*EchoMsg_ExampleEnum) SizeVT ¶
func (m *EchoMsg_ExampleEnum) SizeVT() (n int)
type EchoMsg_ExampleString ¶
type EchoMsg_ExampleString struct {
ExampleString string `protobuf:"bytes,4,opt,name=example_string,json=exampleString,proto3,oneof"`
}
func (*EchoMsg_ExampleString) CloneOneofVT ¶
func (m *EchoMsg_ExampleString) CloneOneofVT() isEchoMsg_Demo
func (*EchoMsg_ExampleString) CloneVT ¶
func (m *EchoMsg_ExampleString) CloneVT() *EchoMsg_ExampleString
func (*EchoMsg_ExampleString) EqualVT ¶
func (this *EchoMsg_ExampleString) EqualVT(thatIface isEchoMsg_Demo) bool
func (*EchoMsg_ExampleString) MarshalToSizedBufferVT ¶
func (m *EchoMsg_ExampleString) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*EchoMsg_ExampleString) MarshalToSizedBufferVTStrict ¶
func (m *EchoMsg_ExampleString) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
func (*EchoMsg_ExampleString) MarshalToVT ¶
func (m *EchoMsg_ExampleString) MarshalToVT(dAtA []byte) (int, error)
func (*EchoMsg_ExampleString) MarshalToVTStrict ¶
func (m *EchoMsg_ExampleString) MarshalToVTStrict(dAtA []byte) (int, error)
func (*EchoMsg_ExampleString) SizeVT ¶
func (m *EchoMsg_ExampleString) SizeVT() (n int)
type ExampleEnum ¶
type ExampleEnum int32
ExampleEnum is an example enumeration.
const ( ExampleEnum_UNKNOWN ExampleEnum = 0 ExampleEnum_FIRST ExampleEnum = 1 ExampleEnum_SECOND ExampleEnum = 2 )
func (ExampleEnum) Enum ¶
func (x ExampleEnum) Enum() *ExampleEnum
func (ExampleEnum) MarshalJSON ¶
func (x ExampleEnum) MarshalJSON() ([]byte, error)
MarshalJSON marshals the ExampleEnum to JSON.
func (ExampleEnum) MarshalProtoJSON ¶
func (x ExampleEnum) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the ExampleEnum to JSON.
func (ExampleEnum) MarshalProtoText ¶
func (x ExampleEnum) MarshalProtoText() string
func (ExampleEnum) MarshalText ¶
func (x ExampleEnum) MarshalText() ([]byte, error)
MarshalText marshals the ExampleEnum to text.
func (ExampleEnum) String ¶
func (x ExampleEnum) String() string
func (*ExampleEnum) UnmarshalJSON ¶
func (x *ExampleEnum) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the ExampleEnum from JSON.
func (*ExampleEnum) UnmarshalProtoJSON ¶
func (x *ExampleEnum) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the ExampleEnum from JSON.
func (*ExampleEnum) UnmarshalText ¶
func (x *ExampleEnum) UnmarshalText(b []byte) error
UnmarshalText unmarshals the ExampleEnum from text.
Click to show internal directories.
Click to hide internal directories.