util_message

package
v18.0.0-...-f9949aa Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AllTheTypes_ExampleEnum_name = map[int32]string{
		0: "OPTION_0",
		1: "OPTION_1",
	}
	AllTheTypes_ExampleEnum_value = map[string]int32{
		"OPTION_0": 0,
		"OPTION_1": 1,
	}
)

Enum value maps for AllTheTypes_ExampleEnum.

View Source
var (
	AllTheTypesNoAny_ExampleEnum_name = map[int32]string{
		0: "OPTION_0",
		1: "OPTION_1",
	}
	AllTheTypesNoAny_ExampleEnum_value = map[string]int32{
		"OPTION_0": 0,
		"OPTION_1": 1,
	}
)

Enum value maps for AllTheTypesNoAny_ExampleEnum.

View Source
var File_messages_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AllTheTypes

type AllTheTypes struct {
	Str      string                  `protobuf:"bytes,1,opt,name=str,proto3" json:"str,omitempty"`
	Int32    int32                   `protobuf:"varint,2,opt,name=int32,proto3" json:"int32,omitempty"`
	Int64    int64                   `protobuf:"varint,3,opt,name=int64,proto3" json:"int64,omitempty"`
	Sint32   int32                   `protobuf:"zigzag32,4,opt,name=sint32,proto3" json:"sint32,omitempty"`
	Sin64    int64                   `protobuf:"zigzag64,5,opt,name=sin64,proto3" json:"sin64,omitempty"`
	Uint32   uint32                  `protobuf:"varint,6,opt,name=uint32,proto3" json:"uint32,omitempty"`
	Uint64   uint64                  `protobuf:"varint,7,opt,name=uint64,proto3" json:"uint64,omitempty"`
	Fixed32  uint32                  `protobuf:"fixed32,8,opt,name=fixed32,proto3" json:"fixed32,omitempty"`
	Fixed64  uint64                  `protobuf:"fixed64,9,opt,name=fixed64,proto3" json:"fixed64,omitempty"`
	Sfixed32 int32                   `protobuf:"fixed32,10,opt,name=sfixed32,proto3" json:"sfixed32,omitempty"`
	Bool     bool                    `protobuf:"varint,11,opt,name=bool,proto3" json:"bool,omitempty"`
	Bytes    []byte                  `protobuf:"bytes,12,opt,name=bytes,proto3" json:"bytes,omitempty"`
	Double   float64                 `protobuf:"fixed64,13,opt,name=double,proto3" json:"double,omitempty"`
	Enum     AllTheTypes_ExampleEnum `protobuf:"varint,14,opt,name=enum,proto3,enum=AllTheTypes_ExampleEnum" json:"enum,omitempty"`
	Message  *ExampleMessage         `protobuf:"bytes,15,opt,name=message,proto3" json:"message,omitempty"`
	// Types that are assignable to Oneof:
	//
	//	*AllTheTypes_Oneofstring
	//	*AllTheTypes_Oneofmessage
	Oneof       isAllTheTypes_Oneof        `protobuf_oneof:"oneof"`
	Any         *anypb.Any                 `protobuf:"bytes,18,opt,name=any,proto3" json:"any,omitempty"`
	SimpleMap   map[int32]string           `` /* 178-byte string literal not displayed */
	ComplexMap  map[string]*ExampleMessage `` /* 180-byte string literal not displayed */
	SimpleList  []string                   `protobuf:"bytes,21,rep,name=simple_list,json=simpleList,proto3" json:"simple_list,omitempty"`
	ComplexList []*ExampleMessage          `protobuf:"bytes,22,rep,name=complex_list,json=complexList,proto3" json:"complex_list,omitempty"`
	// contains filtered or unexported fields
}

func (*AllTheTypes) Descriptor deprecated

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

Deprecated: Use AllTheTypes.ProtoReflect.Descriptor instead.

func (*AllTheTypes) GetAny

func (x *AllTheTypes) GetAny() *anypb.Any

func (*AllTheTypes) GetBool

func (x *AllTheTypes) GetBool() bool

func (*AllTheTypes) GetBytes

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

func (*AllTheTypes) GetComplexList

func (x *AllTheTypes) GetComplexList() []*ExampleMessage

func (*AllTheTypes) GetComplexMap

func (x *AllTheTypes) GetComplexMap() map[string]*ExampleMessage

func (*AllTheTypes) GetDouble

func (x *AllTheTypes) GetDouble() float64

func (*AllTheTypes) GetEnum

func (x *AllTheTypes) GetEnum() AllTheTypes_ExampleEnum

func (*AllTheTypes) GetFixed32

func (x *AllTheTypes) GetFixed32() uint32

func (*AllTheTypes) GetFixed64

func (x *AllTheTypes) GetFixed64() uint64

func (*AllTheTypes) GetInt32

