Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: context.proto
package context;
public final class ContextOuterClass {
private ContextOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code context.EventTypeEnum}
*/
public enum EventTypeEnum
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>EVENTTYPE_UNDEFINED = 0;</code>
*/
EVENTTYPE_UNDEFINED(0),
/**
* <code>EVENTTYPE_CREATE = 1;</code>
*/
EVENTTYPE_CREATE(1),
/**
* <code>EVENTTYPE_UPDATE = 2;</code>
*/
EVENTTYPE_UPDATE(2),
/**
* <code>EVENTTYPE_REMOVE = 3;</code>
*/
EVENTTYPE_REMOVE(3),
UNRECOGNIZED(-1),
;
/**
* <code>EVENTTYPE_UNDEFINED = 0;</code>
*/
public static final int EVENTTYPE_UNDEFINED_VALUE = 0;
/**
* <code>EVENTTYPE_CREATE = 1;</code>
*/
public static final int EVENTTYPE_CREATE_VALUE = 1;
/**
* <code>EVENTTYPE_UPDATE = 2;</code>
*/
public static final int EVENTTYPE_UPDATE_VALUE = 2;
/**
* <code>EVENTTYPE_REMOVE = 3;</code>
*/
public static final int EVENTTYPE_REMOVE_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EventTypeEnum valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static EventTypeEnum forNumber(int value) {
switch (value) {
case 0: return EVENTTYPE_UNDEFINED;
case 1: return EVENTTYPE_CREATE;
case 2: return EVENTTYPE_UPDATE;
case 3: return EVENTTYPE_REMOVE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<EventTypeEnum>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
EventTypeEnum> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<EventTypeEnum>() {
public EventTypeEnum findValueByNumber(int number) {
return EventTypeEnum.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return context.ContextOuterClass.getDescriptor().getEnumTypes().get(0);
}
private static final EventTypeEnum[] VALUES = values();
public static EventTypeEnum valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private EventTypeEnum(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:context.EventTypeEnum)
}
/**
* Protobuf enum {@code context.DeviceDriverEnum}
*/
public enum DeviceDriverEnum
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <pre>
* also used for emulated
* </pre>
*
* <code>DEVICEDRIVER_UNDEFINED = 0;</code>
*/
DEVICEDRIVER_UNDEFINED(0),
/**
* <code>DEVICEDRIVER_OPENCONFIG = 1;</code>
*/
DEVICEDRIVER_OPENCONFIG(1),
/**
* <code>DEVICEDRIVER_TRANSPORT_API = 2;</code>
*/
DEVICEDRIVER_TRANSPORT_API(2),
/**
* <code>DEVICEDRIVER_P4 = 3;</code>
*/
DEVICEDRIVER_P4(3),
/**
* <code>DEVICEDRIVER_IETF_NETWORK_TOPOLOGY = 4;</code>
*/
DEVICEDRIVER_IETF_NETWORK_TOPOLOGY(4),
/**
* <code>DEVICEDRIVER_ONF_TR_532 = 5;</code>
DEVICEDRIVER_ONF_TR_532(5),
/**
* <code>DEVICEDRIVER_XR = 6;</code>
*/
DEVICEDRIVER_XR(6),
/**
* <code>DEVICEDRIVER_IETF_L2VPN = 7;</code>
*/
DEVICEDRIVER_IETF_L2VPN(7),
/**
* <code>DEVICEDRIVER_GNMI_OPENCONFIG = 8;</code>
*/
DEVICEDRIVER_GNMI_OPENCONFIG(8),
UNRECOGNIZED(-1),
;
/**
* <pre>
* also used for emulated
* </pre>
*
* <code>DEVICEDRIVER_UNDEFINED = 0;</code>
*/
public static final int DEVICEDRIVER_UNDEFINED_VALUE = 0;
/**
* <code>DEVICEDRIVER_OPENCONFIG = 1;</code>
*/
public static final int DEVICEDRIVER_OPENCONFIG_VALUE = 1;
/**
* <code>DEVICEDRIVER_TRANSPORT_API = 2;</code>
*/
public static final int DEVICEDRIVER_TRANSPORT_API_VALUE = 2;
/**
* <code>DEVICEDRIVER_P4 = 3;</code>
*/
public static final int DEVICEDRIVER_P4_VALUE = 3;
/**
* <code>DEVICEDRIVER_IETF_NETWORK_TOPOLOGY = 4;</code>
*/
public static final int DEVICEDRIVER_IETF_NETWORK_TOPOLOGY_VALUE = 4;
/**
* <code>DEVICEDRIVER_ONF_TR_532 = 5;</code>
public static final int DEVICEDRIVER_ONF_TR_532_VALUE = 5;
/**
* <code>DEVICEDRIVER_XR = 6;</code>
*/
public static final int DEVICEDRIVER_XR_VALUE = 6;
/**
* <code>DEVICEDRIVER_IETF_L2VPN = 7;</code>
*/
public static final int DEVICEDRIVER_IETF_L2VPN_VALUE = 7;
/**
* <code>DEVICEDRIVER_GNMI_OPENCONFIG = 8;</code>
*/
public static final int DEVICEDRIVER_GNMI_OPENCONFIG_VALUE = 8;
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DeviceDriverEnum valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static DeviceDriverEnum forNumber(int value) {
switch (value) {
case 0: return DEVICEDRIVER_UNDEFINED;
case 1: return DEVICEDRIVER_OPENCONFIG;
case 2: return DEVICEDRIVER_TRANSPORT_API;
case 3: return DEVICEDRIVER_P4;
case 4: return DEVICEDRIVER_IETF_NETWORK_TOPOLOGY;
case 5: return DEVICEDRIVER_ONF_TR_532;
case 7: return DEVICEDRIVER_IETF_L2VPN;
case 8: return DEVICEDRIVER_GNMI_OPENCONFIG;
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<DeviceDriverEnum>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
DeviceDriverEnum> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<DeviceDriverEnum>() {
public DeviceDriverEnum findValueByNumber(int number) {
return DeviceDriverEnum.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return context.ContextOuterClass.getDescriptor().getEnumTypes().get(1);
}
private static final DeviceDriverEnum[] VALUES = values();
public static DeviceDriverEnum valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private DeviceDriverEnum(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:context.DeviceDriverEnum)
}
/**
* Protobuf enum {@code context.DeviceOperationalStatusEnum}
*/
public enum DeviceOperationalStatusEnum
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>DEVICEOPERATIONALSTATUS_UNDEFINED = 0;</code>
*/
DEVICEOPERATIONALSTATUS_UNDEFINED(0),
/**
* <code>DEVICEOPERATIONALSTATUS_DISABLED = 1;</code>
*/
DEVICEOPERATIONALSTATUS_DISABLED(1),
/**
* <code>DEVICEOPERATIONALSTATUS_ENABLED = 2;</code>
*/
DEVICEOPERATIONALSTATUS_ENABLED(2),
UNRECOGNIZED(-1),
;
/**
* <code>DEVICEOPERATIONALSTATUS_UNDEFINED = 0;</code>
*/
public static final int DEVICEOPERATIONALSTATUS_UNDEFINED_VALUE = 0;
/**
* <code>DEVICEOPERATIONALSTATUS_DISABLED = 1;</code>
*/
public static final int DEVICEOPERATIONALSTATUS_DISABLED_VALUE = 1;
/**
* <code>DEVICEOPERATIONALSTATUS_ENABLED = 2;</code>
*/
public static final int DEVICEOPERATIONALSTATUS_ENABLED_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DeviceOperationalStatusEnum valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static DeviceOperationalStatusEnum forNumber(int value) {
switch (value) {
case 0: return DEVICEOPERATIONALSTATUS_UNDEFINED;
case 1: return DEVICEOPERATIONALSTATUS_DISABLED;
case 2: return DEVICEOPERATIONALSTATUS_ENABLED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<DeviceOperationalStatusEnum>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
DeviceOperationalStatusEnum> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<DeviceOperationalStatusEnum>() {
public DeviceOperationalStatusEnum findValueByNumber(int number) {
return DeviceOperationalStatusEnum.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
Loading
Loading full blame...