// Code generated by protoc-gen-go. DO NOT EDIT.
// source: go-grpc-example/9-grpc_proto_validators/proto/enum.proto

package proto

import (
	fmt "fmt"
	proto "github.com/golang/protobuf/proto"
	_ "github.com/mwitkow/go-proto-validators"
	math "math"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package

type Action int32

const (
	Action_ALLOW Action = 0
	Action_DENY  Action = 1
	Action_CHILL Action = 2
)

var Action_name = map[int32]string{
	0: "ALLOW",
	1: "DENY",
	2: "CHILL",
}

var Action_value = map[string]int32{
	"ALLOW": 0,
	"DENY":  1,
	"CHILL": 2,
}

func (x Action) String() string {
	return proto.EnumName(Action_name, int32(x))
}

func (Action) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_5e0b5931a1deeedf, []int{0}
}

type SomeMsg struct {
	Do                   Action   `protobuf:"varint,1,opt,name=do,proto3,enum=proto.Action" json:"do,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *SomeMsg) Reset()         { *m = SomeMsg{} }
func (m *SomeMsg) String() string { return proto.CompactTextString(m) }
func (*SomeMsg) ProtoMessage()    {}
func (*SomeMsg) Descriptor() ([]byte, []int) {
	return fileDescriptor_5e0b5931a1deeedf, []int{0}
}

func (m *SomeMsg) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_SomeMsg.Unmarshal(m, b)
}
func (m *SomeMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_SomeMsg.Marshal(b, m, deterministic)
}
func (m *SomeMsg) XXX_Merge(src proto.Message) {
	xxx_messageInfo_SomeMsg.Merge(m, src)
}
func (m *SomeMsg) XXX_Size() int {
	return xxx_messageInfo_SomeMsg.Size(m)
}
func (m *SomeMsg) XXX_DiscardUnknown() {
	xxx_messageInfo_SomeMsg.DiscardUnknown(m)
}

var xxx_messageInfo_SomeMsg proto.InternalMessageInfo

func (m *SomeMsg) GetDo() Action {
	if m != nil {
		return m.Do
	}
	return Action_ALLOW
}

func init() {
	proto.RegisterEnum("proto.Action", Action_name, Action_value)
	proto.RegisterType((*SomeMsg)(nil), "proto.SomeMsg")
}

func init() {
	proto.RegisterFile("go-grpc-example/9-grpc_proto_validators/proto/enum.proto", fileDescriptor_5e0b5931a1deeedf)
}

var fileDescriptor_5e0b5931a1deeedf = []byte{
	// 197 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xb2, 0x48, 0xcf, 0xd7, 0x4d,
	0x2f, 0x2a, 0x48, 0xd6, 0x4d, 0xad, 0x48, 0xcc, 0x2d, 0xc8, 0x49, 0xd5, 0xb7, 0x04, 0x73, 0xe3,
	0x0b, 0x8a, 0xf2, 0x4b, 0xf2, 0xe3, 0xcb, 0x12, 0x73, 0x32, 0x53, 0x12, 0x4b, 0xf2, 0x8b, 0x8a,
	0xf5, 0xc1, 0x02, 0xfa, 0xa9, 0x79, 0xa5, 0xb9, 0x7a, 0x60, 0xa6, 0x10, 0x2b, 0x98, 0x92, 0x32,
	0x4b, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0xcf, 0x2d, 0xcf, 0x2c, 0xc9,
	0xce, 0x2f, 0xd7, 0x4f, 0xcf, 0xd7, 0x05, 0x4b, 0xea, 0x22, 0xe9, 0x87, 0x33, 0x21, 0xda, 0x95,
	0x0c, 0xb9, 0xd8, 0x83, 0xf3, 0x73, 0x53, 0x7d, 0x8b, 0xd3, 0x85, 0xd4, 0xb8, 0x98, 0x52, 0xf2,
	0x25, 0x18, 0x15, 0x18, 0x35, 0xf8, 0x8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