e2e

package
v0.0.0-...-e3b3a0b Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Enum_name = map[int32]string{
		0: "A",
		1: "B",
		2: "C",
	}
	Enum_value = map[string]int32{
		"A": 0,
		"B": 1,
		"C": 2,
	}
)

Enum value maps for Enum.

View Source
var (
	EnumParent_EnumChild_name = map[int32]string{
		0: "D",
		1: "E",
		2: "F",
	}
	EnumParent_EnumChild_value = map[string]int32{
		"D": 0,
		"E": 1,
		"F": 2,
	}
)

Enum value maps for EnumParent_EnumChild.

View Source
var (
	EnumParent2_Enum_name = map[int32]string{
		0: "G",
		1: "H",
		2: "I",
	}
	EnumParent2_Enum_value = map[string]int32{
		"G": 0,
		"H": 1,
		"I": 2,
	}
)

Enum value maps for EnumParent2_Enum.

View Source
var (
	EnumParent3_Enum_name = map[int32]string{
		0: "J",
		1: "K",
		2: "L",
	}
	EnumParent3_Enum_value = map[string]int32{
		"J": 0,
		"K": 1,
		"L": 2,
	}
)

Enum value maps for EnumParent3_Enum.

Functions

func EnumAllName

func EnumAllName() []string

EnumAllName returns all the names of the Enum enum.

func EnumAllValue

func EnumAllValue() []int32

EnumAllValue returns all the values of the Enum enum.

func EnumParent2_EnumAllName

func EnumParent2_EnumAllName() []string

EnumParent2_EnumAllName returns all the names of the EnumParent2_Enum enum.

func EnumParent2_EnumAllValue

func EnumParent2_EnumAllValue() []int32

EnumParent2_EnumAllValue returns all the values of the EnumParent2_Enum enum.

func EnumParent3_EnumAllName

func EnumParent3_EnumAllName() []string

EnumParent3_EnumAllName returns all the names of the EnumParent3_Enum enum.

func EnumParent3_EnumAllValue

func EnumParent3_EnumAllValue() []int32

EnumParent3_EnumAllValue returns all the values of the EnumParent3_Enum enum.

func EnumParent_EnumChildAllName

func EnumParent_EnumChildAllName() []string

EnumParent_EnumChildAllName returns all the names of the EnumParent_EnumChild enum.

func EnumParent_EnumChildAllValue

func EnumParent_EnumChildAllValue() []int32

EnumParent_EnumChildAllValue returns all the values of the EnumParent_EnumChild enum.

Types

type Enum

type Enum int32
const (
	Enum_A Enum = 0
	Enum_B Enum = 1
	Enum_C Enum = 2
)

func EnumAll

func EnumAll() []Enum

EnumAll returns all the values of the Enum enum.

func EnumFrom

func EnumFrom[T constraints.Integer | constraints.Float](s T) Enum

EnumFrom returns the Enum for the given integers, or the zero value if not found.

func EnumFromStr

func EnumFromStr(s string) Enum

EnumFromStr returns the Enum for the given string, or the zero value if not found.

func EnumFromValid

func EnumFromValid[T constraints.Integer | constraints.Float](s T) (Enum, bool)

EnumFromValid is like EnumFrom, but returns an extra boolean value to check if the conversion is valid.

func EnumFromValidStr

func EnumFromValidStr(s string) (Enum, bool)

EnumFromValidStr is like EnumFromStr, but returns an extra boolean value to check if the conversion is valid.

func (Enum) Descriptor

func (Enum) Descriptor() protoreflect.EnumDescriptor

func (Enum) Enum

func (x Enum) Enum() *Enum

func (Enum) EnumDescriptor deprecated

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

Deprecated: Use Enum.Descriptor instead.

func (Enum) Int

func (x Enum) Int() int

func (Enum) Int32

func (x Enum) Int32() int32

func (Enum) Int64

func (x Enum) Int64() int64

func (Enum) Number

func (x Enum) Number() protoreflect.EnumNumber

func (Enum) String

func (x Enum) String() string

func (Enum) Type

func (Enum) Type() protoreflect.EnumType

func (Enum) UInt

func (x Enum) UInt() uint

func (Enum) UInt32

func (x Enum) UInt32() uint32

func (Enum) UInt64

func (x Enum) UInt64() uint64

type EnumParent

type EnumParent struct {
	Enum EnumParent_EnumChild `protobuf:"varint,1,opt,name=enum,proto3,enum=e2e.EnumParent_EnumChild" json:"enum,omitempty"`
	// contains filtered or unexported fields
}

func (*EnumParent) Descriptor deprecated

func (*EnumParent) Descriptor() ([]byte, []int)

Deprecated: Use EnumParent.ProtoReflect.Descriptor instead.

func (*EnumParent) GetEnum

func (x *EnumParent) GetEnum() EnumParent_EnumChild

func (*EnumParent) ProtoMessage

