Enum Class SchemaRegistryFormat.SchemaInfo.SchemaType
java.lang.Object
java.lang.Enum<SchemaRegistryFormat.SchemaInfo.SchemaType>
org.apache.pulsar.broker.service.schema.proto.SchemaRegistryFormat.SchemaInfo.SchemaType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<SchemaRegistryFormat.SchemaInfo.SchemaType>,Constable
- Enclosing class:
- SchemaRegistryFormat.SchemaInfo
public static enum SchemaRegistryFormat.SchemaInfo.SchemaType
extends Enum<SchemaRegistryFormat.SchemaInfo.SchemaType>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
pulsar.schema.SchemaInfo.SchemaType-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAVRO = 5;BOOLEAN = 6;DATE = 13;DOUBLE = 12;FLOAT = 11;INSTANT = 17;INT16 = 8;INT32 = 9;INT64 = 10;INT8 = 7;JSON = 3;KEYVALUE = 16;LOCALDATE = 18;LOCALDATETIME = 20;LOCALTIME = 19;NONE = 1;PROTOBUF = 4;PROTOBUFNATIVE = 21;STRING = 2;TIME = 14;TIMESTAMP = 15; -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAVRO = 5;static final intBOOLEAN = 6;static final intDATE = 13;static final intDOUBLE = 12;static final intFLOAT = 11;static final intINSTANT = 17;static final intINT16 = 8;static final intINT32 = 9;static final intINT64 = 10;static final intINT8 = 7;static final intJSON = 3;static final intKEYVALUE = 16;static final intLOCALDATE = 18;static final intLOCALDATETIME = 20;static final intLOCALTIME = 19;static final intNONE = 1;static final intPROTOBUF = 4;static final intPROTOBUFNATIVE = 21;static final intSTRING = 2;static final intTIME = 14;static final intTIMESTAMP = 15; -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<SchemaRegistryFormat.SchemaInfo.SchemaType>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
NONE = 1; -
STRING
STRING = 2; -
JSON
JSON = 3; -
PROTOBUF
PROTOBUF = 4; -
AVRO
AVRO = 5; -
BOOLEAN
BOOLEAN = 6; -
INT8
INT8 = 7; -
INT16
INT16 = 8; -
INT32
INT32 = 9; -
INT64
INT64 = 10; -
FLOAT
FLOAT = 11; -
DOUBLE
DOUBLE = 12; -
DATE
DATE = 13; -
TIME
TIME = 14; -
TIMESTAMP
TIMESTAMP = 15; -
KEYVALUE
KEYVALUE = 16; -
INSTANT
INSTANT = 17; -
LOCALDATE
LOCALDATE = 18; -
LOCALTIME
LOCALTIME = 19; -
LOCALDATETIME
LOCALDATETIME = 20; -
PROTOBUFNATIVE
PROTOBUFNATIVE = 21;
-
-
Field Details
-
NONE_VALUE
public static final int NONE_VALUENONE = 1;- See Also:
-
STRING_VALUE
public static final int STRING_VALUESTRING = 2;- See Also:
-
JSON_VALUE
public static final int JSON_VALUEJSON = 3;- See Also:
-
PROTOBUF_VALUE
public static final int PROTOBUF_VALUEPROTOBUF = 4;- See Also:
-
AVRO_VALUE
public static final int AVRO_VALUEAVRO = 5;- See Also:
-
BOOLEAN_VALUE
public static final int BOOLEAN_VALUEBOOLEAN = 6;- See Also:
-
INT8_VALUE
public static final int INT8_VALUEINT8 = 7;- See Also:
-
INT16_VALUE
public static final int INT16_VALUEINT16 = 8;- See Also:
-
INT32_VALUE
public static final int INT32_VALUEINT32 = 9;- See Also:
-
INT64_VALUE
public static final int INT64_VALUEINT64 = 10;- See Also:
-
FLOAT_VALUE
public static final int FLOAT_VALUEFLOAT = 11;- See Also:
-
DOUBLE_VALUE
public static final int DOUBLE_VALUEDOUBLE = 12;- See Also:
-
DATE_VALUE
public static final int DATE_VALUEDATE = 13;- See Also:
-
TIME_VALUE
public static final int TIME_VALUETIME = 14;- See Also:
-
TIMESTAMP_VALUE
public static final int TIMESTAMP_VALUETIMESTAMP = 15;- See Also:
-
KEYVALUE_VALUE
public static final int KEYVALUE_VALUEKEYVALUE = 16;- See Also:
-
INSTANT_VALUE
public static final int INSTANT_VALUEINSTANT = 17;- See Also:
-
LOCALDATE_VALUE
public static final int LOCALDATE_VALUELOCALDATE = 18;- See Also:
-
LOCALTIME_VALUE
public static final int LOCALTIME_VALUELOCALTIME = 19;- See Also:
-
LOCALDATETIME_VALUE
public static final int LOCALDATETIME_VALUELOCALDATETIME = 20;- See Also:
-
PROTOBUFNATIVE_VALUE
public static final int PROTOBUFNATIVE_VALUEPROTOBUFNATIVE = 21;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<SchemaRegistryFormat.SchemaInfo.SchemaType> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static SchemaRegistryFormat.SchemaInfo.SchemaType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-