Documentation ¶
Index ¶
- Variables
- type Enums
- type Enums_Enums
- func (Enums_Enums) Descriptor() protoreflect.EnumDescriptor
- func (x Enums_Enums) Enum() *Enums_Enums
- func (Enums_Enums) EnumDescriptor() ([]byte, []int)deprecated
- func (x Enums_Enums) Number() protoreflect.EnumNumber
- func (x Enums_Enums) String() string
- func (Enums_Enums) Type() protoreflect.EnumType
- type Req
- type Resp
- type Resp2
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Enums_Enums_name = map[int32]string{ 0: "ZERO", 1: "FIRST", 2: "SECOND", } Enums_Enums_value = map[string]int32{ "ZERO": 0, "FIRST": 1, "SECOND": 2, } )
Enum value maps for Enums_Enums.
View Source
var File_hello_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Enums ¶
type Enums struct { AnEnum Enums_Enums `protobuf:"varint,1,opt,name=anEnum,proto3,enum=testprotos.Enums_Enums" json:"anEnum,omitempty"` // contains filtered or unexported fields }
func (*Enums) Descriptor
deprecated
func (*Enums) GetAnEnum ¶
func (x *Enums) GetAnEnum() Enums_Enums
func (*Enums) ProtoMessage ¶
func (*Enums) ProtoMessage()
func (*Enums) ProtoReflect ¶
func (x *Enums) ProtoReflect() protoreflect.Message
type Enums_Enums ¶
type Enums_Enums int32
const ( Enums_ZERO Enums_Enums = 0 Enums_FIRST Enums_Enums = 1 Enums_SECOND Enums_Enums = 2 )
func (Enums_Enums) Descriptor ¶
func (Enums_Enums) Descriptor() protoreflect.EnumDescriptor
func (Enums_Enums) Enum ¶
func (x Enums_Enums) Enum() *Enums_Enums
func (Enums_Enums) EnumDescriptor
deprecated
func (Enums_Enums) EnumDescriptor() ([]byte, []int)
Deprecated: Use Enums_Enums.Descriptor instead.
func (Enums_Enums) Number ¶
func (x Enums_Enums) Number() protoreflect.EnumNumber
func (Enums_Enums) String ¶
func (x Enums_Enums) String() string
func (Enums_Enums) Type ¶
func (Enums_Enums) Type() protoreflect.EnumType
type Req ¶
type Req struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` Number int32 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` List []string `protobuf:"bytes,3,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*Req) Descriptor
deprecated
func (*Req) ProtoMessage ¶
func (*Req) ProtoMessage()
func (*Req) ProtoReflect ¶
func (x *Req) ProtoReflect() protoreflect.Message
type Resp ¶
type Resp struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` // contains filtered or unexported fields }
func (*Resp) Descriptor
deprecated
func (*Resp) ProtoMessage ¶
func (*Resp) ProtoMessage()
func (*Resp) ProtoReflect ¶
func (x *Resp) ProtoReflect() protoreflect.Message
type Resp2 ¶
type Resp2 struct { Number int32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // contains filtered or unexported fields }
func (*Resp2) Descriptor
deprecated
func (*Resp2) ProtoMessage ¶
func (*Resp2) ProtoMessage()
func (*Resp2) ProtoReflect ¶
func (x *Resp2) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.