func (x *AllTheTypes) GetInt32() int32

func (*AllTheTypes) GetInt64

func (x *AllTheTypes) GetInt64() int64

func (*AllTheTypes) GetMessage

func (x *AllTheTypes) GetMessage() *ExampleMessage

func (*AllTheTypes) GetOneof

func (m *AllTheTypes) GetOneof() isAllTheTypes_Oneof

func (*AllTheTypes) GetOneofmessage

func (x *AllTheTypes) GetOneofmessage() *ExampleMessage

func (*AllTheTypes) GetOneofstring

func (x *AllTheTypes) GetOneofstring() string

func (*AllTheTypes) GetSfixed32

func (x *AllTheTypes) GetSfixed32() int32

func (*AllTheTypes) GetSimpleList

func (x *AllTheTypes) GetSimpleList() []string

func (*AllTheTypes) GetSimpleMap

func (x *AllTheTypes) GetSimpleMap() map[int32]string

func (*AllTheTypes) GetSin64

func (x *AllTheTypes) GetSin64() int64

func (*AllTheTypes) GetSint32

func (x *AllTheTypes) GetSint32() int32

func (*AllTheTypes) GetStr

func (x *AllTheTypes) GetStr() string

func (*AllTheTypes) GetUint32

func (x *AllTheTypes) GetUint32() uint32

func (*AllTheTypes) GetUint64

func (x *AllTheTypes) GetUint64() uint64

func (*AllTheTypes) ProtoMessage

func (*AllTheTypes) ProtoMessage()

func (*AllTheTypes) ProtoReflect

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

func (*AllTheTypes) Reset

func (x *AllTheTypes) Reset()

func (*AllTheTypes) String

func (x *AllTheTypes) String() string

type AllTheTypesNoAny

type AllTheTypesNoAny struct {
	Str      string                       `protobuf:"bytes,1,opt,name=str,proto3" json:"str,omitempty"`
	Int32    int32                        `protobuf:"varint,2,opt,name=int32,proto3" json:"int32,omitempty"`
	Int64    int64                        `protobuf:"varint,3,opt,name=int64,proto3" json:"int64,omitempty"`
	Sint32   int32                        `protobuf:"zigzag32,4,opt,name=sint32,proto3" json:"sint32,omitempty"`
	Sin64    int64                        `protobuf:"zigzag64,5,opt,name=sin64,proto3" json:"sin64,omitempty"`
	Uint32   uint32                       `protobuf:"varint,6,opt,name=uint32,proto3" json:"uint32,omitempty"`
	Uint64   uint64                       `protobuf:"varint,7,opt,name=uint64,proto3" json:"uint64,omitempty"`
	Fixed32  uint32                       `protobuf:"fixed32,8,opt,name=fixed32,proto3" json:"fixed32,omitempty"`
	Fixed64  uint64                       `protobuf:"fixed64,9,opt,name=fixed64,proto3" json:"fixed64,omitempty"`
	Sfixed32 int32                        `protobuf:"fixed32,10,opt,name=sfixed32,proto3" json:"sfixed32,omitempty"`
	Bool     bool                         `protobuf:"varint,11,opt,name=bool,proto3" json:"bool,omitempty"`
	Bytes    []byte                       `protobuf:"bytes,12,opt,name=bytes,proto3" json:"bytes,omitempty"`
	Double   float64                      `protobuf:"fixed64,13,opt,name=double,proto3" json:"double,omitempty"`
	Enum     AllTheTypesNoAny_ExampleEnum `protobuf:"varint,14,opt,name=enum,proto3,enum=AllTheTypesNoAny_ExampleEnum" json:"enum,omitempty"`
	Message  *ExampleMessage              `protobuf:"bytes,15,opt,name=message,proto3" json:"message,omitempty"`
	// Types that are assignable to Oneof:
	//
	//	*AllTheTypesNoAny_Oneofstring
	//	*AllTheTypesNoAny_Oneofmessage
	Oneof       isAllTheTypesNoAny_Oneof   `protobuf_oneof:"oneof"`
	SimpleMap   map[int32]string           `` /* 178-byte string literal not displayed */
	ComplexMap  map[string]*ExampleMessage `` /* 180-byte string literal not displayed */
	SimpleList  []string                   `protobuf:"bytes,21,rep,name=simple_list,json=simpleList,proto3" json:"simple_list,omitempty"`
	ComplexList []*ExampleMessage          `protobuf:"bytes,22,rep,name=complex_list,json=complexList,proto3" json:"complex_list,omitempty"`
	// contains filtered or unexported fields
}

func (*AllTheTypesNoAny) Descriptor deprecated

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

Deprecated: Use AllTheTypesNoAny.ProtoReflect.Descriptor instead.

func (*AllTheTypesNoAny) GetBool

func (x *AllTheTypesNoAny) GetBool() bool

