Enum SettingMetadata.DataType
- java.lang.Object
-
- java.lang.Enum<SettingMetadata.DataType>
-
- com.google.cloud.resourcesettings.v1.SettingMetadata.DataType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<SettingMetadata.DataType>
- Enclosing class:
- SettingMetadata
public static enum SettingMetadata.DataType extends Enum<SettingMetadata.DataType> implements com.google.protobuf.ProtocolMessageEnum
The data type for setting values of this setting. See [Value][google.cloud.resourcesettings.v1.Value] for more details on the available data types.
Protobuf enumgoogle.cloud.resourcesettings.v1.SettingMetadata.DataType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEAN
A boolean setting.DATA_TYPE_UNSPECIFIED
Unspecified data type.ENUM_VALUE
A Enum settingSTRING
A string setting.STRING_SET
A string set setting.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
BOOLEAN_VALUE
A boolean setting.static int
DATA_TYPE_UNSPECIFIED_VALUE
Unspecified data type.static int
ENUM_VALUE_VALUE
A Enum settingstatic int
STRING_SET_VALUE
A string set setting.static int
STRING_VALUE
A string setting.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SettingMetadata.DataType
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<SettingMetadata.DataType>
internalGetValueMap()
static SettingMetadata.DataType
valueOf(int value)
Deprecated.static SettingMetadata.DataType
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static SettingMetadata.DataType
valueOf(String name)
Returns the enum constant of this type with the specified name.static SettingMetadata.DataType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DATA_TYPE_UNSPECIFIED
public static final SettingMetadata.DataType DATA_TYPE_UNSPECIFIED
Unspecified data type.
DATA_TYPE_UNSPECIFIED = 0;
-
BOOLEAN
public static final SettingMetadata.DataType BOOLEAN
A boolean setting.
BOOLEAN = 1;
-
STRING
public static final SettingMetadata.DataType STRING
A string setting.
STRING = 2;
-
STRING_SET
public static final SettingMetadata.DataType STRING_SET
A string set setting.
STRING_SET = 3;
-
ENUM_VALUE
public static final SettingMetadata.DataType ENUM_VALUE
A Enum setting
ENUM_VALUE = 4;
-
UNRECOGNIZED
public static final SettingMetadata.DataType UNRECOGNIZED
-
-
Field Detail
-
DATA_TYPE_UNSPECIFIED_VALUE
public static final int DATA_TYPE_UNSPECIFIED_VALUE
Unspecified data type.
DATA_TYPE_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
BOOLEAN_VALUE
public static final int BOOLEAN_VALUE
A boolean setting.
BOOLEAN = 1;
- See Also:
- Constant Field Values
-
STRING_VALUE
public static final int STRING_VALUE
A string setting.
STRING = 2;
- See Also:
- Constant Field Values
-
STRING_SET_VALUE
public static final int STRING_SET_VALUE
A string set setting.
STRING_SET = 3;
- See Also:
- Constant Field Values
-
ENUM_VALUE_VALUE
public static final int ENUM_VALUE_VALUE
A Enum setting
ENUM_VALUE = 4;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static SettingMetadata.DataType[] 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 (SettingMetadata.DataType c : SettingMetadata.DataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SettingMetadata.DataType 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
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static SettingMetadata.DataType 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 SettingMetadata.DataType 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<SettingMetadata.DataType> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static SettingMetadata.DataType 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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-