basic

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BasicMsg_MyEnum_name = map[int32]string{
		0: "UNKNOWN",
		1: "FIRST",
		2: "SECOND",
	}
	BasicMsg_MyEnum_value = map[string]int32{
		"UNKNOWN": 0,
		"FIRST":   1,
		"SECOND":  2,
	}
)

Enum value maps for BasicMsg_MyEnum.

Functions

This section is empty.

Types

type BasicMsg

type BasicMsg struct {
	Int32Field          int32            `protobuf:"varint,1,opt,name=int32_field,json=int32Field,proto3" json:"int32Field,omitempty"`
	Int64Field          int64            `protobuf:"varint,2,opt,name=int64_field,json=int64Field,proto3" json:"int64Field,omitempty"`
	Uint32Field         uint32           `protobuf:"varint,3,opt,name=uint32_field,json=uint32Field,proto3" json:"uint32Field,omitempty"`
	Uint64Field         uint64           `protobuf:"varint,4,opt,name=uint64_field,json=uint64Field,proto3" json:"uint64Field,omitempty"`
	Sint32Field         int32            `protobuf:"zigzag32,5,opt,name=sint32_field,json=sint32Field,proto3" json:"sint32Field,omitempty"`
	Sint64Field         int64            `protobuf:"zigzag64,6,opt,name=sint64_field,json=sint64Field,proto3" json:"sint64Field,omitempty"`
	Fixed32Field        uint32           `protobuf:"fixed32,7,opt,name=fixed32_field,json=fixed32Field,proto3" json:"fixed32Field,omitempty"`
	Fixed64Field        uint64           `protobuf:"fixed64,8,opt,name=fixed64_field,json=fixed64Field,proto3" json:"fixed64Field,omitempty"`
	Sfixed32Field       int32            `protobuf:"fixed32,9,opt,name=sfixed32_field,json=sfixed32Field,proto3" json:"sfixed32Field,omitempty"`
	Sfixed64Field       int64            `protobuf:"fixed64,10,opt,name=sfixed64_field,json=sfixed64Field,proto3" json:"sfixed64Field,omitempty"`
	FloatField          float32          `protobuf:"fixed32,11,opt,name=float_field,json=floatField,proto3" json:"floatField,omitempty"`
	DoubleField         float64          `protobuf:"fixed64,12,opt,name=double_field,json=doubleField,proto3" json:"doubleField,omitempty"`
	BoolField           bool             `protobuf:"varint,13,opt,name=bool_field,json=boolField,proto3" json:"boolField,omitempty"`
	StringField         string           `protobuf:"bytes,14,opt,name=string_field,json=stringField,proto3" json:"stringField,omitempty"`
	BytesField          []byte           `protobuf:"bytes,15,opt,name=bytes_field,json=bytesField,proto3" json:"bytesField,omitempty"`
	RepeatedInt32Field  []int32          `protobuf:"varint,16,rep,packed,name=repeated_int32_field,json=repeatedInt32Field,proto3" json:"repeatedInt32Field,omitempty"`
	MapStringInt32Field map[string]int32 `` /* 209-byte string literal not displayed */
	// protobuf-go-lite:disable-text
	//
	// Types that are assignable to MyOneof:
	//
	//	*BasicMsg_OneofString
	//	*BasicMsg_OneofInt32
	MyOneof       isBasicMsg_MyOneof  `protobuf_oneof:"my_oneof"`
	EnumField     BasicMsg_MyEnum     `protobuf:"varint,20,opt,name=enum_field,json=enumField,proto3" json:"enumField,omitempty"`
	NestedMessage *BasicMsg_NestedMsg `protobuf:"bytes,21,opt,name=nested_message,json=nestedMessage,proto3" json:"nestedMessage,omitempty"`
	// contains filtered or unexported fields
}

protobuf-go-lite:disable-text

func (*BasicMsg) CloneMessageVT

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

func (*BasicMsg) CloneVT

func (m *BasicMsg) CloneVT() *BasicMsg

func (*BasicMsg) EqualMessageVT

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

func (*BasicMsg) EqualVT

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

func (*BasicMsg) GetBoolField

func (x *BasicMsg) GetBoolField() bool

func (*BasicMsg) GetBytesField

func (x *BasicMsg) GetBytesField() []byte

func (*BasicMsg) GetDoubleField

func (x *BasicMsg) GetDoubleField() float64

func (*BasicMsg) GetEnumField

func (x *BasicMsg) GetEnumField() BasicMsg_MyEnum

func (*BasicMsg) GetFixed32Field

func (x *BasicMsg) GetFixed32Field() uint32

func (*BasicMsg) GetFixed64Field

func (x *BasicMsg) GetFixed64Field() uint64

func (*BasicMsg) GetFloatField

func (x *BasicMsg) GetFloatField() float32

func (*BasicMsg) GetInt32Field

func (x *BasicMsg) GetInt32Field() int32

func (*BasicMsg) GetInt64Field

func (x *BasicMsg) GetInt64Field() int64

func (*BasicMsg) GetMapStringInt32Field

