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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ImportDataRequest.Builder>
    • clear

      public ImportDataRequest.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ImportDataRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ImportDataRequest.Builder>
    • getDefaultInstanceForType

      public ImportDataRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ImportDataRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ImportDataRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ImportDataRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImportDataRequest.Builder>
    • mergeFrom

      public ImportDataRequest.Builder mergeFrom(ImportDataRequest other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImportDataRequest.Builder>
      Throws:
      IOException
    • getSourceCase

      public ImportDataRequest.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface ImportDataRequestOrBuilder
    • clearSource

      public ImportDataRequest.Builder clearSource()
    • getDestinationCase

      public ImportDataRequest.DestinationCase getDestinationCase()
      Specified by:
      getDestinationCase in interface ImportDataRequestOrBuilder
    • clearDestination

      public ImportDataRequest.Builder 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:
      hasSourceGcsBucket in interface ImportDataRequestOrBuilder
      Returns:
      Whether the sourceGcsBucket field is set.
    • getSourceGcsBucket

      public SourceGcsBucket getSourceGcsBucket()
       The Cloud Storage source bucket and, optionally, path inside the bucket.
       
      .google.cloud.parallelstore.v1.SourceGcsBucket source_gcs_bucket = 2;
      Specified by:
      getSourceGcsBucket in interface ImportDataRequestOrBuilder
      Returns:
      The sourceGcsBucket.
    • setSourceGcsBucket

      public ImportDataRequest.Builder setSourceGcsBucket(SourceGcsBucket value)
       The Cloud Storage source bucket and, optionally, path inside the bucket.
       
      .google.cloud.parallelstore.v1.SourceGcsBucket source_gcs_bucket = 2;
    • setSourceGcsBucket

      public ImportDataRequest.Builder setSourceGcsBucket(SourceGcsBucket.Builder builderForValue)
       The Cloud Storage source bucket and, optionally, path inside the bucket.
       
      .google.cloud.parallelstore.v1.SourceGcsBucket source_gcs_bucket = 2;
    • mergeSourceGcsBucket

      public ImportDataRequest.Builder mergeSourceGcsBucket(SourceGcsBucket value)
       The Cloud Storage source bucket and, optionally, path inside the bucket.
       
      .google.cloud.parallelstore.v1.SourceGcsBucket source_gcs_bucket = 2;
    • clearSourceGcsBucket

      public ImportDataRequest.Builder clearSourceGcsBucket()
       The Cloud Storage source bucket and, optionally, path inside the bucket.
       
      .google.cloud.parallelstore.v1.SourceGcsBucket source_gcs_bucket = 2;
    • getSourceGcsBucketBuilder

      public SourceGcsBucket.Builder getSourceGcsBucketBuilder()
       The Cloud Storage source bucket and, optionally, path inside the bucket.
       
      .google.cloud.parallelstore.v1.SourceGcsBucket source_gcs_bucket = 2;
    • getSourceGcsBucketOrBuilder

      public SourceGcsBucketOrBuilder getSourceGcsBucketOrBuilder()
       The Cloud Storage source bucket and, optionally, path inside the bucket.
       
      .google.cloud.parallelstore.v1.SourceGcsBucket source_gcs_bucket = 2;
      Specified by:
      getSourceGcsBucketOrBuilder in interface ImportDataRequestOrBuilder
    • hasDestinationParallelstore

      public boolean hasDestinationParallelstore()
       Parallelstore destination.
       
      .google.cloud.parallelstore.v1.DestinationParallelstore destination_parallelstore = 3;
      Specified by:
      hasDestinationParallelstore in interface ImportDataRequestOrBuilder
      Returns:
      Whether the destinationParallelstore field is set.
    • getDestinationParallelstore

      public DestinationParallelstore getDestinationParallelstore()
       Parallelstore destination.
       
      .google.cloud.parallelstore.v1.DestinationParallelstore destination_parallelstore = 3;
      Specified by:
      getDestinationParallelstore in interface ImportDataRequestOrBuilder
      Returns:
      The destinationParallelstore.
    • setDestinationParallelstore

      public ImportDataRequest.Builder setDestinationParallelstore(DestinationParallelstore value)
       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

      public ImportDataRequest.Builder mergeDestinationParallelstore(DestinationParallelstore value)
       Parallelstore destination.
       
      .google.cloud.parallelstore.v1.DestinationParallelstore destination_parallelstore = 3;
    • clearDestinationParallelstore

      public ImportDataRequest.Builder clearDestinationParallelstore()
       Parallelstore destination.
       
      .google.cloud.parallelstore.v1.DestinationParallelstore destination_parallelstore = 3;
    • getDestinationParallelstoreBuilder

      public DestinationParallelstore.Builder getDestinationParallelstoreBuilder()
       Parallelstore destination.
       
      .google.cloud.parallelstore.v1.DestinationParallelstore destination_parallelstore = 3;
    • getDestinationParallelstoreOrBuilder

      public DestinationParallelstoreOrBuilder getDestinationParallelstoreOrBuilder()
       Parallelstore destination.
       
      .google.cloud.parallelstore.v1.DestinationParallelstore destination_parallelstore = 3;
      Specified by:
      getDestinationParallelstoreOrBuilder in interface ImportDataRequestOrBuilder
    • getName

      public String getName()
       Required. Name of the resource.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface ImportDataRequestOrBuilder
      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:
      getNameBytes in interface ImportDataRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ImportDataRequest.Builder setName(String value)
       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

      public ImportDataRequest.Builder clearName()
       Required. Name of the resource.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public ImportDataRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       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

      public String 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:
      getRequestId in interface ImportDataRequestOrBuilder
      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:
      getRequestIdBytes in interface ImportDataRequestOrBuilder
      Returns:
      The bytes for requestId.
    • setRequestId

      public ImportDataRequest.Builder setRequestId(String value)
       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

      public ImportDataRequest.Builder 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

      public ImportDataRequest.Builder setRequestIdBytes(com.google.protobuf.ByteString value)
       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

      public String 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:
      getServiceAccount in interface ImportDataRequestOrBuilder
      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:
      getServiceAccountBytes in interface ImportDataRequestOrBuilder
      Returns:
      The bytes for serviceAccount.
    • setServiceAccount

      public ImportDataRequest.Builder setServiceAccount(String value)
       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

      public ImportDataRequest.Builder 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

      public ImportDataRequest.Builder setServiceAccountBytes(com.google.protobuf.ByteString value)
       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:
      hasMetadataOptions in interface ImportDataRequestOrBuilder
      Returns:
      Whether the metadataOptions field is set.
    • getMetadataOptions

      public TransferMetadataOptions 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:
      getMetadataOptions in interface ImportDataRequestOrBuilder
      Returns:
      The metadataOptions.
    • setMetadataOptions

      public ImportDataRequest.Builder setMetadataOptions(TransferMetadataOptions value)
       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

      public ImportDataRequest.Builder mergeMetadataOptions(TransferMetadataOptions value)
       Optional. The transfer metadata options for the import data.
       
      .google.cloud.parallelstore.v1.TransferMetadataOptions metadata_options = 6 [(.google.api.field_behavior) = OPTIONAL];
    • clearMetadataOptions

      public ImportDataRequest.Builder clearMetadataOptions()
       Optional. The transfer metadata options for the import data.
       
      .google.cloud.parallelstore.v1.TransferMetadataOptions metadata_options = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getMetadataOptionsBuilder

      public TransferMetadataOptions.Builder getMetadataOptionsBuilder()
       Optional. The transfer metadata options for the import data.
       
      .google.cloud.parallelstore.v1.TransferMetadataOptions metadata_options = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getMetadataOptionsOrBuilder

      public TransferMetadataOptionsOrBuilder 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:
      getMetadataOptionsOrBuilder in interface ImportDataRequestOrBuilder