public static enum Schema.Type extends Enum<Schema.Type> implements com.google.protobuf.ProtocolMessageEnum
Possible schema definition types.Protobuf enum
google.pubsub.v1.Schema.Type
Enum Constant and Description |
---|
AVRO
An Avro schema definition.
|
PROTOCOL_BUFFER
A Protocol Buffer schema definition.
|
TYPE_UNSPECIFIED
Default value.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
AVRO_VALUE
An Avro schema definition.
|
static int |
PROTOCOL_BUFFER_VALUE
A Protocol Buffer schema definition.
|
static int |
TYPE_UNSPECIFIED_VALUE
Default value.
|
Modifier and Type | Method and Description |
---|---|
static Schema.Type |
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<Schema.Type> |
internalGetValueMap() |
static Schema.Type |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Schema.Type |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Schema.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Schema.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Schema.Type TYPE_UNSPECIFIED
Default value. This value is unused.
TYPE_UNSPECIFIED = 0;
public static final Schema.Type PROTOCOL_BUFFER
A Protocol Buffer schema definition.
PROTOCOL_BUFFER = 1;
public static final Schema.Type AVRO
An Avro schema definition.
AVRO = 2;
public static final Schema.Type UNRECOGNIZED
public static final int TYPE_UNSPECIFIED_VALUE
Default value. This value is unused.
TYPE_UNSPECIFIED = 0;
public static final int PROTOCOL_BUFFER_VALUE
A Protocol Buffer schema definition.
PROTOCOL_BUFFER = 1;
public static final int AVRO_VALUE
An Avro schema definition.
AVRO = 2;
public static Schema.Type[] values()
for (Schema.Type c : Schema.Type.values()) System.out.println(c);
public static Schema.Type 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 Schema.Type valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Schema.Type forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Schema.Type> 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 Schema.Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.