common

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_common_error_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type OperationError

type OperationError struct {

	// This is the standard gRPC error code for the error.
	GrpcCode uint32 `protobuf:"varint,1,opt,name=grpc_code,json=grpcCode,proto3" json:"grpc_code,omitempty"`
	// English language text description of the error.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

OperationError is an error that can be returned from certain APIs to provide more details than a gRPC status error could. This is used mostly in cases when APIs are able to return partial results.

func (*OperationError) CloneMessageVT

func (m *OperationError) CloneMessageVT() proto.Message

func (*OperationError) CloneVT

func (m *OperationError) CloneVT() *OperationError

func (*OperationError) Descriptor deprecated

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

Deprecated: Use OperationError.ProtoReflect.Descriptor instead.

func (*OperationError) EqualMessageVT

func (this *OperationError) EqualMessageVT(thatMsg proto.Message) bool

func (*OperationError) EqualVT

func (this *OperationError) EqualVT(that *OperationError) bool

func (*OperationError) GetDescription

func (x *OperationError) GetDescription() string

func (*OperationError) GetGrpcCode

func (x *OperationError) GetGrpcCode() uint32

func (*OperationError) MarshalToSizedBufferVT

func (m *OperationError) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*OperationError) MarshalToVT

func (m *OperationError) MarshalToVT(dAtA []byte) (int, error)

func (*OperationError) MarshalVT

func (m *OperationError) MarshalVT() (dAtA []byte, err error)

func (*OperationError) ProtoMessage

func (*OperationError) ProtoMessage()

func (*OperationError) ProtoReflect

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

func (*OperationError) Reset

func (x *OperationError) Reset()

func (*OperationError) SizeVT

func (m *OperationError) SizeVT() (n int)

func (*OperationError) String

func (x *OperationError) String() string

func (*OperationError) UnmarshalVT

func (m *OperationError) UnmarshalVT(dAtA []byte) error

Jump to

Keyboard shortcuts

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