// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.28.1
// 	protoc        v3.11.4
// source: idl/enum_example.proto

package example

import (
	context "context"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type Event int32

const (
	Event_EVENT_NONE Event = 0
	Event_EVENT_ONE  Event = 1
	Event_EVENT_TWO  Event = 2
)

// Enum value maps for Event.
var (
	Event_name = map[int32]string{
		0: "EVENT_NONE",
		1: "EVENT_ONE",
		2: "EVENT_TWO",
	}
	Event_value = map[string]int32{
		"EVENT_NONE": 0,
		"EVENT_ONE":  1,
		"EVENT_TWO":  2,
	}
)

func (x Event) Enum() *Event {
	p := new(Event)
	*p = x
	return p
}

func (x Event) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (Event) Descriptor() protoreflect.EnumDescriptor {
	return file_idl_enum_example_proto_enumTypes[0].Descriptor()
}

func (Event) Type() protoreflect.EnumType {
	return &file_idl_enum_example_proto_enumTypes[0]
}

func (x Event) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use Event.Descriptor instead.
func (Event) EnumDescriptor() ([]byte, []int) {
	return file_idl_enum_example_proto_rawDescGZIP(), []int{0}
}

type PingEnumRequest_NestedEnum int32

const (
	PingEnumRequest_NESTED_ZERO PingEnumRequest_NestedEnum = 0
	PingEnumRequest_NESTED_ONE  PingEnumRequest_NestedEnum = 1
	PingEnumRequest_NESTED_TWO  PingEnumRequest_NestedEnum = 2
)

// Enum value maps for PingEnumRequest_NestedEnum.
var (
	PingEnumRequest_NestedEnum_name = map[int32]string{
		0: "NESTED_ZERO",
		1: "NESTED_ONE",
		2: "NESTED_TWO",
	}
	PingEnumRequest_NestedEnum_value = map[string]int32{
		"NESTED_ZERO": 0,
		"NESTED_ONE":  1,
		"NESTED_TWO":  2,
	}
)

func (x PingEnumRequest_NestedEnum) Enum() *PingEnumRequest_NestedEnum {
	p := new(PingEnumRequest_NestedEnum)
	*p = x
	return p
}

func (x PingEnumRequest_NestedEnum) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (PingEnumRequest_NestedEnum) Descriptor() protoreflect.EnumDescriptor {
	return file_idl_enum_example_proto_enumTypes[1].Descriptor()
}

func (PingEnumRequest_NestedEnum) Type() protoreflect.EnumType {
	return &file_idl_enum_example_proto_enumTypes[1]
}

func (x PingEnumRequest_NestedEnum) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use PingEnumRequest_NestedEnum.Descriptor instead.
func (PingEnumRequest_NestedEnum) EnumDescriptor() ([]byte, []int) {
	return file_idl_enum_example_proto_rawDescGZIP(), []int{0, 0}
}

type PingEnumRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Event          Event                                 `protobuf:"varint,1,opt,name=event,proto3,enum=pb3.Event" json:"event,omitempty"`
	EventList      []Event                               `protobuf:"varint,2,rep,packed,name=eventList,proto3,enum=pb3.Event" json:"eventList,omitempty"`
	EventMap       map[string]Event                      `protobuf:"bytes,3,rep,name=eventMap,proto3" json:"eventMap,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=pb3.Event"`
	NestedEnum     PingEnumRequest_NestedEnum            `protobuf:"varint,4,opt,name=nestedEnum,proto3,enum=pb3.PingEnumRequest_NestedEnum" json:"nestedEnum,omitempty"`
	NestedEnumList []PingEnumRequest_NestedEnum          `protobuf:"varint,5,rep,packed,name=nestedEnumList,proto3,enum=pb3.PingEnumRequest_NestedEnum" json:"nestedEnumList,omitempty"`
	NestedEnumMap  map[string]PingEnumRequest_NestedEnum `protobuf:"bytes,6,rep,name=nestedEnumMap,proto3" json:"nestedEnumMap,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=pb3.PingEnumRequest_NestedEnum"`
}