func (x *BasicMsg) GetMapStringInt32Field() map[string]int32

func (*BasicMsg) GetMyOneof

func (m *BasicMsg) GetMyOneof() isBasicMsg_MyOneof

func (*BasicMsg) GetNestedMessage

func (x *BasicMsg) GetNestedMessage() *BasicMsg_NestedMsg

func (*BasicMsg) GetOneofInt32

func (x *BasicMsg) GetOneofInt32() int32

func (*BasicMsg) GetOneofString

func (x *BasicMsg) GetOneofString() string

func (*BasicMsg) GetRepeatedInt32Field

func (x *BasicMsg) GetRepeatedInt32Field() []int32

func (*BasicMsg) GetSfixed32Field

func (x *BasicMsg) GetSfixed32Field() int32

func (*BasicMsg) GetSfixed64Field

func (x *BasicMsg) GetSfixed64Field() int64

func (*BasicMsg) GetSint32Field

func (x *BasicMsg) GetSint32Field() int32

func (*BasicMsg) GetSint64Field

func (x *BasicMsg) GetSint64Field() int64

func (*BasicMsg) GetStringField

func (x *BasicMsg) GetStringField() string

func (*BasicMsg) GetUint32Field

func (x *BasicMsg) GetUint32Field() uint32

func (*BasicMsg) GetUint64Field

func (x *BasicMsg) GetUint64Field() uint64

func (*BasicMsg) MarshalJSON

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

MarshalJSON marshals the BasicMsg to JSON.

func (*BasicMsg) MarshalProtoJSON

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

MarshalProtoJSON marshals the BasicMsg message to JSON.

func (*BasicMsg) MarshalToSizedBufferVT

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

func (*BasicMsg) MarshalToSizedBufferVTStrict

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

func (*BasicMsg) MarshalToVT

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

func (*BasicMsg) MarshalToVTStrict

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

func (*BasicMsg) MarshalVT

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

func (*BasicMsg) MarshalVTStrict

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

func (*BasicMsg) ProtoMessage

func (*BasicMsg) ProtoMessage()

func (*BasicMsg) Reset

func (x *BasicMsg) Reset()

func (*BasicMsg) SizeVT

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

func (*BasicMsg) UnmarshalJSON

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

UnmarshalJSON unmarshals the BasicMsg from JSON.

func (*BasicMsg) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the BasicMsg message from JSON.

func (*BasicMsg) UnmarshalVT

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

func (*BasicMsg) UnmarshalVTUnsafe

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

type BasicMsg_MapStringInt32FieldEntry

