Documentation
¶
Index ¶
- Variables
- type ProtoMessage
- func (x *ProtoMessage) ClearValue()
- func (x *ProtoMessage) GetValue() string
- func (x *ProtoMessage) HasValue() bool
- func (x *ProtoMessage) MarshalBinary() ([]byte, error)
- func (x *ProtoMessage) MessageDescription() 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
- func (x *ProtoMessage) UnmarshalBinary(data []byte) error
- func (x *ProtoMessage) Validate() error
- type ProtoMessageBuilder
- type ProtoMessage_builder
Constants ¶
This section is empty.
Variables ¶
var File_github_com_dogmatiq_testkit_internal_fixtures_protobuf_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ProtoMessage ¶
type ProtoMessage struct {
XXX_raceDetectHookData protoimpl.RaceDetectHookData
XXX_presence [1]uint32
// contains filtered or unexported fields
}
ProtoMessage is a Dogma message implemented as a Protocol Buffers message.
func (*ProtoMessage) ClearValue ¶ added in v0.21.0
func (x *ProtoMessage) ClearValue()
func (*ProtoMessage) GetValue ¶
func (x *ProtoMessage) GetValue() string
func (*ProtoMessage) HasValue ¶ added in v0.21.0
func (x *ProtoMessage) HasValue() bool
func (*ProtoMessage) MarshalBinary ¶ added in v0.20.0
func (x *ProtoMessage) MarshalBinary() ([]byte, error)
MarshalBinary returns the binary representation of the message.
func (*ProtoMessage) MessageDescription ¶ added in v0.13.10
func (x *ProtoMessage) MessageDescription() string
MessageDescription panics unconditionally.
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 ¶ added in v0.21.0
func (x *ProtoMessage) SetValue(v string)
func (*ProtoMessage) String ¶
func (x *ProtoMessage) String() string
func (*ProtoMessage) UnmarshalBinary ¶ added in v0.20.0
func (x *ProtoMessage) UnmarshalBinary(data []byte) error
UnmarshalBinary unmarshals the binary representation of the message.
func (*ProtoMessage) Validate ¶ added in v0.13.11
func (x *ProtoMessage) Validate() error
Validate panics unconditionally.
type ProtoMessageBuilder ¶ added in v0.21.0
type ProtoMessageBuilder struct {
// contains filtered or unexported fields
}
func NewProtoMessageBuilder ¶ added in v0.21.0
func NewProtoMessageBuilder() *ProtoMessageBuilder
NewProtoMessageBuilder returns a builder that constructs ProtoMessage messages.
func (*ProtoMessageBuilder) Build ¶ added in v0.21.0
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 ¶ added in v0.21.0
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 ¶ added in v0.21.0
func (b *ProtoMessageBuilder) WithValue(v string) *ProtoMessageBuilder
WithValue configures the builder to set the Value field to v, then returns b.
type ProtoMessage_builder ¶ added in v0.21.0
type ProtoMessage_builder struct {
Value *string
// contains filtered or unexported fields
}
func (ProtoMessage_builder) Build ¶ added in v0.21.0
func (b0 ProtoMessage_builder) Build() *ProtoMessage