blob: 1b3b9dae518f6c55f2aef6d4766e54859671e336 [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.ghoshed23db02020-11-18 10:26:36 +010064 Reason_ERROR_FETCHING_CONFIG Reason = 9
65 Reason_INVALID_CONFIG Reason = 10
Amit Ghosh09f28362020-06-12 21:52:19 +010066)
67
68var Reason_name = map[int32]string{
amit.ghoshed23db02020-11-18 10:26:36 +010069 0: "UNDEFINED_REASON",
70 1: "UNKNOWN_DEVICE",
71 2: "INTERNAL_ERROR",
72 3: "WRONG_METRIC",
73 4: "WRONG_EVENT",
74 5: "LOGGING_ENDPOINT_ERROR",
75 6: "LOGGING_ENDPOINT_PROTOCOL_ERROR",
76 7: "KAFKA_ENDPOINT_ERROR",
77 8: "UNKNOWN_LOG_ENTITY",
78 9: "ERROR_FETCHING_CONFIG",
79 10: "INVALID_CONFIG",
Amit Ghosh09f28362020-06-12 21:52:19 +010080}
81
82var Reason_value = map[string]int32{
amit.ghosh188a84f2020-09-27 20:59:25 +020083 "UNDEFINED_REASON": 0,
84 "UNKNOWN_DEVICE": 1,
85 "INTERNAL_ERROR": 2,
86 "WRONG_METRIC": 3,
87 "WRONG_EVENT": 4,
88 "LOGGING_ENDPOINT_ERROR": 5,
89 "LOGGING_ENDPOINT_PROTOCOL_ERROR": 6,
90 "KAFKA_ENDPOINT_ERROR": 7,
amit.ghosh5d97dba2020-11-12 16:45:27 +010091 "UNKNOWN_LOG_ENTITY": 8,
amit.ghoshed23db02020-11-18 10:26:36 +010092 "ERROR_FETCHING_CONFIG": 9,
93 "INVALID_CONFIG": 10,
Amit Ghosh09f28362020-06-12 21:52:19 +010094}
95
96func (x Reason) String() string {
97 return proto.EnumName(Reason_name, int32(x))
98}
99
100func (Reason) EnumDescriptor() ([]byte, []int) {
101 return fileDescriptor_74aedf0dda1205d8, []int{1}
102}
103
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200104//Log Level
105type LogLevel int32
106
107const (
108 LogLevel_TRACE LogLevel = 0
109 LogLevel_DEBUG LogLevel = 1
110 LogLevel_INFO LogLevel = 2
111 LogLevel_WARN LogLevel = 3
112 LogLevel_ERROR LogLevel = 4
113)
114
115var LogLevel_name = map[int32]string{
116 0: "TRACE",
117 1: "DEBUG",
118 2: "INFO",
119 3: "WARN",
120 4: "ERROR",
121}
122
123var LogLevel_value = map[string]int32{
124 "TRACE": 0,
125 "DEBUG": 1,
126 "INFO": 2,
127 "WARN": 3,
128 "ERROR": 4,
129}
130
131func (x LogLevel) String() string {
132 return proto.EnumName(LogLevel_name, int32(x))
133}
134
135func (LogLevel) EnumDescriptor() ([]byte, []int) {
136 return fileDescriptor_74aedf0dda1205d8, []int{2}
137}
138
Amit Ghosh09f28362020-06-12 21:52:19 +0100139func init() {
140 proto.RegisterEnum("dmi.Status", Status_name, Status_value)
141 proto.RegisterEnum("dmi.Reason", Reason_name, Reason_value)
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200142 proto.RegisterEnum("dmi.LogLevel", LogLevel_name, LogLevel_value)
Amit Ghosh09f28362020-06-12 21:52:19 +0100143}
144
145func init() { proto.RegisterFile("dmi/commons.proto", fileDescriptor_74aedf0dda1205d8) }
146
147var fileDescriptor_74aedf0dda1205d8 = []byte{
amit.ghoshed23db02020-11-18 10:26:36 +0100148 // 373 bytes of a gzipped FileDescriptorProto
149 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0xcf, 0x6f, 0xd3, 0x30,
150 0x14, 0xc7, 0xdb, 0xb4, 0x0b, 0xed, 0xe3, 0x97, 0xb1, 0xc6, 0x04, 0x5c, 0x38, 0x70, 0xab, 0xb4,
151 0xe5, 0xb0, 0x13, 0xe2, 0x30, 0x79, 0x89, 0x13, 0xac, 0x04, 0x7b, 0x72, 0x9c, 0x56, 0x70, 0x89,
152 0xb2, 0xc4, 0x84, 0x48, 0x38, 0x9e, 0xda, 0xac, 0xff, 0x04, 0xff, 0x34, 0x72, 0x43, 0x0e, 0xc0,
153 0xed, 0xf9, 0xf3, 0xf4, 0x3e, 0x7e, 0x5f, 0x3d, 0x78, 0xd5, 0x98, 0x2e, 0xa8, 0xad, 0x31, 0xb6,
154 0x3f, 0x5c, 0x3d, 0xec, 0xed, 0x60, 0xf1, 0xa2, 0x31, 0xdd, 0xe6, 0x06, 0xfc, 0x7c, 0xa8, 0x86,
155 0xc7, 0x03, 0x3e, 0x07, 0x54, 0xf0, 0x88, 0xc6, 0x8c, 0xd3, 0xa8, 0xcc, 0x15, 0x51, 0x45, 0x8e,
156 0x66, 0xf8, 0x39, 0xac, 0x45, 0x3a, 0x3d, 0xe7, 0x18, 0xc1, 0x33, 0x2a, 0xa5, 0x90, 0x13, 0xf1,
157 0x36, 0xbf, 0x3c, 0xf0, 0xa5, 0xae, 0x0e, 0xb6, 0xff, 0xdb, 0x20, 0x29, 0xc9, 0x05, 0x47, 0x33,
158 0x8c, 0xe1, 0x45, 0xc1, 0x53, 0x2e, 0x76, 0xbc, 0x8c, 0xe8, 0x96, 0x85, 0x14, 0xcd, 0x1d, 0x63,
159 0x5c, 0x51, 0xc9, 0x49, 0x56, 0x9e, 0x7c, 0xc8, 0x73, 0xea, 0x9d, 0x14, 0x3c, 0x29, 0xbf, 0x50,
160 0x25, 0x59, 0x88, 0x16, 0xf8, 0x25, 0x3c, 0x1d, 0x09, 0xdd, 0x52, 0xae, 0xd0, 0x12, 0xbf, 0x83,
161 0x8b, 0x4c, 0x24, 0x09, 0x73, 0x88, 0x47, 0x77, 0x82, 0x71, 0xf5, 0x67, 0xfc, 0x0c, 0x7f, 0x80,
162 0xf7, 0xff, 0xf5, 0xee, 0xa4, 0x50, 0x22, 0x14, 0xd3, 0x1f, 0x3e, 0x7e, 0x03, 0xe7, 0x29, 0x89,
163 0x53, 0xf2, 0xef, 0xf8, 0x13, 0x7c, 0x01, 0x78, 0xda, 0x32, 0x13, 0x4e, 0xa1, 0x98, 0xfa, 0x8a,
164 0x56, 0xf8, 0x2d, 0xbc, 0x1e, 0x03, 0xc7, 0x54, 0x85, 0x9f, 0x9d, 0x3d, 0x14, 0x3c, 0x66, 0x09,
165 0x5a, 0x8f, 0x21, 0xb6, 0x24, 0x63, 0xd1, 0xc4, 0x60, 0x73, 0x03, 0xab, 0xcc, 0xb6, 0x99, 0x3e,
166 0xea, 0x9f, 0x78, 0x0d, 0x67, 0x4a, 0x92, 0x90, 0xa2, 0x99, 0x2b, 0x23, 0x7a, 0x5b, 0x24, 0x68,
167 0x8e, 0x57, 0xb0, 0x64, 0x3c, 0x16, 0xc8, 0x73, 0xd5, 0x8e, 0x48, 0x8e, 0x16, 0xae, 0x3d, 0xee,
168 0xb1, 0xbc, 0xfd, 0xf4, 0xed, 0x63, 0xdb, 0x0d, 0x3f, 0x1e, 0xef, 0xaf, 0x6a, 0x6b, 0x02, 0xfb,
169 0xa0, 0xfb, 0xda, 0xee, 0x9b, 0xa0, 0xd1, 0xc7, 0xae, 0xd6, 0x97, 0xa6, 0xea, 0xab, 0x56, 0x1b,
170 0xdd, 0x0f, 0x97, 0x5d, 0x3f, 0xe8, 0xfd, 0xf7, 0xaa, 0xd6, 0xc1, 0xf1, 0x3a, 0x68, 0x6d, 0xd0,
171 0x98, 0xee, 0xde, 0x3f, 0x1d, 0xf6, 0xfa, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc8, 0xb6, 0xed,
172 0xcf, 0xed, 0x01, 0x00, 0x00,
Amit Ghosh09f28362020-06-12 21:52:19 +0100173}