fixtures

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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
const (
	Protoenum_UNKNOWN Protoenum = 0
	Protoenum_FOO     Protoenum = 1
	Protoenum_BAR     Protoenum = 2
)

func (Protoenum) Descriptor

func (Protoenum) Descriptor() protoreflect.EnumDescriptor

func (Protoenum) Enum

func (x Protoenum) Enum() *Protoenum

func (Protoenum) EnumDescriptor deprecated

func (Protoenum) EnumDescriptor() ([]byte, []int)

Deprecated: Use Protoenum.Descriptor instead.

func (Protoenum) Number

func (x Protoenum) Number() protoreflect.EnumNumber

func (Protoenum) String

func (x Protoenum) String() string

func (Protoenum) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Protostub.ProtoReflect.Descriptor instead.

func (*Protostub) GetEnumField

func (x *Protostub) GetEnumField() Protoenum

func (*Protostub) GetFirstField

func (x *Protostub) GetFirstField() string

func (*Protostub) GetInnerMessage

func (x *Protostub) GetInnerMessage() *ProtostubInner

func (*Protostub) ProtoMessage

func (*Protostub) ProtoMessage()

func (*Protostub) ProtoReflect

func (x *Protostub) ProtoReflect() protoreflect.Message

func (*Protostub) Reset

func (x *Protostub) Reset()

func (*Protostub) String

func (x *Protostub) String() string

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

Jump to

Keyboard shortcuts

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