Enum SubResourceType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<SubResourceType>
@Generated
public enum SubResourceType
extends Enum<SubResourceType>
implements com.google.protobuf.ProtocolMessageEnum
SubResourceType refers to the sub-type of database resource.Protobuf enum
google.cloud.databasecenter.v1beta.SubResourceType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents a dataset resource.A resource acting as an external primary.For the rest of the categories.A resource acting as a primary.A resource acting as a read pool.A resource acting as a read-replica.Represents a reservation resource.A resource acting as a secondary.Unspecified. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intRepresents a dataset resource.static final intA resource acting as an external primary.static final intFor the rest of the categories.static final intA resource acting as a primary.static final intA resource acting as a read pool.static final intA resource acting as a read-replica.static final intRepresents a reservation resource.static final intA resource acting as a secondary.static final intUnspecified. -
Method Summary
Modifier and TypeMethodDescriptionstatic SubResourceTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<SubResourceType>static SubResourceTypevalueOf(int value) Deprecated.static SubResourceTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static SubResourceTypeReturns the enum constant of this type with the specified name.static SubResourceType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SUB_RESOURCE_TYPE_UNSPECIFIED
Unspecified.
SUB_RESOURCE_TYPE_UNSPECIFIED = 0; -
SUB_RESOURCE_TYPE_PRIMARY
A resource acting as a primary.
SUB_RESOURCE_TYPE_PRIMARY = 1; -
SUB_RESOURCE_TYPE_SECONDARY
A resource acting as a secondary.
SUB_RESOURCE_TYPE_SECONDARY = 2; -
SUB_RESOURCE_TYPE_READ_REPLICA
A resource acting as a read-replica.
SUB_RESOURCE_TYPE_READ_REPLICA = 3; -
SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY
A resource acting as an external primary.
SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY = 5; -
SUB_RESOURCE_TYPE_READ_POOL
A resource acting as a read pool.
SUB_RESOURCE_TYPE_READ_POOL = 6; -
SUB_RESOURCE_TYPE_RESERVATION
Represents a reservation resource.
SUB_RESOURCE_TYPE_RESERVATION = 7; -
SUB_RESOURCE_TYPE_DATASET
Represents a dataset resource.
SUB_RESOURCE_TYPE_DATASET = 8; -
SUB_RESOURCE_TYPE_OTHER
For the rest of the categories.
SUB_RESOURCE_TYPE_OTHER = 4; -
UNRECOGNIZED
-
-
Field Details
-
SUB_RESOURCE_TYPE_UNSPECIFIED_VALUE
public static final int SUB_RESOURCE_TYPE_UNSPECIFIED_VALUEUnspecified.
SUB_RESOURCE_TYPE_UNSPECIFIED = 0;- See Also:
-
SUB_RESOURCE_TYPE_PRIMARY_VALUE
public static final int SUB_RESOURCE_TYPE_PRIMARY_VALUEA resource acting as a primary.
SUB_RESOURCE_TYPE_PRIMARY = 1;- See Also:
-
SUB_RESOURCE_TYPE_SECONDARY_VALUE
public static final int SUB_RESOURCE_TYPE_SECONDARY_VALUEA resource acting as a secondary.
SUB_RESOURCE_TYPE_SECONDARY = 2;- See Also:
-
SUB_RESOURCE_TYPE_READ_REPLICA_VALUE
public static final int SUB_RESOURCE_TYPE_READ_REPLICA_VALUEA resource acting as a read-replica.
SUB_RESOURCE_TYPE_READ_REPLICA = 3;- See Also:
-
SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY_VALUE
public static final int SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY_VALUEA resource acting as an external primary.
SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY = 5;- See Also:
-
SUB_RESOURCE_TYPE_READ_POOL_VALUE
public static final int SUB_RESOURCE_TYPE_READ_POOL_VALUEA resource acting as a read pool.
SUB_RESOURCE_TYPE_READ_POOL = 6;- See Also:
-
SUB_RESOURCE_TYPE_RESERVATION_VALUE
public static final int SUB_RESOURCE_TYPE_RESERVATION_VALUERepresents a reservation resource.
SUB_RESOURCE_TYPE_RESERVATION = 7;- See Also:
-
SUB_RESOURCE_TYPE_DATASET_VALUE
public static final int SUB_RESOURCE_TYPE_DATASET_VALUERepresents a dataset resource.
SUB_RESOURCE_TYPE_DATASET = 8;- See Also:
-
SUB_RESOURCE_TYPE_OTHER_VALUE
public static final int SUB_RESOURCE_TYPE_OTHER_VALUEFor the rest of the categories.
SUB_RESOURCE_TYPE_OTHER = 4;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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
-