Class ImportDataRequest.Builder (0.17.0)

public static final class ImportDataRequest.Builder extends GeneratedMessageV3.Builder<ImportDataRequest.Builder> implements ImportDataRequestOrBuilder

Import data from Cloud Storage into a Parallelstore instance.

Protobuf type google.cloud.parallelstore.v1beta.ImportDataRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImportDataRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImportDataRequest.Builder
Overrides

build()

public ImportDataRequest build()
Returns
Type Description
ImportDataRequest

buildPartial()

public ImportDataRequest buildPartial()
Returns
Type Description
ImportDataRequest

clear()

public ImportDataRequest.Builder clear()
Returns
Type Description
ImportDataRequest.Builder
Overrides

clearDestination()

public ImportDataRequest.Builder clearDestination()
Returns
Type Description
ImportDataRequest.Builder

clearDestinationParallelstore()

public ImportDataRequest.Builder clearDestinationParallelstore()

Parallelstore destination.

.google.cloud.parallelstore.v1beta.DestinationParallelstore destination_parallelstore = 3;

Returns
Type Description
ImportDataRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public ImportDataRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ImportDataRequest.Builder
Overrides

clearName()

public ImportDataRequest.Builder clearName()

Required. Name of the resource.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ImportDataRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ImportDataRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ImportDataRequest.Builder
Overrides

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 t he 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
Type Description
ImportDataRequest.Builder

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
Type Description
ImportDataRequest.Builder

This builder for chaining.

clearSource()

public ImportDataRequest.Builder clearSource()
Returns
Type Description
ImportDataRequest.Builder

clearSourceGcsBucket()

public ImportDataRequest.Builder clearSourceGcsBucket()

The Cloud Storage source bucket and, optionally, path inside the bucket.

.google.cloud.parallelstore.v1beta.SourceGcsBucket source_gcs_bucket = 2;

Returns
Type Description
ImportDataRequest.Builder

clone()

public ImportDataRequest.Builder clone()
Returns
Type Description
ImportDataRequest.Builder
Overrides

getDefaultInstanceForType()

public ImportDataRequest getDefaultInstanceForType()
Returns
Type Description
ImportDataRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDestinationCase()

public ImportDataRequest.DestinationCase getDestinationCase()
Returns
Type Description
ImportDataRequest.DestinationCase

getDestinationParallelstore()

public DestinationParallelstore getDestinationParallelstore()

Parallelstore destination.

.google.cloud.parallelstore.v1beta.DestinationParallelstore destination_parallelstore = 3;

Returns
Type Description
DestinationParallelstore

The destinationParallelstore.

getDestinationParallelstoreBuilder()

public DestinationParallelstore.Builder getDestinationParallelstoreBuilder()

Parallelstore destination.

.google.cloud.parallelstore.v1beta.DestinationParallelstore destination_parallelstore = 3;

Returns
Type Description
DestinationParallelstore.Builder

getDestinationParallelstoreOrBuilder()

public DestinationParallelstoreOrBuilder getDestinationParallelstoreOrBuilder()

Parallelstore destination.

.google.cloud.parallelstore.v1beta.DestinationParallelstore destination_parallelstore = 3;

Returns
Type Description
DestinationParallelstoreOrBuilder

getName()

public String getName()

Required. Name of the resource.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the resource.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

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 t he 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
Type Description
String

The requestId.

getRequestIdBytes()

public 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 t he 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
Type Description
ByteString

The bytes for requestId.

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) = { ... }

Returns
Type Description
String

The serviceAccount.

getServiceAccountBytes()

public 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) = { ... }

Returns
Type Description
ByteString

The bytes for serviceAccount.

getSourceCase()

public ImportDataRequest.SourceCase getSourceCase()
Returns
Type Description
ImportDataRequest.SourceCase

getSourceGcsBucket()

public SourceGcsBucket getSourceGcsBucket()

The Cloud Storage source bucket and, optionally, path inside the bucket.

.google.cloud.parallelstore.v1beta.SourceGcsBucket source_gcs_bucket = 2;

Returns
Type Description
SourceGcsBucket

The sourceGcsBucket.

getSourceGcsBucketBuilder()

public SourceGcsBucket.Builder getSourceGcsBucketBuilder()

The Cloud Storage source bucket and, optionally, path inside the bucket.

.google.cloud.parallelstore.v1beta.SourceGcsBucket source_gcs_bucket = 2;

Returns
Type Description
SourceGcsBucket.Builder

getSourceGcsBucketOrBuilder()

public SourceGcsBucketOrBuilder getSourceGcsBucketOrBuilder()

The Cloud Storage source bucket and, optionally, path inside the bucket.