func (*EnumParent) ProtoMessage()

func (*EnumParent) ProtoReflect

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

func (*EnumParent) Reset

func (x *EnumParent) Reset()

func (*EnumParent) String

func (x *EnumParent) String() string

type EnumParent2

type EnumParent2 struct {
	Enum EnumParent2_Enum `protobuf:"varint,1,opt,name=enum,proto3,enum=e2e.EnumParent2_Enum" json:"enum,omitempty"`
	// contains filtered or unexported fields
}

func (*EnumParent2) Descriptor deprecated

func (*EnumParent2) Descriptor() ([]byte, []int)

Deprecated: Use EnumParent2.ProtoReflect.Descriptor instead.

func (*EnumParent2) GetEnum

func (x *EnumParent2) GetEnum() EnumParent2_Enum

func (*EnumParent2) ProtoMessage

func (*EnumParent2) ProtoMessage()

func (*EnumParent2) ProtoReflect

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

func (*EnumParent2) Reset

func (x *EnumParent2) Reset()

func (*EnumParent2) String

func (x *EnumParent2) String() string

type EnumParent2_Enum

type EnumParent2_Enum int32
const (
	EnumParent2_G EnumParent2_Enum = 0
	EnumParent2_H EnumParent2_Enum = 1
	EnumParent2_I EnumParent2_Enum = 2
)

func EnumParent2_EnumAll

func EnumParent2_EnumAll() []EnumParent2_Enum

EnumParent2_EnumAll returns all the values of the EnumParent2_Enum enum.

func EnumParent2_EnumFrom

func EnumParent2_EnumFrom[T constraints.Integer | constraints.Float](s T) EnumParent2_Enum

EnumParent2_EnumFrom returns the EnumParent2_Enum for the given integers, or the zero value if not found.

func EnumParent2_EnumFromStr

func EnumParent2_EnumFromStr(s string) EnumParent2_Enum

EnumParent2_EnumFromStr returns the EnumParent2_Enum for the given string, or the zero value if not found.

func EnumParent2_EnumFromValid

func EnumParent2_EnumFromValid[T constraints.Integer | constraints.Float](s T) (EnumParent2_Enum, bool)

EnumParent2_EnumFromValid is like EnumParent2_EnumFrom, but returns an extra boolean value to check if the conversion is valid.

func EnumParent2_EnumFromValidStr

func EnumParent2_EnumFromValidStr(s string) (EnumParent2_Enum, bool)

EnumParent2_EnumFromValidStr is like EnumParent2_EnumFromStr, but returns an extra boolean value to check if the conversion is valid.

func (EnumParent2_Enum) Descriptor

func (EnumParent2_Enum) Enum

func (EnumParent2_Enum) EnumDescriptor deprecated

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

Deprecated: Use EnumParent2_Enum.Descriptor instead.

func (EnumParent2_Enum) Int

func (x EnumParent2_Enum) Int() int

func (EnumParent2_Enum) Int32

func (x EnumParent2_Enum) Int32() int32

func (EnumParent2_Enum) Int64

func (x EnumParent2_Enum) Int64() int64

func (EnumParent2_Enum) Number

func (EnumParent2_Enum) String

func (x EnumParent2_Enum) String() string

func (EnumParent2_Enum) Type

func (EnumParent2_Enum) UInt

func (x EnumParent2_Enum) UInt() uint

func (EnumParent2_Enum) UInt32

func (x EnumParent2_Enum) UInt32() uint32

func (EnumParent2_Enum) UInt64

func (x EnumParent2_Enum) UInt64() uint64

type EnumParent3

type EnumParent3 struct {
	Enum *EnumParent3_Enum `protobuf:"varint,1,opt,name=enum,proto3,enum=e2e.EnumParent3_Enum,oneof" json:"enum,omitempty"`
	// contains filtered or unexported fields
}

func (*EnumParent3) Descriptor deprecated

func (*EnumParent3) Descriptor() ([]byte, []int)

Deprecated: Use EnumParent3.ProtoReflect.Descriptor instead.

func (*EnumParent3) GetEnum

func (x *EnumParent3) GetEnum() EnumParent3_Enum

func (*EnumParent3) ProtoMessage

func (*EnumParent3) ProtoMessage()

func (*EnumParent3) ProtoReflect

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

func (*EnumParent3) Reset

func (x *EnumParent3) Reset()

func (*EnumParent3) String

func (x *EnumParent3) String() string

type EnumParent3_Enum

type EnumParent3_Enum int32
const (
	EnumParent3_J EnumParent3_Enum = 0
	EnumParent3_K EnumParent3_Enum = 1
	EnumParent3_L EnumParent3_Enum = 2
)

func EnumParent3_EnumAll

func EnumParent3_EnumAll() []EnumParent3_Enum

EnumParent3_EnumAll returns all the values of the EnumParent3_Enum enum.

