Enum 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,java.io.Serializable,java.lang.Comparable<SchemaRegistryFormat.SchemaInfo.SchemaType>
- Enclosing class:
- SchemaRegistryFormat.SchemaInfo
public static enum SchemaRegistryFormat.SchemaInfo.SchemaType extends java.lang.Enum<SchemaRegistryFormat.SchemaInfo.SchemaType> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumpulsar.schema.SchemaInfo.SchemaType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AVROAVRO = 5;BOOLEANBOOLEAN = 6;DATEDATE = 13;DOUBLEDOUBLE = 12;FLOATFLOAT = 11;INSTANTINSTANT = 17;INT16INT16 = 8;INT32INT32 = 9;INT64INT64 = 10;INT8INT8 = 7;JSONJSON = 3;KEYVALUEKEYVALUE = 16;LOCALDATELOCALDATE = 18;LOCALDATETIMELOCALDATETIME = 20;LOCALTIMELOCALTIME = 19;NONENONE = 1;PROTOBUFPROTOBUF = 4;PROTOBUFNATIVEPROTOBUFNATIVE = 21;STRINGSTRING = 2;TIMETIME = 14;TIMESTAMPTIMESTAMP = 15;
-
Field Summary
Fields Modifier and Type Field Description static intAVRO_VALUEAVRO = 5;static intBOOLEAN_VALUEBOOLEAN = 6;static intDATE_VALUEDATE = 13;static intDOUBLE_VALUEDOUBLE = 12;static intFLOAT_VALUEFLOAT = 11;static intINSTANT_VALUEINSTANT = 17;static intINT16_VALUEINT16 = 8;static intINT32_VALUEINT32 = 9;static intINT64_VALUEINT64 = 10;static intINT8_VALUEINT8 = 7;static intJSON_VALUEJSON = 3;static intKEYVALUE_VALUEKEYVALUE = 16;static intLOCALDATE_VALUELOCALDATE = 18;static intLOCALDATETIME_VALUELOCALDATETIME = 20;static intLOCALTIME_VALUELOCALTIME = 19;static intNONE_VALUENONE = 1;static intPROTOBUF_VALUEPROTOBUF = 4;static intPROTOBUFNATIVE_VALUEPROTOBUFNATIVE = 21;static intSTRING_VALUESTRING = 2;static intTIME_VALUETIME = 14;static intTIMESTAMP_VALUETIMESTAMP = 15;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SchemaRegistryFormat.SchemaInfo.SchemaTypeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<SchemaRegistryFormat.SchemaInfo.SchemaType>internalGetValueMap()static SchemaRegistryFormat.SchemaInfo.SchemaTypevalueOf(int value)Deprecated.static SchemaRegistryFormat.SchemaInfo.SchemaTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static SchemaRegistryFormat.SchemaInfo.SchemaTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SchemaRegistryFormat.SchemaInfo.SchemaType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final SchemaRegistryFormat.SchemaInfo.SchemaType NONE
NONE = 1;
-
STRING
public static final SchemaRegistryFormat.SchemaInfo.SchemaType STRING
STRING = 2;
-
JSON
public static final SchemaRegistryFormat.SchemaInfo.SchemaType JSON
JSON = 3;
-
PROTOBUF
public static final SchemaRegistryFormat.SchemaInfo.SchemaType PROTOBUF
PROTOBUF = 4;
-
AVRO
public static final SchemaRegistryFormat.SchemaInfo.SchemaType AVRO
AVRO = 5;
-
BOOLEAN
public static final SchemaRegistryFormat.SchemaInfo.SchemaType BOOLEAN
BOOLEAN = 6;
-
INT8
public static final SchemaRegistryFormat.SchemaInfo.SchemaType INT8
INT8 = 7;
-
INT16
public static final SchemaRegistryFormat.SchemaInfo.SchemaType INT16
INT16 = 8;
-
INT32
public static final SchemaRegistryFormat.SchemaInfo.SchemaType INT32
INT32 = 9;
-
INT64
public static final SchemaRegistryFormat.SchemaInfo.SchemaType INT64
INT64 = 10;
-
FLOAT
public static final SchemaRegistryFormat.SchemaInfo.SchemaType FLOAT
FLOAT = 11;
-
DOUBLE
public static final SchemaRegistryFormat.SchemaInfo.SchemaType DOUBLE
DOUBLE = 12;
-
DATE
public static final SchemaRegistryFormat.SchemaInfo.SchemaType DATE
DATE = 13;
-
TIME
public static final SchemaRegistryFormat.SchemaInfo.SchemaType TIME
TIME = 14;
-
TIMESTAMP
public static final SchemaRegistryFormat.SchemaInfo.SchemaType TIMESTAMP
TIMESTAMP = 15;
-
KEYVALUE
public static final SchemaRegistryFormat.SchemaInfo.SchemaType KEYVALUE
KEYVALUE = 16;
-
INSTANT
public static final SchemaRegistryFormat.SchemaInfo.SchemaType INSTANT
INSTANT = 17;
-
LOCALDATE
public static final SchemaRegistryFormat.SchemaInfo.SchemaType LOCALDATE
LOCALDATE = 18;
-
LOCALTIME
public static final SchemaRegistryFormat.SchemaInfo.SchemaType LOCALTIME
LOCALTIME = 19;
-
LOCALDATETIME
public static final SchemaRegistryFormat.SchemaInfo.SchemaType LOCALDATETIME
LOCALDATETIME = 20;
-
PROTOBUFNATIVE
public static final SchemaRegistryFormat.SchemaInfo.SchemaType PROTOBUFNATIVE
PROTOBUFNATIVE = 21;
-
-
Field Detail
-
NONE_VALUE
public static final int NONE_VALUE
NONE = 1;- See Also:
- Constant Field Values
-
STRING_VALUE
public static final int STRING_VALUE
STRING = 2;- See Also:
- Constant Field Values
-
JSON_VALUE
public static final int JSON_VALUE
JSON = 3;- See Also:
- Constant Field Values
-
PROTOBUF_VALUE
public static final int PROTOBUF_VALUE
PROTOBUF = 4;- See Also:
- Constant Field Values
-
AVRO_VALUE
public static final int AVRO_VALUE
AVRO = 5;- See Also:
- Constant Field Values
-
BOOLEAN_VALUE
public static final int BOOLEAN_VALUE
BOOLEAN = 6;- See Also:
- Constant Field Values
-
INT8_VALUE
public static final int INT8_VALUE
INT8 = 7;- See Also:
- Constant Field Values
-
INT16_VALUE
public static final int INT16_VALUE
INT16 = 8;- See Also:
- Constant Field Values
-
INT32_VALUE
public static final int INT32_VALUE
INT32 = 9;- See Also:
- Constant Field Values
-
INT64_VALUE
public static final int INT64_VALUE
INT64 = 10;- See Also:
- Constant Field Values
-
FLOAT_VALUE
public static final int FLOAT_VALUE
FLOAT = 11;- See Also:
- Constant Field Values
-
DOUBLE_VALUE
public static final int DOUBLE_VALUE
DOUBLE = 12;- See Also:
- Constant Field Values
-
DATE_VALUE
public static final int DATE_VALUE
DATE = 13;- See Also:
- Constant Field Values
-
TIME_VALUE
public static final int TIME_VALUE
TIME = 14;- See Also:
- Constant Field Values
-
TIMESTAMP_VALUE
public static final int TIMESTAMP_VALUE
TIMESTAMP = 15;- See Also:
- Constant Field Values
-
KEYVALUE_VALUE
public static final int KEYVALUE_VALUE
KEYVALUE = 16;- See Also:
- Constant Field Values
-
INSTANT_VALUE
public static final int INSTANT_VALUE
INSTANT = 17;- See Also:
- Constant Field Values
-
LOCALDATE_VALUE
public static final int LOCALDATE_VALUE
LOCALDATE = 18;- See Also:
- Constant Field Values
-
LOCALTIME_VALUE
public static final int LOCALTIME_VALUE
LOCALTIME = 19;- See Also:
- Constant Field Values
-
LOCALDATETIME_VALUE
public static final int LOCALDATETIME_VALUE
LOCALDATETIME = 20;- See Also:
- Constant Field Values
-
PROTOBUFNATIVE_VALUE
public static final int PROTOBUFNATIVE_VALUE
PROTOBUFNATIVE = 21;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static SchemaRegistryFormat.SchemaInfo.SchemaType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SchemaRegistryFormat.SchemaInfo.SchemaType c : SchemaRegistryFormat.SchemaInfo.SchemaType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SchemaRegistryFormat.SchemaInfo.SchemaType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- 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 public static SchemaRegistryFormat.SchemaInfo.SchemaType valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
forNumber
public static SchemaRegistryFormat.SchemaInfo.SchemaType forNumber(int value)
- 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 type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-