type BasicMsg_MapStringInt32FieldEntry struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value int32  `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*BasicMsg_MapStringInt32FieldEntry) GetKey

func (*BasicMsg_MapStringInt32FieldEntry) GetValue

func (*BasicMsg_MapStringInt32FieldEntry) MarshalJSON

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

MarshalJSON marshals the BasicMsg_MapStringInt32FieldEntry to JSON.

func (*BasicMsg_MapStringInt32FieldEntry) MarshalProtoJSON

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

MarshalProtoJSON marshals the BasicMsg_MapStringInt32FieldEntry message to JSON.

func (*BasicMsg_MapStringInt32FieldEntry) MarshalProtoText

func (x *BasicMsg_MapStringInt32FieldEntry) MarshalProtoText() string

func (*BasicMsg_MapStringInt32FieldEntry) ProtoMessage

func (*BasicMsg_MapStringInt32FieldEntry) ProtoMessage()

func (*BasicMsg_MapStringInt32FieldEntry) Reset

func (*BasicMsg_MapStringInt32FieldEntry) String

func (*BasicMsg_MapStringInt32FieldEntry) UnmarshalJSON

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

UnmarshalJSON unmarshals the BasicMsg_MapStringInt32FieldEntry from JSON.

func (*BasicMsg_MapStringInt32FieldEntry) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the BasicMsg_MapStringInt32FieldEntry message from JSON.

type BasicMsg_MyEnum

type BasicMsg_MyEnum int32

protobuf-go-lite:disable-text

const (
	BasicMsg_UNKNOWN BasicMsg_MyEnum = 0
	BasicMsg_FIRST   BasicMsg_MyEnum = 1
	BasicMsg_SECOND  BasicMsg_MyEnum = 2
)

func (BasicMsg_MyEnum) Enum

func (x BasicMsg_MyEnum) Enum() *BasicMsg_MyEnum

func (BasicMsg_MyEnum) MarshalJSON

func (x BasicMsg_MyEnum) MarshalJSON() ([]byte, error)

MarshalJSON marshals the BasicMsg_MyEnum to JSON.

func (BasicMsg_MyEnum) MarshalProtoJSON

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

MarshalProtoJSON marshals the BasicMsg_MyEnum to JSON.

func (BasicMsg_MyEnum) MarshalText

func (x BasicMsg_MyEnum) MarshalText() ([]byte, error)

MarshalText marshals the BasicMsg_MyEnum to text.

func (BasicMsg_MyEnum) String

func (x BasicMsg_MyEnum) String() string

func (*BasicMsg_MyEnum) UnmarshalJSON

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

UnmarshalJSON unmarshals the BasicMsg_MyEnum from JSON.

func (*BasicMsg_MyEnum) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the BasicMsg_MyEnum from JSON.

func (*BasicMsg_MyEnum) UnmarshalText

func (x *BasicMsg_MyEnum) UnmarshalText(b []byte) error

UnmarshalText unmarshals the BasicMsg_MyEnum from text.

type BasicMsg_NestedMsg

type BasicMsg_NestedMsg struct {
	NestedInt32  int32  `protobuf:"varint,1,opt,name=nested_int32,json=nestedInt32,proto3" json:"nestedInt32,omitempty"`
	NestedString string `protobuf:"bytes,2,opt,name=nested_string,json=nestedString,proto3" json:"nestedString,omitempty"`
	// contains filtered or unexported fields
}

protobuf-go-lite:disable-text

func (*BasicMsg_NestedMsg) CloneMessageVT

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

func (*BasicMsg_NestedMsg) CloneVT

func (m *BasicMsg_NestedMsg) CloneVT() *BasicMsg_NestedMsg

func (*BasicMsg_NestedMsg) EqualMessageVT

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

func (*BasicMsg_NestedMsg) EqualVT

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

func (*BasicMsg_NestedMsg) GetNestedInt32

func (x *BasicMsg_NestedMsg) GetNestedInt32() int32

func (*BasicMsg_NestedMsg) GetNestedString

func (x *BasicMsg_NestedMsg) GetNestedString() string

func (*BasicMsg_NestedMsg) MarshalJSON

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

MarshalJSON marshals the BasicMsg_NestedMsg to JSON.

func (*BasicMsg_NestedMsg) MarshalProtoJSON

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

MarshalProtoJSON marshals the BasicMsg_NestedMsg message to JSON.

func (*BasicMsg_NestedMsg) MarshalToSizedBufferVT

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

func (*BasicMsg_NestedMsg) MarshalToSizedBufferVTStrict

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

func (*BasicMsg_NestedMsg) MarshalToVT

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

func (*BasicMsg_NestedMsg) MarshalToVTStrict

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

func (*BasicMsg_NestedMsg) MarshalVT

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

func (*BasicMsg_NestedMsg) MarshalVTStrict

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

func (*BasicMsg_NestedMsg) ProtoMessage

func (*BasicMsg_NestedMsg) ProtoMessage()

func (*BasicMsg_NestedMsg) Reset

func (x *BasicMsg_NestedMsg) Reset()

func (*BasicMsg_NestedMsg) SizeVT

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

func (*BasicMsg_NestedMsg) UnmarshalJSON

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

UnmarshalJSON unmarshals the BasicMsg_NestedMsg from JSON.

func (*BasicMsg_NestedMsg) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the BasicMsg_NestedMsg message from JSON.

func (*BasicMsg_NestedMsg) UnmarshalVT

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

func (*BasicMsg_NestedMsg) UnmarshalVTUnsafe

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

type BasicMsg_OneofInt32

type BasicMsg_OneofInt32 struct {
	OneofInt32 int32 `protobuf:"varint,19,opt,name=oneof_int32,json=oneofInt32,proto3,oneof"`
}

func (*BasicMsg_OneofInt32) CloneOneofVT

func (m *BasicMsg_OneofInt32) CloneOneofVT() isBasicMsg_MyOneof

func (*BasicMsg_OneofInt32) CloneVT

func (*BasicMsg_OneofInt32) EqualVT

func (this *BasicMsg_OneofInt32) EqualVT(thatIface isBasicMsg_MyOneof) bool

func (*BasicMsg_OneofInt32) MarshalToSizedBufferVT

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

func (*BasicMsg_OneofInt32) MarshalToSizedBufferVTStrict

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

func (*BasicMsg_OneofInt32) MarshalToVT

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

func (*BasicMsg_OneofInt32) MarshalToVTStrict

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

func (*BasicMsg_OneofInt32) SizeVT

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

type BasicMsg_OneofString

type BasicMsg_OneofString struct {
	OneofString string `protobuf:"bytes,18,opt,name=oneof_string,json=oneofString,proto3,oneof"`
}

func (*BasicMsg_OneofString) CloneOneofVT

func (m *BasicMsg_OneofString) CloneOneofVT() isBasicMsg_MyOneof

func (*BasicMsg_OneofString) CloneVT

func (*BasicMsg_OneofString) EqualVT

func (this *BasicMsg_OneofString) EqualVT(thatIface isBasicMsg_MyOneof) bool

func (*BasicMsg_OneofString) MarshalToSizedBufferVT

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

func (*BasicMsg_OneofString) MarshalToSizedBufferVTStrict

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

func (*BasicMsg_OneofString) MarshalToVT

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

func (*BasicMsg_OneofString) MarshalToVTStrict

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

func (*BasicMsg_OneofString) SizeVT

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

Jump to

Keyboard shortcuts

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