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.3Protobuf enum
gnmi.SubscriptionMode
Enum Constant and 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 |
Modifier and Type | Field and 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.
|
Modifier and Type | Method and 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(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Gnmi.SubscriptionMode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
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.
|
public static final Gnmi.SubscriptionMode TARGET_DEFINED
The target selects the relevant mode for each element.
TARGET_DEFINED = 0;
public static final Gnmi.SubscriptionMode ON_CHANGE
The target sends an update on element value change.
ON_CHANGE = 1;
public static final Gnmi.SubscriptionMode SAMPLE
The target samples values according to the interval.
SAMPLE = 2;
public static final Gnmi.SubscriptionMode UNRECOGNIZED
public static final int TARGET_DEFINED_VALUE
The target selects the relevant mode for each element.
TARGET_DEFINED = 0;
public static final int ON_CHANGE_VALUE
The target sends an update on element value change.
ON_CHANGE = 1;
public static final int SAMPLE_VALUE
The target samples values according to the interval.
SAMPLE = 2;
public static Gnmi.SubscriptionMode[] values()
for (Gnmi.SubscriptionMode c : Gnmi.SubscriptionMode.values()) System.out.println(c);
public static Gnmi.SubscriptionMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static Gnmi.SubscriptionMode valueOf(int value)
forNumber(int)
instead.public static Gnmi.SubscriptionMode forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Gnmi.SubscriptionMode> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Gnmi.SubscriptionMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2021. All rights reserved.