blob: 91791d297144424d06e8508643f60c7eb0744bf3 [file] [log] [blame]
Amit Ghosh09f28362020-06-12 21:52:19 +01001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: dmi/commons.proto
3
4package dmi
5
6import (
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.
13var _ = proto.Marshal
14var _ = fmt.Errorf
15var _ = 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.
21const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
22
23type Status int32
24
25const (
26 Status_UNDEFINED_STATUS Status = 0
Andrea Campanellab91e9a42020-10-09 14:31:43 +020027 Status_OK_STATUS Status = 1
28 Status_ERROR_STATUS Status = 2
Amit Ghosh09f28362020-06-12 21:52:19 +010029)
30
31var Status_name = map[int32]string{
32 0: "UNDEFINED_STATUS",
Andrea Campanellab91e9a42020-10-09 14:31:43 +020033 1: "OK_STATUS",
34 2: "ERROR_STATUS",
Amit Ghosh09f28362020-06-12 21:52:19 +010035}
36
37var Status_value = map[string]int32{
38 "UNDEFINED_STATUS": 0,
Andrea Campanellab91e9a42020-10-09 14:31:43 +020039 "OK_STATUS": 1,
40 "ERROR_STATUS": 2,
Amit Ghosh09f28362020-06-12 21:52:19 +010041}
42
43func (x Status) String() string {
44 return proto.EnumName(Status_name, int32(x))
45}
46
47func (Status) EnumDescriptor() ([]byte, []int) {
48 return fileDescriptor_74aedf0dda1205d8, []int{0}
49}
50
51// Reason for the failure of request
52type Reason int32
53
54const (
amit.ghosh188a84f2020-09-27 20:59:25 +020055 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.ghosh5d97dba2020-11-12 16:45:27 +010063 Reason_UNKNOWN_LOG_ENTITY Reason = 8
Amit Ghosh09f28362020-06-12 21:52:19 +010064)
65
66var Reason_name = map[int32]string{
67 0: "UNDEFINED_REASON",
68 1: "UNKNOWN_DEVICE",
69 2: "INTERNAL_ERROR",
70 3: "WRONG_METRIC",
71 4: "WRONG_EVENT",
amit.ghosh188a84f2020-09-27 20:59:25 +020072 5: "LOGGING_ENDPOINT_ERROR",
73 6: "LOGGING_ENDPOINT_PROTOCOL_ERROR",
74 7: "KAFKA_ENDPOINT_ERROR",
amit.ghosh5d97dba2020-11-12 16:45:27 +010075 8: "UNKNOWN_LOG_ENTITY",
Amit Ghosh09f28362020-06-12 21:52:19 +010076}
77
78var Reason_value = map[string]int32{
amit.ghosh188a84f2020-09-27 20:59:25 +020079 "UNDEFINED_REASON": 0,
80 "UNKNOWN_DEVICE": 1,
81 "INTERNAL_ERROR": 2,
82 "WRONG_METRIC": 3,
83 "WRONG_EVENT": 4,
84 "LOGGING_ENDPOINT_ERROR": 5,
85 "LOGGING_ENDPOINT_PROTOCOL_ERROR": 6,
86 "KAFKA_ENDPOINT_ERROR": 7,
amit.ghosh5d97dba2020-11-12 16:45:27 +010087 "UNKNOWN_LOG_ENTITY": 8,
Amit Ghosh09f28362020-06-12 21:52:19 +010088}
89
90func (x Reason) String() string {
91 return proto.EnumName(Reason_name, int32(x))
92}
93
94func (Reason) EnumDescriptor() ([]byte, []int) {
95 return fileDescriptor_74aedf0dda1205d8, []int{1}
96}
97
Andrea Campanellab91e9a42020-10-09 14:31:43 +020098//Log Level
99type LogLevel int32
100
101const (
102 LogLevel_TRACE LogLevel = 0
103 LogLevel_DEBUG LogLevel = 1
104 LogLevel_INFO LogLevel = 2
105 LogLevel_WARN LogLevel = 3
106 LogLevel_ERROR LogLevel = 4
107)
108
109var LogLevel_name = map[int32]string{
110 0: "TRACE",
111 1: "DEBUG",
112 2: "INFO",
113 3: "WARN",
114 4: "ERROR",
115}
116
117var LogLevel_value = map[string]int32{
118 "TRACE": 0,
119 "DEBUG": 1,
120 "INFO": 2,
121 "WARN": 3,
122 "ERROR": 4,
123}
124
125func (x LogLevel) String() string {
126 return proto.EnumName(LogLevel_name, int32(x))
127}
128
129func (LogLevel) EnumDescriptor() ([]byte, []int) {
130 return fileDescriptor_74aedf0dda1205d8, []int{2}
131}
132
Amit Ghosh09f28362020-06-12 21:52:19 +0100133func init() {
134 proto.RegisterEnum("dmi.Status", Status_name, Status_value)
135 proto.RegisterEnum("dmi.Reason", Reason_name, Reason_value)
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200136 proto.RegisterEnum("dmi.LogLevel", LogLevel_name, LogLevel_value)
Amit Ghosh09f28362020-06-12 21:52:19 +0100137}
138
139func init() { proto.RegisterFile("dmi/commons.proto", fileDescriptor_74aedf0dda1205d8) }
140
141var fileDescriptor_74aedf0dda1205d8 = []byte{
amit.ghosh5d97dba2020-11-12 16:45:27 +0100142 // 344 bytes of a gzipped FileDescriptorProto
143 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0x4d, 0x6f, 0xba, 0x30,
144 0x00, 0xc6, 0xc5, 0x17, 0xfe, 0xda, 0xff, 0x5b, 0xd7, 0x18, 0xb3, 0xec, 0xb2, 0xc3, 0x6e, 0x26,
145 0xca, 0xc1, 0xd3, 0xb2, 0x83, 0x41, 0xa8, 0xa4, 0x81, 0xb5, 0xa6, 0x14, 0xcd, 0x76, 0x21, 0x08,
146 0x1d, 0x23, 0x59, 0xa9, 0x51, 0xf4, 0xd3, 0xee, 0xc3, 0x2c, 0xe8, 0x38, 0x6c, 0xbb, 0x3d, 0xfd,
147 0x3d, 0x79, 0x7e, 0x6d, 0x52, 0x70, 0x95, 0xa9, 0xc2, 0x4a, 0xb5, 0x52, 0xba, 0x3c, 0x4c, 0x77,
148 0x7b, 0x5d, 0x69, 0xd4, 0xc9, 0x54, 0x31, 0x9e, 0x03, 0x33, 0xac, 0x92, 0xea, 0x78, 0x40, 0x43,
149 0x00, 0x23, 0xea, 0xe2, 0x25, 0xa1, 0xd8, 0x8d, 0x43, 0x61, 0x8b, 0x28, 0x84, 0x2d, 0xf4, 0x17,
150 0x0c, 0x98, 0xdf, 0x1c, 0x0d, 0x04, 0xc1, 0x1f, 0xcc, 0x39, 0xe3, 0x0d, 0x69, 0x8f, 0xdf, 0x0d,
151 0x60, 0x72, 0x99, 0x1c, 0x74, 0xf9, 0xd5, 0xc0, 0xb1, 0x1d, 0x32, 0x0a, 0x5b, 0x08, 0x81, 0x7f,
152 0x11, 0xf5, 0x29, 0xdb, 0xd0, 0xd8, 0xc5, 0x6b, 0xe2, 0x60, 0x68, 0xd4, 0x8c, 0x50, 0x81, 0x39,
153 0xb5, 0x83, 0xf8, 0xec, 0x83, 0xed, 0x5a, 0xbd, 0xe1, 0x8c, 0x7a, 0xf1, 0x23, 0x16, 0x9c, 0x38,
154 0xb0, 0x83, 0xfe, 0x83, 0xdf, 0x17, 0x82, 0xd7, 0x98, 0x0a, 0xd8, 0x45, 0x37, 0x60, 0x14, 0x30,
155 0xcf, 0x23, 0x35, 0xa2, 0xee, 0x8a, 0x11, 0x2a, 0x3e, 0xe7, 0x3d, 0x74, 0x07, 0x6e, 0x7f, 0x74,
156 0x2b, 0xce, 0x04, 0x73, 0x58, 0x73, 0x87, 0x89, 0xae, 0xc1, 0xd0, 0xb7, 0x97, 0xbe, 0xfd, 0x7d,
157 0xfe, 0x0b, 0x8d, 0x00, 0x6a, 0x5e, 0x19, 0xb0, 0x5a, 0x21, 0x88, 0x78, 0x82, 0xfd, 0xf1, 0x1c,
158 0xf4, 0x03, 0x9d, 0x07, 0xf2, 0x24, 0xdf, 0xd0, 0x00, 0xf4, 0x04, 0xb7, 0x1d, 0x0c, 0x5b, 0x75,
159 0x74, 0xf1, 0x22, 0xf2, 0xa0, 0x81, 0xfa, 0xa0, 0x4b, 0xe8, 0x92, 0xc1, 0x76, 0x9d, 0x36, 0x36,
160 0xa7, 0xb0, 0x53, 0xd7, 0x17, 0x71, 0x77, 0xf1, 0xf0, 0x7c, 0x9f, 0x17, 0xd5, 0xeb, 0x71, 0x3b,
161 0x4d, 0xb5, 0xb2, 0xf4, 0x4e, 0x96, 0xa9, 0xde, 0x67, 0x56, 0x26, 0x4f, 0x45, 0x2a, 0x27, 0x2a,
162 0x29, 0x93, 0x5c, 0x2a, 0x59, 0x56, 0x93, 0xa2, 0xac, 0xe4, 0xfe, 0x25, 0x49, 0xa5, 0x75, 0x9a,
163 0x59, 0xb9, 0xb6, 0x32, 0x55, 0x6c, 0xcd, 0xf3, 0x4f, 0xcd, 0x3e, 0x02, 0x00, 0x00, 0xff, 0xff,
164 0x79, 0x7a, 0xa9, 0x6f, 0xbe, 0x01, 0x00, 0x00,
Amit Ghosh09f28362020-06-12 21:52:19 +0100165}