Class SubResource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SubResource.Builder>
com.google.cloud.databasecenter.v1beta.SubResource.Builder
- All Implemented Interfaces:
SubResourceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SubResource
public static final class SubResource.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SubResource.Builder>
implements SubResourceOrBuilder
Sub 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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Specifies where the resource is created.Optional.Optional.Optional.Specifies where the resource is created.com.google.protobuf.ByteStringSpecifies where the resource is created.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Optional.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SubResource other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeProduct(Product value) Optional.setContainer(String value) Specifies where the resource is created.setContainerBytes(com.google.protobuf.ByteString value) Specifies where the resource is created.setFullResourceName(String value) Optional.setFullResourceNameBytes(com.google.protobuf.ByteString value) Optional.setProduct(Product value) Optional.setProduct(Product.Builder builderForValue) Optional.setResourceType(String value) Optional.setResourceTypeBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<SubResource.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SubResource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SubResource.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SubResource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SubResource.Builder>
-
mergeFrom
public SubResource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SubResource.Builder>- Throws:
IOException
-
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];- Specified by:
getResourceTypein interfaceSubResourceOrBuilder- Returns:
- The resourceType.
-
getResourceTypeBytes
public com.google.protobuf.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];- Specified by:
getResourceTypeBytesin interfaceSubResourceOrBuilder- Returns:
- The bytes for resourceType.
-
setResourceType
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];- Parameters:
value- The resourceType to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setResourceTypeBytes
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];- Parameters:
value- The bytes for resourceType to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getFullResourceNamein interfaceSubResourceOrBuilder- Returns:
- The fullResourceName.
-
getFullResourceNameBytes
public com.google.protobuf.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];- Specified by:
getFullResourceNameBytesin interfaceSubResourceOrBuilder- Returns:
- The bytes for fullResourceName.
-
setFullResourceName
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];- Parameters:
value- The fullResourceName to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setFullResourceNameBytes
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];- Parameters:
value- The bytes for fullResourceName to set.- Returns:
- This builder for chaining.
-
hasProduct
public boolean hasProduct()Optional. Product information associated with the sub resource where backup retention settings are configured. e.g. ``` product: { type : PRODUCT_TYPE_SPANNER engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT } ``` for Spanner where backup is configured on database within an instance OPTIONAL.google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasProductin interfaceSubResourceOrBuilder- Returns:
- Whether the product field is set.
-
getProduct
Optional. Product information associated with the sub resource where backup retention settings are configured. e.g. ``` product: { type : PRODUCT_TYPE_SPANNER engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT } ``` for Spanner where backup is configured on database within an instance OPTIONAL.google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProductin interfaceSubResourceOrBuilder- Returns:
- The product.
-
setProduct
Optional. Product information associated with the sub resource where backup retention settings are configured. e.g. ``` product: { type : PRODUCT_TYPE_SPANNER engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT } ``` for Spanner where backup is configured on database within an instance OPTIONAL.google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL]; -
setProduct
Optional. Product information associated with the sub resource where backup retention settings are configured. e.g. ``` product: { type : PRODUCT_TYPE_SPANNER engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT } ``` for Spanner where backup is configured on database within an instance OPTIONAL.google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL]; -
mergeProduct
Optional. Product information associated with the sub resource where backup retention settings are configured. e.g. ``` product: { type : PRODUCT_TYPE_SPANNER engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT } ``` for Spanner where backup is configured on database within an instance OPTIONAL.google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL]; -
clearProduct
Optional. Product information associated with the sub resource where backup retention settings are configured. e.g. ``` product: { type : PRODUCT_TYPE_SPANNER engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT } ``` for Spanner where backup is configured on database within an instance OPTIONAL.google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getProductBuilder
Optional. Product information associated with the sub resource where backup retention settings are configured. e.g. ``` product: { type : PRODUCT_TYPE_SPANNER engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT } ``` for Spanner where backup is configured on database within an instance OPTIONAL.google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getProductOrBuilder
Optional. Product information associated with the sub resource where backup retention settings are configured. e.g. ``` product: { type : PRODUCT_TYPE_SPANNER engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT } ``` for Spanner where backup is configured on database within an instance OPTIONAL.google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProductOrBuilderin interfaceSubResourceOrBuilder
-
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 interfaceSubResourceOrBuilder- 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 interfaceSubResourceOrBuilder- Returns:
- The bytes for container.
-
setContainer
Specifies where the resource is created. For Google Cloud resources, it is the full name of the project.
string container = 4;- Parameters:
value- The container to set.- Returns:
- This builder for chaining.
-
clearContainer
Specifies where the resource is created. For Google Cloud resources, it is the full name of the project.
string container = 4;- Returns:
- This builder for chaining.
-
setContainerBytes
Specifies where the resource is created. For Google Cloud resources, it is the full name of the project.
string container = 4;- Parameters:
value- The bytes for container to set.- Returns:
- This builder for chaining.
-