Documentation ¶
Index ¶
- Variables
- type DefaultResponse
- func (*DefaultResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DefaultResponse) GetData() *anypb.Any
- func (x *DefaultResponse) GetMessage() string
- func (x *DefaultResponse) GetStatus() ResultStatus
- func (*DefaultResponse) ProtoMessage()
- func (x *DefaultResponse) ProtoReflect() protoreflect.Message
- func (x *DefaultResponse) Reset()
- func (x *DefaultResponse) String() string
- type ResultStatus
- func (ResultStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ResultStatus) Enum() *ResultStatus
- func (ResultStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ResultStatus) Number() protoreflect.EnumNumber
- func (x ResultStatus) String() string
- func (ResultStatus) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ResultStatus_name = map[int32]string{ 0: "Error", 1: "OK", 2: "Warning", 3: "NotFound", } ResultStatus_value = map[string]int32{ "Error": 0, "OK": 1, "Warning": 2, "NotFound": 3, } )
Enum value maps for ResultStatus.
View Source
var File_defaultResponse_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type DefaultResponse ¶
type DefaultResponse struct { Status ResultStatus `protobuf:"varint,1,opt,name=status,proto3,enum=mediaservergenericproto.ResultStatus" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Data *anypb.Any `protobuf:"bytes,3,opt,name=data,proto3,oneof" json:"data,omitempty"` // contains filtered or unexported fields }
func (*DefaultResponse) Descriptor
deprecated
func (*DefaultResponse) Descriptor() ([]byte, []int)
Deprecated: Use DefaultResponse.ProtoReflect.Descriptor instead.
func (*DefaultResponse) GetData ¶
func (x *DefaultResponse) GetData() *anypb.Any
func (*DefaultResponse) GetMessage ¶
func (x *DefaultResponse) GetMessage() string
func (*DefaultResponse) GetStatus ¶
func (x *DefaultResponse) GetStatus() ResultStatus
func (*DefaultResponse) ProtoMessage ¶
func (*DefaultResponse) ProtoMessage()
func (*DefaultResponse) ProtoReflect ¶
func (x *DefaultResponse) ProtoReflect() protoreflect.Message
func (*DefaultResponse) Reset ¶
func (x *DefaultResponse) Reset()
func (*DefaultResponse) String ¶
func (x *DefaultResponse) String() string
type ResultStatus ¶
type ResultStatus int32
const ( ResultStatus_Error ResultStatus = 0 ResultStatus_OK ResultStatus = 1 ResultStatus_Warning ResultStatus = 2 ResultStatus_NotFound ResultStatus = 3 )
func (ResultStatus) Descriptor ¶
func (ResultStatus) Descriptor() protoreflect.EnumDescriptor
func (ResultStatus) Enum ¶
func (x ResultStatus) Enum() *ResultStatus
func (ResultStatus) EnumDescriptor
deprecated
func (ResultStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ResultStatus.Descriptor instead.
func (ResultStatus) Number ¶
func (x ResultStatus) Number() protoreflect.EnumNumber
func (ResultStatus) String ¶
func (x ResultStatus) String() string
func (ResultStatus) Type ¶
func (ResultStatus) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.