github.com/gogo/protobuf@v1.3.2/test/issue312/issue312.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: issue312.proto 3 4 package issue312 5 6 import ( 7 fmt "fmt" 8 _ "github.com/gogo/protobuf/gogoproto" 9 proto "github.com/gogo/protobuf/proto" 10 math "math" 11 ) 12 13 // Reference imports to suppress errors if they are not otherwise used. 14 var _ = proto.Marshal 15 var _ = fmt.Errorf 16 var _ = math.Inf 17 18 // This is a compile-time assertion to ensure that this generated file 19 // is compatible with the proto package it is being compiled against. 20 // A compilation error at this line likely means your copy of the 21 // proto package needs to be updated. 22 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 23 24 type TaskState int32 25 26 const ( 27 TaskState_TASK_STAGING TaskState = 6 28 TaskState_TASK_STARTING TaskState = 0 29 TaskState_TASK_RUNNING TaskState = 1 30 ) 31 32 var TaskState_name = map[int32]string{ 33 6: "TASK_STAGING", 34 0: "TASK_STARTING", 35 1: "TASK_RUNNING", 36 } 37 38 var TaskState_value = map[string]int32{ 39 "TASK_STAGING": 6, 40 "TASK_STARTING": 0, 41 "TASK_RUNNING": 1, 42 } 43 44 func (x TaskState) Enum() *TaskState { 45 p := new(TaskState) 46 *p = x 47 return p 48 } 49 50 func (x TaskState) String() string { 51 return proto.EnumName(TaskState_name, int32(x)) 52 } 53 54 func (x *TaskState) UnmarshalJSON(data []byte) error { 55 value, err := proto.UnmarshalJSONEnum(TaskState_value, data, "TaskState") 56 if err != nil { 57 return err 58 } 59 *x = TaskState(value) 60 return nil 61 } 62 63 func (TaskState) EnumDescriptor() ([]byte, []int) { 64 return fileDescriptor_8a64932ccacef062, []int{0} 65 } 66 67 func init() { 68 proto.RegisterEnum("issue312.TaskState", TaskState_name, TaskState_value) 69 } 70 71 func init() { proto.RegisterFile("issue312.proto", fileDescriptor_8a64932ccacef062) } 72 73 var fileDescriptor_8a64932ccacef062 = []byte{ 74 // 147 bytes of a gzipped FileDescriptorProto 75 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xcb, 0x2c, 0x2e, 0x2e, 76 0x4d, 0x35, 0x36, 0x34, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x80, 0xf1, 0xa5, 0x74, 77 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0xd3, 0xf3, 0xd3, 0xf3, 0xf5, 78 0xc1, 0x0a, 0x92, 0x4a, 0xd3, 0xc0, 0x3c, 0x30, 0x07, 0xcc, 0x82, 0x68, 0xd4, 0x72, 0xe2, 0xe2, 79 0x0c, 0x49, 0x2c, 0xce, 0x0e, 0x2e, 0x49, 0x2c, 0x49, 0x15, 0x12, 0xe0, 0xe2, 0x09, 0x71, 0x0c, 80 0xf6, 0x8e, 0x0f, 0x0e, 0x71, 0x74, 0xf7, 0xf4, 0x73, 0x17, 0x60, 0x13, 0x12, 0xe4, 0xe2, 0x85, 81 0x89, 0x04, 0x85, 0x80, 0x84, 0x18, 0xe0, 0x8a, 0x82, 0x42, 0xfd, 0xfc, 0x40, 0x22, 0x8c, 0x4e, 82 0x52, 0x1f, 0x1e, 0xca, 0x31, 0xfe, 0x78, 0x28, 0xc7, 0xb8, 0xe2, 0x91, 0x1c, 0xe3, 0x8e, 0x47, 83 0x72, 0x8c, 0x51, 0x70, 0xe7, 0x00, 0x02, 0x00, 0x00, 0xff, 0xff, 0xaf, 0xdd, 0xde, 0x2a, 0xa9, 84 0x00, 0x00, 0x00, 85 }