prot

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Language_name = map[int32]string{
		0: "UNKNOWN",
		1: "ENGLISH",
		3: "SPANISH",
		4: "FRENCH",
		5: "GERMAN",
	}
	Language_value = map[string]int32{
		"UNKNOWN": 0,
		"ENGLISH": 1,
		"SPANISH": 3,
		"FRENCH":  4,
		"GERMAN":  5,
	}
)

Enum value maps for Language.

View Source
var File_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CommandMessage

type CommandMessage struct {
	Class string `protobuf:"bytes,1,opt,name=class,proto3" json:"class,omitempty"`
	// Types that are assignable to Command:
	//
	//	*CommandMessage_Name
	//	*CommandMessage_Message
	//	*CommandMessage_Count
	Command isCommandMessage_Command `protobuf_oneof:"command"`
	// contains filtered or unexported fields
}

func (*CommandMessage) Descriptor deprecated

func (*CommandMessage) Descriptor() ([]byte, []int)

Deprecated: Use CommandMessage.ProtoReflect.Descriptor instead.

func (*CommandMessage) GetClass

func (x *CommandMessage) GetClass() string

func (*CommandMessage) GetCommand

func (m *CommandMessage) GetCommand() isCommandMessage_Command

func (*CommandMessage) GetCount added in v0.0.3

func (x *CommandMessage) GetCount() int32

func (*CommandMessage) GetMessage

func (x *CommandMessage) GetMessage() *Message

func (*CommandMessage) GetName

func (x *CommandMessage) GetName() string

func (*CommandMessage) ProtoMessage

func (*CommandMessage) ProtoMessage()

func (*CommandMessage) ProtoReflect

func (x *CommandMessage) ProtoReflect() protoreflect.Message

func (*CommandMessage) Reset

func (x *CommandMessage) Reset()

func (*CommandMessage) String

func (x *CommandMessage) String() string

type CommandMessage_Count added in v0.0.3

type CommandMessage_Count struct {
	Count int32 `protobuf:"varint,4,opt,name=count,proto3,oneof"`
}

type CommandMessage_Message

type CommandMessage_Message struct {
	Message *Message `protobuf:"bytes,3,opt,name=message,proto3,oneof"`
}

type CommandMessage_Name

type CommandMessage_Name struct {
	Name string `protobuf:"bytes,2,opt,name=name,proto3,oneof"`
}

type Language

type Language int32
const (
	Language_UNKNOWN Language = 0
	Language_ENGLISH Language = 1
	Language_SPANISH Language = 3
	Language_FRENCH  Language = 4
	Language_GERMAN  Language = 5
)

func (Language) Descriptor

func (Language) Descriptor() protoreflect.EnumDescriptor

func (Language) Enum

func (x Language) Enum() *Language

func (Language) EnumDescriptor deprecated

func (Language) EnumDescriptor() ([]byte, []int)

Deprecated: Use Language.Descriptor instead.

func (Language) Number

func (x Language) Number() protoreflect.EnumNumber

func (Language) String

func (x Language) String() string

func (Language) Type

type Map

