public static final class SubResource.Builder extends GeneratedMessage.Builder<SubResource.Builder> implements SubResourceOrBuilderSub resource details For Spanner/Bigtable instance certain data protection settings are at sub resource level like database/table. This message is used to capture such sub resource details.
Protobuf type google.cloud.databasecenter.v1beta.SubResource
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SubResource.BuilderImplements
SubResourceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public SubResource build()| Returns | |
|---|---|
| Type | Description |
SubResource |
|
buildPartial()
public SubResource buildPartial()| Returns | |
|---|---|
| Type | Description |
SubResource |
|
clear()
public SubResource.Builder clear()| Returns | |
|---|---|
| Type | Description |
SubResource.Builder |
|
clearContainer()
public SubResource.Builder clearContainer()Specifies where the resource is created. For GCP, it is the full name of the project.
string container = 4;
| Returns | |
|---|---|
| Type | Description |
SubResource.Builder |
This builder for chaining. |
clearFullResourceName()
public SubResource.Builder clearFullResourceName()Optional. Resource name associated with the sub resource where backup settings are configured. E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1" for Spanner where backup retention is configured on database within an instance OPTIONAL
string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SubResource.Builder |
This builder for chaining. |
clearProduct()
public SubResource.Builder clearProduct() Optional. Product information associated with the sub resource where
backup retention settings are configured.
e.g.
<code><code>
product: {
type : PRODUCT_TYPE_SPANNER
engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT
}
</code></code>
for Spanner where backup is configured on database within
an instance
OPTIONAL
.google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SubResource.Builder |
|
clearResourceType()
public SubResource.Builder clearResourceType()Optional. Resource type associated with the sub resource where backup settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner where backup retention is configured on database within an instance OPTIONAL
string resource_type = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SubResource.Builder |
This builder for chaining. |
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 SubResource getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SubResource |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getFullResourceName()
public String getFullResourceName()Optional. Resource name associated with the sub resource where backup settings are configured. E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1" for Spanner where backup retention is configured on database within an instance OPTIONAL
string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The fullResourceName. |
getFullResourceNameBytes()
public ByteString getFullResourceNameBytes()Optional. Resource name associated with the sub resource where backup settings are configured. E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1" for Spanner where backup retention is configured on database within an instance OPTIONAL
string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for fullResourceName. |
getProduct()
public Product getProduct() Optional. Product information associated with the sub resource where
backup retention settings are configured.
e.g.
<code><code>
product: {
type : PRODUCT_TYPE_SPANNER
engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT
}
</code></code>
for Spanner where backup is configured on database within
an instance
OPTIONAL
.google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Product |
The product. |
getProductBuilder()
public Product.Builder getProductBuilder() Optional. Product information associated with the sub resource where
backup retention settings are configured.
e.g.
<code><code>
product: {
type : PRODUCT_TYPE_SPANNER
engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT
}
</code></code>
for Spanner where backup is configured on database within
an instance
OPTIONAL
.google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Product.Builder |
|
getProductOrBuilder()
public ProductOrBuilder getProductOrBuilder() Optional. Product information associated with the sub resource where
backup retention settings are configured.
e.g.
<code><code>
product: {
type : PRODUCT_TYPE_SPANNER
engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT
}
</code></code>
for Spanner where backup is configured on database within
an instance
OPTIONAL
.google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProductOrBuilder |
|
getResourceType()
public String getResourceType()Optional. Resource type associated with the sub resource where backup settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner where backup retention is configured on database within an instance OPTIONAL
string resource_type = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The resourceType. |
getResourceTypeBytes()
public ByteString getResourceTypeBytes()Optional. Resource type associated with the sub resource where backup settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner where backup retention is configured on database within an instance OPTIONAL
string resource_type = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for resourceType. |
hasProduct()
public boolean hasProduct() Optional. Product information associated with the sub resource where
backup retention settings are configured.
e.g.
<code><code>
product: {
type : PRODUCT_TYPE_SPANNER
engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT
}
</code></code>
for Spanner where backup is configured on database within
an instance
OPTIONAL
.google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL];
| 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 |
|
mergeFrom(SubResource other)
public SubResource.Builder mergeFrom(SubResource other)| Parameter | |
|---|---|
| Name | Description |
other |
SubResource |
| Returns | |
|---|---|
| Type | Description |
SubResource.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SubResource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SubResource.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SubResource.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SubResource.Builder |
|
mergeProduct(Product value)
public SubResource.Builder mergeProduct(Product value) Optional. Product information associated with the sub resource where
backup retention settings are configured.
e.g.
<code><code>
product: {
type : PRODUCT_TYPE_SPANNER
engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT
}
</code></code>
for Spanner where backup is configured on database within
an instance
OPTIONAL
.google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Product |
| Returns | |
|---|---|
| Type | Description |
SubResource.Builder |
|
setContainer(String value)
public SubResource.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 |
SubResource.Builder |
This builder for chaining. |
setContainerBytes(ByteString value)
public SubResource.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 |
SubResource.Builder |
This builder for chaining. |
setFullResourceName(String value)
public SubResource.Builder setFullResourceName(String value)Optional. Resource name associated with the sub resource where backup settings are configured. E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1" for Spanner where backup retention is configured on database within an instance OPTIONAL
string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe fullResourceName to set. |
| Returns | |
|---|---|
| Type | Description |
SubResource.Builder |
This builder for chaining. |
setFullResourceNameBytes(ByteString value)
public SubResource.Builder setFullResourceNameBytes(ByteString value)Optional. Resource name associated with the sub resource where backup settings are configured. E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1" for Spanner where backup retention is configured on database within an instance OPTIONAL
string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for fullResourceName to set. |
| Returns | |
|---|---|
| Type | Description |
SubResource.Builder |
This builder for chaining. |
setProduct(Product value)
public SubResource.Builder setProduct(Product value) Optional. Product information associated with the sub resource where
backup retention settings are configured.
e.g.
<code><code>
product: {
type : PRODUCT_TYPE_SPANNER
engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT
}
</code></code>
for Spanner where backup is configured on database within
an instance
OPTIONAL
.google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Product |
| Returns | |
|---|---|
| Type | Description |
SubResource.Builder |
|
setProduct(Product.Builder builderForValue)
public SubResource.Builder setProduct(Product.Builder builderForValue) Optional. Product information associated with the sub resource where
backup retention settings are configured.
e.g.
<code><code>
product: {
type : PRODUCT_TYPE_SPANNER
engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT
}
</code></code>
for Spanner where backup is configured on database within
an instance
OPTIONAL
.google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Product.Builder |
| Returns | |
|---|---|
| Type | Description |
SubResource.Builder |
|
setResourceType(String value)
public SubResource.Builder setResourceType(String value)Optional. Resource type associated with the sub resource where backup settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner where backup retention is configured on database within an instance OPTIONAL
string resource_type = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe resourceType to set. |
| Returns | |
|---|---|
| Type | Description |
SubResource.Builder |
This builder for chaining. |
setResourceTypeBytes(ByteString value)
public SubResource.Builder setResourceTypeBytes(ByteString value)Optional. Resource type associated with the sub resource where backup settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner where backup retention is configured on database within an instance OPTIONAL
string resource_type = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for resourceType to set. |
| Returns | |
|---|---|
| Type | Description |
SubResource.Builder |
This builder for chaining. |