apiv1

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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) ClearCode added in v1.5.0

func (x *Request) ClearCode()

func (*Request) ClearKind added in v1.5.0

func (x *Request) ClearKind()

func (*Request) ClearName added in v1.5.0

func (x *Request) ClearName()

func (*Request) GetCode

func (x *Request) GetCode() int32

func (*Request) GetKind

func (x *Request) GetKind() isRequest_Kind

func (*Request) GetName

func (x *Request) GetName() string

func (*Request) HasCode added in v1.5.0

func (x *Request) HasCode() bool

func (*Request) HasKind added in v1.5.0

func (x *Request) HasKind() bool

func (*Request) HasName added in v1.5.0

func (x *Request) HasName() bool

func (*Request) MarshalJSON

func (msg *Request) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) SetCode added in v1.5.0

func (x *Request) SetCode(v int32)

func (*Request) SetName added in v1.5.0

func (x *Request) SetName(v string)

func (*Request) String

func (x *Request) String() string

func (*Request) UnmarshalJSON

func (msg *Request) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*Request) WhichKind added in v1.5.0

func (x *Request) WhichKind() case_Request_Kind

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

Jump to

Keyboard shortcuts

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