Documentation
¶
Index ¶
- Variables
- type Enum
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetEnum() Enum
- func (x *Message) GetNested() *Nested
- func (x *Message) GetStr() string
- func (x *Message) GetStringer() *Stringer
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type Nested
- type Stringer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Enum_name = map[int32]string{ 0: "UNKNOWN", 1: "FOO", 2: "BAR", } Enum_value = map[string]int32{ "UNKNOWN": 0, "FOO": 1, "BAR": 2, } )
Enum value maps for Enum.
View Source
var File_github_com_dogmatiq_dapper_internal_fixtures_protostub_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Enum ¶ added in v0.4.4
type Enum int32
func (Enum) Descriptor ¶ added in v0.4.4
func (Enum) Descriptor() protoreflect.EnumDescriptor
func (Enum) EnumDescriptor
deprecated
added in
v0.4.4
func (Enum) Number ¶ added in v0.4.4
func (x Enum) Number() protoreflect.EnumNumber
func (Enum) Type ¶ added in v0.4.4
func (Enum) Type() protoreflect.EnumType
type Message ¶ added in v0.4.4
type Message struct {
Str string `protobuf:"bytes,1,opt,name=str,proto3" json:"str,omitempty"`
Enum Enum `protobuf:"varint,2,opt,name=enum,proto3,enum=dogmatiq.dapper.fixtures.Enum" json:"enum,omitempty"`
Nested *Nested `protobuf:"bytes,3,opt,name=nested,proto3" json:"nested,omitempty"`
Stringer *Stringer `protobuf:"bytes,4,opt,name=stringer,proto3" json:"stringer,omitempty"`
// contains filtered or unexported fields
}
func (*Message) Descriptor
deprecated
added in
v0.4.4
func (*Message) GetStringer ¶ added in v0.4.5
func (*Message) ProtoMessage ¶ added in v0.4.4
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶ added in v0.4.4
func (x *Message) ProtoReflect() protoreflect.Message
type Nested ¶ added in v0.4.4
type Nested struct {
NestedA string `protobuf:"bytes,1,opt,name=nested_a,json=nestedA,proto3" json:"nested_a,omitempty"`
NestedB []byte `protobuf:"bytes,2,opt,name=nested_b,json=nestedB,proto3" json:"nested_b,omitempty"`
// contains filtered or unexported fields
}
func (*Nested) Descriptor
deprecated
added in
v0.4.4
func (*Nested) GetNestedA ¶ added in v0.4.4
func (*Nested) GetNestedB ¶ added in v0.4.4
func (*Nested) ProtoMessage ¶ added in v0.4.4
func (*Nested) ProtoMessage()
func (*Nested) ProtoReflect ¶ added in v0.4.4
func (x *Nested) ProtoReflect() protoreflect.Message
type Stringer ¶ added in v0.4.5
type Stringer struct {
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*Stringer) DapperString ¶ added in v0.4.5
DapperString is used to ensure that dapper.Stringer takes precedence over other filters (such as the protobuf filter).
func (*Stringer) Descriptor
deprecated
added in
v0.4.5
func (*Stringer) ProtoMessage ¶ added in v0.4.5
func (*Stringer) ProtoMessage()
func (*Stringer) ProtoReflect ¶ added in v0.4.5
func (x *Stringer) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.