Class TransferProto.UpdateTransferJobRequest.Builder (1.18.0)

public static final class TransferProto.UpdateTransferJobRequest.Builder extends GeneratedMessageV3.Builder<TransferProto.UpdateTransferJobRequest.Builder> implements TransferProto.UpdateTransferJobRequestOrBuilder

Request passed to UpdateTransferJob.

Protobuf type google.storagetransfer.v1.UpdateTransferJobRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TransferProto.UpdateTransferJobRequest build()
Returns
TypeDescription
TransferProto.UpdateTransferJobRequest

buildPartial()

public TransferProto.UpdateTransferJobRequest buildPartial()
Returns
TypeDescription
TransferProto.UpdateTransferJobRequest

clear()

public TransferProto.UpdateTransferJobRequest.Builder clear()
Returns
TypeDescription
TransferProto.UpdateTransferJobRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearJobName()

public TransferProto.UpdateTransferJobRequest.Builder clearJobName()

Required. The name of job to update.

string job_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TransferProto.UpdateTransferJobRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectId()

public TransferProto.UpdateTransferJobRequest.Builder clearProjectId()

Required. The ID of the Google Cloud project that owns the job.

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

Returns
TypeDescription
TransferProto.UpdateTransferJobRequest.Builder

This builder for chaining.

clearTransferJob()

public TransferProto.UpdateTransferJobRequest.Builder clearTransferJob()

Required. The job to update. transferJob is expected to specify one or more of five fields: description, transfer_spec, notification_config, logging_config, and status. An UpdateTransferJobRequest that specifies other fields are rejected with the error INVALID_ARGUMENT. Updating a job status to DELETED requires storagetransfer.jobs.delete permission.

.google.storagetransfer.v1.TransferJob transfer_job = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TransferProto.UpdateTransferJobRequest.Builder

clearUpdateTransferJobFieldMask()

public TransferProto.UpdateTransferJobRequest.Builder clearUpdateTransferJobFieldMask()

The field mask of the fields in transferJob that are to be updated in this request. Fields in transferJob that can be updated are: description, transfer_spec, notification_config, logging_config, and status. To update the transfer_spec of the job, a complete transfer specification must be provided. An incomplete specification missing any required fields is rejected with the error INVALID_ARGUMENT.

.google.protobuf.FieldMask update_transfer_job_field_mask = 4;

Returns
TypeDescription
TransferProto.UpdateTransferJobRequest.Builder

clone()

public TransferProto.UpdateTransferJobRequest.Builder clone()
Returns
TypeDescription
TransferProto.UpdateTransferJobRequest.Builder
Overrides

getDefaultInstanceForType()

public TransferProto.UpdateTransferJobRequest getDefaultInstanceForType()
Returns
TypeDescription
TransferProto.UpdateTransferJobRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getJobName()

public String getJobName()

Required. The name of job to update.

string job_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The jobName.

getJobNameBytes()

public ByteString getJobNameBytes()

Required. The name of job to update.

string job_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for jobName.

getProjectId()

public String getProjectId()

Required. The ID of the Google Cloud project that owns the job.

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

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Required. The ID of the Google Cloud project that owns the job.

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

Returns
TypeDescription
ByteString

The bytes for projectId.

getTransferJob()

public TransferTypes.TransferJob getTransferJob()

Required. The job to update. transferJob is expected to specify one or more of five fields: description, transfer_spec, notification_config, logging_config, and status. An UpdateTransferJobRequest that specifies other fields are rejected with the error INVALID_ARGUMENT. Updating a job status to DELETED requires storagetransfer.jobs.delete permission.

.google.storagetransfer.v1.TransferJob transfer_job = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TransferTypes.TransferJob

The transferJob.

getTransferJobBuilder()

public TransferTypes.TransferJob.Builder getTransferJobBuilder()

Required. The job to update. transferJob is expected to specify one or more of five fields: description, transfer_spec, notification_config, logging_config, and status. An UpdateTransferJobRequest that specifies other fields are rejected with the error INVALID_ARGUMENT. Updating a job status to DELETED requires storagetransfer.jobs.delete permission.

.google.storagetransfer.v1.TransferJob transfer_job = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TransferTypes.TransferJob.Builder

getTransferJobOrBuilder()

