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