Help us shape the future of Go! Take the 2026 Go Developer Survey

example

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExampleMsg

type ExampleMsg struct {

	// ExampleField is an example field.
	ExampleField string `protobuf:"bytes,1,opt,name=example_field,json=exampleField,proto3" json:"exampleField,omitempty"`
	// OtherMsg is an example of an imported message field.
	OtherMsg *other.OtherMsg `protobuf:"bytes,2,opt,name=other_msg,json=otherMsg,proto3" json:"otherMsg,omitempty"`
	// contains filtered or unexported fields
}

ExampleMsg is an example message.

func (*ExampleMsg) CloneMessageVT

func (m *ExampleMsg) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*ExampleMsg) CloneVT

func (m *ExampleMsg) CloneVT() *ExampleMsg

func (*ExampleMsg) EqualMessageVT

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

func (*ExampleMsg) EqualVT

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

func (*ExampleMsg) GetExampleField

func (x *ExampleMsg) GetExampleField() string

func (*ExampleMsg) GetOtherMsg

func (x *ExampleMsg) GetOtherMsg() *other.OtherMsg

func (*ExampleMsg) MarshalJSON

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

MarshalJSON marshals the ExampleMsg to JSON.

func (*ExampleMsg) MarshalProtoJSON

func (x *ExampleMsg) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ExampleMsg message to JSON.

func (*ExampleMsg) MarshalProtoText

func (x *ExampleMsg) MarshalProtoText() string

func (*ExampleMsg) MarshalToSizedBufferVT

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

func (*ExampleMsg) MarshalToVT

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

func (*ExampleMsg) MarshalVT

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

func (*ExampleMsg) ProtoMessage

func (*ExampleMsg) ProtoMessage()

func (*ExampleMsg) Reset

func (x *ExampleMsg) Reset()

func (*ExampleMsg) SizeVT

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

func (*ExampleMsg) String

func (x *ExampleMsg) String() string

func (*ExampleMsg) UnmarshalJSON

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

UnmarshalJSON unmarshals the ExampleMsg from JSON.

func (*ExampleMsg) UnmarshalProtoJSON

func (x *ExampleMsg) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ExampleMsg message from JSON.

func (*ExampleMsg) UnmarshalVT

func (m *ExampleMsg) UnmarshalVT(dAtA []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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