level3

package
v0.0.0-...-bb73ec8 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EyeColor_name = map[int32]string{
		0: "EYECOLOR_UNIDENTIFIED",
		1: "EYECOLOR_BLUE",
		2: "EYECOLOR_GREEN",
		3: "EYECOLOR_BLACK",
	}
	EyeColor_value = map[string]int32{
		"EYECOLOR_UNIDENTIFIED": 0,
		"EYECOLOR_BLUE":         1,
		"EYECOLOR_GREEN":        2,
		"EYECOLOR_BLACK":        3,
	}
)

Enum value maps for EyeColor.

View Source
var File_sample1_proto protoreflect.FileDescriptor
View Source
var File_sample2_proto protoreflect.FileDescriptor
View Source
var File_sampleMap_proto protoreflect.FileDescriptor
View Source
var File_sampleOneOf_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CityList

type CityList struct {
	Cities []string `protobuf:"bytes,1,rep,name=cities,proto3" json:"cities,omitempty"`
	// contains filtered or unexported fields
}

func (*CityList) Descriptor deprecated

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

Deprecated: Use CityList.ProtoReflect.Descriptor instead.

func (*CityList) GetCities

func (x *CityList) GetCities() []string

func (*CityList) ProtoMessage

func (*CityList) ProtoMessage()

func (*CityList) ProtoReflect

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

func (*CityList) Reset

func (x *CityList) Reset()

func (*CityList) String

func (x *CityList) String() string

type ComplexMessage

type ComplexMessage struct {
	Single   *SampleMessage   `protobuf:"bytes,1,opt,name=single,proto3" json:"single,omitempty"`
	Multiple []*SampleMessage `protobuf:"bytes,2,rep,name=multiple,proto3" json:"multiple,omitempty"`
	// contains filtered or unexported fields
}

func (*ComplexMessage) Descriptor deprecated

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

Deprecated: Use ComplexMessage.ProtoReflect.Descriptor instead.

func (*ComplexMessage) GetMultiple

func (x *ComplexMessage) GetMultiple() []*SampleMessage

func (*ComplexMessage) GetSingle

func (x *ComplexMessage) GetSingle() *SampleMessage

func (*ComplexMessage) ProtoMessage

func (*ComplexMessage) ProtoMessage()

func (*ComplexMessage) ProtoReflect

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

func (*ComplexMessage) Reset

func (x *ComplexMessage) Reset()

func (*ComplexMessage) String

func (x *ComplexMessage) String() string

type Country

type Country struct {
	StateWiseCityList map[string]*CityList `` /* 175-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Country) Descriptor deprecated

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

Deprecated: Use Country.ProtoReflect.Descriptor instead.

func (*Country) GetStateWiseCityList

func (x *Country) GetStateWiseCityList() map[string]*CityList

func (*Country) ProtoMessage

func (*Country) ProtoMessage()

func (*Country) ProtoReflect

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

func (*Country) Reset

func (x *Country) Reset()

func (*Country) String

func (x *Country) String() string

type EyeColor

type EyeColor int32
const (
	EyeColor_EYECOLOR_UNIDENTIFIED EyeColor = 0
	EyeColor_EYECOLOR_BLUE         EyeColor = 1
	EyeColor_EYECOLOR_GREEN        EyeColor = 2
	EyeColor_EYECOLOR_BLACK        EyeColor = 3
)

func (EyeColor) Descriptor

func (EyeColor) Descriptor() protoreflect.EnumDescriptor

func (EyeColor) Enum

func (x EyeColor) Enum() *EyeColor

func (EyeColor) EnumDescriptor deprecated

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

Deprecated: Use EyeColor.Descriptor instead.

func (EyeColor) Number

func (x EyeColor) Number() protoreflect.EnumNumber

func (EyeColor) String

func (x EyeColor) String() string

func (EyeColor) Type

type Result

type Result struct {

	// Types that are assignable to Result:
	//	*Result_Message
	//	*Result_Id
	Result isResult_Result `protobuf_oneof:"result"`
	// contains filtered or unexported fields
}

func (*Result) Descriptor deprecated

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

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetId

func (x *Result) GetId() uint32

func (*Result) GetMessage

func (x *Result) GetMessage() string

func (*Result) GetResult

func (m *Result) GetResult() isResult_Result

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

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

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

type Result_Id

type Result_Id struct {
	Id uint32 `protobuf:"varint,2,opt,name=id,proto3,oneof"`
}

type Result_Message

type Result_Message struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3,oneof"`
}

type SampleMessage

type SampleMessage struct {
	Id       uint32   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	IsActive bool     `protobuf:"varint,2,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
	Name     string   `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	AltNames []string `protobuf:"bytes,4,rep,name=alt_names,json=altNames,proto3" json:"alt_names,omitempty"`
	// contains filtered or unexported fields
}

func (*SampleMessage) Descriptor deprecated

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

Deprecated: Use SampleMessage.ProtoReflect.Descriptor instead.

func (*SampleMessage) GetAltNames

func (x *SampleMessage) GetAltNames() []string

func (*SampleMessage) GetId

func (x *SampleMessage) GetId() uint32

func (*SampleMessage) GetIsActive

func (x *SampleMessage) GetIsActive() bool

func (*SampleMessage) GetName

func (x *SampleMessage) GetName() string

func (*SampleMessage) ProtoMessage

func (*SampleMessage) ProtoMessage()

func (*SampleMessage) ProtoReflect

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

func (*SampleMessage) Reset

func (x *SampleMessage) Reset()

func (*SampleMessage) String

func (x *SampleMessage) String() string

type SampleMessage2

type SampleMessage2 struct {
	Id       uint32   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	EyeColor EyeColor `protobuf:"varint,2,opt,name=eyeColor,proto3,enum=greet.practice.level3.EyeColor" json:"eyeColor,omitempty"`
	// contains filtered or unexported fields
}

func (*SampleMessage2) Descriptor deprecated

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

Deprecated: Use SampleMessage2.ProtoReflect.Descriptor instead.

func (*SampleMessage2) GetEyeColor

func (x *SampleMessage2) GetEyeColor() EyeColor

func (*SampleMessage2) GetId

func (x *SampleMessage2) GetId() uint32

func (*SampleMessage2) ProtoMessage

func (*SampleMessage2) ProtoMessage()

func (*SampleMessage2) ProtoReflect

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

func (*SampleMessage2) Reset

func (x *SampleMessage2) Reset()

func (*SampleMessage2) String

func (x *SampleMessage2) String() string

Jump to

Keyboard shortcuts

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