public static enum Gnmi.Encoding extends 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.3Protobuf enum
gnmi.Encoding
Enum Constant and 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 |
Modifier and Type | Field and 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.
|
Modifier and Type | Method and Description |
---|---|
static Gnmi.Encoding |
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.Encoding> |
internalGetValueMap() |
static Gnmi.Encoding |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Gnmi.Encoding |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Gnmi.Encoding |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Gnmi.Encoding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Gnmi.Encoding JSON
JSON encoded text.
JSON = 0;
public static final Gnmi.Encoding BYTES
Arbitrarily encoded bytes.
BYTES = 1;
public static final Gnmi.Encoding PROTO
Encoded according to out-of-band agreed Protobuf.
PROTO = 2;
public static final Gnmi.Encoding ASCII
ASCII text of an out-of-band agreed format.
ASCII = 3;
public static final Gnmi.Encoding JSON_IETF
JSON encoded text as per RFC7951.
JSON_IETF = 4;
public static final Gnmi.Encoding UNRECOGNIZED
public static final int JSON_VALUE
JSON encoded text.
JSON = 0;
public static final int BYTES_VALUE
Arbitrarily encoded bytes.
BYTES = 1;
public static final int PROTO_VALUE
Encoded according to out-of-band agreed Protobuf.
PROTO = 2;
public static final int ASCII_VALUE
ASCII text of an out-of-band agreed format.
ASCII = 3;
public static final int JSON_IETF_VALUE
JSON encoded text as per RFC7951.
JSON_IETF = 4;
public static Gnmi.Encoding[] values()
for (Gnmi.Encoding c : Gnmi.Encoding.values()) System.out.println(c);
public static Gnmi.Encoding 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.Encoding valueOf(int value)
forNumber(int)
instead.public static Gnmi.Encoding forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Gnmi.Encoding> 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.Encoding valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2021. All rights reserved.