public TransferTypes.TransferJobOrBuilder getTransferJobOrBuilder()

Required. The job to update. transferJob is expected to specify one or more of five fields: description, transfer_spec, notification_config, logging_config, and status. An UpdateTransferJobRequest that specifies other fields are rejected with the error INVALID_ARGUMENT. Updating a job status to DELETED requires storagetransfer.jobs.delete permission.

.google.storagetransfer.v1.TransferJob transfer_job = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TransferTypes.TransferJobOrBuilder

getUpdateTransferJobFieldMask()

public FieldMask getUpdateTransferJobFieldMask()

The field mask of the fields in transferJob that are to be updated in this request. Fields in transferJob that can be updated are: description, transfer_spec, notification_config, logging_config, and status. To update the transfer_spec of the job, a complete transfer specification must be provided. An incomplete specification missing any required fields is rejected with the error INVALID_ARGUMENT.

.google.protobuf.FieldMask update_transfer_job_field_mask = 4;

Returns
TypeDescription
FieldMask

The updateTransferJobFieldMask.

getUpdateTransferJobFieldMaskBuilder()

public FieldMask.Builder getUpdateTransferJobFieldMaskBuilder()

The field mask of the fields in transferJob that are to be updated in this request. Fields in transferJob that can be updated are: description, transfer_spec, notification_config, logging_config, and status. To update the transfer_spec of the job, a complete transfer specification must be provided. An incomplete specification missing any required fields is rejected with the error INVALID_ARGUMENT.

.google.protobuf.FieldMask update_transfer_job_field_mask = 4;

Returns
TypeDescription
Builder

getUpdateTransferJobFieldMaskOrBuilder()

public FieldMaskOrBuilder getUpdateTransferJobFieldMaskOrBuilder()

The field mask of the fields in transferJob that are to be updated in this request. Fields in transferJob that can be updated are: description, transfer_spec, notification_config, logging_config, and status. To update the transfer_spec of the job, a complete transfer specification must be provided. An incomplete specification missing any required fields is rejected with the error INVALID_ARGUMENT.

.google.protobuf.FieldMask update_transfer_job_field_mask = 4;

Returns
TypeDescription
FieldMaskOrBuilder

hasTransferJob()

public boolean hasTransferJob()

Required. The job to update. transferJob is expected to specify one or more of five fields: description, transfer_spec, notification_config, logging_config, and status. An UpdateTransferJobRequest that specifies other fields are rejected with the error INVALID_ARGUMENT. Updating a job status to DELETED requires storagetransfer.jobs.delete permission.

.google.storagetransfer.v1.TransferJob transfer_job = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the transferJob field is set.

hasUpdateTransferJobFieldMask()

public boolean hasUpdateTransferJobFieldMask()

The field mask of the fields in transferJob that are to be updated in this request. Fields in transferJob that can be updated are: description, transfer_spec, notification_config, logging_config, and status. To update the transfer_spec of the job, a complete transfer specification must be provided. An incomplete specification missing any required fields is rejected with the error INVALID_ARGUMENT.

.google.protobuf.FieldMask update_transfer_job_field_mask = 4;

Returns
TypeDescription
boolean

Whether the updateTransferJobFieldMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(TransferProto.UpdateTransferJobRequest other)

public TransferProto.UpdateTransferJobRequest.Builder mergeFrom(TransferProto.UpdateTransferJobRequest other)
Parameter
NameDescription
otherTransferProto.UpdateTransferJobRequest
Returns
TypeDescription
TransferProto.UpdateTransferJobRequest.Builder

mergeTransferJob(TransferTypes.TransferJob value)

public TransferProto.UpdateTransferJobRequest.Builder mergeTransferJob(TransferTypes.TransferJob value)

Required. The job to update. transferJob is expected to specify one or more of five fields: description, transfer_spec, notification_config, logging_config, and status. An UpdateTransferJobRequest that specifies other fields are rejected with the error INVALID_ARGUMENT. Updating a job status to DELETED requires storagetransfer.jobs.delete permission.

.google.storagetransfer.v1.TransferJob transfer_job = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueTransferTypes.TransferJob
Returns
TypeDescription
TransferProto.UpdateTransferJobRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTransferJobFieldMask(FieldMask value)

