misc

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_yt_yt_proto_yt_core_misc_proto_error_proto protoreflect.FileDescriptor
View Source
var File_yt_yt_proto_yt_core_misc_proto_guid_proto protoreflect.FileDescriptor

Functions

func NewErrorFromProto

func NewErrorFromProto(proto *TError) error

func NewGUIDFromProto

func NewGUIDFromProto(proto *TGuid) guid.GUID

Types

type TError

type TError struct {
	Code        *int32                      `protobuf:"varint,1,req,name=code" json:"code,omitempty"`
	Message     *string                     `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
	Attributes  *ytree.TAttributeDictionary `protobuf:"bytes,3,opt,name=attributes" json:"attributes,omitempty"`
	InnerErrors []*TError                   `protobuf:"bytes,4,rep,name=inner_errors,json=innerErrors" json:"inner_errors,omitempty"`
	// contains filtered or unexported fields
}

func (*TError) Descriptor deprecated

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

Deprecated: Use TError.ProtoReflect.Descriptor instead.

func (*TError) GetAttributes

func (x *TError) GetAttributes() *ytree.TAttributeDictionary

func (*TError) GetCode

func (x *TError) GetCode() int32

func (*TError) GetInnerErrors

func (x *TError) GetInnerErrors() []*TError

func (*TError) GetMessage

func (x *TError) GetMessage() string

func (*TError) ProtoMessage

func (*TError) ProtoMessage()

func (*TError) ProtoReflect

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

func (*TError) Reset

func (x *TError) Reset()

func (*TError) String

func (x *TError) String() string

type TGuid

type TGuid struct {
	First  *uint64 `protobuf:"fixed64,1,req,name=first" json:"first,omitempty"`
	Second *uint64 `protobuf:"fixed64,2,req,name=second" json:"second,omitempty"`
	// contains filtered or unexported fields
}

func NewProtoFromGUID

func NewProtoFromGUID(g guid.GUID) *TGuid

func (*TGuid) Descriptor deprecated

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

Deprecated: Use TGuid.ProtoReflect.Descriptor instead.

func (*TGuid) GetFirst

func (x *TGuid) GetFirst() uint64

func (*TGuid) GetSecond

func (x *TGuid) GetSecond() uint64

func (*TGuid) ProtoMessage

func (*TGuid) ProtoMessage()

func (*TGuid) ProtoReflect

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

func (*TGuid) Reset

func (x *TGuid) Reset()

func (*TGuid) String

func (x *TGuid) String() string

Jump to

Keyboard shortcuts

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