Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: dmi/commons.proto |
| 3 | |
| 4 | package dmi |
| 5 | |
| 6 | import ( |
| 7 | fmt "fmt" |
| 8 | proto "github.com/golang/protobuf/proto" |
| 9 | math "math" |
| 10 | ) |
| 11 | |
| 12 | // Reference imports to suppress errors if they are not otherwise used. |
| 13 | var _ = proto.Marshal |
| 14 | var _ = fmt.Errorf |
| 15 | var _ = math.Inf |
| 16 | |
| 17 | // This is a compile-time assertion to ensure that this generated file |
| 18 | // is compatible with the proto package it is being compiled against. |
| 19 | // A compilation error at this line likely means your copy of the |
| 20 | // proto package needs to be updated. |
| 21 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| 22 | |
| 23 | type Status int32 |
| 24 | |
| 25 | const ( |
| 26 | Status_UNDEFINED_STATUS Status = 0 |
| 27 | Status_OK Status = 1 |
| 28 | Status_ERROR Status = 2 |
| 29 | ) |
| 30 | |
| 31 | var Status_name = map[int32]string{ |
| 32 | 0: "UNDEFINED_STATUS", |
| 33 | 1: "OK", |
| 34 | 2: "ERROR", |
| 35 | } |
| 36 | |
| 37 | var Status_value = map[string]int32{ |
| 38 | "UNDEFINED_STATUS": 0, |
| 39 | "OK": 1, |
| 40 | "ERROR": 2, |
| 41 | } |
| 42 | |
| 43 | func (x Status) String() string { |
| 44 | return proto.EnumName(Status_name, int32(x)) |
| 45 | } |
| 46 | |
| 47 | func (Status) EnumDescriptor() ([]byte, []int) { |
| 48 | return fileDescriptor_74aedf0dda1205d8, []int{0} |
| 49 | } |
| 50 | |
| 51 | // Reason for the failure of request |
| 52 | type Reason int32 |
| 53 | |
| 54 | const ( |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 55 | Reason_UNDEFINED_REASON Reason = 0 |
| 56 | Reason_UNKNOWN_DEVICE Reason = 1 |
| 57 | Reason_INTERNAL_ERROR Reason = 2 |
| 58 | Reason_WRONG_METRIC Reason = 3 |
| 59 | Reason_WRONG_EVENT Reason = 4 |
| 60 | Reason_LOGGING_ENDPOINT_ERROR Reason = 5 |
| 61 | Reason_LOGGING_ENDPOINT_PROTOCOL_ERROR Reason = 6 |
| 62 | Reason_KAFKA_ENDPOINT_ERROR Reason = 7 |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 63 | ) |
| 64 | |
| 65 | var Reason_name = map[int32]string{ |
| 66 | 0: "UNDEFINED_REASON", |
| 67 | 1: "UNKNOWN_DEVICE", |
| 68 | 2: "INTERNAL_ERROR", |
| 69 | 3: "WRONG_METRIC", |
| 70 | 4: "WRONG_EVENT", |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 71 | 5: "LOGGING_ENDPOINT_ERROR", |
| 72 | 6: "LOGGING_ENDPOINT_PROTOCOL_ERROR", |
| 73 | 7: "KAFKA_ENDPOINT_ERROR", |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 74 | } |
| 75 | |
| 76 | var Reason_value = map[string]int32{ |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 77 | "UNDEFINED_REASON": 0, |
| 78 | "UNKNOWN_DEVICE": 1, |
| 79 | "INTERNAL_ERROR": 2, |
| 80 | "WRONG_METRIC": 3, |
| 81 | "WRONG_EVENT": 4, |
| 82 | "LOGGING_ENDPOINT_ERROR": 5, |
| 83 | "LOGGING_ENDPOINT_PROTOCOL_ERROR": 6, |
| 84 | "KAFKA_ENDPOINT_ERROR": 7, |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 85 | } |
| 86 | |
| 87 | func (x Reason) String() string { |
| 88 | return proto.EnumName(Reason_name, int32(x)) |
| 89 | } |
| 90 | |
| 91 | func (Reason) EnumDescriptor() ([]byte, []int) { |
| 92 | return fileDescriptor_74aedf0dda1205d8, []int{1} |
| 93 | } |
| 94 | |
| 95 | func init() { |
| 96 | proto.RegisterEnum("dmi.Status", Status_name, Status_value) |
| 97 | proto.RegisterEnum("dmi.Reason", Reason_name, Reason_value) |
| 98 | } |
| 99 | |
| 100 | func init() { proto.RegisterFile("dmi/commons.proto", fileDescriptor_74aedf0dda1205d8) } |
| 101 | |
| 102 | var fileDescriptor_74aedf0dda1205d8 = []byte{ |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 103 | // 285 bytes of a gzipped FileDescriptorProto |
| 104 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0xcd, 0x4e, 0xf2, 0x40, |
| 105 | 0x18, 0x85, 0xf9, 0xf9, 0xe8, 0x17, 0x5f, 0x8d, 0x8e, 0x13, 0x62, 0x8c, 0x1b, 0x17, 0xee, 0x48, |
| 106 | 0xa0, 0x31, 0xac, 0x8c, 0xab, 0x4a, 0x07, 0xd2, 0x14, 0xdf, 0x21, 0xd3, 0x01, 0x12, 0x37, 0x4d, |
| 107 | 0x69, 0x47, 0x9c, 0xc5, 0xcc, 0x10, 0x3a, 0x70, 0x85, 0x5e, 0x98, 0x41, 0x71, 0xa1, 0x6e, 0x9f, |
| 108 | 0x93, 0xe7, 0x9c, 0xe4, 0xc0, 0x65, 0x65, 0x74, 0x58, 0x3a, 0x63, 0x9c, 0xad, 0x07, 0x9b, 0xad, |
| 109 | 0xf3, 0x8e, 0xb6, 0x2b, 0xa3, 0x7b, 0xf7, 0x10, 0x64, 0xbe, 0xf0, 0xbb, 0x9a, 0x76, 0x81, 0xcc, |
| 110 | 0x31, 0x66, 0xe3, 0x04, 0x59, 0x9c, 0x67, 0x32, 0x92, 0xf3, 0x8c, 0x34, 0x68, 0x00, 0x2d, 0x9e, |
| 111 | 0x92, 0x26, 0x3d, 0x81, 0x0e, 0x13, 0x82, 0x0b, 0xd2, 0xea, 0xbd, 0x37, 0x21, 0x10, 0xaa, 0xa8, |
| 112 | 0x9d, 0xfd, 0xe9, 0x08, 0x16, 0x65, 0x1c, 0x49, 0x83, 0x52, 0x38, 0x9f, 0x63, 0x8a, 0x7c, 0x89, |
| 113 | 0x79, 0xcc, 0x16, 0xc9, 0x88, 0x91, 0xe6, 0x81, 0x25, 0x28, 0x99, 0xc0, 0x68, 0x9a, 0x1f, 0x8b, |
| 114 | 0x28, 0x81, 0xb3, 0xa5, 0xe0, 0x38, 0xc9, 0x9f, 0x99, 0x14, 0xc9, 0x88, 0xb4, 0xe9, 0x05, 0x9c, |
| 115 | 0x7e, 0x11, 0xb6, 0x60, 0x28, 0xc9, 0x3f, 0x7a, 0x03, 0x57, 0x53, 0x3e, 0x99, 0x24, 0x07, 0x84, |
| 116 | 0xf1, 0x8c, 0x27, 0x28, 0x8f, 0x7a, 0x87, 0xde, 0xc1, 0xed, 0x9f, 0x6c, 0x26, 0xb8, 0xe4, 0x23, |
| 117 | 0xfe, 0xbd, 0x11, 0xd0, 0x6b, 0xe8, 0xa6, 0xd1, 0x38, 0x8d, 0x7e, 0xeb, 0xff, 0x9f, 0x1e, 0x5f, |
| 118 | 0x1e, 0xd6, 0xda, 0xbf, 0xed, 0x56, 0x83, 0xd2, 0x99, 0xd0, 0x6d, 0x94, 0x2d, 0xdd, 0xb6, 0x0a, |
| 119 | 0x2b, 0xb5, 0xd7, 0xa5, 0xea, 0x9b, 0xc2, 0x16, 0x6b, 0x65, 0x94, 0xf5, 0x7d, 0x6d, 0xbd, 0xda, |
| 120 | 0xbe, 0x16, 0xa5, 0x0a, 0xf7, 0xc3, 0x70, 0xed, 0xc2, 0xca, 0xe8, 0x55, 0xf0, 0x79, 0xe1, 0xf0, |
| 121 | 0x23, 0x00, 0x00, 0xff, 0xff, 0x0a, 0x8a, 0xc7, 0x97, 0x57, 0x01, 0x00, 0x00, |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 122 | } |