Class ImportDataRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ImportDataRequest.Builder>
com.google.cloud.parallelstore.v1.ImportDataRequest.Builder
- All Implemented Interfaces:
ImportDataRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ImportDataRequest
public static final class ImportDataRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ImportDataRequest.Builder>
implements ImportDataRequestOrBuilder
Import data from Cloud Storage into a Parallelstore instance.Protobuf type
google.cloud.parallelstore.v1.ImportDataRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Parallelstore destination.Optional.Required.Optional.Optional.The Cloud Storage source bucket and, optionally, path inside the bucket.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorParallelstore destination.Parallelstore destination.Parallelstore destination.Optional.Optional.Optional.getName()Required.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.The Cloud Storage source bucket and, optionally, path inside the bucket.The Cloud Storage source bucket and, optionally, path inside the bucket.The Cloud Storage source bucket and, optionally, path inside the bucket.booleanParallelstore destination.booleanOptional.booleanThe Cloud Storage source bucket and, optionally, path inside the bucket.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanParallelstore destination.mergeFrom(ImportDataRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.The Cloud Storage source bucket and, optionally, path inside the bucket.Parallelstore destination.setDestinationParallelstore(DestinationParallelstore.Builder builderForValue) Parallelstore destination.Optional.setMetadataOptions(TransferMetadataOptions.Builder builderForValue) Optional.Required.setNameBytes(com.google.protobuf.ByteString value) Required.setRequestId(String value) Optional.setRequestIdBytes(com.google.protobuf.ByteString value) Optional.setServiceAccount(String value) Optional.setServiceAccountBytes(com.google.protobuf.ByteString value) Optional.The Cloud Storage source bucket and, optionally, path inside the bucket.setSourceGcsBucket(SourceGcsBucket.Builder builderForValue) The Cloud Storage source bucket and, optionally, path inside the bucket.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<ImportDataRequest.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<ImportDataRequest.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<ImportDataRequest.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<ImportDataRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ImportDataRequest.Builder>
-
mergeFrom
public ImportDataRequest.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<ImportDataRequest.Builder>- Throws:
IOException
-
getSourceCase
- Specified by:
getSourceCasein interfaceImportDataRequestOrBuilder
-
clearSource
-
getDestinationCase
- Specified by:
getDestinationCasein interfaceImportDataRequestOrBuilder
-
clearDestination
-
hasSourceGcsBucket
public boolean hasSourceGcsBucket()The Cloud Storage source bucket and, optionally, path inside the bucket.
.google.cloud.parallelstore.v1.SourceGcsBucket source_gcs_bucket = 2;- Specified by:
hasSourceGcsBucketin interfaceImportDataRequestOrBuilder- Returns:
- Whether the sourceGcsBucket field is set.
-
getSourceGcsBucket
The Cloud Storage source bucket and, optionally, path inside the bucket.
.google.cloud.parallelstore.v1.SourceGcsBucket source_gcs_bucket = 2;- Specified by:
getSourceGcsBucketin interfaceImportDataRequestOrBuilder- Returns:
- The sourceGcsBucket.
-
setSourceGcsBucket
The Cloud Storage source bucket and, optionally, path inside the bucket.
.google.cloud.parallelstore.v1.SourceGcsBucket source_gcs_bucket = 2; -
setSourceGcsBucket
The Cloud Storage source bucket and, optionally, path inside the bucket.
.google.cloud.parallelstore.v1.SourceGcsBucket source_gcs_bucket = 2; -
mergeSourceGcsBucket
The Cloud Storage source bucket and, optionally, path inside the bucket.
.google.cloud.parallelstore.v1.SourceGcsBucket source_gcs_bucket = 2; -
clearSourceGcsBucket
The Cloud Storage source bucket and, optionally, path inside the bucket.
.google.cloud.parallelstore.v1.SourceGcsBucket source_gcs_bucket = 2; -
getSourceGcsBucketBuilder
The Cloud Storage source bucket and, optionally, path inside the bucket.
.google.cloud.parallelstore.v1.SourceGcsBucket source_gcs_bucket = 2; -
getSourceGcsBucketOrBuilder
The Cloud Storage source bucket and, optionally, path inside the bucket.
.google.cloud.parallelstore.v1.SourceGcsBucket source_gcs_bucket = 2;- Specified by:
getSourceGcsBucketOrBuilderin interfaceImportDataRequestOrBuilder
-
hasDestinationParallelstore
public boolean hasDestinationParallelstore()Parallelstore destination.
.google.cloud.parallelstore.v1.DestinationParallelstore destination_parallelstore = 3;- Specified by:
hasDestinationParallelstorein interfaceImportDataRequestOrBuilder- Returns:
- Whether the destinationParallelstore field is set.
-
getDestinationParallelstore
Parallelstore destination.
.google.cloud.parallelstore.v1.DestinationParallelstore destination_parallelstore = 3;- Specified by:
getDestinationParallelstorein interfaceImportDataRequestOrBuilder- Returns:
- The destinationParallelstore.
-
setDestinationParallelstore
Parallelstore destination.
.google.cloud.parallelstore.v1.DestinationParallelstore destination_parallelstore = 3; -
setDestinationParallelstore
public ImportDataRequest.Builder setDestinationParallelstore(DestinationParallelstore.Builder builderForValue) Parallelstore destination.
.google.cloud.parallelstore.v1.DestinationParallelstore destination_parallelstore = 3; -
mergeDestinationParallelstore
Parallelstore destination.
.google.cloud.parallelstore.v1.DestinationParallelstore destination_parallelstore = 3; -
clearDestinationParallelstore
Parallelstore destination.
.google.cloud.parallelstore.v1.DestinationParallelstore destination_parallelstore = 3; -
getDestinationParallelstoreBuilder
Parallelstore destination.
.google.cloud.parallelstore.v1.DestinationParallelstore destination_parallelstore = 3; -
getDestinationParallelstoreOrBuilder
Parallelstore destination.
.google.cloud.parallelstore.v1.DestinationParallelstore destination_parallelstore = 3;- Specified by:
getDestinationParallelstoreOrBuilderin interfaceImportDataRequestOrBuilder
-
getName
Required. Name of the resource.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNamein interfaceImportDataRequestOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Required. Name of the resource.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNameBytesin interfaceImportDataRequestOrBuilder- Returns:
- The bytes for name.
-
setName
Required. Name of the resource.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Required. Name of the resource.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
Required. Name of the resource.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getRequestId
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }- Specified by:
getRequestIdin interfaceImportDataRequestOrBuilder- Returns:
- The requestId.
-
getRequestIdBytes
public com.google.protobuf.ByteString getRequestIdBytes()Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }- Specified by:
getRequestIdBytesin interfaceImportDataRequestOrBuilder- Returns:
- The bytes for requestId.
-
setRequestId
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }- Parameters:
value- The requestId to set.- Returns:
- This builder for chaining.
-
clearRequestId
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }- Returns:
- This builder for chaining.
-
setRequestIdBytes
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }- Parameters:
value- The bytes for requestId to set.- Returns:
- This builder for chaining.
-
getServiceAccount
Optional. User-specified service account credentials to be used when performing the transfer. Use one of the following formats: * `{EMAIL_ADDRESS_OR_UNIQUE_ID}` * `projects/{PROJECT_ID_OR_NUMBER}/serviceAccounts/{EMAIL_ADDRESS_OR_UNIQUE_ID}` * `projects/-/serviceAccounts/{EMAIL_ADDRESS_OR_UNIQUE_ID}` If unspecified, the Parallelstore service agent is used: `service-<PROJECT_NUMBER>@gcp-sa-parallelstore.iam.gserviceaccount.com`string service_account = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getServiceAccountin interfaceImportDataRequestOrBuilder- Returns:
- The serviceAccount.
-
getServiceAccountBytes
public com.google.protobuf.ByteString getServiceAccountBytes()Optional. User-specified service account credentials to be used when performing the transfer. Use one of the following formats: * `{EMAIL_ADDRESS_OR_UNIQUE_ID}` * `projects/{PROJECT_ID_OR_NUMBER}/serviceAccounts/{EMAIL_ADDRESS_OR_UNIQUE_ID}` * `projects/-/serviceAccounts/{EMAIL_ADDRESS_OR_UNIQUE_ID}` If unspecified, the Parallelstore service agent is used: `service-<PROJECT_NUMBER>@gcp-sa-parallelstore.iam.gserviceaccount.com`string service_account = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getServiceAccountBytesin interfaceImportDataRequestOrBuilder- Returns:
- The bytes for serviceAccount.
-
setServiceAccount
Optional. User-specified service account credentials to be used when performing the transfer. Use one of the following formats: * `{EMAIL_ADDRESS_OR_UNIQUE_ID}` * `projects/{PROJECT_ID_OR_NUMBER}/serviceAccounts/{EMAIL_ADDRESS_OR_UNIQUE_ID}` * `projects/-/serviceAccounts/{EMAIL_ADDRESS_OR_UNIQUE_ID}` If unspecified, the Parallelstore service agent is used: `service-<PROJECT_NUMBER>@gcp-sa-parallelstore.iam.gserviceaccount.com`string service_account = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The serviceAccount to set.- Returns:
- This builder for chaining.
-
clearServiceAccount
Optional. User-specified service account credentials to be used when performing the transfer. Use one of the following formats: * `{EMAIL_ADDRESS_OR_UNIQUE_ID}` * `projects/{PROJECT_ID_OR_NUMBER}/serviceAccounts/{EMAIL_ADDRESS_OR_UNIQUE_ID}` * `projects/-/serviceAccounts/{EMAIL_ADDRESS_OR_UNIQUE_ID}` If unspecified, the Parallelstore service agent is used: `service-<PROJECT_NUMBER>@gcp-sa-parallelstore.iam.gserviceaccount.com`string service_account = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setServiceAccountBytes
Optional. User-specified service account credentials to be used when performing the transfer. Use one of the following formats: * `{EMAIL_ADDRESS_OR_UNIQUE_ID}` * `projects/{PROJECT_ID_OR_NUMBER}/serviceAccounts/{EMAIL_ADDRESS_OR_UNIQUE_ID}` * `projects/-/serviceAccounts/{EMAIL_ADDRESS_OR_UNIQUE_ID}` If unspecified, the Parallelstore service agent is used: `service-<PROJECT_NUMBER>@gcp-sa-parallelstore.iam.gserviceaccount.com`string service_account = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for serviceAccount to set.- Returns:
- This builder for chaining.
-
hasMetadataOptions
public boolean hasMetadataOptions()Optional. The transfer metadata options for the import data.
.google.cloud.parallelstore.v1.TransferMetadataOptions metadata_options = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasMetadataOptionsin interfaceImportDataRequestOrBuilder- Returns:
- Whether the metadataOptions field is set.
-
getMetadataOptions
Optional. The transfer metadata options for the import data.
.google.cloud.parallelstore.v1.TransferMetadataOptions metadata_options = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMetadataOptionsin interfaceImportDataRequestOrBuilder- Returns:
- The metadataOptions.
-
setMetadataOptions
Optional. The transfer metadata options for the import data.
.google.cloud.parallelstore.v1.TransferMetadataOptions metadata_options = 6 [(.google.api.field_behavior) = OPTIONAL]; -
setMetadataOptions
public ImportDataRequest.Builder setMetadataOptions(TransferMetadataOptions.Builder builderForValue) Optional. The transfer metadata options for the import data.
.google.cloud.parallelstore.v1.TransferMetadataOptions metadata_options = 6 [(.google.api.field_behavior) = OPTIONAL]; -
mergeMetadataOptions
Optional. The transfer metadata options for the import data.
.google.cloud.parallelstore.v1.TransferMetadataOptions metadata_options = 6 [(.google.api.field_behavior) = OPTIONAL]; -
clearMetadataOptions
Optional. The transfer metadata options for the import data.
.google.cloud.parallelstore.v1.TransferMetadataOptions metadata_options = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getMetadataOptionsBuilder
Optional. The transfer metadata options for the import data.
.google.cloud.parallelstore.v1.TransferMetadataOptions metadata_options = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getMetadataOptionsOrBuilder
Optional. The transfer metadata options for the import data.
.google.cloud.parallelstore.v1.TransferMetadataOptions metadata_options = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMetadataOptionsOrBuilderin interfaceImportDataRequestOrBuilder
-