Class BatchMigrateResourcesRequest.Builder (3.19.0)

public static final class BatchMigrateResourcesRequest.Builder extends GeneratedMessageV3.Builder<BatchMigrateResourcesRequest.Builder> implements BatchMigrateResourcesRequestOrBuilder

Request message for MigrationService.BatchMigrateResources.

Protobuf type google.cloud.aiplatform.v1.BatchMigrateResourcesRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllMigrateResourceRequests(Iterable<? extends MigrateResourceRequest> values)

public BatchMigrateResourcesRequest.Builder addAllMigrateResourceRequests(Iterable<? extends MigrateResourceRequest> values)

Required. The request messages specifying the resources to migrate. They must be in the same location as the destination. Up to 50 resources can be migrated in one batch.

repeated .google.cloud.aiplatform.v1.MigrateResourceRequest migrate_resource_requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.aiplatform.v1.MigrateResourceRequest>
Returns
TypeDescription
BatchMigrateResourcesRequest.Builder

addMigrateResourceRequests(MigrateResourceRequest value)

public BatchMigrateResourcesRequest.Builder addMigrateResourceRequests(MigrateResourceRequest value)

Required. The request messages specifying the resources to migrate. They must be in the same location as the destination. Up to 50 resources can be migrated in one batch.

repeated .google.cloud.aiplatform.v1.MigrateResourceRequest migrate_resource_requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueMigrateResourceRequest
Returns
TypeDescription
BatchMigrateResourcesRequest.Builder

addMigrateResourceRequests(MigrateResourceRequest.Builder builderForValue)

public BatchMigrateResourcesRequest.Builder addMigrateResourceRequests(MigrateResourceRequest.Builder builderForValue)

Required. The request messages specifying the resources to migrate. They must be in the same location as the destination. Up to 50 resources can be migrated in one batch.

repeated .google.cloud.aiplatform.v1.MigrateResourceRequest migrate_resource_requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueMigrateResourceRequest.Builder
Returns
TypeDescription
BatchMigrateResourcesRequest.Builder

addMigrateResourceRequests(int index, MigrateResourceRequest value)

public BatchMigrateResourcesRequest.Builder addMigrateResourceRequests(int index, MigrateResourceRequest value)

Required. The request messages specifying the resources to migrate. They must be in the same location as the destination. Up to 50 resources can be migrated in one batch.

repeated .google.cloud.aiplatform.v1.MigrateResourceRequest migrate_resource_requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueMigrateResourceRequest
Returns
TypeDescription
BatchMigrateResourcesRequest.Builder

addMigrateResourceRequests(int index, MigrateResourceRequest.Builder builderForValue)

public BatchMigrateResourcesRequest.Builder addMigrateResourceRequests(int index, MigrateResourceRequest.Builder builderForValue)

Required. The request messages specifying the resources to migrate. They must be in the same location as the destination. Up to 50 resources can be migrated in one batch.

repeated .google.cloud.aiplatform.v1.MigrateResourceRequest migrate_resource_requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueMigrateResourceRequest.Builder
Returns
TypeDescription
BatchMigrateResourcesRequest.Builder

addMigrateResourceRequestsBuilder()

public MigrateResourceRequest.Builder addMigrateResourceRequestsBuilder()

Required. The request messages specifying the resources to migrate. They must be in the same location as the destination. Up to 50 resources can be migrated in one batch.

repeated .google.cloud.aiplatform.v1.MigrateResourceRequest migrate_resource_requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
MigrateResourceRequest.Builder

addMigrateResourceRequestsBuilder(int index)

public MigrateResourceRequest.Builder addMigrateResourceRequestsBuilder(int index)

Required. The request messages specifying the resources to migrate. They must be in the same location as the destination. Up to 50 resources can be migrated in one batch.

repeated .google.cloud.aiplatform.v1.MigrateResourceRequest migrate_resource_requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
MigrateResourceRequest.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchMigrateResourcesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchMigrateResourcesRequest.Builder
Overrides

build()

public BatchMigrateResourcesRequest build()
Returns
TypeDescription
BatchMigrateResourcesRequest

buildPartial()

public BatchMigrateResourcesRequest buildPartial()
Returns
TypeDescription
BatchMigrateResourcesRequest

clear()

public BatchMigrateResourcesRequest.Builder clear()
Returns
TypeDescription
BatchMigrateResourcesRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BatchMigrateResourcesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BatchMigrateResourcesRequest.Builder
Overrides

clearMigrateResourceRequests()

public BatchMigrateResourcesRequest.Builder clearMigrateResourceRequests()

Required. The request messages specifying the resources to migrate. They must be in the same location as the destination. Up to 50 resources can be migrated in one batch.

repeated .google.cloud.aiplatform.v1.MigrateResourceRequest migrate_resource_requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BatchMigrateResourcesRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchMigrateResourcesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BatchMigrateResourcesRequest.Builder
Overrides

clearParent()

public BatchMigrateResourcesRequest.Builder clearParent()

Required. The location of the migrated resource will live in. Format: projects/{project}/locations/{location}

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

Returns
TypeDescription
BatchMigrateResourcesRequest.Builder

This builder for chaining.

clone()

public BatchMigrateResourcesRequest.Builder clone()
Returns
TypeDescription
BatchMigrateResourcesRequest.Builder
Overrides

getDefaultInstanceForType()

public BatchMigrateResourcesRequest getDefaultInstanceForType()
Returns
TypeDescription
BatchMigrateResourcesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMigrateResourceRequests(int index)

