Help us shape the future of Go! Take the 2026 Go Developer Survey

fixtures

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

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

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

Jump to

Keyboard shortcuts

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