type Map struct {
	StringString   map[string]string  `` /* 185-byte string literal not displayed */
	StringInt32    map[string]int32   `` /* 183-byte string literal not displayed */
	StringInt64    map[string]int64   `` /* 183-byte string literal not displayed */
	StringUint32   map[string]uint32  `` /* 186-byte string literal not displayed */
	StringUint64   map[string]uint64  `` /* 186-byte string literal not displayed */
	StringSint32   map[string]int32   `` /* 188-byte string literal not displayed */
	StringSint64   map[string]int64   `` /* 188-byte string literal not displayed */
	StringFixed32  map[string]uint32  `` /* 190-byte string literal not displayed */
	StringFixed64  map[string]uint64  `` /* 190-byte string literal not displayed */
	StringSfixed32 map[string]int32   `` /* 194-byte string literal not displayed */
	StringSfixed64 map[string]int64   `` /* 194-byte string literal not displayed */
	StringFloat    map[string]float32 `` /* 185-byte string literal not displayed */
	StringDouble   map[string]float64 `` /* 188-byte string literal not displayed */
	StringBool     map[string]bool    `` /* 181-byte string literal not displayed */
	StringBytes    map[string][]byte  `` /* 183-byte string literal not displayed */
	Int32String    map[int32]string   `` /* 184-byte string literal not displayed */
	Int64String    map[int64]string   `` /* 184-byte string literal not displayed */
	Uint32String   map[uint32]string  `` /* 187-byte string literal not displayed */
	Uint64String   map[uint64]string  `` /* 187-byte string literal not displayed */
	Sint32String   map[int32]string   `` /* 189-byte string literal not displayed */
	Sint64String   map[int64]string   `` /* 189-byte string literal not displayed */
	Fixed32String  map[uint32]string  `` /* 191-byte string literal not displayed */
	Fixed64String  map[uint64]string  `` /* 191-byte string literal not displayed */
	Sfixed32String map[int32]string   `` /* 194-byte string literal not displayed */
	Sfixed64String map[int64]string   `` /* 194-byte string literal not displayed */
	BoolString     map[bool]string    `` /* 181-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Map) Descriptor deprecated

func (*Map) Descriptor() ([]byte, []int)

Deprecated: Use Map.ProtoReflect.Descriptor instead.

func (*Map) GetBoolString

func (x *Map) GetBoolString() map[bool]string

func (*Map) GetFixed32String

func (x *Map) GetFixed32String() map[uint32]string

func (*Map) GetFixed64String

func (x *Map) GetFixed64String() map[uint64]string

func (*Map) GetInt32String

func (x *Map) GetInt32String() map[int32]string

func (*Map) GetInt64String

func (x *Map) GetInt64String() map[int64]string

func (*Map) GetSfixed32String

func (x *Map) GetSfixed32String() map[int32]string

func (*Map) GetSfixed64String

func (x *Map) GetSfixed64String() map[int64]string

func (*Map) GetSint32String

func (x *Map) GetSint32String() map[int32]string

func (*Map) GetSint64String

func (x *Map) GetSint64String() map[int64]string

func (*Map) GetStringBool

func (x *Map) GetStringBool() map[string]bool

func (*Map) GetStringBytes

func (x *Map) GetStringBytes() map[string][]byte

func (*Map) GetStringDouble

func (x *Map) GetStringDouble() map[string]float64

func (*Map) GetStringFixed32

func (x *Map) GetStringFixed32() map[string]uint32

func (*Map) GetStringFixed64

func (x *Map) GetStringFixed64() map[string]uint64

func (*Map) GetStringFloat

func (x *Map) GetStringFloat() map[string]float32

func (*Map) GetStringInt32

func (x *Map) GetStringInt32() map[string]int32

func (*Map) GetStringInt64

func (x *Map) GetStringInt64() map[string]int64

func (*Map) GetStringSfixed32

func (x *Map) GetStringSfixed32() map[string]int32

func (*Map) GetStringSfixed64

func (x *Map) GetStringSfixed64() map[string]int64

func (*Map) GetStringSint32

func (x *Map) GetStringSint32() map[string]int32

func (*Map) GetStringSint64

func (x *Map) GetStringSint64() map[string]int64

func (*Map) GetStringString

func (x *Map) GetStringString() map[string]string

func (*Map) GetStringUint32

func (x *Map) GetStringUint32() map[string]uint32

func (*Map) GetStringUint64

func (x *Map) GetStringUint64() map[string]uint64

func (*Map) GetUint32String

func (x *Map) GetUint32String() map[uint32]string

func (*Map) GetUint64String

func (x *Map) GetUint64String() map[uint64]string

func (*Map) ProtoMessage

func (*Map) ProtoMessage()

func (*Map) ProtoReflect

func (x *Map) ProtoReflect() protoreflect.Message

func (*Map) Reset

func (x *Map) Reset()

func (*Map) String

func (x *Map) String() string

type Message

type Message struct {
	Int32 int32 `protobuf:"varint,1,opt,name=int32,proto3" json:"int32,omitempty"`
	Int64 int64 `protobuf:"varint,2,opt,name=int64,proto3" json:"int64,omitempty"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

func (*Message) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetInt32

func (x *Message) GetInt32() int32

func (*Message) GetInt64

func (x *Message) GetInt64() int64

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

func (x *Message) ProtoReflect() protoreflect.Message

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type OptionalMessage

type OptionalMessage struct {
	Int32 int32 `protobuf:"varint,1,opt,name=int32,proto3" json:"int32,omitempty"`
	// contains filtered or unexported fields
}

func (*OptionalMessage) Descriptor deprecated

func (*OptionalMessage) Descriptor() ([]byte, []int)

Deprecated: Use OptionalMessage.ProtoReflect.Descriptor instead.

func (*OptionalMessage) GetInt32

func (x *OptionalMessage) GetInt32() int32

func (*OptionalMessage) ProtoMessage

func (*OptionalMessage) ProtoMessage()

func (*OptionalMessage) ProtoReflect

func (x *OptionalMessage) ProtoReflect() protoreflect.Message

func (*OptionalMessage) Reset

func (x *OptionalMessage) Reset()

func (*OptionalMessage) String

func (x *OptionalMessage) String() string

type Person

type Person struct {
	Name     string     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Birthday int64      `protobuf:"varint,2,opt,name=birthday,proto3" json:"birthday,omitempty"`
	Phone    string     `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"`
	Siblings int32      `protobuf:"varint,4,opt,name=siblings,proto3" json:"siblings,omitempty"`
	Spouse   bool       `protobuf:"varint,5,opt,name=spouse,proto3" json:"spouse,omitempty"`
	Money    float64    `protobuf:"fixed64,6,opt,name=money,proto3" json:"money,omitempty"`
	Primary  Language   `protobuf:"varint,7,opt,name=primary,proto3,enum=types.Language" json:"primary,omitempty"`
	Spoken   []Language `protobuf:"varint,8,rep,packed,name=spoken,proto3,enum=types.Language" json:"spoken,omitempty"`
	// contains filtered or unexported fields
}

func (*Person) Descriptor deprecated

func (*Person) Descriptor() ([]byte, []int)

Deprecated: Use Person.ProtoReflect.Descriptor instead.

func (*Person) GetBirthday

func (x *Person) GetBirthday() int64

func (*Person) GetMoney

func (x *Person) GetMoney() float64

func (*Person) GetName

func (x *Person) GetName() string

func (*Person) GetPhone

func (x *Person) GetPhone() string

func (*Person) GetPrimary

func (x *Person) GetPrimary() Language

func (*Person) GetSiblings

func (x *Person) GetSiblings() int32

func (*Person) GetSpoken

func (x *Person) GetSpoken() []Language

func (*Person) GetSpouse

func (x *Person) GetSpouse() bool

func (*Person) ProtoMessage

func (*Person) ProtoMessage()

func (*Person) ProtoReflect

func (x *Person) ProtoReflect() protoreflect.Message

func (*Person) Reset

func (x *Person) Reset()

func (*Person) String

func (x *Person) String() string

type RepeatedMixed

type RepeatedMixed struct {
	Int32   int32      `protobuf:"varint,1,opt,name=int32,proto3" json:"int32,omitempty"`
	Message []*Message `protobuf:"bytes,16,rep,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*RepeatedMixed) Descriptor deprecated

func (*RepeatedMixed) Descriptor() ([]byte, []int)

Deprecated: Use RepeatedMixed.ProtoReflect.Descriptor instead.

func (*RepeatedMixed) GetInt32

func (x *RepeatedMixed) GetInt32() int32

func (*RepeatedMixed) GetMessage

func (x *RepeatedMixed) GetMessage() []*Message

func (*RepeatedMixed) ProtoMessage

func (*RepeatedMixed) ProtoMessage()

func (*RepeatedMixed) ProtoReflect

func (x *RepeatedMixed) ProtoReflect() protoreflect.Message

func (*RepeatedMixed) Reset

func (x *RepeatedMixed) Reset()

func (*RepeatedMixed) String

func (x *RepeatedMixed) String() string

type RepeatedTypes

type RepeatedTypes struct {
	Int32    []int32    `protobuf:"varint,1,rep,packed,name=int32,proto3" json:"int32,omitempty"`
	Int64    []int64    `protobuf:"varint,2,rep,packed,name=int64,proto3" json:"int64,omitempty"`
	Uint32   []uint32   `protobuf:"varint,3,rep,packed,name=uint32,proto3" json:"uint32,omitempty"`
	Uint64   []uint64   `protobuf:"varint,4,rep,packed,name=uint64,proto3" json:"uint64,omitempty"`
	Sint32   []int32    `protobuf:"zigzag32,5,rep,packed,name=sint32,proto3" json:"sint32,omitempty"`
	Sint64   []int64    `protobuf:"zigzag64,6,rep,packed,name=sint64,proto3" json:"sint64,omitempty"`
	Fixed32  []uint32   `protobuf:"fixed32,7,rep,packed,name=fixed32,proto3" json:"fixed32,omitempty"`
	Fixed64  []uint64   `protobuf:"fixed64,8,rep,packed,name=fixed64,proto3" json:"fixed64,omitempty"`
	Sfixed32 []int32    `protobuf:"fixed32,9,rep,packed,name=sfixed32,proto3" json:"sfixed32,omitempty"`
	Sfixed64 []int64    `protobuf:"fixed64,10,rep,packed,name=sfixed64,proto3" json:"sfixed64,omitempty"`
	Float    []float32  `protobuf:"fixed32,11,rep,packed,name=float,proto3" json:"float,omitempty"`
	Double   []float64  `protobuf:"fixed64,12,rep,packed,name=double,proto3" json:"double,omitempty"`
	Bool     []bool     `protobuf:"varint,13,rep,packed,name=bool,proto3" json:"bool,omitempty"`
	String_  []string   `protobuf:"bytes,14,rep,name=string,proto3" json:"string,omitempty"`
	Bytes    [][]byte   `protobuf:"bytes,15,rep,name=bytes,proto3" json:"bytes,omitempty"`
	Message  []*Message `protobuf:"bytes,16,rep,name=message,proto3" json:"message,omitempty"`
	Language []Language `protobuf:"varint,17,rep,packed,name=language,proto3,enum=types.Language" json:"language,omitempty"`
	// contains filtered or unexported fields
}

func (*RepeatedTypes) Descriptor deprecated

func (*RepeatedTypes) Descriptor() ([]byte, []int)

Deprecated: Use RepeatedTypes.ProtoReflect.Descriptor instead.

func (*RepeatedTypes) GetBool

func (x *RepeatedTypes) GetBool() []bool

func (*RepeatedTypes) GetBytes

func (x *RepeatedTypes) GetBytes() [][]byte

func (*RepeatedTypes) GetDouble

func (x *RepeatedTypes) GetDouble() []float64

func (*RepeatedTypes) GetFixed32

func (x *RepeatedTypes) GetFixed32() []uint32

func (*RepeatedTypes) GetFixed64

func (x *RepeatedTypes) GetFixed64() []uint64

func (*RepeatedTypes) GetFloat

func (x *RepeatedTypes) GetFloat() []float32

func (*RepeatedTypes) GetInt32

func (x *RepeatedTypes) GetInt32() []int32

func (*RepeatedTypes) GetInt64

func (x *RepeatedTypes) GetInt64() []int64

func (*RepeatedTypes) GetLanguage

func (x *RepeatedTypes) GetLanguage() []Language

func (*RepeatedTypes) GetMessage

func (x *RepeatedTypes) GetMessage() []*Message

func (*RepeatedTypes) GetSfixed32

func (x *RepeatedTypes) GetSfixed32() []int32

func (*RepeatedTypes) GetSfixed64

func (x *RepeatedTypes) GetSfixed64() []int64

func (*RepeatedTypes) GetSint32

func (x *RepeatedTypes) GetSint32() []int32

func (*RepeatedTypes) GetSint64

func (x *RepeatedTypes) GetSint64() []int64

func (*RepeatedTypes) GetString_

func (x *RepeatedTypes) GetString_() []string

func (*RepeatedTypes) GetUint32

func (x *RepeatedTypes) GetUint32() []uint32

func (*RepeatedTypes) GetUint64

func (x *RepeatedTypes) GetUint64() []uint64

func (*RepeatedTypes) ProtoMessage

func (*RepeatedTypes) ProtoMessage()

func (*RepeatedTypes) ProtoReflect

func (x *RepeatedTypes) ProtoReflect() protoreflect.Message

func (*RepeatedTypes) Reset

func (x *RepeatedTypes) Reset()

func (*RepeatedTypes) String

func (x *RepeatedTypes) String() string

type Types

type Types struct {
	Int32           int32            `protobuf:"varint,1,opt,name=int32,proto3" json:"int32,omitempty"`
	Int64           int64            `protobuf:"varint,2,opt,name=int64,proto3" json:"int64,omitempty"`
	Uint32          uint32           `protobuf:"varint,3,opt,name=uint32,proto3" json:"uint32,omitempty"`
	Uint64          uint64           `protobuf:"varint,4,opt,name=uint64,proto3" json:"uint64,omitempty"`
	Sint32          int32            `protobuf:"zigzag32,5,opt,name=sint32,proto3" json:"sint32,omitempty"`
	Sint64          int64            `protobuf:"zigzag64,6,opt,name=sint64,proto3" json:"sint64,omitempty"`
	Fixed32         uint32           `protobuf:"fixed32,7,opt,name=fixed32,proto3" json:"fixed32,omitempty"`
	Fixed64         uint64           `protobuf:"fixed64,8,opt,name=fixed64,proto3" json:"fixed64,omitempty"`
	Sfixed32        int32            `protobuf:"fixed32,9,opt,name=sfixed32,proto3" json:"sfixed32,omitempty"`
	Sfixed64        int64            `protobuf:"fixed64,10,opt,name=sfixed64,proto3" json:"sfixed64,omitempty"`
	Float           float32          `protobuf:"fixed32,11,opt,name=float,proto3" json:"float,omitempty"`
	Double          float64          `protobuf:"fixed64,12,opt,name=double,proto3" json:"double,omitempty"`
	Bool            bool             `protobuf:"varint,13,opt,name=bool,proto3" json:"bool,omitempty"`
	String_         string           `protobuf:"bytes,14,opt,name=string,proto3" json:"string,omitempty"`
	Bytes           []byte           `protobuf:"bytes,15,opt,name=bytes,proto3" json:"bytes,omitempty"`
	Message         *Message         `protobuf:"bytes,16,opt,name=message,proto3" json:"message,omitempty"`
	OptionalMessage *OptionalMessage `protobuf:"bytes,17,opt,name=optional_message,json=optionalMessage,proto3" json:"optional_message,omitempty"`
	Language        Language         `protobuf:"varint,18,opt,name=language,proto3,enum=types.Language" json:"language,omitempty"`
	// contains filtered or unexported fields
}

func (*Types) Descriptor deprecated

func (*Types) Descriptor() ([]byte, []int)

Deprecated: Use Types.ProtoReflect.Descriptor instead.

func (*Types) GetBool

func (x *Types) GetBool() bool

func (*Types) GetBytes

func (x *Types) GetBytes() []byte

func (*Types) GetDouble

func (x *Types) GetDouble() float64

func (*Types) GetFixed32

func (x *Types) GetFixed32() uint32

func (*Types) GetFixed64

func (x *Types) GetFixed64() uint64

func (*Types) GetFloat

func (x *Types) GetFloat() float32

func (*Types) GetInt32

func (x *Types) GetInt32() int32

func (*Types) GetInt64

func (x *Types) GetInt64() int64

func (*Types) GetLanguage

func (x *Types) GetLanguage() Language

func (*Types) GetMessage

func (x *Types) GetMessage() *Message

func (*Types) GetOptionalMessage

func (x *Types) GetOptionalMessage() *OptionalMessage

func (*Types) GetSfixed32

func (x *Types) GetSfixed32() int32

func (*Types) GetSfixed64

func (x *Types) GetSfixed64() int64

func (*Types) GetSint32

func (x *Types) GetSint32() int32

func (*Types) GetSint64

func (x *Types) GetSint64() int64

func (*Types) GetString_

func (x *Types) GetString_() string

func (*Types) GetUint32

func (x *Types) GetUint32() uint32

func (*Types) GetUint64

func (x *Types) GetUint64() uint64

func (*Types) ProtoMessage

func (*Types) ProtoMessage()

func (*Types) ProtoReflect

func (x *Types) ProtoReflect() protoreflect.Message

func (*Types) Reset

func (x *Types) Reset()

func (*Types) String

func (x *Types) String() string

Jump to

Keyboard shortcuts

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