public MigrateResourceRequest getMigrateResourceRequests(int index)

Required. The request messages specifying the resources to migrate. They must be in the same location as the destination. Up to 50 resources can be migrated in one batch.

repeated .google.cloud.aiplatform.v1.MigrateResourceRequest migrate_resource_requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
MigrateResourceRequest

getMigrateResourceRequestsBuilder(int index)

public MigrateResourceRequest.Builder getMigrateResourceRequestsBuilder(int index)

Required. The request messages specifying the resources to migrate. They must be in the same location as the destination. Up to 50 resources can be migrated in one batch.

repeated .google.cloud.aiplatform.v1.MigrateResourceRequest migrate_resource_requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
MigrateResourceRequest.Builder

getMigrateResourceRequestsBuilderList()

public List<MigrateResourceRequest.Builder> getMigrateResourceRequestsBuilderList()

Required. The request messages specifying the resources to migrate. They must be in the same location as the destination. Up to 50 resources can be migrated in one batch.

repeated .google.cloud.aiplatform.v1.MigrateResourceRequest migrate_resource_requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<Builder>

getMigrateResourceRequestsCount()

public int getMigrateResourceRequestsCount()

Required. The request messages specifying the resources to migrate. They must be in the same location as the destination. Up to 50 resources can be migrated in one batch.

repeated .google.cloud.aiplatform.v1.MigrateResourceRequest migrate_resource_requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

getMigrateResourceRequestsList()

public List<MigrateResourceRequest> getMigrateResourceRequestsList()

Required. The request messages specifying the resources to migrate. They must be in the same location as the destination. Up to 50 resources can be migrated in one batch.

repeated .google.cloud.aiplatform.v1.MigrateResourceRequest migrate_resource_requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<MigrateResourceRequest>

getMigrateResourceRequestsOrBuilder(int index)

public MigrateResourceRequestOrBuilder getMigrateResourceRequestsOrBuilder(int index)

Required. The request messages specifying the resources to migrate. They must be in the same location as the destination. Up to 50 resources can be migrated in one batch.

repeated .google.cloud.aiplatform.v1.MigrateResourceRequest migrate_resource_requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
MigrateResourceRequestOrBuilder

getMigrateResourceRequestsOrBuilderList()

public List<? extends MigrateResourceRequestOrBuilder> getMigrateResourceRequestsOrBuilderList()

Required. The request messages specifying the resources to migrate. They must be in the same location as the destination. Up to 50 resources can be migrated in one batch.

repeated .google.cloud.aiplatform.v1.MigrateResourceRequest migrate_resource_requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<? extends com.google.cloud.aiplatform.v1.MigrateResourceRequestOrBuilder>

getParent()

public String getParent()

Required. The location of the migrated resource will live in. Format: projects/{project}/locations/{location}

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The location of the migrated resource will live in. Format: projects/{project}/locations/{location}

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

Returns
TypeDescription
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchMigrateResourcesRequest other)

public BatchMigrateResourcesRequest.Builder mergeFrom(BatchMigrateResourcesRequest other)
Parameter
NameDescription
otherBatchMigrateResourcesRequest
Returns
TypeDescription
BatchMigrateResourcesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchMigrateResourcesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchMigrateResourcesRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BatchMigrateResourcesRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BatchMigrateResourcesRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchMigrateResourcesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchMigrateResourcesRequest.Builder
Overrides

removeMigrateResourceRequests(int index)

public BatchMigrateResourcesRequest.Builder removeMigrateResourceRequests(int index)

Required. The request messages specifying the resources to migrate. They must be in the same location as the destination. Up to 50 resources can be migrated in one batch.

repeated .google.cloud.aiplatform.v1.MigrateResourceRequest migrate_resource_requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
BatchMigrateResourcesRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchMigrateResourcesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchMigrateResourcesRequest.Builder
Overrides

setMigrateResourceRequests(int index, MigrateResourceRequest value)

public BatchMigrateResourcesRequest.Builder setMigrateResourceRequests(int index, MigrateResourceRequest value)

Required. The request messages specifying the resources to migrate. They must be in the same location as the destination. Up to 50 resources can be migrated in one batch.

repeated .google.cloud.aiplatform.v1.MigrateResourceRequest migrate_resource_requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueMigrateResourceRequest
Returns
TypeDescription
BatchMigrateResourcesRequest.Builder

setMigrateResourceRequests(int index, MigrateResourceRequest.Builder builderForValue)

public BatchMigrateResourcesRequest.Builder setMigrateResourceRequests(int index, MigrateResourceRequest.Builder builderForValue)

Required. The request messages specifying the resources to migrate. They must be in the same location as the destination. Up to 50 resources can be migrated in one batch.

repeated .google.cloud.aiplatform.v1.MigrateResourceRequest migrate_resource_requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueMigrateResourceRequest.Builder
Returns
TypeDescription
BatchMigrateResourcesRequest.Builder

setParent(String value)

public BatchMigrateResourcesRequest.Builder setParent(String value)

Required. The location of the migrated resource will live in. Format: projects/{project}/locations/{location}

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
BatchMigrateResourcesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchMigrateResourcesRequest.Builder setParentBytes(ByteString value)

Required. The location of the migrated resource will live in. Format: projects/{project}/locations/{location}

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
BatchMigrateResourcesRequest.Builder

This builder for chaining.

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

public BatchMigrateResourcesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BatchMigrateResourcesRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchMigrateResourcesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchMigrateResourcesRequest.Builder
Overrides