func EnumParent3_EnumFrom

func EnumParent3_EnumFrom[T constraints.Integer | constraints.Float](s T) EnumParent3_Enum

EnumParent3_EnumFrom returns the EnumParent3_Enum for the given integers, or the zero value if not found.

func EnumParent3_EnumFromStr

func EnumParent3_EnumFromStr(s string) EnumParent3_Enum

EnumParent3_EnumFromStr returns the EnumParent3_Enum for the given string, or the zero value if not found.

func EnumParent3_EnumFromValid

func EnumParent3_EnumFromValid[T constraints.Integer | constraints.Float](s T) (EnumParent3_Enum, bool)

EnumParent3_EnumFromValid is like EnumParent3_EnumFrom, but returns an extra boolean value to check if the conversion is valid.

func EnumParent3_EnumFromValidStr

func EnumParent3_EnumFromValidStr(s string) (EnumParent3_Enum, bool)

EnumParent3_EnumFromValidStr is like EnumParent3_EnumFromStr, but returns an extra boolean value to check if the conversion is valid.

func (EnumParent3_Enum) Descriptor

func (EnumParent3_Enum) Enum

func (EnumParent3_Enum) EnumDescriptor deprecated

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

Deprecated: Use EnumParent3_Enum.Descriptor instead.

func (EnumParent3_Enum) Int

func (x EnumParent3_Enum) Int() int

func (EnumParent3_Enum) Int32

func (x EnumParent3_Enum) Int32() int32

func (EnumParent3_Enum) Int64

func (x EnumParent3_Enum) Int64() int64

func (EnumParent3_Enum) Number

func (EnumParent3_Enum) String

func (x EnumParent3_Enum) String() string

func (EnumParent3_Enum) Type

func (EnumParent3_Enum) UInt

func (x EnumParent3_Enum) UInt() uint

func (EnumParent3_Enum) UInt32

func (x EnumParent3_Enum) UInt32() uint32

func (EnumParent3_Enum) UInt64

func (x EnumParent3_Enum) UInt64() uint64

type EnumParent_EnumChild

type EnumParent_EnumChild int32
const (
	EnumParent_D EnumParent_EnumChild = 0
	EnumParent_E EnumParent_EnumChild = 1
	EnumParent_F EnumParent_EnumChild = 2
)

func EnumParent_EnumChildAll

func EnumParent_EnumChildAll() []EnumParent_EnumChild

EnumParent_EnumChildAll returns all the values of the EnumParent_EnumChild enum.

func EnumParent_EnumChildFrom

func EnumParent_EnumChildFrom[T constraints.Integer | constraints.Float](s T) EnumParent_EnumChild

EnumParent_EnumChildFrom returns the EnumParent_EnumChild for the given integers, or the zero value if not found.

func EnumParent_EnumChildFromStr

func EnumParent_EnumChildFromStr(s string) EnumParent_EnumChild

EnumParent_EnumChildFromStr returns the EnumParent_EnumChild for the given string, or the zero value if not found.

func EnumParent_EnumChildFromValid

func EnumParent_EnumChildFromValid[T constraints.Integer | constraints.Float](s T) (EnumParent_EnumChild, bool)

EnumParent_EnumChildFromValid is like EnumParent_EnumChildFrom, but returns an extra boolean value to check if the conversion is valid.

func EnumParent_EnumChildFromValidStr

func EnumParent_EnumChildFromValidStr(s string) (EnumParent_EnumChild, bool)

EnumParent_EnumChildFromValidStr is like EnumParent_EnumChildFromStr, but returns an extra boolean value to check if the conversion is valid.

func (EnumParent_EnumChild) Descriptor

func (EnumParent_EnumChild) Enum

func (EnumParent_EnumChild) EnumDescriptor deprecated

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

Deprecated: Use EnumParent_EnumChild.Descriptor instead.

func (EnumParent_EnumChild) Int

func (x EnumParent_EnumChild) Int() int

func (EnumParent_EnumChild) Int32

func (x EnumParent_EnumChild) Int32() int32

func (EnumParent_EnumChild) Int64

func (x EnumParent_EnumChild) Int64() int64

func (EnumParent_EnumChild) Number

func (EnumParent_EnumChild) String

func (x EnumParent_EnumChild) String() string

func (EnumParent_EnumChild) Type

func (EnumParent_EnumChild) UInt

func (x EnumParent_EnumChild) UInt() uint

func (EnumParent_EnumChild) UInt32

func (x EnumParent_EnumChild) UInt32() uint32

func (EnumParent_EnumChild) UInt64

func (x EnumParent_EnumChild) UInt64() uint64

type Message

type Message struct {
	Enum Enum `protobuf:"varint,1,opt,name=enum,proto3,enum=e2e.Enum" json:"enum,omitempty"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

func (*Message) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetEnum

func (x *Message) GetEnum() Enum

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

Jump to

Keyboard shortcuts

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