proto

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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) Enum

func (x ResultStatus) Enum() *ResultStatus

func (ResultStatus) EnumDescriptor deprecated

func (ResultStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use ResultStatus.Descriptor instead.

func (ResultStatus) Number

func (ResultStatus) String

func (x ResultStatus) String() string

func (ResultStatus) Type

Jump to

Keyboard shortcuts

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