blob: 99a0eebfc8cacd00fda43373e91d3ee5613d081f [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 Ghosh09f28362020-06-12 21:52:19 +010063)
64
65var 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.ghosh188a84f2020-09-27 20:59:25 +020071 5: "LOGGING_ENDPOINT_ERROR",
72 6: "LOGGING_ENDPOINT_PROTOCOL_ERROR",
73 7: "KAFKA_ENDPOINT_ERROR",
Amit Ghosh09f28362020-06-12 21:52:19 +010074}
75
76var Reason_value = map[string]int32{
amit.ghosh188a84f2020-09-27 20:59:25 +020077 "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 Ghosh09f28362020-06-12 21:52:19 +010085}
86
87func (x Reason) String() string {
88 return proto.EnumName(Reason_name, int32(x))
89}
90
91func (Reason) EnumDescriptor() ([]byte, []int) {
92 return fileDescriptor_74aedf0dda1205d8, []int{1}
93}
94
Andrea Campanellab91e9a42020-10-09 14:31:43 +020095//Log Level
96type LogLevel int32
97
98const (
99 LogLevel_TRACE LogLevel = 0
100 LogLevel_DEBUG LogLevel = 1
101 LogLevel_INFO LogLevel = 2
102 LogLevel_WARN LogLevel = 3
103 LogLevel_ERROR LogLevel = 4
104)
105
106var LogLevel_name = map[int32]string{
107 0: "TRACE",
108 1: "DEBUG",
109 2: "INFO",
110 3: "WARN",
111 4: "ERROR",
112}
113
114var LogLevel_value = map[string]int32{
115 "TRACE": 0,
116 "DEBUG": 1,
117 "INFO": 2,
118 "WARN": 3,
119 "ERROR": 4,
120}
121
122func (x LogLevel) String() string {
123 return proto.EnumName(LogLevel_name, int32(x))
124}
125
126func (LogLevel) EnumDescriptor() ([]byte, []int) {
127 return fileDescriptor_74aedf0dda1205d8, []int{2}
128}
129
Amit Ghosh09f28362020-06-12 21:52:19 +0100130func init() {
131 proto.RegisterEnum("dmi.Status", Status_name, Status_value)
132 proto.RegisterEnum("dmi.Reason", Reason_name, Reason_value)
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200133 proto.RegisterEnum("dmi.LogLevel", LogLevel_name, LogLevel_value)
Amit Ghosh09f28362020-06-12 21:52:19 +0100134}
135
136func init() { proto.RegisterFile("dmi/commons.proto", fileDescriptor_74aedf0dda1205d8) }
137
138var fileDescriptor_74aedf0dda1205d8 = []byte{
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200139 // 332 bytes of a gzipped FileDescriptorProto
140 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0xbd, 0x6e, 0xf2, 0x30,
141 0x18, 0x85, 0x09, 0x3f, 0xf9, 0xc0, 0xdf, 0x9f, 0x6b, 0xa1, 0xaa, 0xea, 0xd2, 0xa1, 0x1b, 0x12,
142 0x64, 0x60, 0xaa, 0x3a, 0xa0, 0x90, 0x98, 0x28, 0x4a, 0xfa, 0x1a, 0x39, 0x0e, 0x48, 0x5d, 0xa2,
143 0x90, 0xb8, 0x69, 0xa4, 0x3a, 0x46, 0x10, 0xb8, 0xc2, 0x5e, 0x58, 0x15, 0x28, 0x43, 0xdb, 0xed,
144 0xf8, 0x39, 0x3a, 0x8f, 0x87, 0x17, 0x5d, 0xe5, 0xaa, 0xb4, 0x32, 0xad, 0x94, 0xae, 0xf6, 0x93,
145 0xed, 0x4e, 0xd7, 0x9a, 0x74, 0x72, 0x55, 0x8e, 0x66, 0xc8, 0x8c, 0xea, 0xb4, 0x3e, 0xec, 0xc9,
146 0x10, 0xe1, 0x18, 0x5c, 0xba, 0xf0, 0x81, 0xba, 0x49, 0x24, 0x6c, 0x11, 0x47, 0xb8, 0x45, 0xfe,
147 0xa2, 0x01, 0x0b, 0x2e, 0x4f, 0x83, 0x60, 0xf4, 0x87, 0x72, 0xce, 0xf8, 0x85, 0xb4, 0x47, 0xef,
148 0x06, 0x32, 0xb9, 0x4c, 0xf7, 0xba, 0xfa, 0x6a, 0xe0, 0xd4, 0x8e, 0x18, 0xe0, 0x16, 0x21, 0xe8,
149 0x5f, 0x0c, 0x01, 0xb0, 0x35, 0x24, 0x2e, 0x5d, 0xf9, 0x0e, 0xc5, 0x46, 0xc3, 0x7c, 0x10, 0x94,
150 0x83, 0x1d, 0x26, 0x27, 0x1f, 0x6e, 0x37, 0xea, 0x35, 0x67, 0xe0, 0x25, 0x4f, 0x54, 0x70, 0xdf,
151 0xc1, 0x1d, 0xf2, 0x1f, 0xfd, 0x3e, 0x13, 0xba, 0xa2, 0x20, 0x70, 0x97, 0xdc, 0xa2, 0xeb, 0x90,
152 0x79, 0x9e, 0xdf, 0x20, 0x70, 0x97, 0xcc, 0x07, 0xf1, 0x39, 0xef, 0x91, 0x7b, 0x74, 0xf7, 0xa3,
153 0x5b, 0x72, 0x26, 0x98, 0xc3, 0x2e, 0x7f, 0x98, 0xe4, 0x06, 0x0d, 0x03, 0x7b, 0x11, 0xd8, 0xdf,
154 0xe7, 0xbf, 0x46, 0x33, 0xd4, 0x0f, 0x75, 0x11, 0xca, 0xa3, 0x7c, 0x23, 0x03, 0xd4, 0x13, 0xdc,
155 0x76, 0x28, 0x6e, 0x35, 0xd1, 0xa5, 0xf3, 0xd8, 0xc3, 0x06, 0xe9, 0xa3, 0xae, 0x0f, 0x0b, 0x86,
156 0xdb, 0x4d, 0x5a, 0xdb, 0x1c, 0x70, 0xa7, 0xa9, 0xcf, 0x82, 0xee, 0xfc, 0xf1, 0xf9, 0xa1, 0x28,
157 0xeb, 0xd7, 0xc3, 0x66, 0x92, 0x69, 0x65, 0xe9, 0xad, 0xac, 0x32, 0xbd, 0xcb, 0xad, 0x5c, 0x1e,
158 0xcb, 0x4c, 0x8e, 0x55, 0x5a, 0xa5, 0x85, 0x54, 0xb2, 0xaa, 0xc7, 0x65, 0x55, 0xcb, 0xdd, 0x4b,
159 0x9a, 0x49, 0xeb, 0x38, 0xb5, 0x0a, 0x6d, 0xe5, 0xaa, 0xdc, 0x98, 0xa7, 0x8b, 0x4c, 0x3f, 0x02,
160 0x00, 0x00, 0xff, 0xff, 0xab, 0xaf, 0x4b, 0x69, 0xa6, 0x01, 0x00, 0x00,
Amit Ghosh09f28362020-06-12 21:52:19 +0100161}