Class CreateDiskMigrationJobRequest.Builder (1.74.0)

public static final class CreateDiskMigrationJobRequest.Builder extends GeneratedMessageV3.Builder<CreateDiskMigrationJobRequest.Builder> implements CreateDiskMigrationJobRequestOrBuilder

Request message for 'CreateDiskMigrationJob' request.

Protobuf type google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateDiskMigrationJobRequest build()
Returns
Type Description
CreateDiskMigrationJobRequest

buildPartial()

public CreateDiskMigrationJobRequest buildPartial()
Returns
Type Description
CreateDiskMigrationJobRequest

clear()

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

clearDiskMigrationJob()

public CreateDiskMigrationJobRequest.Builder clearDiskMigrationJob()

Required. The create request body.

.google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateDiskMigrationJobRequest.Builder

clearDiskMigrationJobId()

public CreateDiskMigrationJobRequest.Builder clearDiskMigrationJobId()

Required. The DiskMigrationJob identifier. The maximum length of this value is 63 characters. Valid characters are lower case Latin letters, digits and hyphen. It must start with a Latin letter and must not end with a hyphen.

string disk_migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateDiskMigrationJobRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateDiskMigrationJobRequest.Builder clearParent()

Required. The DiskMigrationJob's parent.

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

Returns
Type Description
CreateDiskMigrationJobRequest.Builder

This builder for chaining.

clearRequestId()

public CreateDiskMigrationJobRequest.Builder clearRequestId()

Optional. A 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 timed 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
CreateDiskMigrationJobRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateDiskMigrationJobRequest getDefaultInstanceForType()
Returns
Type Description
CreateDiskMigrationJobRequest

getDescriptorForType()

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

getDiskMigrationJob()

public DiskMigrationJob getDiskMigrationJob()

Required. The create request body.

.google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DiskMigrationJob

The diskMigrationJob.

getDiskMigrationJobBuilder()

public DiskMigrationJob.Builder getDiskMigrationJobBuilder()

Required. The create request body.

.google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DiskMigrationJob.Builder

getDiskMigrationJobId()

public String getDiskMigrationJobId()

Required. The DiskMigrationJob identifier. The maximum length of this value is 63 characters. Valid characters are lower case Latin letters, digits and hyphen. It must start with a Latin letter and must not end with a hyphen.

string disk_migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The diskMigrationJobId.

getDiskMigrationJobIdBytes()

public ByteString getDiskMigrationJobIdBytes()

Required. The DiskMigrationJob identifier. The maximum length of this value is 63 characters. Valid characters are lower case Latin letters, digits and hyphen. It must start with a Latin letter and must not end with a hyphen.

string disk_migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for diskMigrationJobId.

getDiskMigrationJobOrBuilder()

public DiskMigrationJobOrBuilder getDiskMigrationJobOrBuilder()

Required. The create request body.

.google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DiskMigrationJobOrBuilder

getParent()

public String getParent()

Required. The DiskMigrationJob's parent.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The DiskMigrationJob's parent.

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

Returns
Type Description
ByteString

The bytes for parent.

getRequestId()

public String getRequestId()

Optional. A 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 timed 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. A 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 timed 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.

hasDiskMigrationJob()

public boolean hasDiskMigrationJob()

Required. The create request body.

.google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the diskMigrationJob field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDiskMigrationJob(DiskMigrationJob value)

public CreateDiskMigrationJobRequest.Builder mergeDiskMigrationJob(DiskMigrationJob value)

Required. The create request body.

.google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DiskMigrationJob
Returns
Type Description
CreateDiskMigrationJobRequest.Builder

mergeFrom(CreateDiskMigrationJobRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDiskMigrationJob(DiskMigrationJob value)

public CreateDiskMigrationJobRequest.Builder setDiskMigrationJob(DiskMigrationJob value)

Required. The create request body.

.google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DiskMigrationJob
Returns
Type Description
CreateDiskMigrationJobRequest.Builder

setDiskMigrationJob(DiskMigrationJob.Builder builderForValue)

public CreateDiskMigrationJobRequest.Builder setDiskMigrationJob(DiskMigrationJob.Builder builderForValue)

Required. The create request body.

.google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue DiskMigrationJob.Builder
Returns
Type Description
CreateDiskMigrationJobRequest.Builder

setDiskMigrationJobId(String value)

public CreateDiskMigrationJobRequest.Builder setDiskMigrationJobId(String value)

Required. The DiskMigrationJob identifier. The maximum length of this value is 63 characters. Valid characters are lower case Latin letters, digits and hyphen. It must start with a Latin letter and must not end with a hyphen.

string disk_migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The diskMigrationJobId to set.

Returns
Type Description
CreateDiskMigrationJobRequest.Builder

This builder for chaining.

setDiskMigrationJobIdBytes(ByteString value)

public CreateDiskMigrationJobRequest.Builder setDiskMigrationJobIdBytes(ByteString value)

Required. The DiskMigrationJob identifier. The maximum length of this value is 63 characters. Valid characters are lower case Latin letters, digits and hyphen. It must start with a Latin letter and must not end with a hyphen.

string disk_migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for diskMigrationJobId to set.

Returns
Type Description
CreateDiskMigrationJobRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateDiskMigrationJobRequest.Builder setParent(String value)

Required. The DiskMigrationJob's parent.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateDiskMigrationJobRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateDiskMigrationJobRequest.Builder setParentBytes(ByteString value)

Required. The DiskMigrationJob's parent.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateDiskMigrationJobRequest.Builder

This builder for chaining.

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

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

setRequestId(String value)

public CreateDiskMigrationJobRequest.Builder setRequestId(String value)

Optional. A 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 timed 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
CreateDiskMigrationJobRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateDiskMigrationJobRequest.Builder setRequestIdBytes(ByteString value)

Optional. A 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 timed 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
CreateDiskMigrationJobRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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