Documentation
¶
Index ¶
- Variables
- type Protoenum
- type Protostub
- func (*Protostub) Descriptor() ([]byte, []int)deprecated
- func (x *Protostub) GetEnumField() Protoenum
- func (x *Protostub) GetFirstField() string
- func (x *Protostub) GetInnerMessage() *ProtostubInner
- func (*Protostub) ProtoMessage()
- func (x *Protostub) ProtoReflect() protoreflect.Message
- func (x *Protostub) Reset()
- func (x *Protostub) String() string
- type ProtostubInner
- func (*ProtostubInner) Descriptor() ([]byte, []int)deprecated
- func (x *ProtostubInner) GetInnerFirstField() string
- func (x *ProtostubInner) GetInnerSecondField() bool
- func (*ProtostubInner) ProtoMessage()
- func (x *ProtostubInner) ProtoReflect() protoreflect.Message
- func (x *ProtostubInner) Reset()
- func (x *ProtostubInner) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Protoenum_name = map[int32]string{ 0: "UNKNOWN", 1: "FOO", 2: "BAR", } Protoenum_value = map[string]int32{ "UNKNOWN": 0, "FOO": 1, "BAR": 2, } )
Enum value maps for Protoenum.
View Source
var File_github_com_dogmatiq_dapper_internal_fixtures_protostub_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Protoenum ¶
type Protoenum int32
func (Protoenum) Descriptor ¶
func (Protoenum) Descriptor() protoreflect.EnumDescriptor
func (Protoenum) EnumDescriptor
deprecated
func (Protoenum) Number ¶
func (x Protoenum) Number() protoreflect.EnumNumber
func (Protoenum) Type ¶
func (Protoenum) Type() protoreflect.EnumType
type Protostub ¶
type Protostub struct {
FirstField string `protobuf:"bytes,1,opt,name=first_field,json=firstField,proto3" json:"first_field,omitempty"`
EnumField Protoenum `` /* 129-byte string literal not displayed */
InnerMessage *ProtostubInner `protobuf:"bytes,3,opt,name=inner_message,json=innerMessage,proto3" json:"inner_message,omitempty"`
// contains filtered or unexported fields
}
func (*Protostub) Descriptor
deprecated
func (*Protostub) GetEnumField ¶
func (*Protostub) GetFirstField ¶
func (*Protostub) GetInnerMessage ¶
func (x *Protostub) GetInnerMessage() *ProtostubInner
func (*Protostub) ProtoMessage ¶
func (*Protostub) ProtoMessage()
func (*Protostub) ProtoReflect ¶
func (x *Protostub) ProtoReflect() protoreflect.Message
type ProtostubInner ¶
type ProtostubInner struct {
InnerFirstField string `protobuf:"bytes,1,opt,name=inner_first_field,json=innerFirstField,proto3" json:"inner_first_field,omitempty"`
InnerSecondField bool `protobuf:"varint,2,opt,name=inner_second_field,json=innerSecondField,proto3" json:"inner_second_field,omitempty"`
// contains filtered or unexported fields
}
func (*ProtostubInner) Descriptor
deprecated
func (*ProtostubInner) Descriptor() ([]byte, []int)
Deprecated: Use ProtostubInner.ProtoReflect.Descriptor instead.
func (*ProtostubInner) GetInnerFirstField ¶
func (x *ProtostubInner) GetInnerFirstField() string
func (*ProtostubInner) GetInnerSecondField ¶
func (x *ProtostubInner) GetInnerSecondField() bool
func (*ProtostubInner) ProtoMessage ¶
func (*ProtostubInner) ProtoMessage()
func (*ProtostubInner) ProtoReflect ¶
func (x *ProtostubInner) ProtoReflect() protoreflect.Message
func (*ProtostubInner) Reset ¶
func (x *ProtostubInner) Reset()
func (*ProtostubInner) String ¶
func (x *ProtostubInner) String() string
Click to show internal directories.
Click to hide internal directories.