Enum 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 enum gnmi.SubscriptionMode
    • 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;
    • 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 name
        NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.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 name
        NullPointerException - if the argument is null
      • internalGetValueMap

        public static com.google.protobuf.Internal.EnumLiteMap<Gnmi.SubscriptionMode> internalGetValueMap()
      • getValueDescriptor

        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
        Specified by:
        getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.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 name
        NullPointerException - if the argument is null