Class DatabaseResource
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.databasecenter.v1beta.DatabaseResource
- All Implemented Interfaces:
DatabaseResourceOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class DatabaseResource
extends com.google.protobuf.GeneratedMessage
implements DatabaseResourceOrBuilder
DatabaseResource represents every individually configured database unit representing compute and/or storage.Protobuf type
google.cloud.databasecenter.v1beta.DatabaseResource- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDatabaseResource represents every individually configured database unit representing compute and/or storage.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAffiliations(int index) Optional.intOptional.Optional.getAffiliationsOrBuilder(int index) Optional.List<? extends AffiliationOrBuilder>Optional.Optional.Optional.getChildResources(int index) List of children associated with a database group.intList of children associated with a database group.List of children associated with a database group.getChildResourcesOrBuilder(int index) List of children associated with a database group.List<? extends DatabaseResourceOrBuilder>List of children associated with a database group.Specifies where the resource is created.com.google.protobuf.ByteStringSpecifies where the resource is created.static DatabaseResourcestatic final com.google.protobuf.Descriptors.DescriptorThe edition of the resource.intThe edition of the resource.The full resource name, based on CAIS resource name format https://cloud.google.com/asset-inventory/docs/resource-name-format Example: `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1` `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` `//spanner.googleapis.com/projects/project-number/instances/spanner-instance-1` `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1` `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1/instances/i1`com.google.protobuf.ByteStringThe full resource name, based on CAIS resource name format https://cloud.google.com/asset-inventory/docs/resource-name-format Example: `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1` `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` `//spanner.googleapis.com/projects/project-number/instances/spanner-instance-1` `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1` `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1/instances/i1`getLabels(int index) Labels applied on the resource.intLabels applied on the resource.Labels applied on the resource.getLabelsOrBuilder(int index) Labels applied on the resource.List<? extends LabelOrBuilder>Labels applied on the resource.The location of the resources.com.google.protobuf.ByteStringThe location of the resources.Machine configuration like CPU, memory, etc for the resource.Machine configuration like CPU, memory, etc for the resource.Optional.Optional.Observable metrics for the resource e.g.Observable metrics for the resource e.g.com.google.protobuf.Parser<DatabaseResource>The product this resource represents.The product this resource represents.The category of the resource.intThe category of the resource.The name of the resource(The last part of the full resource name).com.google.protobuf.ByteStringThe name of the resource(The last part of the full resource name).The type of resource defined according to the pattern: {Service Name}/{Type}.com.google.protobuf.ByteStringThe type of resource defined according to the pattern: {Service Name}/{Type}.intgetSignalGroups(int index) The list of signal groups and count of issues related to the resource.intThe list of signal groups and count of issues related to the resource.The list of signal groups and count of issues related to the resource.getSignalGroupsOrBuilder(int index) The list of signal groups and count of issues related to the resource.List<? extends SignalGroupOrBuilder>The list of signal groups and count of issues related to the resource.Subtype of the resource specified at creation time.intSubtype of the resource specified at creation time.getTags(int index) Tags applied on the resource.intTags applied on the resource.Tags applied on the resource.getTagsOrBuilder(int index) Tags applied on the resource.List<? extends TagOrBuilder>Tags applied on the resource.booleanOptional.inthashCode()booleanMachine configuration like CPU, memory, etc for the resource.booleanOptional.booleanObservable metrics for the resource e.g.booleanThe product this resource represents.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic DatabaseResource.Builderstatic DatabaseResource.BuildernewBuilder(DatabaseResource prototype) protected DatabaseResource.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static DatabaseResourceparseDelimitedFrom(InputStream input) static DatabaseResourceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DatabaseResourceparseFrom(byte[] data) static DatabaseResourceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DatabaseResourceparseFrom(com.google.protobuf.ByteString data) static DatabaseResourceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DatabaseResourceparseFrom(com.google.protobuf.CodedInputStream input) static DatabaseResourceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DatabaseResourceparseFrom(InputStream input) static DatabaseResourceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DatabaseResourceparseFrom(ByteBuffer data) static DatabaseResourceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<DatabaseResource>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
CHILD_RESOURCES_FIELD_NUMBER
public static final int CHILD_RESOURCES_FIELD_NUMBER- See Also:
-
FULL_RESOURCE_NAME_FIELD_NUMBER
public static final int FULL_RESOURCE_NAME_FIELD_NUMBER- See Also:
-
CONTAINER_FIELD_NUMBER
public static final int CONTAINER_FIELD_NUMBER- See Also:
-
PRODUCT_FIELD_NUMBER
public static final int PRODUCT_FIELD_NUMBER- See Also:
-
LOCATION_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER- See Also:
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER- See Also:
-
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER- See Also:
-
RESOURCE_TYPE_FIELD_NUMBER
public static final int RESOURCE_TYPE_FIELD_NUMBER- See Also:
-
SUB_RESOURCE_TYPE_FIELD_NUMBER
public static final int SUB_RESOURCE_TYPE_FIELD_NUMBER- See Also:
-
MACHINE_CONFIG_FIELD_NUMBER
public static final int MACHINE_CONFIG_FIELD_NUMBER- See Also:
-
SIGNAL_GROUPS_FIELD_NUMBER
public static final int SIGNAL_GROUPS_FIELD_NUMBER- See Also:
-
METRICS_FIELD_NUMBER
public static final int METRICS_FIELD_NUMBER- See Also:
-
RESOURCE_CATEGORY_FIELD_NUMBER
public static final int RESOURCE_CATEGORY_FIELD_NUMBER- See Also:
-
RESOURCE_NAME_FIELD_NUMBER
public static final int RESOURCE_NAME_FIELD_NUMBER- See Also:
-
BACKUPDR_CONFIG_FIELD_NUMBER
public static final int BACKUPDR_CONFIG_FIELD_NUMBER- See Also:
-
EDITION_FIELD_NUMBER
public static final int EDITION_FIELD_NUMBER- See Also:
-
MAINTENANCE_INFO_FIELD_NUMBER
public static final int MAINTENANCE_INFO_FIELD_NUMBER- See Also:
-
AFFILIATIONS_FIELD_NUMBER
public static final int AFFILIATIONS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getChildResourcesList
List of children associated with a database group.
repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1;- Specified by:
getChildResourcesListin interfaceDatabaseResourceOrBuilder
-
getChildResourcesOrBuilderList
List of children associated with a database group.
repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1;- Specified by:
getChildResourcesOrBuilderListin interfaceDatabaseResourceOrBuilder
-
getChildResourcesCount
public int getChildResourcesCount()List of children associated with a database group.
repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1;- Specified by:
getChildResourcesCountin interfaceDatabaseResourceOrBuilder
-
getChildResources
List of children associated with a database group.
repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1;- Specified by:
getChildResourcesin interfaceDatabaseResourceOrBuilder
-
getChildResourcesOrBuilder
List of children associated with a database group.
repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1;- Specified by:
getChildResourcesOrBuilderin interfaceDatabaseResourceOrBuilder
-
getFullResourceName
The full resource name, based on CAIS resource name format https://cloud.google.com/asset-inventory/docs/resource-name-format Example: `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1` `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` `//spanner.googleapis.com/projects/project-number/instances/spanner-instance-1` `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1` `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1/instances/i1`
string full_resource_name = 3;- Specified by:
getFullResourceNamein interfaceDatabaseResourceOrBuilder- Returns:
- The fullResourceName.
-
getFullResourceNameBytes
public com.google.protobuf.ByteString getFullResourceNameBytes()The full resource name, based on CAIS resource name format https://cloud.google.com/asset-inventory/docs/resource-name-format Example: `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1` `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` `//spanner.googleapis.com/projects/project-number/instances/spanner-instance-1` `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1` `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1/instances/i1`
string full_resource_name = 3;- Specified by:
getFullResourceNameBytesin interfaceDatabaseResourceOrBuilder- Returns:
- The bytes for fullResourceName.
-
getContainer
Specifies where the resource is created. For Google Cloud resources, it is the full name of the project.
string container = 4;- Specified by:
getContainerin interfaceDatabaseResourceOrBuilder- Returns:
- The container.
-
getContainerBytes
public com.google.protobuf.ByteString getContainerBytes()Specifies where the resource is created. For Google Cloud resources, it is the full name of the project.
string container = 4;- Specified by:
getContainerBytesin interfaceDatabaseResourceOrBuilder- Returns:
- The bytes for container.
-
hasProduct
public boolean hasProduct()The product this resource represents.
.google.cloud.databasecenter.v1beta.Product product = 5;- Specified by:
hasProductin interfaceDatabaseResourceOrBuilder- Returns:
- Whether the product field is set.
-
getProduct
The product this resource represents.
.google.cloud.databasecenter.v1beta.Product product = 5;- Specified by:
getProductin interfaceDatabaseResourceOrBuilder- Returns:
- The product.
-
getProductOrBuilder
The product this resource represents.
.google.cloud.databasecenter.v1beta.Product product = 5;- Specified by:
getProductOrBuilderin interfaceDatabaseResourceOrBuilder
-
getLocation
The location of the resources. It supports returning only regional locations in Google Cloud. These are of the form: "us-central1", "us-east1", etc. See https://cloud.google.com/about/locations for a list of such regions.
string location = 6;- Specified by:
getLocationin interfaceDatabaseResourceOrBuilder- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.ByteString getLocationBytes()The location of the resources. It supports returning only regional locations in Google Cloud. These are of the form: "us-central1", "us-east1", etc. See https://cloud.google.com/about/locations for a list of such regions.
string location = 6;- Specified by:
getLocationBytesin interfaceDatabaseResourceOrBuilder- Returns:
- The bytes for location.
-
getLabelsList
Labels applied on the resource. The requirements for labels assigned to Google Cloud resources may be found at https://cloud.google.com/resource-manager/docs/labels-overview#requirements
repeated .google.cloud.databasecenter.v1beta.Label labels = 7;- Specified by:
getLabelsListin interfaceDatabaseResourceOrBuilder
-
getLabelsOrBuilderList
Labels applied on the resource. The requirements for labels assigned to Google Cloud resources may be found at https://cloud.google.com/resource-manager/docs/labels-overview#requirements
repeated .google.cloud.databasecenter.v1beta.Label labels = 7;- Specified by:
getLabelsOrBuilderListin interfaceDatabaseResourceOrBuilder
-
getLabelsCount
public int getLabelsCount()Labels applied on the resource. The requirements for labels assigned to Google Cloud resources may be found at https://cloud.google.com/resource-manager/docs/labels-overview#requirements
repeated .google.cloud.databasecenter.v1beta.Label labels = 7;- Specified by:
getLabelsCountin interfaceDatabaseResourceOrBuilder
-
getLabels
Labels applied on the resource. The requirements for labels assigned to Google Cloud resources may be found at https://cloud.google.com/resource-manager/docs/labels-overview#requirements
repeated .google.cloud.databasecenter.v1beta.Label labels = 7;- Specified by:
getLabelsin interfaceDatabaseResourceOrBuilder
-
getLabelsOrBuilder
Labels applied on the resource. The requirements for labels assigned to Google Cloud resources may be found at https://cloud.google.com/resource-manager/docs/labels-overview#requirements
repeated .google.cloud.databasecenter.v1beta.Label labels = 7;- Specified by:
getLabelsOrBuilderin interfaceDatabaseResourceOrBuilder
-
getTagsList
Tags applied on the resource. The requirements for tags assigned to Google Cloud resources may be found at https://cloud.google.com/resource-manager/docs/tags/tags-overview
repeated .google.cloud.databasecenter.v1beta.Tag tags = 16;- Specified by:
getTagsListin interfaceDatabaseResourceOrBuilder
-
getTagsOrBuilderList
Tags applied on the resource. The requirements for tags assigned to Google Cloud resources may be found at https://cloud.google.com/resource-manager/docs/tags/tags-overview
repeated .google.cloud.databasecenter.v1beta.Tag tags = 16;- Specified by:
getTagsOrBuilderListin interfaceDatabaseResourceOrBuilder
-
getTagsCount
public int getTagsCount()Tags applied on the resource. The requirements for tags assigned to Google Cloud resources may be found at https://cloud.google.com/resource-manager/docs/tags/tags-overview
repeated .google.cloud.databasecenter.v1beta.Tag tags = 16;- Specified by:
getTagsCountin interfaceDatabaseResourceOrBuilder
-
getTags
Tags applied on the resource. The requirements for tags assigned to Google Cloud resources may be found at https://cloud.google.com/resource-manager/docs/tags/tags-overview
repeated .google.cloud.databasecenter.v1beta.Tag tags = 16;- Specified by:
getTagsin interfaceDatabaseResourceOrBuilder
-
getTagsOrBuilder
Tags applied on the resource. The requirements for tags assigned to Google Cloud resources may be found at https://cloud.google.com/resource-manager/docs/tags/tags-overview
repeated .google.cloud.databasecenter.v1beta.Tag tags = 16;- Specified by:
getTagsOrBuilderin interfaceDatabaseResourceOrBuilder
-
getResourceType
The type of resource defined according to the pattern: {Service Name}/{Type}. Ex: sqladmin.googleapis.com/Instance alloydb.googleapis.com/Cluster alloydb.googleapis.com/Instance spanner.googleapis.com/Instancestring resource_type = 8;- Specified by:
getResourceTypein interfaceDatabaseResourceOrBuilder- Returns:
- The resourceType.
-
getResourceTypeBytes
public com.google.protobuf.ByteString getResourceTypeBytes()The type of resource defined according to the pattern: {Service Name}/{Type}. Ex: sqladmin.googleapis.com/Instance alloydb.googleapis.com/Cluster alloydb.googleapis.com/Instance spanner.googleapis.com/Instancestring resource_type = 8;- Specified by:
getResourceTypeBytesin interfaceDatabaseResourceOrBuilder- Returns:
- The bytes for resourceType.
-
getSubResourceTypeValue
public int getSubResourceTypeValue()Subtype of the resource specified at creation time.
.google.cloud.databasecenter.v1beta.SubResourceType sub_resource_type = 9;- Specified by:
getSubResourceTypeValuein interfaceDatabaseResourceOrBuilder- Returns:
- The enum numeric value on the wire for subResourceType.
-
getSubResourceType
Subtype of the resource specified at creation time.
.google.cloud.databasecenter.v1beta.SubResourceType sub_resource_type = 9;- Specified by:
getSubResourceTypein interfaceDatabaseResourceOrBuilder- Returns:
- The subResourceType.
-
hasMachineConfig
public boolean hasMachineConfig()Machine configuration like CPU, memory, etc for the resource.
.google.cloud.databasecenter.v1beta.MachineConfig machine_config = 12;- Specified by:
hasMachineConfigin interfaceDatabaseResourceOrBuilder- Returns:
- Whether the machineConfig field is set.
-
getMachineConfig
Machine configuration like CPU, memory, etc for the resource.
.google.cloud.databasecenter.v1beta.MachineConfig machine_config = 12;- Specified by:
getMachineConfigin interfaceDatabaseResourceOrBuilder- Returns:
- The machineConfig.
-
getMachineConfigOrBuilder
Machine configuration like CPU, memory, etc for the resource.
.google.cloud.databasecenter.v1beta.MachineConfig machine_config = 12;- Specified by:
getMachineConfigOrBuilderin interfaceDatabaseResourceOrBuilder
-
getSignalGroupsList
The list of signal groups and count of issues related to the resource. Only those signals which have been requested would be included.
repeated .google.cloud.databasecenter.v1beta.SignalGroup signal_groups = 10;- Specified by:
getSignalGroupsListin interfaceDatabaseResourceOrBuilder
-
getSignalGroupsOrBuilderList
The list of signal groups and count of issues related to the resource. Only those signals which have been requested would be included.
repeated .google.cloud.databasecenter.v1beta.SignalGroup signal_groups = 10;- Specified by:
getSignalGroupsOrBuilderListin interfaceDatabaseResourceOrBuilder
-
getSignalGroupsCount
public int getSignalGroupsCount()The list of signal groups and count of issues related to the resource. Only those signals which have been requested would be included.
repeated .google.cloud.databasecenter.v1beta.SignalGroup signal_groups = 10;- Specified by:
getSignalGroupsCountin interfaceDatabaseResourceOrBuilder
-
getSignalGroups
The list of signal groups and count of issues related to the resource. Only those signals which have been requested would be included.
repeated .google.cloud.databasecenter.v1beta.SignalGroup signal_groups = 10;- Specified by:
getSignalGroupsin interfaceDatabaseResourceOrBuilder
-
getSignalGroupsOrBuilder
The list of signal groups and count of issues related to the resource. Only those signals which have been requested would be included.
repeated .google.cloud.databasecenter.v1beta.SignalGroup signal_groups = 10;- Specified by:
getSignalGroupsOrBuilderin interfaceDatabaseResourceOrBuilder
-
hasMetrics
public boolean hasMetrics()Observable metrics for the resource e.g. CPU utilization, memory utilization, etc.
.google.cloud.databasecenter.v1beta.Metrics metrics = 13;- Specified by:
hasMetricsin interfaceDatabaseResourceOrBuilder- Returns:
- Whether the metrics field is set.
-
getMetrics
Observable metrics for the resource e.g. CPU utilization, memory utilization, etc.
.google.cloud.databasecenter.v1beta.Metrics metrics = 13;- Specified by:
getMetricsin interfaceDatabaseResourceOrBuilder- Returns:
- The metrics.
-
getMetricsOrBuilder
Observable metrics for the resource e.g. CPU utilization, memory utilization, etc.
.google.cloud.databasecenter.v1beta.Metrics metrics = 13;- Specified by:
getMetricsOrBuilderin interfaceDatabaseResourceOrBuilder
-
getResourceCategoryValue
public int getResourceCategoryValue()The category of the resource.
.google.cloud.databasecenter.v1beta.ResourceCategory resource_category = 14;- Specified by:
getResourceCategoryValuein interfaceDatabaseResourceOrBuilder- Returns:
- The enum numeric value on the wire for resourceCategory.
-
getResourceCategory
The category of the resource.
.google.cloud.databasecenter.v1beta.ResourceCategory resource_category = 14;- Specified by:
getResourceCategoryin interfaceDatabaseResourceOrBuilder- Returns:
- The resourceCategory.
-
getResourceName
The name of the resource(The last part of the full resource name). Example: For full resource name - `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1`, resource name - `mysql-1` For full resource name - `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` , resource name - `postgres-1` Note: In some cases, there might be more than one resource with the same resource name.
string resource_name = 15;- Specified by:
getResourceNamein interfaceDatabaseResourceOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()The name of the resource(The last part of the full resource name). Example: For full resource name - `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1`, resource name - `mysql-1` For full resource name - `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` , resource name - `postgres-1` Note: In some cases, there might be more than one resource with the same resource name.
string resource_name = 15;- Specified by:
getResourceNameBytesin interfaceDatabaseResourceOrBuilder- Returns:
- The bytes for resourceName.
-
hasBackupdrConfig
public boolean hasBackupdrConfig()Optional. Backup and disaster recovery details for the resource.
.google.cloud.databasecenter.v1beta.BackupDRConfig backupdr_config = 17 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasBackupdrConfigin interfaceDatabaseResourceOrBuilder- Returns:
- Whether the backupdrConfig field is set.
-
getBackupdrConfig
Optional. Backup and disaster recovery details for the resource.
.google.cloud.databasecenter.v1beta.BackupDRConfig backupdr_config = 17 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBackupdrConfigin interfaceDatabaseResourceOrBuilder- Returns:
- The backupdrConfig.
-
getBackupdrConfigOrBuilder
Optional. Backup and disaster recovery details for the resource.
.google.cloud.databasecenter.v1beta.BackupDRConfig backupdr_config = 17 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBackupdrConfigOrBuilderin interfaceDatabaseResourceOrBuilder
-
getEditionValue
public int getEditionValue()The edition of the resource.
.google.cloud.databasecenter.v1beta.Edition edition = 18;- Specified by:
getEditionValuein interfaceDatabaseResourceOrBuilder- Returns:
- The enum numeric value on the wire for edition.
-
getEdition
The edition of the resource.
.google.cloud.databasecenter.v1beta.Edition edition = 18;- Specified by:
getEditionin interfaceDatabaseResourceOrBuilder- Returns:
- The edition.
-
hasMaintenanceInfo
public boolean hasMaintenanceInfo()Optional. The maintenance information of the resource.
.google.cloud.databasecenter.v1beta.MaintenanceInfo maintenance_info = 19 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasMaintenanceInfoin interfaceDatabaseResourceOrBuilder- Returns:
- Whether the maintenanceInfo field is set.
-
getMaintenanceInfo
Optional. The maintenance information of the resource.
.google.cloud.databasecenter.v1beta.MaintenanceInfo maintenance_info = 19 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMaintenanceInfoin interfaceDatabaseResourceOrBuilder- Returns:
- The maintenanceInfo.
-
getMaintenanceInfoOrBuilder
Optional. The maintenance information of the resource.
.google.cloud.databasecenter.v1beta.MaintenanceInfo maintenance_info = 19 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMaintenanceInfoOrBuilderin interfaceDatabaseResourceOrBuilder
-
getAffiliationsList
Optional. Affiliation details of the resource.
repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAffiliationsListin interfaceDatabaseResourceOrBuilder
-
getAffiliationsOrBuilderList
Optional. Affiliation details of the resource.
repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAffiliationsOrBuilderListin interfaceDatabaseResourceOrBuilder
-
getAffiliationsCount
public int getAffiliationsCount()Optional. Affiliation details of the resource.
repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAffiliationsCountin interfaceDatabaseResourceOrBuilder
-
getAffiliations
Optional. Affiliation details of the resource.
repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAffiliationsin interfaceDatabaseResourceOrBuilder
-
getAffiliationsOrBuilder
Optional. Affiliation details of the resource.
repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAffiliationsOrBuilderin interfaceDatabaseResourceOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DatabaseResource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DatabaseResource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DatabaseResource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DatabaseResource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DatabaseResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DatabaseResource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static DatabaseResource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static DatabaseResource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static DatabaseResource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static DatabaseResource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DatabaseResource.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-