Documentation ¶
Index ¶
- Variables
- type ExampleRequest
- func (*ExampleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExampleRequest) GetAge() int32
- func (x *ExampleRequest) GetName() string
- func (x *ExampleRequest) GetValue() float32
- func (*ExampleRequest) ProtoMessage()
- func (x *ExampleRequest) ProtoReflect() protoreflect.Message
- func (x *ExampleRequest) Reset()
- func (x *ExampleRequest) String() string
- type ExampleResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var File_known_example_v1_example_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ExampleRequest ¶
type ExampleRequest struct { // Name 该字段的备注 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Value 该字段的备注 Value float32 `protobuf:"fixed32,2,opt,name=value,proto3" json:"value,omitempty"` // Age 年龄,设置字段 Age int32 `protobuf:"varint,3,opt,name=age,proto3" json:"age,omitempty"` // contains filtered or unexported fields }
ExampleRequest 这里是该类的描述
func (*ExampleRequest) Descriptor
deprecated
func (*ExampleRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExampleRequest.ProtoReflect.Descriptor instead.
func (*ExampleRequest) GetAge ¶
func (x *ExampleRequest) GetAge() int32
func (*ExampleRequest) GetName ¶
func (x *ExampleRequest) GetName() string
func (*ExampleRequest) GetValue ¶
func (x *ExampleRequest) GetValue() float32
func (*ExampleRequest) ProtoMessage ¶
func (*ExampleRequest) ProtoMessage()
func (*ExampleRequest) ProtoReflect ¶
func (x *ExampleRequest) ProtoReflect() protoreflect.Message
func (*ExampleRequest) Reset ¶
func (x *ExampleRequest) Reset()
func (*ExampleRequest) String ¶
func (x *ExampleRequest) String() string
type ExampleResponse ¶
type ExampleResponse struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
ExampleResponse 这里是描述
func (*ExampleResponse) Descriptor
deprecated
func (*ExampleResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExampleResponse.ProtoReflect.Descriptor instead.
func (*ExampleResponse) GetName ¶
func (x *ExampleResponse) GetName() string
func (*ExampleResponse) ProtoMessage ¶
func (*ExampleResponse) ProtoMessage()
func (*ExampleResponse) ProtoReflect ¶
func (x *ExampleResponse) ProtoReflect() protoreflect.Message
func (*ExampleResponse) Reset ¶
func (x *ExampleResponse) Reset()
func (*ExampleResponse) String ¶
func (x *ExampleResponse) String() string
Click to show internal directories.
Click to hide internal directories.