Enum SubResourceType

java.lang.Object
java.lang.Enum<SubResourceType>
com.google.cloud.databasecenter.v1beta.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 Details

    • SUB_RESOURCE_TYPE_UNSPECIFIED

      public static final SubResourceType SUB_RESOURCE_TYPE_UNSPECIFIED
       Unspecified.
       
      SUB_RESOURCE_TYPE_UNSPECIFIED = 0;
    • SUB_RESOURCE_TYPE_PRIMARY

      public static final SubResourceType SUB_RESOURCE_TYPE_PRIMARY
       A resource acting as a primary.
       
      SUB_RESOURCE_TYPE_PRIMARY = 1;
    • SUB_RESOURCE_TYPE_SECONDARY

      public static final SubResourceType SUB_RESOURCE_TYPE_SECONDARY
       A resource acting as a secondary.
       
      SUB_RESOURCE_TYPE_SECONDARY = 2;
    • SUB_RESOURCE_TYPE_READ_REPLICA

      public static final SubResourceType SUB_RESOURCE_TYPE_READ_REPLICA
       A resource acting as a read-replica.
       
      SUB_RESOURCE_TYPE_READ_REPLICA = 3;
    • SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY

      public static final SubResourceType SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY
       A resource acting as an external primary.
       
      SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY = 5;
    • SUB_RESOURCE_TYPE_READ_POOL

      public static final SubResourceType SUB_RESOURCE_TYPE_READ_POOL
       A resource acting as a read pool.
       
      SUB_RESOURCE_TYPE_READ_POOL = 6;
    • SUB_RESOURCE_TYPE_RESERVATION

      public static final SubResourceType SUB_RESOURCE_TYPE_RESERVATION
       Represents a reservation resource.
       
      SUB_RESOURCE_TYPE_RESERVATION = 7;
    • SUB_RESOURCE_TYPE_DATASET

      public static final SubResourceType SUB_RESOURCE_TYPE_DATASET
       Represents a dataset resource.
       
      SUB_RESOURCE_TYPE_DATASET = 8;
    • SUB_RESOURCE_TYPE_OTHER

      public static final SubResourceType SUB_RESOURCE_TYPE_OTHER
       For the rest of the categories.
       
      SUB_RESOURCE_TYPE_OTHER = 4;
    • UNRECOGNIZED

      public static final SubResourceType UNRECOGNIZED
  • Field Details

    • SUB_RESOURCE_TYPE_UNSPECIFIED_VALUE

      public static final int SUB_RESOURCE_TYPE_UNSPECIFIED_VALUE
       Unspecified.
       
      SUB_RESOURCE_TYPE_UNSPECIFIED = 0;
      See Also:
    • SUB_RESOURCE_TYPE_PRIMARY_VALUE

      public static final int SUB_RESOURCE_TYPE_PRIMARY_VALUE
       A 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_VALUE
       A 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_VALUE
       A 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_VALUE
       A 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_VALUE
       A 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_VALUE
       Represents a reservation resource.
       
      SUB_RESOURCE_TYPE_RESERVATION = 7;
      See Also:
    • SUB_RESOURCE_TYPE_DATASET_VALUE

      public static final int SUB_RESOURCE_TYPE_DATASET_VALUE
       Represents a dataset resource.
       
      SUB_RESOURCE_TYPE_DATASET = 8;
      See Also:
    • SUB_RESOURCE_TYPE_OTHER_VALUE

      public static final int SUB_RESOURCE_TYPE_OTHER_VALUE
       For the rest of the categories.
       
      SUB_RESOURCE_TYPE_OTHER = 4;
      See Also:
  • Method Details

    • values

      public static SubResourceType[] 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

      public static SubResourceType 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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static SubResourceType 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 name
      NullPointerException - if the argument is null
    • forNumber

      public static SubResourceType 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<SubResourceType> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static SubResourceType 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 name
      NullPointerException - if the argument is null