Documentation ¶
Index ¶
- Variables
- type PBResponse
- func (*PBResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PBResponse) GetCode() int32
- func (x *PBResponse) GetData() *anypb.Any
- func (x *PBResponse) GetMsg() string
- func (*PBResponse) ProtoMessage()
- func (x *PBResponse) ProtoReflect() protoreflect.Message
- func (x *PBResponse) Reset()
- func (x *PBResponse) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_pb_response_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type PBResponse ¶
type PBResponse struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *anypb.Any `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*PBResponse) Descriptor
deprecated
func (*PBResponse) Descriptor() ([]byte, []int)
Deprecated: Use PBResponse.ProtoReflect.Descriptor instead.
func (*PBResponse) GetCode ¶
func (x *PBResponse) GetCode() int32
func (*PBResponse) GetData ¶
func (x *PBResponse) GetData() *anypb.Any
func (*PBResponse) GetMsg ¶
func (x *PBResponse) GetMsg() string
func (*PBResponse) ProtoMessage ¶
func (*PBResponse) ProtoMessage()
func (*PBResponse) ProtoReflect ¶
func (x *PBResponse) ProtoReflect() protoreflect.Message
func (*PBResponse) Reset ¶
func (x *PBResponse) Reset()
func (*PBResponse) String ¶
func (x *PBResponse) String() string
Click to show internal directories.
Click to hide internal directories.