public TransferProto.UpdateTransferJobRequest.Builder mergeUpdateTransferJobFieldMask(FieldMask value)

The field mask of the fields in transferJob that are to be updated in this request. Fields in transferJob that can be updated are: description, transfer_spec, notification_config, logging_config, and status. To update the transfer_spec of the job, a complete transfer specification must be provided. An incomplete specification missing any required fields is rejected with the error INVALID_ARGUMENT.

.google.protobuf.FieldMask update_transfer_job_field_mask = 4;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
TransferProto.UpdateTransferJobRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setJobName(String value)

public TransferProto.UpdateTransferJobRequest.Builder setJobName(String value)

Required. The name of job to update.

string job_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The jobName to set.

Returns
TypeDescription
TransferProto.UpdateTransferJobRequest.Builder

This builder for chaining.

setJobNameBytes(ByteString value)

public TransferProto.UpdateTransferJobRequest.Builder setJobNameBytes(ByteString value)

Required. The name of job to update.

string job_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for jobName to set.

Returns
TypeDescription
TransferProto.UpdateTransferJobRequest.Builder

This builder for chaining.

setProjectId(String value)

public TransferProto.UpdateTransferJobRequest.Builder setProjectId(String value)

Required. The ID of the Google Cloud project that owns the job.

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

Parameter
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
TransferProto.UpdateTransferJobRequest.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public TransferProto.UpdateTransferJobRequest.Builder setProjectIdBytes(ByteString value)

Required. The ID of the Google Cloud project that owns the job.

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

Parameter
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
TransferProto.UpdateTransferJobRequest.Builder

This builder for chaining.

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

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

setTransferJob(TransferTypes.TransferJob value)

public TransferProto.UpdateTransferJobRequest.Builder setTransferJob(TransferTypes.TransferJob value)

Required. The job to update. transferJob is expected to specify one or more of five fields: description, transfer_spec, notification_config, logging_config, and status. An UpdateTransferJobRequest that specifies other fields are rejected with the error INVALID_ARGUMENT. Updating a job status to DELETED requires storagetransfer.jobs.delete permission.

.google.storagetransfer.v1.TransferJob transfer_job = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueTransferTypes.TransferJob
Returns
TypeDescription
TransferProto.UpdateTransferJobRequest.Builder

setTransferJob(TransferTypes.TransferJob.Builder builderForValue)

public TransferProto.UpdateTransferJobRequest.Builder setTransferJob(TransferTypes.TransferJob.Builder builderForValue)

Required. The job to update. transferJob is expected to specify one or more of five fields: description, transfer_spec, notification_config, logging_config, and status. An UpdateTransferJobRequest that specifies other fields are rejected with the error INVALID_ARGUMENT. Updating a job status to DELETED requires storagetransfer.jobs.delete permission.

.google.storagetransfer.v1.TransferJob transfer_job = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueTransferTypes.TransferJob.Builder
Returns
TypeDescription
TransferProto.UpdateTransferJobRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTransferJobFieldMask(FieldMask value)

public TransferProto.UpdateTransferJobRequest.Builder setUpdateTransferJobFieldMask(FieldMask value)

The field mask of the fields in transferJob that are to be updated in this request. Fields in transferJob that can be updated are: description, transfer_spec, notification_config, logging_config, and status. To update the transfer_spec of the job, a complete transfer specification must be provided. An incomplete specification missing any required fields is rejected with the error INVALID_ARGUMENT.

.google.protobuf.FieldMask update_transfer_job_field_mask = 4;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
TransferProto.UpdateTransferJobRequest.Builder

setUpdateTransferJobFieldMask(FieldMask.Builder builderForValue)

public TransferProto.UpdateTransferJobRequest.Builder setUpdateTransferJobFieldMask(FieldMask.Builder builderForValue)

The field mask of the fields in transferJob that are to be updated in this request. Fields in transferJob that can be updated are: description, transfer_spec, notification_config, logging_config, and status. To update the transfer_spec of the job, a complete transfer specification must be provided. An incomplete specification missing any required fields is rejected with the error INVALID_ARGUMENT.

.google.protobuf.FieldMask update_transfer_job_field_mask = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
TransferProto.UpdateTransferJobRequest.Builder