commonpb

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_goes_common_uuid_proto protoreflect.FileDescriptor

File_goes_common_uuid_proto defines the UUID message type, which represents a Universally Unique Identifier (UUID) as implemented by the github.com/google/uuid package. It contains a single field, Bytes, which is a byte slice representation of the UUID.

Functions

This section is empty.

Types

type UUID

type UUID struct {
	Bytes []byte `protobuf:"bytes,1,opt,name=bytes,proto3" json:"bytes,omitempty"`
	// contains filtered or unexported fields
}

UUID represents a UUID as implemented by github.com/google/uuid.

func NewUUID

func NewUUID(id uuid.UUID) *UUID

NewUUID converts a uuid.UUID to a *UUID.

func (*UUID) AsUUID

func (id *UUID) AsUUID() uuid.UUID

AsUUID converts the *UUID to a uuid.UUID.

func (*UUID) Descriptor deprecated

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

Deprecated: Use UUID.ProtoReflect.Descriptor instead.

func (*UUID) GetBytes

func (x *UUID) GetBytes() []byte

GetBytes returns the byte representation of the UUID. It returns nil if the UUID is nil. [Bytes] is a field of UUID.

func (*UUID) ProtoMessage

func (*UUID) ProtoMessage()

ProtoMessage UUID is a method that implements the ProtoMessage interface from the Google Protocol Buffers API. It indicates that the UUID message can be marshaled and unmarshaled to and from wire format.

func (*UUID) ProtoReflect

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

ProtoReflect returns the Message instance for this UUID struct type. It implements the protoreflect.ProtoMessage interface.

func (*UUID) Reset

func (x *UUID) Reset()

Reset resets the UUID to its zero value. It sets the Bytes field to nil.

func (*UUID) String

func (x *UUID) String() string

String returns the string representation of the UUID in standard format. It implements the fmt.Stringer interface.

Jump to

Keyboard shortcuts

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