pathenum

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PathEnum_name = map[int32]string{
		0: "ABC",
		1: "DEF",
	}
	PathEnum_value = map[string]int32{
		"ABC": 0,
		"DEF": 1,
	}
)

Enum value maps for PathEnum.

View Source
var (
	SnakeCaseForImport_name = map[int32]string{
		0: "value_x",
		1: "value_y",
	}
	SnakeCaseForImport_value = map[string]int32{
		"value_x": 0,
		"value_y": 1,
	}
)

Enum value maps for SnakeCaseForImport.

View Source
var (
	MessagePathEnum_NestedPathEnum_name = map[int32]string{
		0: "GHI",
		1: "JKL",
	}
	MessagePathEnum_NestedPathEnum_value = map[string]int32{
		"GHI": 0,
		"JKL": 1,
	}
)

Enum value maps for MessagePathEnum_NestedPathEnum.

View Source
var File_examples_internal_proto_pathenum_path_enum_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type MessagePathEnum

type MessagePathEnum struct {
	// contains filtered or unexported fields
}

func (*MessagePathEnum) Descriptor deprecated

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

Deprecated: Use MessagePathEnum.ProtoReflect.Descriptor instead.

func (*MessagePathEnum) ProtoMessage

func (*MessagePathEnum) ProtoMessage()

func (*MessagePathEnum) ProtoReflect

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

func (*MessagePathEnum) Reset

func (x *MessagePathEnum) Reset()

func (*MessagePathEnum) String

func (x *MessagePathEnum) String() string

type MessagePathEnum_NestedPathEnum

type MessagePathEnum_NestedPathEnum int32
const (
	MessagePathEnum_GHI MessagePathEnum_NestedPathEnum = 0
	MessagePathEnum_JKL MessagePathEnum_NestedPathEnum = 1
)

func (MessagePathEnum_NestedPathEnum) Descriptor

func (MessagePathEnum_NestedPathEnum) Enum

func (MessagePathEnum_NestedPathEnum) EnumDescriptor deprecated

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

Deprecated: Use MessagePathEnum_NestedPathEnum.Descriptor instead.

func (MessagePathEnum_NestedPathEnum) Number

func (MessagePathEnum_NestedPathEnum) String

func (MessagePathEnum_NestedPathEnum) Type

type MessageWithNestedPathEnum

type MessageWithNestedPathEnum struct {
	Value MessagePathEnum_NestedPathEnum `` /* 140-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*MessageWithNestedPathEnum) Descriptor deprecated

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

Deprecated: Use MessageWithNestedPathEnum.ProtoReflect.Descriptor instead.

func (*MessageWithNestedPathEnum) GetValue

func (*MessageWithNestedPathEnum) ProtoMessage

func (*MessageWithNestedPathEnum) ProtoMessage()

func (*MessageWithNestedPathEnum) ProtoReflect

func (*MessageWithNestedPathEnum) Reset

func (x *MessageWithNestedPathEnum) Reset()

func (*MessageWithNestedPathEnum) String

func (x *MessageWithNestedPathEnum) String() string

type MessageWithPathEnum

type MessageWithPathEnum struct {
	Value PathEnum `protobuf:"varint,1,opt,name=value,proto3,enum=grpc.gateway.examples.internal.pathenum.PathEnum" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageWithPathEnum) Descriptor deprecated

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

Deprecated: Use MessageWithPathEnum.ProtoReflect.Descriptor instead.

func (*MessageWithPathEnum) GetValue

func (x *MessageWithPathEnum) GetValue() PathEnum

func (*MessageWithPathEnum) ProtoMessage

func (*MessageWithPathEnum) ProtoMessage()

func (*MessageWithPathEnum) ProtoReflect

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

func (*MessageWithPathEnum) Reset

func (x *MessageWithPathEnum) Reset()

func (*MessageWithPathEnum) String

func (x *MessageWithPathEnum) String() string

type PathEnum

type PathEnum int32
const (
	PathEnum_ABC PathEnum = 0
	PathEnum_DEF PathEnum = 1
)

func (PathEnum) Descriptor

func (PathEnum) Descriptor() protoreflect.EnumDescriptor

func (PathEnum) Enum

func (x PathEnum) Enum() *PathEnum

func (PathEnum) EnumDescriptor deprecated

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

Deprecated: Use PathEnum.Descriptor instead.

func (PathEnum) Number

func (x PathEnum) Number() protoreflect.EnumNumber

func (PathEnum) String

func (x PathEnum) String() string

func (PathEnum) Type

type SnakeCaseForImport

type SnakeCaseForImport int32

Ignoring lint warnings as this enum type exist to validate proper functionality for projects that don't follow these lint rules. buf:lint:ignore ENUM_PASCAL_CASE

const (
	// buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE
	SnakeCaseForImport_value_x SnakeCaseForImport = 0
	// buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE
	SnakeCaseForImport_value_y SnakeCaseForImport = 1
)

func (SnakeCaseForImport) Descriptor

func (SnakeCaseForImport) Enum

func (SnakeCaseForImport) EnumDescriptor deprecated

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

Deprecated: Use SnakeCaseForImport.Descriptor instead.

func (SnakeCaseForImport) Number

func (SnakeCaseForImport) String

func (x SnakeCaseForImport) String() string

func (SnakeCaseForImport) Type

Jump to

Keyboard shortcuts

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