proto

package
v0.0.0-...-5f94670 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Status_name = map[int32]string{
		0:  "OK",
		1:  "CANCELED",
		2:  "UNKNOWN",
		3:  "INVALID_ARGUMENT",
		4:  "DEADLINE_EXCEEDED",
		5:  "NOT_FOUND",
		6:  "ALREADY_EXISTS",
		7:  "PERMISSION_DENIED",
		8:  "RESOURCE_EXHAUSTED",
		9:  "FAILED_PRECONDITION",
		10: "ABORTED",
		11: "OUT_OF_RANGE",
		12: "UNIMPLEMENTED",
		13: "INTERNAL",
		14: "UNAVAILABLE",
		15: "DATA_LOSS",
		16: "UNAUTHENTICATED",
	}
	Status_value = map[string]int32{
		"OK":                  0,
		"CANCELED":            1,
		"UNKNOWN":             2,
		"INVALID_ARGUMENT":    3,
		"DEADLINE_EXCEEDED":   4,
		"NOT_FOUND":           5,
		"ALREADY_EXISTS":      6,
		"PERMISSION_DENIED":   7,
		"RESOURCE_EXHAUSTED":  8,
		"FAILED_PRECONDITION": 9,
		"ABORTED":             10,
		"OUT_OF_RANGE":        11,
		"UNIMPLEMENTED":       12,
		"INTERNAL":            13,
		"UNAVAILABLE":         14,
		"DATA_LOSS":           15,
		"UNAUTHENTICATED":     16,
	}
)

Enum value maps for Status.

View Source
var (
	// repeated errors.Error types = 50003;
	E_Types = &file_errors_proto_extTypes[0]
)

Extension fields to descriptorpb.MethodOptions.

View Source
var File_errors_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Error

type Error struct {
	Status *Status `protobuf:"varint,1,req,name=status,enum=errors.Status" json:"status,omitempty"`
	Code   *string `protobuf:"bytes,2,req,name=code" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*Error) Descriptor deprecated

func (*Error) Descriptor() ([]byte, []int)

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetCode

func (x *Error) GetCode() string

func (*Error) GetStatus

func (x *Error) GetStatus() Status

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

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

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

type Status

type Status int32
const (
	Status_OK                  Status = 0
	Status_CANCELED            Status = 1
	Status_UNKNOWN             Status = 2
	Status_INVALID_ARGUMENT    Status = 3
	Status_DEADLINE_EXCEEDED   Status = 4
	Status_NOT_FOUND           Status = 5
	Status_ALREADY_EXISTS      Status = 6
	Status_PERMISSION_DENIED   Status = 7
	Status_RESOURCE_EXHAUSTED  Status = 8
	Status_FAILED_PRECONDITION Status = 9
	Status_ABORTED             Status = 10
	Status_OUT_OF_RANGE        Status = 11
	Status_UNIMPLEMENTED       Status = 12
	Status_INTERNAL            Status = 13
	Status_UNAVAILABLE         Status = 14
	Status_DATA_LOSS           Status = 15
	Status_UNAUTHENTICATED     Status = 16
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

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

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type

func (Status) Type() protoreflect.EnumType

func (*Status) UnmarshalJSON deprecated

func (x *Status) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

Jump to

Keyboard shortcuts

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