Documentation ¶
Index ¶
- Variables
- type MessagePathEnum
- type MessagePathEnum_NestedPathEnum
- func (MessagePathEnum_NestedPathEnum) Descriptor() protoreflect.EnumDescriptor
- func (x MessagePathEnum_NestedPathEnum) Enum() *MessagePathEnum_NestedPathEnum
- func (MessagePathEnum_NestedPathEnum) EnumDescriptor() ([]byte, []int)deprecated
- func (x MessagePathEnum_NestedPathEnum) Number() protoreflect.EnumNumber
- func (x MessagePathEnum_NestedPathEnum) String() string
- func (MessagePathEnum_NestedPathEnum) Type() protoreflect.EnumType
- type MessageWithNestedPathEnum
- func (*MessageWithNestedPathEnum) Descriptor() ([]byte, []int)deprecated
- func (x *MessageWithNestedPathEnum) GetValue() MessagePathEnum_NestedPathEnum
- func (*MessageWithNestedPathEnum) ProtoMessage()
- func (x *MessageWithNestedPathEnum) ProtoReflect() protoreflect.Message
- func (x *MessageWithNestedPathEnum) Reset()
- func (x *MessageWithNestedPathEnum) String() string
- type MessageWithPathEnum
- func (*MessageWithPathEnum) Descriptor() ([]byte, []int)deprecated
- func (x *MessageWithPathEnum) GetValue() PathEnum
- func (*MessageWithPathEnum) ProtoMessage()
- func (x *MessageWithPathEnum) ProtoReflect() protoreflect.Message
- func (x *MessageWithPathEnum) Reset()
- func (x *MessageWithPathEnum) String() string
- type PathEnum
- type SnakeCaseForImport
- func (SnakeCaseForImport) Descriptor() protoreflect.EnumDescriptor
- func (x SnakeCaseForImport) Enum() *SnakeCaseForImport
- func (SnakeCaseForImport) EnumDescriptor() ([]byte, []int)deprecated
- func (x SnakeCaseForImport) Number() protoreflect.EnumNumber
- func (x SnakeCaseForImport) String() string
- func (SnakeCaseForImport) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
func (MessagePathEnum_NestedPathEnum) Enum ¶
func (x MessagePathEnum_NestedPathEnum) Enum() *MessagePathEnum_NestedPathEnum
func (MessagePathEnum_NestedPathEnum) EnumDescriptor
deprecated
func (MessagePathEnum_NestedPathEnum) EnumDescriptor() ([]byte, []int)
Deprecated: Use MessagePathEnum_NestedPathEnum.Descriptor instead.
func (MessagePathEnum_NestedPathEnum) Number ¶
func (x MessagePathEnum_NestedPathEnum) Number() protoreflect.EnumNumber
func (MessagePathEnum_NestedPathEnum) String ¶
func (x MessagePathEnum_NestedPathEnum) String() string
func (MessagePathEnum_NestedPathEnum) Type ¶
func (MessagePathEnum_NestedPathEnum) Type() protoreflect.EnumType
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 (x *MessageWithNestedPathEnum) GetValue() MessagePathEnum_NestedPathEnum
func (*MessageWithNestedPathEnum) ProtoMessage ¶
func (*MessageWithNestedPathEnum) ProtoMessage()
func (*MessageWithNestedPathEnum) ProtoReflect ¶
func (x *MessageWithNestedPathEnum) ProtoReflect() protoreflect.Message
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
func (PathEnum) Descriptor ¶
func (PathEnum) Descriptor() protoreflect.EnumDescriptor
func (PathEnum) EnumDescriptor
deprecated
func (PathEnum) Number ¶
func (x PathEnum) Number() protoreflect.EnumNumber
func (PathEnum) Type ¶
func (PathEnum) Type() protoreflect.EnumType
type SnakeCaseForImport ¶ added in v2.11.3
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 ¶ added in v2.11.3
func (SnakeCaseForImport) Descriptor() protoreflect.EnumDescriptor
func (SnakeCaseForImport) Enum ¶ added in v2.11.3
func (x SnakeCaseForImport) Enum() *SnakeCaseForImport
func (SnakeCaseForImport) EnumDescriptor
deprecated
added in
v2.11.3
func (SnakeCaseForImport) EnumDescriptor() ([]byte, []int)
Deprecated: Use SnakeCaseForImport.Descriptor instead.
func (SnakeCaseForImport) Number ¶ added in v2.11.3
func (x SnakeCaseForImport) Number() protoreflect.EnumNumber
func (SnakeCaseForImport) String ¶ added in v2.11.3
func (x SnakeCaseForImport) String() string
func (SnakeCaseForImport) Type ¶ added in v2.11.3
func (SnakeCaseForImport) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.