func (*AllTheTypesNoAny) GetBytes

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

func (*AllTheTypesNoAny) GetComplexList

func (x *AllTheTypesNoAny) GetComplexList() []*ExampleMessage

func (*AllTheTypesNoAny) GetComplexMap

func (x *AllTheTypesNoAny) GetComplexMap() map[string]*ExampleMessage

func (*AllTheTypesNoAny) GetDouble

func (x *AllTheTypesNoAny) GetDouble() float64

func (*AllTheTypesNoAny) GetEnum

func (*AllTheTypesNoAny) GetFixed32

func (x *AllTheTypesNoAny) GetFixed32() uint32

func (*AllTheTypesNoAny) GetFixed64

func (x *AllTheTypesNoAny) GetFixed64() uint64

func (*AllTheTypesNoAny) GetInt32

func (x *AllTheTypesNoAny) GetInt32() int32

func (*AllTheTypesNoAny) GetInt64

func (x *AllTheTypesNoAny) GetInt64() int64

func (*AllTheTypesNoAny) GetMessage

func (x *AllTheTypesNoAny) GetMessage() *ExampleMessage

func (*AllTheTypesNoAny) GetOneof

func (m *AllTheTypesNoAny) GetOneof() isAllTheTypesNoAny_Oneof

func (*AllTheTypesNoAny) GetOneofmessage

func (x *AllTheTypesNoAny) GetOneofmessage() *ExampleMessage

func (*AllTheTypesNoAny) GetOneofstring

func (x *AllTheTypesNoAny) GetOneofstring() string

func (*AllTheTypesNoAny) GetSfixed32

func (x *AllTheTypesNoAny) GetSfixed32() int32

func (*AllTheTypesNoAny) GetSimpleList

func (x *AllTheTypesNoAny) GetSimpleList() []string

func (*AllTheTypesNoAny) GetSimpleMap

func (x *AllTheTypesNoAny) GetSimpleMap() map[int32]string

func (*AllTheTypesNoAny) GetSin64

func (x *AllTheTypesNoAny) GetSin64() int64

func (*AllTheTypesNoAny) GetSint32

func (x *AllTheTypesNoAny) GetSint32() int32

func (*AllTheTypesNoAny) GetStr

func (x *AllTheTypesNoAny) GetStr() string

func (*AllTheTypesNoAny) GetUint32

func (x *AllTheTypesNoAny) GetUint32() uint32

func (*AllTheTypesNoAny) GetUint64

func (x *AllTheTypesNoAny) GetUint64() uint64

func (*AllTheTypesNoAny) ProtoMessage

func (*AllTheTypesNoAny) ProtoMessage()

func (*AllTheTypesNoAny) ProtoReflect

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

func (*AllTheTypesNoAny) Reset

func (x *AllTheTypesNoAny) Reset()

func (*AllTheTypesNoAny) String

func (x *AllTheTypesNoAny) String() string

type AllTheTypesNoAny_ExampleEnum

type AllTheTypesNoAny_ExampleEnum int32
const (
	AllTheTypesNoAny_OPTION_0 AllTheTypesNoAny_ExampleEnum = 0
	AllTheTypesNoAny_OPTION_1 AllTheTypesNoAny_ExampleEnum = 1
)

func (AllTheTypesNoAny_ExampleEnum) Descriptor

func (AllTheTypesNoAny_ExampleEnum) Enum

func (AllTheTypesNoAny_ExampleEnum) EnumDescriptor deprecated

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

Deprecated: Use AllTheTypesNoAny_ExampleEnum.Descriptor instead.

func (AllTheTypesNoAny_ExampleEnum) Number

func (AllTheTypesNoAny_ExampleEnum) String

func (AllTheTypesNoAny_ExampleEnum) Type

type AllTheTypesNoAny_Oneofmessage

type AllTheTypesNoAny_Oneofmessage struct {
	Oneofmessage *ExampleMessage `protobuf:"bytes,17,opt,name=oneofmessage,proto3,oneof"`
}

type AllTheTypesNoAny_Oneofstring

type AllTheTypesNoAny_Oneofstring struct {
	Oneofstring string `protobuf:"bytes,16,opt,name=oneofstring,proto3,oneof"`
}

type AllTheTypes_ExampleEnum

type AllTheTypes_ExampleEnum int32
const (
	AllTheTypes_OPTION_0 AllTheTypes_ExampleEnum = 0
	AllTheTypes_OPTION_1 AllTheTypes_ExampleEnum = 1
)

func (AllTheTypes_ExampleEnum) Descriptor

func (AllTheTypes_ExampleEnum) Enum

func (AllTheTypes_ExampleEnum) EnumDescriptor deprecated

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

Deprecated: Use AllTheTypes_ExampleEnum.Descriptor instead.

func (AllTheTypes_ExampleEnum) Number

