public enum Encoding extends Enum<Encoding> implements com.google.protobuf.ProtocolMessageEnum
Possible encoding types for messages.Protobuf enum
google.pubsub.v1.Encoding
Enum Constant and Description |
---|
BINARY
Binary encoding, as defined by the schema type.
|
ENCODING_UNSPECIFIED
Unspecified
|
JSON
JSON encoding
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
BINARY_VALUE
Binary encoding, as defined by the schema type.
|
static int |
ENCODING_UNSPECIFIED_VALUE
Unspecified
|
static int |
JSON_VALUE
JSON encoding
|
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 ENCODING_UNSPECIFIED
Unspecified
ENCODING_UNSPECIFIED = 0;
public static final Encoding JSON
JSON encoding
JSON = 1;
public static final Encoding BINARY
Binary encoding, as defined by the schema type. For some schema types, binary encoding may not be available.
BINARY = 2;
public static final Encoding UNRECOGNIZED
public static final int ENCODING_UNSPECIFIED_VALUE
Unspecified
ENCODING_UNSPECIFIED = 0;
public static final int JSON_VALUE
JSON encoding
JSON = 1;
public static final int BINARY_VALUE
Binary encoding, as defined by the schema type. For some schema types, binary encoding may not be available.
BINARY = 2;
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.value
- The numeric wire value of the corresponding enum entry.public static Encoding forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.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 © 2023 Google LLC. All rights reserved.