Documentation ¶
Index ¶
- Constants
- Variables
- type Request
- func (x *Request) ClearCode()
- func (x *Request) ClearKind()
- func (x *Request) ClearName()
- func (x *Request) GetCode() int32
- func (x *Request) GetKind() isRequest_Kind
- func (x *Request) GetName() string
- func (x *Request) HasCode() bool
- func (x *Request) HasKind() bool
- func (x *Request) HasName() bool
- func (msg *Request) MarshalJSON() ([]byte, error)
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) SetCode(v int32)
- func (x *Request) SetName(v string)
- func (x *Request) String() string
- func (msg *Request) UnmarshalJSON(b []byte) error
- func (x *Request) WhichKind() case_Request_Kind
- type Request_Code
- type Request_Name
- type Request_builder
Constants ¶
View Source
const Request_Code_case case_Request_Kind = 2
View Source
const Request_Kind_not_set_case case_Request_Kind = 0
View Source
const Request_Name_case case_Request_Kind = 1
Variables ¶
View Source
var File_api_v1_request_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct { // Types that are valid to be assigned to Kind: // // *Request_Name // *Request_Code Kind isRequest_Kind `protobuf_oneof:"kind"` // contains filtered or unexported fields }
Request is a message that can be sent to the server.
func (*Request) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
func (*Request) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
type Request_Code ¶
type Request_Code struct {
Code int32 `protobuf:"varint,2,opt,name=code,proto3,oneof"`
}
type Request_Name ¶
type Request_Name struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3,oneof"`
}
type Request_builder ¶ added in v1.5.0
type Request_builder struct { // Fields of oneof Kind: Name *string Code *int32 // contains filtered or unexported fields }
func (Request_builder) Build ¶ added in v1.5.0
func (b0 Request_builder) Build() *Request
Click to show internal directories.
Click to hide internal directories.