Enum Gnmi.SubscriptionMode
- java.lang.Object
-
- java.lang.Enum<Gnmi.SubscriptionMode>
-
- org.opennms.features.openconfig.proto.gnmi.Gnmi.SubscriptionMode
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<Gnmi.SubscriptionMode>
- Enclosing class:
- Gnmi
public static enum Gnmi.SubscriptionMode extends Enum<Gnmi.SubscriptionMode> implements com.google.protobuf.ProtocolMessageEnum
SubscriptionMode is the mode of the subscription, specifying how the target must return values in a subscription. Reference: gNMI Specification Section 3.5.1.3
Protobuf enumgnmi.SubscriptionMode
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ON_CHANGE
The target sends an update on element value change.SAMPLE
The target samples values according to the interval.TARGET_DEFINED
The target selects the relevant mode for each element.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
ON_CHANGE_VALUE
The target sends an update on element value change.static int
SAMPLE_VALUE
The target samples values according to the interval.static int
TARGET_DEFINED_VALUE
The target selects the relevant mode for each element.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Gnmi.SubscriptionMode
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<Gnmi.SubscriptionMode>
internalGetValueMap()
static Gnmi.SubscriptionMode
valueOf(int value)
Deprecated.static Gnmi.SubscriptionMode
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static Gnmi.SubscriptionMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static Gnmi.SubscriptionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TARGET_DEFINED
public static final Gnmi.SubscriptionMode TARGET_DEFINED
The target selects the relevant mode for each element.
TARGET_DEFINED = 0;
-
ON_CHANGE
public static final Gnmi.SubscriptionMode ON_CHANGE
The target sends an update on element value change.
ON_CHANGE = 1;
-
SAMPLE
public static final Gnmi.SubscriptionMode SAMPLE
The target samples values according to the interval.
SAMPLE = 2;
-
UNRECOGNIZED
public static final Gnmi.SubscriptionMode UNRECOGNIZED
-
-
Field Detail
-
TARGET_DEFINED_VALUE
public static final int TARGET_DEFINED_VALUE
The target selects the relevant mode for each element.
TARGET_DEFINED = 0;
- See Also:
- Constant Field Values
-
ON_CHANGE_VALUE
public static final int ON_CHANGE_VALUE
The target sends an update on element value change.
ON_CHANGE = 1;
- See Also:
- Constant Field Values
-
SAMPLE_VALUE
public static final int SAMPLE_VALUE
The target samples values according to the interval.
SAMPLE = 2;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Gnmi.SubscriptionMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Gnmi.SubscriptionMode c : Gnmi.SubscriptionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Gnmi.SubscriptionMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static Gnmi.SubscriptionMode valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
forNumber
public static Gnmi.SubscriptionMode forNumber(int value)
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Gnmi.SubscriptionMode> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static Gnmi.SubscriptionMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-