protobuf

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_error_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Detail

type Detail struct {
	Field   string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*Detail) Descriptor deprecated

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

Deprecated: Use Detail.ProtoReflect.Descriptor instead.

func (*Detail) GetField

func (x *Detail) GetField() string

func (*Detail) GetMessage

func (x *Detail) GetMessage() string

func (*Detail) ProtoMessage

func (*Detail) ProtoMessage()

func (*Detail) ProtoReflect

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

func (*Detail) Reset

func (x *Detail) Reset()

func (*Detail) String

func (x *Detail) String() string

type Error

type Error struct {
	Code    string    `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string    `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Details []*Detail `protobuf:"bytes,3,rep,name=details,proto3" json:"details,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) GetDetails

func (x *Error) GetDetails() []*Detail

func (*Error) GetMessage

func (x *Error) GetMessage() string

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

Jump to

Keyboard shortcuts

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