| OLD | NEW |
| 1 // Code generated by protoc-gen-go. | 1 // Code generated by protoc-gen-go. |
| 2 // source: acquisition_task.proto | 2 // source: acquisition_task.proto |
| 3 // DO NOT EDIT! | 3 // DO NOT EDIT! |
| 4 | 4 |
| 5 package ts_mon_proto | 5 package ts_mon_proto |
| 6 | 6 |
| 7 import proto "github.com/golang/protobuf/proto" | 7 import proto "github.com/golang/protobuf/proto" |
| 8 import fmt "fmt" | 8 import fmt "fmt" |
| 9 import math "math" | 9 import math "math" |
| 10 | 10 |
| 11 // Reference imports to suppress errors if they are not otherwise used. | 11 // Reference imports to suppress errors if they are not otherwise used. |
| 12 var _ = proto.Marshal | 12 var _ = proto.Marshal |
| 13 var _ = fmt.Errorf | 13 var _ = fmt.Errorf |
| 14 var _ = math.Inf | 14 var _ = math.Inf |
| 15 | 15 |
| 16 type Task struct { | 16 type Task_TypeId int32 |
| 17 » ServiceName string `protobuf:"bytes,20,opt,name=service_name" json:"serv
ice_name,omitempty"` | 17 |
| 18 » JobName string `protobuf:"bytes,30,opt,name=job_name" json:"job_name
,omitempty"` | 18 const ( |
| 19 » DataCenter string `protobuf:"bytes,40,opt,name=data_center" json:"data_
center,omitempty"` | 19 » Task_MESSAGE_TYPE_ID Task_TypeId = 34049749 |
| 20 » HostName string `protobuf:"bytes,50,opt,name=host_name" json:"host_na
me,omitempty"` | 20 ) |
| 21 » TaskNum int32 `protobuf:"varint,60,opt,name=task_num" json:"task_nu
m,omitempty"` | 21 |
| 22 var Task_TypeId_name = map[int32]string{ |
| 23 » 34049749: "MESSAGE_TYPE_ID", |
| 24 } |
| 25 var Task_TypeId_value = map[string]int32{ |
| 26 » "MESSAGE_TYPE_ID": 34049749, |
| 22 } | 27 } |
| 23 | 28 |
| 24 func (m *Task) Reset() { *m = Task{} } | 29 func (x Task_TypeId) Enum() *Task_TypeId { |
| 25 func (m *Task) String() string { return proto.CompactTextString(m) } | 30 » p := new(Task_TypeId) |
| 26 func (*Task) ProtoMessage() {} | 31 » *p = x |
| 32 » return p |
| 33 } |
| 34 func (x Task_TypeId) String() string { |
| 35 » return proto.EnumName(Task_TypeId_name, int32(x)) |
| 36 } |
| 37 func (x *Task_TypeId) UnmarshalJSON(data []byte) error { |
| 38 » value, err := proto.UnmarshalJSONEnum(Task_TypeId_value, data, "Task_Typ
eId") |
| 39 » if err != nil { |
| 40 » » return err |
| 41 » } |
| 42 » *x = Task_TypeId(value) |
| 43 » return nil |
| 44 } |
| 45 func (Task_TypeId) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []
int{0, 0} } |
| 46 |
| 47 type Task struct { |
| 48 » ServiceName *string `protobuf:"bytes,20,opt,name=service_name" json
:"service_name,omitempty"` |
| 49 » JobName *string `protobuf:"bytes,30,opt,name=job_name" json:"jo
b_name,omitempty"` |
| 50 » DataCenter *string `protobuf:"bytes,40,opt,name=data_center" json:
"data_center,omitempty"` |
| 51 » HostName *string `protobuf:"bytes,50,opt,name=host_name" json:"h
ost_name,omitempty"` |
| 52 » TaskNum *int32 `protobuf:"varint,60,opt,name=task_num" json:"t
ask_num,omitempty"` |
| 53 » XXX_unrecognized []byte `json:"-"` |
| 54 } |
| 55 |
| 56 func (m *Task) Reset() { *m = Task{} } |
| 57 func (m *Task) String() string { return proto.CompactTextString(m) } |
| 58 func (*Task) ProtoMessage() {} |
| 59 func (*Task) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} } |
| 60 |
| 61 func (m *Task) GetServiceName() string { |
| 62 » if m != nil && m.ServiceName != nil { |
| 63 » » return *m.ServiceName |
| 64 » } |
| 65 » return "" |
| 66 } |
| 67 |
| 68 func (m *Task) GetJobName() string { |
| 69 » if m != nil && m.JobName != nil { |
| 70 » » return *m.JobName |
| 71 » } |
| 72 » return "" |
| 73 } |
| 74 |
| 75 func (m *Task) GetDataCenter() string { |
| 76 » if m != nil && m.DataCenter != nil { |
| 77 » » return *m.DataCenter |
| 78 » } |
| 79 » return "" |
| 80 } |
| 81 |
| 82 func (m *Task) GetHostName() string { |
| 83 » if m != nil && m.HostName != nil { |
| 84 » » return *m.HostName |
| 85 » } |
| 86 » return "" |
| 87 } |
| 88 |
| 89 func (m *Task) GetTaskNum() int32 { |
| 90 » if m != nil && m.TaskNum != nil { |
| 91 » » return *m.TaskNum |
| 92 » } |
| 93 » return 0 |
| 94 } |
| 95 |
| 96 func init() { |
| 97 » proto.RegisterType((*Task)(nil), "ts_mon.proto.Task") |
| 98 » proto.RegisterEnum("ts_mon.proto.Task_TypeId", Task_TypeId_name, Task_Ty
peId_value) |
| 99 } |
| 100 |
| 101 var fileDescriptor1 = []byte{ |
| 102 » // 175 bytes of a gzipped FileDescriptorProto |
| 103 » 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x12,
0x4b, 0x4c, 0x2e, 0x2c, |
| 104 » 0xcd, 0x2c, 0xce, 0x2c, 0xc9, 0xcc, 0xcf, 0x8b, 0x2f, 0x49, 0x2c, 0xce,
0xd6, 0x2b, 0x28, 0xca, |
| 105 » 0x2f, 0xc9, 0x17, 0xe2, 0x29, 0x29, 0x8e, 0xcf, 0xcd, 0xcf, 0x83, 0xf0,
0x94, 0xba, 0x18, 0xb9, |
| 106 » 0x58, 0x42, 0x80, 0x92, 0x42, 0x22, 0x5c, 0x3c, 0xc5, 0xa9, 0x45, 0x65,
0x99, 0xc9, 0xa9, 0xf1, |
| 107 » 0x79, 0x89, 0xb9, 0xa9, 0x12, 0x22, 0x0a, 0x8c, 0x1a, 0x9c, 0x42, 0x02,
0x5c, 0x1c, 0x59, 0xf9, |
| 108 » 0x49, 0x10, 0x11, 0x39, 0xb0, 0x88, 0x30, 0x17, 0x77, 0x4a, 0x62, 0x49,
0x62, 0x7c, 0x72, 0x6a, |
| 109 » 0x5e, 0x49, 0x6a, 0x91, 0x84, 0x06, 0x58, 0x50, 0x90, 0x8b, 0x33, 0x23,
0xbf, 0xb8, 0x04, 0xa2, |
| 110 » 0xce, 0x08, 0xa6, 0x13, 0x64, 0x69, 0x7c, 0x5e, 0x69, 0xae, 0x84, 0x0d,
0x50, 0x84, 0x55, 0x49, |
| 111 » 0x81, 0x8b, 0x2d, 0xa4, 0xb2, 0x20, 0xd5, 0x33, 0x45, 0x48, 0x8c, 0x8b,
0xdf, 0xd7, 0x35, 0x38, |
| 112 » 0xd8, 0xd1, 0xdd, 0x35, 0x3e, 0x24, 0x32, 0xc0, 0x35, 0xde, 0xd3, 0x45,
0xe0, 0xea, 0xdc, 0x79, |
| 113 » 0x02, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x38, 0x9f, 0x4c, 0xf2, 0xb3,
0x00, 0x00, 0x00, |
| 114 } |
| OLD | NEW |