Enum Schema.SchemaCase
- java.lang.Object
-
- java.lang.Enum<Schema.SchemaCase>
-
- com.google.cloud.discoveryengine.v1beta.Schema.SchemaCase
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,Serializable
,Comparable<Schema.SchemaCase>
- Enclosing class:
- Schema
public static enum Schema.SchemaCase extends Enum<Schema.SchemaCase> implements com.google.protobuf.Internal.EnumLite
-
-
Enum Constant Summary
Enum Constants Enum Constant Description JSON_SCHEMA
SCHEMA_NOT_SET
STRUCT_SCHEMA
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Schema.SchemaCase
forNumber(int value)
int
getNumber()
static Schema.SchemaCase
valueOf(int value)
Deprecated.static Schema.SchemaCase
valueOf(String name)
Returns the enum constant of this type with the specified name.static Schema.SchemaCase[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRUCT_SCHEMA
public static final Schema.SchemaCase STRUCT_SCHEMA
-
JSON_SCHEMA
public static final Schema.SchemaCase JSON_SCHEMA
-
SCHEMA_NOT_SET
public static final Schema.SchemaCase SCHEMA_NOT_SET
-
-
Method Detail
-
values
public static Schema.SchemaCase[] 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 (Schema.SchemaCase c : Schema.SchemaCase.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Schema.SchemaCase valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOf
@Deprecated public static Schema.SchemaCase 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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
forNumber
public static Schema.SchemaCase forNumber(int value)
-
getNumber
public int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
-
-