aggregatepb

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_goes_aggregate_ref_proto protoreflect.FileDescriptor

File_goes_aggregate_ref_proto defines a protocol buffer message type for a reference to an aggregate. The Ref message contains an Id field of type common.UUID(https://pkg.go.dev/github.com/modernice/goes/api/proto/gen/common#UUID) and a Name field of type string.

Functions

This section is empty.

Types

type Ref

type Ref struct {
	Id   *common.UUID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string       `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Ref is a reference to an aggregate.

func NewRef

func NewRef(ref aggregate.Ref) *Ref

NewRef convers an aggregate.Ref to a *Ref.

func (*Ref) AsRef

func (ref *Ref) AsRef() aggregate.Ref

AsRef converts the *Ref to an aggregate.Ref.

func (*Ref) Descriptor deprecated

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

Deprecated: Use Ref.ProtoReflect.Descriptor instead.

func (*Ref) GetId

func (x *Ref) GetId() *common.UUID

GetId returns the UUID common.UUID(https://pkg.go.dev/github.com/modernice/goes/api/proto/gen/common#UUID) of the aggregate reference. If the reference is nil, it returns nil.

func (*Ref) GetName

func (x *Ref) GetName() string

GetName returns the name of the aggregate reference.

func (*Ref) ProtoMessage

func (*Ref) ProtoMessage()

ProtoMessage *Ref.ProtoMessage() is a method that implements the protoreflect.ProtoMessage interface.

func (*Ref) ProtoReflect

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

ProtoReflect returns the protoreflect.Message associated with Ref. It is used to access metadata about the message and perform reflective operations on the message, such as getting or setting fields.

func (*Ref) Reset

func (x *Ref) Reset()

Reset resets the Ref to its zero value. It is equivalent to assigning a new Ref to the variable. This method is part of the [proto.Message](https://pkg.go.dev/google.golang.org/protobuf/proto#Message) interface.

func (*Ref) String

func (x *Ref) String() string

String returns a string representation of the Ref Ref. It is implemented by calling protoimpl.X.MessageStringOf.

Jump to

Keyboard shortcuts

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