issue312.pb.go 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: issue312.proto
  3. /*
  4. Package issue312 is a generated protocol buffer package.
  5. It is generated from these files:
  6. issue312.proto
  7. It has these top-level messages:
  8. */
  9. package issue312
  10. import proto "github.com/gogo/protobuf/proto"
  11. import fmt "fmt"
  12. import math "math"
  13. import _ "github.com/gogo/protobuf/gogoproto"
  14. // Reference imports to suppress errors if they are not otherwise used.
  15. var _ = proto.Marshal
  16. var _ = fmt.Errorf
  17. var _ = math.Inf
  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.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  23. type TaskState int32
  24. const (
  25. TaskState_TASK_STAGING TaskState = 6
  26. TaskState_TASK_STARTING TaskState = 0
  27. TaskState_TASK_RUNNING TaskState = 1
  28. )
  29. var TaskState_name = map[int32]string{
  30. 6: "TASK_STAGING",
  31. 0: "TASK_STARTING",
  32. 1: "TASK_RUNNING",
  33. }
  34. var TaskState_value = map[string]int32{
  35. "TASK_STAGING": 6,
  36. "TASK_STARTING": 0,
  37. "TASK_RUNNING": 1,
  38. }
  39. func (x TaskState) Enum() *TaskState {
  40. p := new(TaskState)
  41. *p = x
  42. return p
  43. }
  44. func (x TaskState) String() string {
  45. return proto.EnumName(TaskState_name, int32(x))
  46. }
  47. func (x *TaskState) UnmarshalJSON(data []byte) error {
  48. value, err := proto.UnmarshalJSONEnum(TaskState_value, data, "TaskState")
  49. if err != nil {
  50. return err
  51. }
  52. *x = TaskState(value)
  53. return nil
  54. }
  55. func (TaskState) EnumDescriptor() ([]byte, []int) { return fileDescriptorIssue312, []int{0} }
  56. func init() {
  57. proto.RegisterEnum("issue312.TaskState", TaskState_name, TaskState_value)
  58. }
  59. func init() { proto.RegisterFile("issue312.proto", fileDescriptorIssue312) }
  60. var fileDescriptorIssue312 = []byte{
  61. // 147 bytes of a gzipped FileDescriptorProto
  62. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xcb, 0x2c, 0x2e, 0x2e,
  63. 0x4d, 0x35, 0x36, 0x34, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x80, 0xf1, 0xa5, 0x74,
  64. 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0xd3, 0xf3, 0xd3, 0xf3, 0xf5,
  65. 0xc1, 0x0a, 0x92, 0x4a, 0xd3, 0xc0, 0x3c, 0x30, 0x07, 0xcc, 0x82, 0x68, 0xd4, 0x72, 0xe2, 0xe2,
  66. 0x0c, 0x49, 0x2c, 0xce, 0x0e, 0x2e, 0x49, 0x2c, 0x49, 0x15, 0x12, 0xe0, 0xe2, 0x09, 0x71, 0x0c,
  67. 0xf6, 0x8e, 0x0f, 0x0e, 0x71, 0x74, 0xf7, 0xf4, 0x73, 0x17, 0x60, 0x13, 0x12, 0xe4, 0xe2, 0x85,
  68. 0x89, 0x04, 0x85, 0x80, 0x84, 0x18, 0xe0, 0x8a, 0x82, 0x42, 0xfd, 0xfc, 0x40, 0x22, 0x8c, 0x4e,
  69. 0x52, 0x1f, 0x1e, 0xca, 0x31, 0xfe, 0x78, 0x28, 0xc7, 0xb8, 0xe2, 0x91, 0x1c, 0xe3, 0x8e, 0x47,
  70. 0x72, 0x8c, 0x51, 0x70, 0xe7, 0x00, 0x02, 0x00, 0x00, 0xff, 0xff, 0xaf, 0xdd, 0xde, 0x2a, 0xa9,
  71. 0x00, 0x00, 0x00,
  72. }