Class CreateImportJobRequest.Builder (0.19.0)

public static final class CreateImportJobRequest.Builder extends GeneratedMessageV3.Builder<CreateImportJobRequest.Builder> implements CreateImportJobRequestOrBuilder

A request to create an import job.

Protobuf type google.cloud.migrationcenter.v1.CreateImportJobRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateImportJobRequest build()
Returns
TypeDescription
CreateImportJobRequest

buildPartial()

public CreateImportJobRequest buildPartial()
Returns
TypeDescription
CreateImportJobRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearImportJob()

public CreateImportJobRequest.Builder clearImportJob()

Required. The resource being created.

.google.cloud.migrationcenter.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateImportJobRequest.Builder

clearImportJobId()

public CreateImportJobRequest.Builder clearImportJobId()

Required. ID of the import job.

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

Returns
TypeDescription
CreateImportJobRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateImportJobRequest.Builder clearParent()

Required. Value for parent.

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

Returns
TypeDescription
CreateImportJobRequest.Builder

This builder for chaining.

clearRequestId()

public CreateImportJobRequest.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];

Returns
TypeDescription
CreateImportJobRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateImportJobRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateImportJobRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getImportJob()

public ImportJob getImportJob()

Required. The resource being created.

.google.cloud.migrationcenter.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ImportJob

The importJob.

getImportJobBuilder()

public ImportJob.Builder getImportJobBuilder()

Required. The resource being created.

.google.cloud.migrationcenter.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ImportJob.Builder

getImportJobId()

public String getImportJobId()

Required. ID of the import job.

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

Returns
TypeDescription
String

The importJobId.

getImportJobIdBytes()

public ByteString getImportJobIdBytes()

Required. ID of the import job.

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

Returns
TypeDescription
ByteString

The bytes for importJobId.

getImportJobOrBuilder()

public ImportJobOrBuilder getImportJobOrBuilder()

Required. The resource being created.

.google.cloud.migrationcenter.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ImportJobOrBuilder

getParent()

public String getParent()

Required. Value for parent.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Value for parent.

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

Returns
TypeDescription
ByteString

The bytes for parent.

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];

Returns
TypeDescription
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 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];

Returns
TypeDescription
ByteString

The bytes for requestId.

hasImportJob()

public boolean hasImportJob()

Required. The resource being created.

.google.cloud.migrationcenter.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the importJob field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateImportJobRequest other)

public CreateImportJobRequest.Builder mergeFrom(CreateImportJobRequest other)
Parameter
NameDescription
otherCreateImportJobRequest
Returns
TypeDescription
CreateImportJobRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeImportJob(ImportJob value)

public CreateImportJobRequest.Builder mergeImportJob(ImportJob value)

Required. The resource being created.

.google.cloud.migrationcenter.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueImportJob
Returns
TypeDescription
CreateImportJobRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setImportJob(ImportJob value)

public CreateImportJobRequest.Builder setImportJob(ImportJob value)

Required. The resource being created.

.google.cloud.migrationcenter.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueImportJob
Returns
TypeDescription
CreateImportJobRequest.Builder

setImportJob(ImportJob.Builder builderForValue)

public CreateImportJobRequest.Builder setImportJob(ImportJob.Builder builderForValue)

Required. The resource being created.

.google.cloud.migrationcenter.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueImportJob.Builder
Returns
TypeDescription
CreateImportJobRequest.Builder

setImportJobId(String value)

public CreateImportJobRequest.Builder setImportJobId(String value)

Required. ID of the import job.

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

Parameter
NameDescription
valueString

The importJobId to set.

Returns
TypeDescription
CreateImportJobRequest.Builder

This builder for chaining.

setImportJobIdBytes(ByteString value)

public CreateImportJobRequest.Builder setImportJobIdBytes(ByteString value)

Required. ID of the import job.

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

Parameter
NameDescription
valueByteString

The bytes for importJobId to set.

Returns
TypeDescription
CreateImportJobRequest.Builder

This builder for chaining.

setParent(String value)

public CreateImportJobRequest.Builder setParent(String value)

Required. Value for parent.

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateImportJobRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateImportJobRequest.Builder setParentBytes(ByteString value)

Required. Value for parent.

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateImportJobRequest.Builder

This builder for chaining.

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

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

setRequestId(String value)

public CreateImportJobRequest.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];

Parameter
NameDescription
valueString

The requestId to set.

Returns
TypeDescription
CreateImportJobRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateImportJobRequest.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 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];

Parameter
NameDescription
valueByteString

The bytes for requestId to set.

Returns
TypeDescription
CreateImportJobRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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