Newer
Older
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: context.proto
package context;
public final class ContextOuterClass {
Konstantinos Poulakakis
committed
private ContextOuterClass() {
}
Konstantinos Poulakakis
committed
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
Konstantinos Poulakakis
committed
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
Konstantinos Poulakakis
committed
* Protobuf enum {@code context.EventTypeEnum}
Konstantinos Poulakakis
committed
public enum EventTypeEnum implements com.google.protobuf.ProtocolMessageEnum {
Konstantinos Poulakakis
committed
/**
* <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);
Konstantinos Poulakakis
committed
/**
* <code>EVENTTYPE_UNDEFINED = 0;</code>
*/
public static final int EVENTTYPE_UNDEFINED_VALUE = 0;
Konstantinos Poulakakis
committed
/**
* <code>EVENTTYPE_CREATE = 1;</code>
*/
public static final int EVENTTYPE_CREATE_VALUE = 1;
Konstantinos Poulakakis
committed
/**
* <code>EVENTTYPE_UPDATE = 2;</code>
*/
public static final int EVENTTYPE_UPDATE_VALUE = 2;
Konstantinos Poulakakis
committed
/**
* <code>EVENTTYPE_REMOVE = 3;</code>
*/
public static final int EVENTTYPE_REMOVE_VALUE = 3;
Konstantinos Poulakakis
committed
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
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;
}
}
Konstantinos Poulakakis
committed
public static com.google.protobuf.Internal.EnumLiteMap<EventTypeEnum> internalGetValueMap() {
return internalValueMap;
}
Konstantinos Poulakakis
committed
private static final com.google.protobuf.Internal.EnumLiteMap<EventTypeEnum> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<EventTypeEnum>() {
Konstantinos Poulakakis
committed
public EventTypeEnum findValueByNumber(int number) {
return EventTypeEnum.forNumber(number);
}
};
Konstantinos Poulakakis
committed
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());
}
Konstantinos Poulakakis
committed
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
Konstantinos Poulakakis
committed
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return context.ContextOuterClass.getDescriptor().getEnumTypes().get(0);
}
Konstantinos Poulakakis
committed
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.");
Konstantinos Poulakakis
committed
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private EventTypeEnum(int value) {
this.value = value;
}
}
/**
* 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),
/**
* <code>DEVICEDRIVER_FLEXSCALE = 9;</code>
*/
DEVICEDRIVER_FLEXSCALE(9),
/**
* <code>DEVICEDRIVER_IETF_ACTN = 10;</code>
*/
DEVICEDRIVER_IETF_ACTN(10),
UNRECOGNIZED(-1);
/**
* <pre>
* also used for emulated
* </pre>
*
Loading
Loading full blame...