.google.cloud.parallelstore.v1beta.SourceGcsBucket source_gcs_bucket = 2;

Returns
Type Description
SourceGcsBucketOrBuilder

hasDestinationParallelstore()

public boolean hasDestinationParallelstore()

Parallelstore destination.

.google.cloud.parallelstore.v1beta.DestinationParallelstore destination_parallelstore = 3;

Returns
Type Description
boolean

Whether the destinationParallelstore field is set.

hasSourceGcsBucket()

public boolean hasSourceGcsBucket()

The Cloud Storage source bucket and, optionally, path inside the bucket.

.google.cloud.parallelstore.v1beta.SourceGcsBucket source_gcs_bucket = 2;

Returns
Type Description
boolean

Whether the sourceGcsBucket field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDestinationParallelstore(DestinationParallelstore value)

public ImportDataRequest.Builder mergeDestinationParallelstore(DestinationParallelstore value)

Parallelstore destination.

.google.cloud.parallelstore.v1beta.DestinationParallelstore destination_parallelstore = 3;

Parameter
Name Description
value DestinationParallelstore
Returns
Type Description
ImportDataRequest.Builder

mergeFrom(ImportDataRequest other)

public ImportDataRequest.Builder mergeFrom(ImportDataRequest other)
Parameter
Name Description
other ImportDataRequest
Returns
Type Description
ImportDataRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImportDataRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportDataRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ImportDataRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ImportDataRequest.Builder
Overrides

mergeSourceGcsBucket(SourceGcsBucket value)

public ImportDataRequest.Builder mergeSourceGcsBucket(SourceGcsBucket value)

The Cloud Storage source bucket and, optionally, path inside the bucket.

.google.cloud.parallelstore.v1beta.SourceGcsBucket source_gcs_bucket = 2;

Parameter
Name Description
value SourceGcsBucket
Returns
Type Description
ImportDataRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportDataRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImportDataRequest.Builder
Overrides

setDestinationParallelstore(DestinationParallelstore value)

public ImportDataRequest.Builder setDestinationParallelstore(DestinationParallelstore value)

Parallelstore destination.

.google.cloud.parallelstore.v1beta.DestinationParallelstore destination_parallelstore = 3;

Parameter
Name Description
value DestinationParallelstore
Returns
Type Description
ImportDataRequest.Builder

setDestinationParallelstore(DestinationParallelstore.Builder builderForValue)

public ImportDataRequest.Builder setDestinationParallelstore(DestinationParallelstore.Builder builderForValue)

Parallelstore destination.

.google.cloud.parallelstore.v1beta.DestinationParallelstore destination_parallelstore = 3;

Parameter
Name Description
builderForValue DestinationParallelstore.Builder
Returns
Type Description
ImportDataRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ImportDataRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImportDataRequest.Builder
Overrides

setName(String value)

public ImportDataRequest.Builder setName(String value)

Required. Name of the resource.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ImportDataRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ImportDataRequest.Builder setNameBytes(ByteString value)

Required. Name of the resource.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ImportDataRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ImportDataRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ImportDataRequest.Builder
Overrides

setRequestId(String value)

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 t he 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) = { ... }

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
ImportDataRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public ImportDataRequest.Builder setRequestIdBytes(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 t he 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) = { ... }

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
ImportDataRequest.Builder

This builder for chaining.

setServiceAccount(String value)

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) = { ... }

Parameter
Name Description
value String

The serviceAccount to set.

Returns
Type Description
ImportDataRequest.Builder

This builder for chaining.

setServiceAccountBytes(ByteString value)

public ImportDataRequest.Builder setServiceAccountBytes(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) = { ... }

Parameter
Name Description
value ByteString

The bytes for serviceAccount to set.

Returns
Type Description
ImportDataRequest.Builder

This builder for chaining.

setSourceGcsBucket(SourceGcsBucket value)

public ImportDataRequest.Builder setSourceGcsBucket(SourceGcsBucket value)

The Cloud Storage source bucket and, optionally, path inside the bucket.

.google.cloud.parallelstore.v1beta.SourceGcsBucket source_gcs_bucket = 2;

Parameter
Name Description
value SourceGcsBucket
Returns
Type Description
ImportDataRequest.Builder

setSourceGcsBucket(SourceGcsBucket.Builder builderForValue)

public ImportDataRequest.Builder setSourceGcsBucket(SourceGcsBucket.Builder builderForValue)

The Cloud Storage source bucket and, optionally, path inside the bucket.

.google.cloud.parallelstore.v1beta.SourceGcsBucket source_gcs_bucket = 2;

Parameter
Name Description
builderForValue SourceGcsBucket.Builder
Returns
Type Description
ImportDataRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ImportDataRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImportDataRequest.Builder
Overrides