public static final class DatabaseResource.Builder extends GeneratedMessage.Builder<DatabaseResource.Builder> implements DatabaseResourceOrBuilderDatabaseResource represents every individually configured database unit representing compute and/or storage. NextId: 20
Protobuf type google.cloud.databasecenter.v1beta.DatabaseResource
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DatabaseResource.BuilderImplements
DatabaseResourceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllChildResources(Iterable<? extends DatabaseResource> values)
public DatabaseResource.Builder addAllChildResources(Iterable<? extends DatabaseResource> values)List of children associated with a database group.
repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.databasecenter.v1beta.DatabaseResource> |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
addAllLabels(Iterable<? extends Label> values)
public DatabaseResource.Builder addAllLabels(Iterable<? extends Label> values)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;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.databasecenter.v1beta.Label> |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
addAllSignalGroups(Iterable<? extends SignalGroup> values)
public DatabaseResource.Builder addAllSignalGroups(Iterable<? extends SignalGroup> values)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;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.databasecenter.v1beta.SignalGroup> |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
addAllTags(Iterable<? extends Tag> values)
public DatabaseResource.Builder addAllTags(Iterable<? extends Tag> values)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;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.databasecenter.v1beta.Tag> |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
addChildResources(DatabaseResource value)
public DatabaseResource.Builder addChildResources(DatabaseResource value)List of children associated with a database group.
repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
DatabaseResource |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
addChildResources(DatabaseResource.Builder builderForValue)
public DatabaseResource.Builder addChildResources(DatabaseResource.Builder builderForValue)List of children associated with a database group.
repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
DatabaseResource.Builder |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
addChildResources(int index, DatabaseResource value)
public DatabaseResource.Builder addChildResources(int index, DatabaseResource value)List of children associated with a database group.
repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
DatabaseResource |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
addChildResources(int index, DatabaseResource.Builder builderForValue)
public DatabaseResource.Builder addChildResources(int index, DatabaseResource.Builder builderForValue)List of children associated with a database group.
repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
DatabaseResource.Builder |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
addChildResourcesBuilder()
public DatabaseResource.Builder addChildResourcesBuilder()List of children associated with a database group.
repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1;
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
addChildResourcesBuilder(int index)
public DatabaseResource.Builder addChildResourcesBuilder(int index)List of children associated with a database group.
repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
addLabels(Label value)
public DatabaseResource.Builder addLabels(Label value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
Label |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
addLabels(Label.Builder builderForValue)
public DatabaseResource.Builder addLabels(Label.Builder builderForValue)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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Label.Builder |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
addLabels(int index, Label value)
public DatabaseResource.Builder addLabels(int index, Label value)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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Label |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
addLabels(int index, Label.Builder builderForValue)
public DatabaseResource.Builder addLabels(int index, Label.Builder builderForValue)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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Label.Builder |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
addLabelsBuilder()
public Label.Builder addLabelsBuilder()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;
| Returns | |
|---|---|
| Type | Description |
Label.Builder |
|
addLabelsBuilder(int index)
public Label.Builder addLabelsBuilder(int index)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;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Label.Builder |
|
addSignalGroups(SignalGroup value)
public DatabaseResource.Builder addSignalGroups(SignalGroup value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
SignalGroup |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
addSignalGroups(SignalGroup.Builder builderForValue)
public DatabaseResource.Builder addSignalGroups(SignalGroup.Builder builderForValue)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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
SignalGroup.Builder |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
addSignalGroups(int index, SignalGroup value)
public DatabaseResource.Builder addSignalGroups(int index, SignalGroup value)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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
SignalGroup |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
addSignalGroups(int index, SignalGroup.Builder builderForValue)
public DatabaseResource.Builder addSignalGroups(int index, SignalGroup.Builder builderForValue)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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
SignalGroup.Builder |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
addSignalGroupsBuilder()
public SignalGroup.Builder addSignalGroupsBuilder()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;
| Returns | |
|---|---|
| Type | Description |
SignalGroup.Builder |
|
addSignalGroupsBuilder(int index)
public SignalGroup.Builder addSignalGroupsBuilder(int index)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;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SignalGroup.Builder |
|
addTags(Tag value)
public DatabaseResource.Builder addTags(Tag value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
Tag |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
addTags(Tag.Builder builderForValue)
public DatabaseResource.Builder addTags(Tag.Builder builderForValue)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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Tag.Builder |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
addTags(int index, Tag value)
public DatabaseResource.Builder addTags(int index, Tag value)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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Tag |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
addTags(int index, Tag.Builder builderForValue)
public DatabaseResource.Builder addTags(int index, Tag.Builder builderForValue)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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Tag.Builder |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
addTagsBuilder()
public Tag.Builder addTagsBuilder()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;
| Returns | |
|---|---|
| Type | Description |
Tag.Builder |
|
addTagsBuilder(int index)
public Tag.Builder addTagsBuilder(int index)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;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Tag.Builder |
|
build()
public DatabaseResource build()| Returns | |
|---|---|
| Type | Description |
DatabaseResource |
|
buildPartial()
public DatabaseResource buildPartial()| Returns | |
|---|---|
| Type | Description |
DatabaseResource |
|
clear()
public DatabaseResource.Builder clear()| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
clearBackupdrConfig()
public DatabaseResource.Builder clearBackupdrConfig()Optional. Backup and disaster recovery details for the resource.
.google.cloud.databasecenter.v1beta.BackupDRConfig backupdr_config = 17 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
clearChildResources()
public DatabaseResource.Builder clearChildResources()List of children associated with a database group.
repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1;
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
clearContainer()
public DatabaseResource.Builder clearContainer()Specifies where the resource is created. For GCP, it is the full name of the project.
string container = 4;
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
This builder for chaining. |
clearEdition()
public DatabaseResource.Builder clearEdition()The edition of the resource.
.google.cloud.databasecenter.v1beta.Edition edition = 18;
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
This builder for chaining. |
clearFullResourceName()
public DatabaseResource.Builder clearFullResourceName()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;
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
This builder for chaining. |
clearLabels()
public DatabaseResource.Builder clearLabels()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;
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
clearLocation()
public DatabaseResource.Builder clearLocation()The location of the resources. It supports returning only regional locations in GCP. 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;
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
This builder for chaining. |
clearMachineConfig()
public DatabaseResource.Builder clearMachineConfig()Machine configuration like CPU, memory, etc for the resource.
.google.cloud.databasecenter.v1beta.MachineConfig machine_config = 12;
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
clearMaintenanceInfo()
public DatabaseResource.Builder clearMaintenanceInfo()Optional. The maintenance information of the resource.
.google.cloud.databasecenter.v1beta.MaintenanceInfo maintenance_info = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
clearMetrics()
public DatabaseResource.Builder clearMetrics()Observable metrics for the resource e.g. CPU utilization, memory utilization, etc.
.google.cloud.databasecenter.v1beta.Metrics metrics = 13;
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
clearProduct()
public DatabaseResource.Builder clearProduct()The product this resource represents.
.google.cloud.databasecenter.v1beta.Product product = 5;
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
clearResourceCategory()
public DatabaseResource.Builder clearResourceCategory()The category of the resource.
.google.cloud.databasecenter.v1beta.ResourceCategory resource_category = 14;
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
This builder for chaining. |
clearResourceName()
public DatabaseResource.Builder clearResourceName() 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;
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
This builder for chaining. |
clearResourceType()
public DatabaseResource.Builder clearResourceType()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/Instance
string resource_type = 8;
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
This builder for chaining. |
clearSignalGroups()
public DatabaseResource.Builder clearSignalGroups()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;
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
clearSubResourceType()
public DatabaseResource.Builder clearSubResourceType()Subtype of the resource specified at creation time.
.google.cloud.databasecenter.v1beta.SubResourceType sub_resource_type = 9;
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
This builder for chaining. |
clearTags()
public DatabaseResource.Builder clearTags()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;
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
getBackupdrConfig()
public BackupDRConfig getBackupdrConfig()Optional. Backup and disaster recovery details for the resource.
.google.cloud.databasecenter.v1beta.BackupDRConfig backupdr_config = 17 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BackupDRConfig |
The backupdrConfig. |
getBackupdrConfigBuilder()
public BackupDRConfig.Builder getBackupdrConfigBuilder()Optional. Backup and disaster recovery details for the resource.
.google.cloud.databasecenter.v1beta.BackupDRConfig backupdr_config = 17 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BackupDRConfig.Builder |
|
getBackupdrConfigOrBuilder()
public BackupDRConfigOrBuilder getBackupdrConfigOrBuilder()Optional. Backup and disaster recovery details for the resource.
.google.cloud.databasecenter.v1beta.BackupDRConfig backupdr_config = 17 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BackupDRConfigOrBuilder |
|
getChildResources(int index)
public DatabaseResource getChildResources(int index)List of children associated with a database group.
repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource |
|
getChildResourcesBuilder(int index)
public DatabaseResource.Builder getChildResourcesBuilder(int index)List of children associated with a database group.
repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
getChildResourcesBuilderList()
public List<DatabaseResource.Builder> getChildResourcesBuilderList()List of children associated with a database group.
repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getChildResourcesCount()
public int getChildResourcesCount()List of children associated with a database group.
repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1;
| Returns | |
|---|---|
| Type | Description |
int |
|
getChildResourcesList()
public List<DatabaseResource> getChildResourcesList()List of children associated with a database group.
repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1;
| Returns | |
|---|---|
| Type | Description |
List<DatabaseResource> |
|
getChildResourcesOrBuilder(int index)
public DatabaseResourceOrBuilder getChildResourcesOrBuilder(int index)List of children associated with a database group.
repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DatabaseResourceOrBuilder |
|
getChildResourcesOrBuilderList()
public List<? extends DatabaseResourceOrBuilder> getChildResourcesOrBuilderList()List of children associated with a database group.
repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.databasecenter.v1beta.DatabaseResourceOrBuilder> |
|
getContainer()
public String getContainer()Specifies where the resource is created. For GCP, it is the full name of the project.
string container = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The container. |
getContainerBytes()
public ByteString getContainerBytes()Specifies where the resource is created. For GCP, it is the full name of the project.
string container = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for container. |
getDefaultInstanceForType()
public DatabaseResource getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DatabaseResource |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEdition()
public Edition getEdition()The edition of the resource.
.google.cloud.databasecenter.v1beta.Edition edition = 18;
| Returns | |
|---|---|
| Type | Description |
Edition |
The edition. |
getEditionValue()
public int getEditionValue()The edition of the resource.
.google.cloud.databasecenter.v1beta.Edition edition = 18;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for edition. |
getFullResourceName()
public String 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;
| Returns | |
|---|---|
| Type | Description |
String |
The fullResourceName. |
getFullResourceNameBytes()
public 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;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for fullResourceName. |
getLabels(int index)
public Label getLabels(int index)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;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Label |
|
getLabelsBuilder(int index)
public Label.Builder getLabelsBuilder(int index)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;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Label.Builder |
|
getLabelsBuilderList()
public List<Label.Builder> getLabelsBuilderList()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;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
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;
| Returns | |
|---|---|
| Type | Description |
int |
|
getLabelsList()
public List<Label> 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;
| Returns | |
|---|---|
| Type | Description |
List<Label> |
|
getLabelsOrBuilder(int index)
public LabelOrBuilder getLabelsOrBuilder(int index)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;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
LabelOrBuilder |
|
getLabelsOrBuilderList()
public List<? extends LabelOrBuilder> 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;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.databasecenter.v1beta.LabelOrBuilder> |
|
getLocation()
public String getLocation()The location of the resources. It supports returning only regional locations in GCP. 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;
| Returns | |
|---|---|
| Type | Description |
String |
The location. |
getLocationBytes()
public ByteString getLocationBytes()The location of the resources. It supports returning only regional locations in GCP. 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;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for location. |
getMachineConfig()
public MachineConfig getMachineConfig()Machine configuration like CPU, memory, etc for the resource.
.google.cloud.databasecenter.v1beta.MachineConfig machine_config = 12;
| Returns | |
|---|---|
| Type | Description |
MachineConfig |
The machineConfig. |
getMachineConfigBuilder()
public MachineConfig.Builder getMachineConfigBuilder()Machine configuration like CPU, memory, etc for the resource.
.google.cloud.databasecenter.v1beta.MachineConfig machine_config = 12;
| Returns | |
|---|---|
| Type | Description |
MachineConfig.Builder |
|
getMachineConfigOrBuilder()
public MachineConfigOrBuilder getMachineConfigOrBuilder()Machine configuration like CPU, memory, etc for the resource.
.google.cloud.databasecenter.v1beta.MachineConfig machine_config = 12;
| Returns | |
|---|---|
| Type | Description |
MachineConfigOrBuilder |
|
getMaintenanceInfo()
public MaintenanceInfo getMaintenanceInfo()Optional. The maintenance information of the resource.
.google.cloud.databasecenter.v1beta.MaintenanceInfo maintenance_info = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo |
The maintenanceInfo. |
getMaintenanceInfoBuilder()
public MaintenanceInfo.Builder getMaintenanceInfoBuilder()Optional. The maintenance information of the resource.
.google.cloud.databasecenter.v1beta.MaintenanceInfo maintenance_info = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
|
getMaintenanceInfoOrBuilder()
public MaintenanceInfoOrBuilder getMaintenanceInfoOrBuilder()Optional. The maintenance information of the resource.
.google.cloud.databasecenter.v1beta.MaintenanceInfo maintenance_info = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfoOrBuilder |
|
getMetrics()
public Metrics getMetrics()Observable metrics for the resource e.g. CPU utilization, memory utilization, etc.
.google.cloud.databasecenter.v1beta.Metrics metrics = 13;
| Returns | |
|---|---|
| Type | Description |
Metrics |
The metrics. |
getMetricsBuilder()
public Metrics.Builder getMetricsBuilder()Observable metrics for the resource e.g. CPU utilization, memory utilization, etc.
.google.cloud.databasecenter.v1beta.Metrics metrics = 13;
| Returns | |
|---|---|
| Type | Description |
Metrics.Builder |
|
getMetricsOrBuilder()
public MetricsOrBuilder getMetricsOrBuilder()Observable metrics for the resource e.g. CPU utilization, memory utilization, etc.
.google.cloud.databasecenter.v1beta.Metrics metrics = 13;
| Returns | |
|---|---|
| Type | Description |
MetricsOrBuilder |
|
getProduct()
public Product getProduct()The product this resource represents.
.google.cloud.databasecenter.v1beta.Product product = 5;
| Returns | |
|---|---|
| Type | Description |
Product |
The product. |
getProductBuilder()
public Product.Builder getProductBuilder()The product this resource represents.
.google.cloud.databasecenter.v1beta.Product product = 5;
| Returns | |
|---|---|
| Type | Description |
Product.Builder |
|
getProductOrBuilder()
public ProductOrBuilder getProductOrBuilder()The product this resource represents.
.google.cloud.databasecenter.v1beta.Product product = 5;
| Returns | |
|---|---|
| Type | Description |
ProductOrBuilder |
|
getResourceCategory()
public ResourceCategory getResourceCategory()The category of the resource.
.google.cloud.databasecenter.v1beta.ResourceCategory resource_category = 14;
| Returns | |
|---|---|
| Type | Description |
ResourceCategory |
The resourceCategory. |
getResourceCategoryValue()
public int getResourceCategoryValue()The category of the resource.
.google.cloud.databasecenter.v1beta.ResourceCategory resource_category = 14;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for resourceCategory. |
getResourceName()
public String 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;
| Returns | |
|---|---|
| Type | Description |
String |
The resourceName. |
getResourceNameBytes()
public 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;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for resourceName. |
getResourceType()
public String 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/Instance
string resource_type = 8;
| Returns | |
|---|---|
| Type | Description |
String |
The resourceType. |
getResourceTypeBytes()
public 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/Instance
string resource_type = 8;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for resourceType. |
getSignalGroups(int index)
public SignalGroup getSignalGroups(int index)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;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SignalGroup |
|
getSignalGroupsBuilder(int index)
public SignalGroup.Builder getSignalGroupsBuilder(int index)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;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SignalGroup.Builder |
|
getSignalGroupsBuilderList()
public List<SignalGroup.Builder> getSignalGroupsBuilderList()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;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
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;
| Returns | |
|---|---|
| Type | Description |
int |
|
getSignalGroupsList()
public List<SignalGroup> 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;
| Returns | |
|---|---|
| Type | Description |
List<SignalGroup> |
|
getSignalGroupsOrBuilder(int index)
public SignalGroupOrBuilder getSignalGroupsOrBuilder(int index)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;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SignalGroupOrBuilder |
|
getSignalGroupsOrBuilderList()
public List<? extends SignalGroupOrBuilder> 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;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.databasecenter.v1beta.SignalGroupOrBuilder> |
|
getSubResourceType()
public SubResourceType getSubResourceType()Subtype of the resource specified at creation time.
.google.cloud.databasecenter.v1beta.SubResourceType sub_resource_type = 9;
| Returns | |
|---|---|
| Type | Description |
SubResourceType |
The subResourceType. |
getSubResourceTypeValue()
public int getSubResourceTypeValue()Subtype of the resource specified at creation time.
.google.cloud.databasecenter.v1beta.SubResourceType sub_resource_type = 9;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for subResourceType. |
getTags(int index)
public Tag getTags(int index)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;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Tag |
|
getTagsBuilder(int index)
public Tag.Builder getTagsBuilder(int index)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;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Tag.Builder |
|
getTagsBuilderList()
public List<Tag.Builder> getTagsBuilderList()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;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
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;
| Returns | |
|---|---|
| Type | Description |
int |
|
getTagsList()
public List<Tag> 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;
| Returns | |
|---|---|
| Type | Description |
List<Tag> |
|
getTagsOrBuilder(int index)
public TagOrBuilder getTagsOrBuilder(int index)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;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
TagOrBuilder |
|
getTagsOrBuilderList()
public List<? extends TagOrBuilder> 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;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.databasecenter.v1beta.TagOrBuilder> |
|
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];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the backupdrConfig field is set. |
hasMachineConfig()
public boolean hasMachineConfig()Machine configuration like CPU, memory, etc for the resource.
.google.cloud.databasecenter.v1beta.MachineConfig machine_config = 12;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the machineConfig field is set. |
hasMaintenanceInfo()
public boolean hasMaintenanceInfo()Optional. The maintenance information of the resource.
.google.cloud.databasecenter.v1beta.MaintenanceInfo maintenance_info = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the maintenanceInfo field is set. |
hasMetrics()
public boolean hasMetrics()Observable metrics for the resource e.g. CPU utilization, memory utilization, etc.
.google.cloud.databasecenter.v1beta.Metrics metrics = 13;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the metrics field is set. |
hasProduct()
public boolean hasProduct()The product this resource represents.
.google.cloud.databasecenter.v1beta.Product product = 5;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the product field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeBackupdrConfig(BackupDRConfig value)
public DatabaseResource.Builder mergeBackupdrConfig(BackupDRConfig value)Optional. Backup and disaster recovery details for the resource.
.google.cloud.databasecenter.v1beta.BackupDRConfig backupdr_config = 17 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
BackupDRConfig |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
mergeFrom(DatabaseResource other)
public DatabaseResource.Builder mergeFrom(DatabaseResource other)| Parameter | |
|---|---|
| Name | Description |
other |
DatabaseResource |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DatabaseResource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DatabaseResource.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
mergeMachineConfig(MachineConfig value)
public DatabaseResource.Builder mergeMachineConfig(MachineConfig value)Machine configuration like CPU, memory, etc for the resource.
.google.cloud.databasecenter.v1beta.MachineConfig machine_config = 12;
| Parameter | |
|---|---|
| Name | Description |
value |
MachineConfig |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
mergeMaintenanceInfo(MaintenanceInfo value)
public DatabaseResource.Builder mergeMaintenanceInfo(MaintenanceInfo value)Optional. The maintenance information of the resource.
.google.cloud.databasecenter.v1beta.MaintenanceInfo maintenance_info = 19 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
MaintenanceInfo |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
mergeMetrics(Metrics value)
public DatabaseResource.Builder mergeMetrics(Metrics value)Observable metrics for the resource e.g. CPU utilization, memory utilization, etc.
.google.cloud.databasecenter.v1beta.Metrics metrics = 13;
| Parameter | |
|---|---|
| Name | Description |
value |
Metrics |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
mergeProduct(Product value)
public DatabaseResource.Builder mergeProduct(Product value)The product this resource represents.
.google.cloud.databasecenter.v1beta.Product product = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
Product |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
removeChildResources(int index)
public DatabaseResource.Builder removeChildResources(int index)List of children associated with a database group.
repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
removeLabels(int index)
public DatabaseResource.Builder removeLabels(int index)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;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
removeSignalGroups(int index)
public DatabaseResource.Builder removeSignalGroups(int index)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;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
removeTags(int index)
public DatabaseResource.Builder removeTags(int index)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;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
setBackupdrConfig(BackupDRConfig value)
public DatabaseResource.Builder setBackupdrConfig(BackupDRConfig value)Optional. Backup and disaster recovery details for the resource.
.google.cloud.databasecenter.v1beta.BackupDRConfig backupdr_config = 17 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
BackupDRConfig |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
setBackupdrConfig(BackupDRConfig.Builder builderForValue)
public DatabaseResource.Builder setBackupdrConfig(BackupDRConfig.Builder builderForValue)Optional. Backup and disaster recovery details for the resource.
.google.cloud.databasecenter.v1beta.BackupDRConfig backupdr_config = 17 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
BackupDRConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
setChildResources(int index, DatabaseResource value)
public DatabaseResource.Builder setChildResources(int index, DatabaseResource value)List of children associated with a database group.
repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
DatabaseResource |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
setChildResources(int index, DatabaseResource.Builder builderForValue)
public DatabaseResource.Builder setChildResources(int index, DatabaseResource.Builder builderForValue)List of children associated with a database group.
repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
DatabaseResource.Builder |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
setContainer(String value)
public DatabaseResource.Builder setContainer(String value)Specifies where the resource is created. For GCP, it is the full name of the project.
string container = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe container to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
This builder for chaining. |
setContainerBytes(ByteString value)
public DatabaseResource.Builder setContainerBytes(ByteString value)Specifies where the resource is created. For GCP, it is the full name of the project.
string container = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for container to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
This builder for chaining. |
setEdition(Edition value)
public DatabaseResource.Builder setEdition(Edition value)The edition of the resource.
.google.cloud.databasecenter.v1beta.Edition edition = 18;
| Parameter | |
|---|---|
| Name | Description |
value |
EditionThe edition to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
This builder for chaining. |
setEditionValue(int value)
public DatabaseResource.Builder setEditionValue(int value)The edition of the resource.
.google.cloud.databasecenter.v1beta.Edition edition = 18;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for edition to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
This builder for chaining. |
setFullResourceName(String value)
public DatabaseResource.Builder setFullResourceName(String value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe fullResourceName to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
This builder for chaining. |
setFullResourceNameBytes(ByteString value)
public DatabaseResource.Builder setFullResourceNameBytes(ByteString value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for fullResourceName to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
This builder for chaining. |
setLabels(int index, Label value)
public DatabaseResource.Builder setLabels(int index, Label value)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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Label |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
setLabels(int index, Label.Builder builderForValue)
public DatabaseResource.Builder setLabels(int index, Label.Builder builderForValue)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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Label.Builder |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
setLocation(String value)
public DatabaseResource.Builder setLocation(String value)The location of the resources. It supports returning only regional locations in GCP. 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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe location to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
This builder for chaining. |
setLocationBytes(ByteString value)
public DatabaseResource.Builder setLocationBytes(ByteString value)The location of the resources. It supports returning only regional locations in GCP. 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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for location to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
This builder for chaining. |
setMachineConfig(MachineConfig value)
public DatabaseResource.Builder setMachineConfig(MachineConfig value)Machine configuration like CPU, memory, etc for the resource.
.google.cloud.databasecenter.v1beta.MachineConfig machine_config = 12;
| Parameter | |
|---|---|
| Name | Description |
value |
MachineConfig |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
setMachineConfig(MachineConfig.Builder builderForValue)
public DatabaseResource.Builder setMachineConfig(MachineConfig.Builder builderForValue)Machine configuration like CPU, memory, etc for the resource.
.google.cloud.databasecenter.v1beta.MachineConfig machine_config = 12;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
MachineConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
setMaintenanceInfo(MaintenanceInfo value)
public DatabaseResource.Builder setMaintenanceInfo(MaintenanceInfo value)Optional. The maintenance information of the resource.
.google.cloud.databasecenter.v1beta.MaintenanceInfo maintenance_info = 19 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
MaintenanceInfo |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
setMaintenanceInfo(MaintenanceInfo.Builder builderForValue)
public DatabaseResource.Builder setMaintenanceInfo(MaintenanceInfo.Builder builderForValue)Optional. The maintenance information of the resource.
.google.cloud.databasecenter.v1beta.MaintenanceInfo maintenance_info = 19 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
MaintenanceInfo.Builder |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
setMetrics(Metrics value)
public DatabaseResource.Builder setMetrics(Metrics value)Observable metrics for the resource e.g. CPU utilization, memory utilization, etc.
.google.cloud.databasecenter.v1beta.Metrics metrics = 13;
| Parameter | |
|---|---|
| Name | Description |
value |
Metrics |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
setMetrics(Metrics.Builder builderForValue)
public DatabaseResource.Builder setMetrics(Metrics.Builder builderForValue)Observable metrics for the resource e.g. CPU utilization, memory utilization, etc.
.google.cloud.databasecenter.v1beta.Metrics metrics = 13;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Metrics.Builder |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
setProduct(Product value)
public DatabaseResource.Builder setProduct(Product value)The product this resource represents.
.google.cloud.databasecenter.v1beta.Product product = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
Product |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
setProduct(Product.Builder builderForValue)
public DatabaseResource.Builder setProduct(Product.Builder builderForValue)The product this resource represents.
.google.cloud.databasecenter.v1beta.Product product = 5;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Product.Builder |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
setResourceCategory(ResourceCategory value)
public DatabaseResource.Builder setResourceCategory(ResourceCategory value)The category of the resource.
.google.cloud.databasecenter.v1beta.ResourceCategory resource_category = 14;
| Parameter | |
|---|---|
| Name | Description |
value |
ResourceCategoryThe resourceCategory to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
This builder for chaining. |
setResourceCategoryValue(int value)
public DatabaseResource.Builder setResourceCategoryValue(int value)The category of the resource.
.google.cloud.databasecenter.v1beta.ResourceCategory resource_category = 14;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for resourceCategory to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
This builder for chaining. |
setResourceName(String value)
public DatabaseResource.Builder setResourceName(String value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe resourceName to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
This builder for chaining. |
setResourceNameBytes(ByteString value)
public DatabaseResource.Builder setResourceNameBytes(ByteString value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for resourceName to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
This builder for chaining. |
setResourceType(String value)
public DatabaseResource.Builder setResourceType(String value)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/Instance
string resource_type = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe resourceType to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
This builder for chaining. |
setResourceTypeBytes(ByteString value)
public DatabaseResource.Builder setResourceTypeBytes(ByteString value)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/Instance
string resource_type = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for resourceType to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
This builder for chaining. |
setSignalGroups(int index, SignalGroup value)
public DatabaseResource.Builder setSignalGroups(int index, SignalGroup value)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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
SignalGroup |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
setSignalGroups(int index, SignalGroup.Builder builderForValue)
public DatabaseResource.Builder setSignalGroups(int index, SignalGroup.Builder builderForValue)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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
SignalGroup.Builder |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
setSubResourceType(SubResourceType value)
public DatabaseResource.Builder setSubResourceType(SubResourceType value)Subtype of the resource specified at creation time.
.google.cloud.databasecenter.v1beta.SubResourceType sub_resource_type = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
SubResourceTypeThe subResourceType to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
This builder for chaining. |
setSubResourceTypeValue(int value)
public DatabaseResource.Builder setSubResourceTypeValue(int value)Subtype of the resource specified at creation time.
.google.cloud.databasecenter.v1beta.SubResourceType sub_resource_type = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for subResourceType to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
This builder for chaining. |
setTags(int index, Tag value)
public DatabaseResource.Builder setTags(int index, Tag value)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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Tag |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|
setTags(int index, Tag.Builder builderForValue)
public DatabaseResource.Builder setTags(int index, Tag.Builder builderForValue)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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Tag.Builder |
| Returns | |
|---|---|
| Type | Description |
DatabaseResource.Builder |
|