Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 (*Ref) Descriptor
deprecated
func (*Ref) GetId ¶
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) 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.