func (AllTheTypes_ExampleEnum) String

func (x AllTheTypes_ExampleEnum) String() string

func (AllTheTypes_ExampleEnum) Type

type AllTheTypes_Oneofmessage

type AllTheTypes_Oneofmessage struct {
	Oneofmessage *ExampleMessage `protobuf:"bytes,17,opt,name=oneofmessage,proto3,oneof"`
}

type AllTheTypes_Oneofstring

type AllTheTypes_Oneofstring struct {
	Oneofstring string `protobuf:"bytes,16,opt,name=oneofstring,proto3,oneof"`
}

type ComplexNested

type ComplexNested struct {
	AllTheTypesNoAnyA []*AllTheTypesNoAny `protobuf:"bytes,1,rep,name=all_the_types_no_any_a,json=allTheTypesNoAnyA,proto3" json:"all_the_types_no_any_a,omitempty"`
	AllTheTypesNoAnyB []*AllTheTypesNoAny `protobuf:"bytes,2,rep,name=all_the_types_no_any_b,json=allTheTypesNoAnyB,proto3" json:"all_the_types_no_any_b,omitempty"`
	// contains filtered or unexported fields
}

func (*ComplexNested) Descriptor deprecated

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

Deprecated: Use ComplexNested.ProtoReflect.Descriptor instead.

func (*ComplexNested) GetAllTheTypesNoAnyA

func (x *ComplexNested) GetAllTheTypesNoAnyA() []*AllTheTypesNoAny

func (*ComplexNested) GetAllTheTypesNoAnyB

func (x *ComplexNested) GetAllTheTypesNoAnyB() []*AllTheTypesNoAny

func (*ComplexNested) ProtoMessage

func (*ComplexNested) ProtoMessage()

func (*ComplexNested) ProtoReflect

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

func (*ComplexNested) Reset

func (x *ComplexNested) Reset()

func (*ComplexNested) String

func (x *ComplexNested) String() string

type DeepNested

type DeepNested struct {
	ComplexNested *ComplexNested `protobuf:"bytes,1,opt,name=complex_nested,json=complexNested,proto3" json:"complex_nested,omitempty"`
	SimpleNested  *SimpleNested  `protobuf:"bytes,2,opt,name=simple_nested,json=simpleNested,proto3" json:"simple_nested,omitempty"`
	// contains filtered or unexported fields
}

func (*DeepNested) Descriptor deprecated

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

Deprecated: Use DeepNested.ProtoReflect.Descriptor instead.

func (*DeepNested) GetComplexNested

func (x *DeepNested) GetComplexNested() *ComplexNested

func (*DeepNested) GetSimpleNested

func (x *DeepNested) GetSimpleNested() *SimpleNested

func (*DeepNested) ProtoMessage

func (*DeepNested) ProtoMessage()

func (*DeepNested) ProtoReflect

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

func (*DeepNested) Reset

func (x *DeepNested) Reset()

func (*DeepNested) String

func (x *DeepNested) String() string

type ExampleMessage

type ExampleMessage struct {
	Field1 string `protobuf:"bytes,1,opt,name=field1,proto3" json:"field1,omitempty"`
	// contains filtered or unexported fields
}

func (*ExampleMessage) Descriptor deprecated

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

Deprecated: Use ExampleMessage.ProtoReflect.Descriptor instead.

func (*ExampleMessage) GetField1

func (x *ExampleMessage) GetField1() string

func (*ExampleMessage) ProtoMessage

func (*ExampleMessage) ProtoMessage()

func (*ExampleMessage) ProtoReflect

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

func (*ExampleMessage) Reset

func (x *ExampleMessage) Reset()

func (*ExampleMessage) String

func (x *ExampleMessage) String() string

type SimpleNested

type SimpleNested struct {
	SimpleA []*ExampleMessage `protobuf:"bytes,1,rep,name=simple_a,json=simpleA,proto3" json:"simple_a,omitempty"`
	SimpleB []*ExampleMessage `protobuf:"bytes,2,rep,name=simple_b,json=simpleB,proto3" json:"simple_b,omitempty"`
	// contains filtered or unexported fields
}

func (*SimpleNested) Descriptor deprecated

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

Deprecated: Use SimpleNested.ProtoReflect.Descriptor instead.

func (*SimpleNested) GetSimpleA

func (x *SimpleNested) GetSimpleA() []*ExampleMessage

func (*SimpleNested) GetSimpleB

func (x *SimpleNested) GetSimpleB() []*ExampleMessage

func (*SimpleNested) ProtoMessage

func (*SimpleNested) ProtoMessage()

func (*SimpleNested) ProtoReflect

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

func (*SimpleNested) Reset

func (x *SimpleNested) Reset()

func (*SimpleNested) String

func (x *SimpleNested) String() string

Jump to

Keyboard shortcuts

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