Documentation
¶
Index ¶
- Variables
- type ProtoMessage
- func (*ProtoMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoMessage) GetValue() string
- func (*ProtoMessage) ProtoMessage()
- func (x *ProtoMessage) ProtoReflect() protoreflect.Message
- func (x *ProtoMessage) Reset()
- func (x *ProtoMessage) SetValue(v string)
- func (x *ProtoMessage) String() string
- type ProtoMessageBuilder
Constants ¶
This section is empty.
Variables ¶
var File_github_com_dogmatiq_enginekit_marshaler_internal_stubs1_message_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ProtoMessage ¶
type ProtoMessage struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
ProtoMessage is a generic protocol buffers message.
func (*ProtoMessage) Descriptor
deprecated
func (*ProtoMessage) Descriptor() ([]byte, []int)
Deprecated: Use ProtoMessage.ProtoReflect.Descriptor instead.
func (*ProtoMessage) GetValue ¶
func (x *ProtoMessage) GetValue() string
func (*ProtoMessage) ProtoMessage ¶
func (*ProtoMessage) ProtoMessage()
func (*ProtoMessage) ProtoReflect ¶
func (x *ProtoMessage) ProtoReflect() protoreflect.Message
func (*ProtoMessage) Reset ¶
func (x *ProtoMessage) Reset()
func (*ProtoMessage) SetValue ¶
func (x *ProtoMessage) SetValue(v string)
SetValue sets the x.Value field to v, then returns x.
func (*ProtoMessage) String ¶
func (x *ProtoMessage) String() string
type ProtoMessageBuilder ¶
type ProtoMessageBuilder struct {
// contains filtered or unexported fields
}
func NewProtoMessageBuilder ¶
func NewProtoMessageBuilder() *ProtoMessageBuilder
NewProtoMessageBuilder returns a builder that constructs ProtoMessage messages.
func (*ProtoMessageBuilder) Build ¶
func (b *ProtoMessageBuilder) Build() *ProtoMessage
Build returns a new ProtoMessage containing the values configured via the builder.
Each call returns a new message, such that future changes to the builder do not modify previously constructed messages.
func (*ProtoMessageBuilder) From ¶
func (b *ProtoMessageBuilder) From(x *ProtoMessage) *ProtoMessageBuilder
From configures the builder to use x as the prototype for new messages, then returns b.
It performs a shallow copy of x, such that any changes made via the builder do not modify x. It does not make a copy of the field values themselves.
func (*ProtoMessageBuilder) WithValue ¶
func (b *ProtoMessageBuilder) WithValue(v string) *ProtoMessageBuilder
WithValue configures the builder to set the Value field to v, then returns b.