echo

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

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) CloneVT

func (m *EchoMsg) CloneVT() *EchoMsg

func (*EchoMsg) EqualMessageVT

func (this *EchoMsg) EqualMessageVT(thatMsg any) bool

func (*EchoMsg) EqualVT

func (this *EchoMsg) EqualVT(that *EchoMsg) bool

func (*EchoMsg) GetBody

func (x *EchoMsg) GetBody() string

func (*EchoMsg) GetDemo

func (m *EchoMsg) GetDemo() isEchoMsg_Demo

func (*EchoMsg) GetExampleEnum

func (x *EchoMsg) GetExampleEnum() ExampleEnum

func (*EchoMsg) GetExampleString

func (x *EchoMsg) GetExampleString() string

func (*EchoMsg) GetTimestamps

func (x *EchoMsg) GetTimestamps() []*timestamppb.Timestamp

func (*EchoMsg) GetTs

func (x *EchoMsg) GetTs() *timestamppb.Timestamp

func (*EchoMsg) MarshalJSON

func (x *EchoMsg) MarshalJSON() ([]byte, error)

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 (x *EchoMsg) MarshalProtoText() string

func (*EchoMsg) MarshalToSizedBufferVT

func (m *EchoMsg) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*EchoMsg) MarshalToSizedBufferVTStrict

func (m *EchoMsg) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)

func (*EchoMsg) MarshalToVT

func (m *EchoMsg) MarshalToVT(dAtA []byte) (int, error)

func (*EchoMsg) MarshalToVTStrict

func (m *EchoMsg) MarshalToVTStrict(dAtA []byte) (int, error)

func (*EchoMsg) MarshalVT

func (m *EchoMsg) MarshalVT() (dAtA []byte, err error)

func (*EchoMsg) MarshalVTStrict

func (m *EchoMsg) MarshalVTStrict() (dAtA []byte, err error)

func (*EchoMsg) ProtoMessage

func (*EchoMsg) ProtoMessage()

func (*EchoMsg) Reset

func (x *EchoMsg) Reset()

func (*EchoMsg) SizeVT

func (m *EchoMsg) SizeVT() (n int)

func (*EchoMsg) String

func (x *EchoMsg) String() string

func (*EchoMsg) UnmarshalJSON

func (x *EchoMsg) UnmarshalJSON(b []byte) error

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 (m *EchoMsg) UnmarshalVT(dAtA []byte) error

func (*EchoMsg) UnmarshalVTUnsafe

func (m *EchoMsg) UnmarshalVTUnsafe(dAtA []byte) error

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 (*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 (*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.

Jump to

Keyboard shortcuts

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