func (x *PingEnumRequest) Reset() {
	*x = PingEnumRequest{}
	if protoimpl.UnsafeEnabled {
		mi := &file_idl_enum_example_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *PingEnumRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*PingEnumRequest) ProtoMessage() {}

func (x *PingEnumRequest) ProtoReflect() protoreflect.Message {
	mi := &file_idl_enum_example_proto_msgTypes[0]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use PingEnumRequest.ProtoReflect.Descriptor instead.
func (*PingEnumRequest) Descriptor() ([]byte, []int) {
	return file_idl_enum_example_proto_rawDescGZIP(), []int{0}
}

func (x *PingEnumRequest) GetEvent() Event {
	if x != nil {
		return x.Event
	}
	return Event_EVENT_NONE
}

func (x *PingEnumRequest) GetEventList() []Event {
	if x != nil {
		return x.EventList
	}
	return nil
}

func (x *PingEnumRequest) GetEventMap() map[string]Event {
	if x != nil {
		return x.EventMap
	}
	return nil
}

func (x *PingEnumRequest) GetNestedEnum() PingEnumRequest_NestedEnum {
	if x != nil {
		return x.NestedEnum
	}
	return PingEnumRequest_NESTED_ZERO
}

func (x *PingEnumRequest) GetNestedEnumList() []PingEnumRequest_NestedEnum {
	if x != nil {
		return x.NestedEnumList
	}
	return nil
}

func (x *PingEnumRequest) GetNestedEnumMap() map[string]PingEnumRequest_NestedEnum {
	if x != nil {
		return x.NestedEnumMap
	}
	return nil
}

type PingEnumResponse struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
}

func (x *PingEnumResponse) Reset() {
	*x = PingEnumResponse{}
	if protoimpl.UnsafeEnabled {
		mi := &file_idl_enum_example_proto_msgTypes[1]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *PingEnumResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*PingEnumResponse) ProtoMessage() {}

func (x *PingEnumResponse) ProtoReflect() protoreflect.Message {
	mi := &file_idl_enum_example_proto_msgTypes[1]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use PingEnumResponse.ProtoReflect.Descriptor instead.
func (*PingEnumResponse) Descriptor() ([]byte, []int) {
	return file_idl_enum_example_proto_rawDescGZIP(), []int{1}
}

var File_idl_enum_example_proto protoreflect.FileDescriptor

var file_idl_enum_example_proto_rawDesc = []byte{
	0x0a, 0x16, 0x69, 0x64, 0x6c, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x70,
	0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x70, 0x62, 0x33, 0x22, 0xe1, 0x04,
	0x0a, 0x0f, 0x50, 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
	0x74, 0x12, 0x20, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
	0x32, 0x0a, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76,
	0x65, 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74,
	0x18, 0x02, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x76, 0x65,
	0x6e, 0x74, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3e, 0x0a,
	0x08, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x4d, 0x61, 0x70, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
	0x22, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x65,
	0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4d, 0x61, 0x70, 0x45, 0x6e,
	0x74, 0x72, 0x79, 0x52, 0x08, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x4d, 0x61, 0x70, 0x12, 0x3f, 0x0a,
	0x0a, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28,
	0x0e, 0x32, 0x1f, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x75, 0x6d,
	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e,
	0x75, 0x6d, 0x52, 0x0a, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x47,
	0x0a, 0x0e, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x4c, 0x69, 0x73, 0x74,
	0x18, 0x05, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x50, 0x69, 0x6e,
	0x67, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4e, 0x65, 0x73,
	0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x0e, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45,
	0x6e, 0x75, 0x6d, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x4d, 0x0a, 0x0d, 0x6e, 0x65, 0x73, 0x74, 0x65,
	0x64, 0x45, 0x6e, 0x75, 0x6d, 0x4d, 0x61, 0x70, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27,
	0x2e, 0x70, 0x62, 0x33, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x65, 0x71,
	0x75, 0x65, 0x73, 0x74, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x4d,
	0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45,
	0x6e, 0x75, 0x6d, 0x4d, 0x61, 0x70, 0x1a, 0x47, 0x0a, 0x0d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4d,
	0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
	0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x05, 0x76, 0x61, 0x6c,
	0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45,
	0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a,
	0x61, 0x0a, 0x12, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x4d, 0x61, 0x70,
	0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
	0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
	0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x50, 0x69, 0x6e,
	0x67, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4e, 0x65, 0x73,
	0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
	0x38, 0x01, 0x22, 0x3d, 0x0a, 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d,
	0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10,
	0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x4f, 0x4e, 0x45, 0x10,
	0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x54, 0x57, 0x4f, 0x10,
	0x02, 0x22, 0x12, 0x0a, 0x10, 0x50, 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x65, 0x73,
	0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x35, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x0e,
	0x0a, 0x0a, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x0d,
	0x0a, 0x09, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0d, 0x0a,
	0x09, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x57, 0x4f, 0x10, 0x02, 0x32, 0x40, 0x0a, 0x08,
	0x50, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6e, 0x67, 0x12, 0x34, 0x0a, 0x05, 0x50, 0x72, 0x6f, 0x62,
	0x65, 0x12, 0x14, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x75, 0x6d,
	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x50, 0x69,
	0x6e, 0x67, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x3e,
	0x5a, 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f,
	0x75, 0x64, 0x77, 0x65, 0x67, 0x6f, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x67, 0x6f,
	0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x6b, 0x69, 0x74, 0x65, 0x78, 0x5f,
	0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x62, 0x06,
	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}

var (
	file_idl_enum_example_proto_rawDescOnce sync.Once
	file_idl_enum_example_proto_rawDescData = file_idl_enum_example_proto_rawDesc
)

func file_idl_enum_example_proto_rawDescGZIP() []byte {
	file_idl_enum_example_proto_rawDescOnce.Do(func() {
		file_idl_enum_example_proto_rawDescData = protoimpl.X.CompressGZIP(file_idl_enum_example_proto_rawDescData)
	})
	return file_idl_enum_example_proto_rawDescData
}

var file_idl_enum_example_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_idl_enum_example_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_idl_enum_example_proto_goTypes = []interface{}{
	(Event)(0),                      // 0: pb3.Event
	(PingEnumRequest_NestedEnum)(0), // 1: pb3.PingEnumRequest.NestedEnum
	(*PingEnumRequest)(nil),         // 2: pb3.PingEnumRequest
	(*PingEnumResponse)(nil),        // 3: pb3.PingEnumResponse
	nil,                             // 4: pb3.PingEnumRequest.EventMapEntry
	nil,                             // 5: pb3.PingEnumRequest.NestedEnumMapEntry
}
var file_idl_enum_example_proto_depIdxs = []int32{
	0, // 0: pb3.PingEnumRequest.event:type_name -> pb3.Event
	0, // 1: pb3.PingEnumRequest.eventList:type_name -> pb3.Event
	4, // 2: pb3.PingEnumRequest.eventMap:type_name -> pb3.PingEnumRequest.EventMapEntry
	1, // 3: pb3.PingEnumRequest.nestedEnum:type_name -> pb3.PingEnumRequest.NestedEnum
	1, // 4: pb3.PingEnumRequest.nestedEnumList:type_name -> pb3.PingEnumRequest.NestedEnum
	5, // 5: pb3.PingEnumRequest.nestedEnumMap:type_name -> pb3.PingEnumRequest.NestedEnumMapEntry
	0, // 6: pb3.PingEnumRequest.EventMapEntry.value:type_name -> pb3.Event
	1, // 7: pb3.PingEnumRequest.NestedEnumMapEntry.value:type_name -> pb3.PingEnumRequest.NestedEnum
	2, // 8: pb3.PingPong.Probe:input_type -> pb3.PingEnumRequest
	3, // 9: pb3.PingPong.Probe:output_type -> pb3.PingEnumResponse
	9, // [9:10] is the sub-list for method output_type
	8, // [8:9] is the sub-list for method input_type
	8, // [8:8] is the sub-list for extension type_name
	8, // [8:8] is the sub-list for extension extendee
	0, // [0:8] is the sub-list for field type_name
}

func init() { file_idl_enum_example_proto_init() }
func file_idl_enum_example_proto_init() {
	if File_idl_enum_example_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_idl_enum_example_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*PingEnumRequest); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_idl_enum_example_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*PingEnumResponse); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: file_idl_enum_example_proto_rawDesc,
			NumEnums:      2,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_idl_enum_example_proto_goTypes,
		DependencyIndexes: file_idl_enum_example_proto_depIdxs,
		EnumInfos:         file_idl_enum_example_proto_enumTypes,
		MessageInfos:      file_idl_enum_example_proto_msgTypes,
	}.Build()
	File_idl_enum_example_proto = out.File
	file_idl_enum_example_proto_rawDesc = nil
	file_idl_enum_example_proto_goTypes = nil
	file_idl_enum_example_proto_depIdxs = nil
}

var _ context.Context

// Code generated by Kitex v0.9.1. DO NOT EDIT.

type PingPong interface {
	Probe(ctx context.Context, req *PingEnumRequest) (res *PingEnumResponse, err error)
}
