Enum Gnmi.Encoding

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, java.io.Serializable, java.lang.Comparable<Gnmi.Encoding>
    Enclosing class:
    Gnmi

    public static enum Gnmi.Encoding
    extends java.lang.Enum<Gnmi.Encoding>
    implements com.google.protobuf.ProtocolMessageEnum
     Encoding defines the value encoding formats that are supported by the gNMI
     protocol. These encodings are used by both the client (when sending Set
     messages to modify the state of the target) and the target when serializing
     data to be returned to the client (in both Subscribe and Get RPCs).
     Reference: gNMI Specification Section 2.3
     
    Protobuf enum gnmi.Encoding
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ASCII
      ASCII text of an out-of-band agreed format.
      BYTES
      Arbitrarily encoded bytes.
      JSON
      JSON encoded text.
      JSON_IETF
      JSON encoded text as per RFC7951.
      PROTO
      Encoded according to out-of-band agreed Protobuf.
      UNRECOGNIZED  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ASCII_VALUE
      ASCII text of an out-of-band agreed format.
      static int BYTES_VALUE
      Arbitrarily encoded bytes.
      static int JSON_IETF_VALUE
      JSON encoded text as per RFC7951.
      static int JSON_VALUE
      JSON encoded text.
      static int PROTO_VALUE
      Encoded according to out-of-band agreed Protobuf.
    • Enum Constant Detail

      • JSON

        public static final Gnmi.Encoding JSON
         JSON encoded text.
         
        JSON = 0;
      • BYTES

        public static final Gnmi.Encoding BYTES
         Arbitrarily encoded bytes.
         
        BYTES = 1;
      • PROTO

        public static final Gnmi.Encoding PROTO
         Encoded according to out-of-band agreed Protobuf.
         
        PROTO = 2;
      • ASCII

        public static final Gnmi.Encoding ASCII
         ASCII text of an out-of-band agreed format.
         
        ASCII = 3;
      • JSON_IETF

        public static final Gnmi.Encoding JSON_IETF
         JSON encoded text as per RFC7951.
         
        JSON_IETF = 4;
    • Field Detail

      • JSON_VALUE

        public static final int JSON_VALUE
         JSON encoded text.
         
        JSON = 0;
        See Also:
        Constant Field Values
      • BYTES_VALUE

        public static final int BYTES_VALUE
         Arbitrarily encoded bytes.
         
        BYTES = 1;
        See Also:
        Constant Field Values
      • PROTO_VALUE

        public static final int PROTO_VALUE
         Encoded according to out-of-band agreed Protobuf.
         
        PROTO = 2;
        See Also:
        Constant Field Values
      • ASCII_VALUE

        public static final int ASCII_VALUE
         ASCII text of an out-of-band agreed format.
         
        ASCII = 3;
        See Also:
        Constant Field Values
      • JSON_IETF_VALUE

        public static final int JSON_IETF_VALUE
         JSON encoded text as per RFC7951.
         
        JSON_IETF = 4;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static Gnmi.Encoding[] 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.Encoding c : Gnmi.Encoding.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.Encoding valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.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.Encoding 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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • forNumber

        public static Gnmi.Encoding forNumber​(int value)
      • internalGetValueMap

        public static com.google.protobuf.Internal.EnumLiteMap<Gnmi.Encoding> 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.Encoding 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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null