Class TransferTypes.TransferJob.Builder (1.18.0)

public static final class TransferTypes.TransferJob.Builder extends GeneratedMessageV3.Builder<TransferTypes.TransferJob.Builder> implements TransferTypes.TransferJobOrBuilder

This resource represents the configuration of a transfer job that runs periodically.

Protobuf type google.storagetransfer.v1.TransferJob

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TransferTypes.TransferJob build()
Returns
TypeDescription
TransferTypes.TransferJob

buildPartial()

public TransferTypes.TransferJob buildPartial()
Returns
TypeDescription
TransferTypes.TransferJob

clear()

public TransferTypes.TransferJob.Builder clear()
Returns
TypeDescription
TransferTypes.TransferJob.Builder
Overrides

clearCreationTime()

public TransferTypes.TransferJob.Builder clearCreationTime()

Output only. The time that the transfer job was created.

.google.protobuf.Timestamp creation_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TransferTypes.TransferJob.Builder

clearDeletionTime()

public TransferTypes.TransferJob.Builder clearDeletionTime()

Output only. The time that the transfer job was deleted.

.google.protobuf.Timestamp deletion_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TransferTypes.TransferJob.Builder

clearDescription()

public TransferTypes.TransferJob.Builder clearDescription()

A description provided by the user for the job. Its max length is 1024 bytes when Unicode-encoded.

string description = 2;

Returns
TypeDescription
TransferTypes.TransferJob.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLastModificationTime()

public TransferTypes.TransferJob.Builder clearLastModificationTime()

Output only. The time that the transfer job was last modified.

.google.protobuf.Timestamp last_modification_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TransferTypes.TransferJob.Builder

clearLatestOperationName()

public TransferTypes.TransferJob.Builder clearLatestOperationName()

The name of the most recently started TransferOperation of this JobConfig. Present if a TransferOperation has been created for this JobConfig.

string latest_operation_name = 12;

Returns
TypeDescription
TransferTypes.TransferJob.Builder

This builder for chaining.

clearLoggingConfig()

public TransferTypes.TransferJob.Builder clearLoggingConfig()

Logging configuration.

.google.storagetransfer.v1.LoggingConfig logging_config = 14;

Returns
TypeDescription
TransferTypes.TransferJob.Builder

clearName()

public TransferTypes.TransferJob.Builder clearName()

A unique name (within the transfer project) assigned when the job is created. If this field is empty in a CreateTransferJobRequest, Storage Transfer Service assigns a unique name. Otherwise, the specified name is used as the unique name for this job. If the specified name is in use by a job, the creation request fails with an ALREADY_EXISTS error. This name must start with "transferJobs/" prefix and end with a letter or a number, and should be no more than 128 characters. For transfers involving PosixFilesystem, this name must start with transferJobs/OPI specifically. For all other transfer types, this name must not start with transferJobs/OPI. Non-PosixFilesystem example: "transferJobs/^(?!OPI)[A-Za-z0-9-.~]*[A-Za-z0-9]$" PosixFilesystem example: "transferJobs/OPI^[A-Za-z0-9-.~]*[A-Za-z0-9]$" Applications must not rely on the enforcement of naming requirements involving OPI. Invalid job names fail with an INVALID_ARGUMENT error.

string name = 1;

Returns
TypeDescription
TransferTypes.TransferJob.Builder

This builder for chaining.

clearNotificationConfig()

public TransferTypes.TransferJob.Builder clearNotificationConfig()

Notification configuration. This is not supported for transfers involving PosixFilesystem.

.google.storagetransfer.v1.NotificationConfig notification_config = 11;

Returns
TypeDescription
TransferTypes.TransferJob.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectId()

public TransferTypes.TransferJob.Builder clearProjectId()

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

string project_id = 3;

Returns
TypeDescription
TransferTypes.TransferJob.Builder

This builder for chaining.

clearSchedule()

public TransferTypes.TransferJob.Builder clearSchedule()

Specifies schedule for the transfer job. This is an optional field. When the field is not set, the job never executes a transfer, unless you invoke RunTransferJob or update the job to have a non-empty schedule.

.google.storagetransfer.v1.Schedule schedule = 5;

Returns
TypeDescription
TransferTypes.TransferJob.Builder

clearStatus()

public TransferTypes.TransferJob.Builder clearStatus()

Status of the job. This value MUST be specified for CreateTransferJobRequests. Note: The effect of the new job status takes place during a subsequent job run. For example, if you change the job status from ENABLED to DISABLED, and an operation spawned by the transfer is running, the status change would not affect the current operation.

.google.storagetransfer.v1.TransferJob.Status status = 6;

Returns
TypeDescription
TransferTypes.TransferJob.Builder

This builder for chaining.

clearTransferSpec()

public TransferTypes.TransferJob.Builder clearTransferSpec()

Transfer specification.

.google.storagetransfer.v1.TransferSpec transfer_spec = 4;

Returns
TypeDescription
TransferTypes.TransferJob.Builder

clone()

public TransferTypes.TransferJob.Builder clone()
Returns
TypeDescription
TransferTypes.TransferJob.Builder
Overrides

getCreationTime()

public Timestamp getCreationTime()

Output only. The time that the transfer job was created.

.google.protobuf.Timestamp creation_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The creationTime.

getCreationTimeBuilder()

public Timestamp.Builder getCreationTimeBuilder()

Output only. The time that the transfer job was created.

.google.protobuf.Timestamp creation_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreationTimeOrBuilder()

public TimestampOrBuilder getCreationTimeOrBuilder()

Output only. The time that the transfer job was created.

.google.protobuf.Timestamp creation_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public TransferTypes.TransferJob getDefaultInstanceForType()
Returns
TypeDescription
TransferTypes.TransferJob

getDeletionTime()

public Timestamp getDeletionTime()

Output only. The time that the transfer job was deleted.

.google.protobuf.Timestamp deletion_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The deletionTime.

getDeletionTimeBuilder()

public Timestamp.Builder getDeletionTimeBuilder()

Output only. The time that the transfer job was deleted.

.google.protobuf.Timestamp deletion_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getDeletionTimeOrBuilder()

public TimestampOrBuilder getDeletionTimeOrBuilder()

Output only. The time that the transfer job was deleted.

.google.protobuf.Timestamp deletion_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDescription()

public String getDescription()

A description provided by the user for the job. Its max length is 1024 bytes when Unicode-encoded.

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A description provided by the user for the job. Its max length is 1024 bytes when Unicode-encoded.

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLastModificationTime()

public Timestamp getLastModificationTime()

Output only. The time that the transfer job was last modified.

.google.protobuf.Timestamp last_modification_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The lastModificationTime.

getLastModificationTimeBuilder()

public Timestamp.Builder getLastModificationTimeBuilder()

Output only. The time that the transfer job was last modified.

.google.protobuf.Timestamp last_modification_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getLastModificationTimeOrBuilder()

public TimestampOrBuilder getLastModificationTimeOrBuilder()

Output only. The time that the transfer job was last modified.

.google.protobuf.Timestamp last_modification_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getLatestOperationName()

public String getLatestOperationName()

The name of the most recently started TransferOperation of this JobConfig. Present if a TransferOperation has been created for this JobConfig.

string latest_operation_name = 12;

Returns
TypeDescription
String

The latestOperationName.

getLatestOperationNameBytes()

public ByteString getLatestOperationNameBytes()

The name of the most recently started TransferOperation of this JobConfig. Present if a TransferOperation has been created for this JobConfig.

string latest_operation_name = 12;

Returns
TypeDescription
ByteString

The bytes for latestOperationName.

getLoggingConfig()

public TransferTypes.LoggingConfig getLoggingConfig()

Logging configuration.

.google.storagetransfer.v1.LoggingConfig logging_config = 14;

Returns
TypeDescription
TransferTypes.LoggingConfig

The loggingConfig.

getLoggingConfigBuilder()

public TransferTypes.LoggingConfig.Builder getLoggingConfigBuilder()

Logging configuration.

.google.storagetransfer.v1.LoggingConfig logging_config = 14;

Returns
TypeDescription
TransferTypes.LoggingConfig.Builder

getLoggingConfigOrBuilder()

public TransferTypes.LoggingConfigOrBuilder getLoggingConfigOrBuilder()

Logging configuration.

.google.storagetransfer.v1.LoggingConfig logging_config = 14;

Returns
TypeDescription
TransferTypes.LoggingConfigOrBuilder

getName()

public String getName()

A unique name (within the transfer project) assigned when the job is created. If this field is empty in a CreateTransferJobRequest, Storage Transfer Service assigns a unique name. Otherwise, the specified name is used as the unique name for this job. If the specified name is in use by a job, the creation request fails with an ALREADY_EXISTS error. This name must start with "transferJobs/" prefix and end with a letter or a number, and should be no more than 128 characters. For transfers involving PosixFilesystem, this name must start with transferJobs/OPI specifically. For all other transfer types, this name must not start with transferJobs/OPI. Non-PosixFilesystem example: "transferJobs/^(?!OPI)[A-Za-z0-9-.~]*[A-Za-z0-9]$" PosixFilesystem example: "transferJobs/OPI^[A-Za-z0-9-.~]*[A-Za-z0-9]$" Applications must not rely on the enforcement of naming requirements involving OPI. Invalid job names fail with an INVALID_ARGUMENT error.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

A unique name (within the transfer project) assigned when the job is created. If this field is empty in a CreateTransferJobRequest, Storage Transfer Service assigns a unique name. Otherwise, the specified name is used as the unique name for this job. If the specified name is in use by a job, the creation request fails with an ALREADY_EXISTS error. This name must start with "transferJobs/" prefix and end with a letter or a number, and should be no more than 128 characters. For transfers involving PosixFilesystem, this name must start with transferJobs/OPI specifically. For all other transfer types, this name must not start with transferJobs/OPI. Non-PosixFilesystem example: "transferJobs/^(?!OPI)[A-Za-z0-9-.~]*[A-Za-z0-9]$" PosixFilesystem example: "transferJobs/OPI^[A-Za-z0-9-.~]*[A-Za-z0-9]$" Applications must not rely on the enforcement of naming requirements involving OPI. Invalid job names fail with an INVALID_ARGUMENT error.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getNotificationConfig()

public TransferTypes.NotificationConfig getNotificationConfig()

Notification configuration. This is not supported for transfers involving PosixFilesystem.

.google.storagetransfer.v1.NotificationConfig notification_config = 11;

Returns
TypeDescription
TransferTypes.NotificationConfig

The notificationConfig.

getNotificationConfigBuilder()

public TransferTypes.NotificationConfig.Builder getNotificationConfigBuilder()

Notification configuration. This is not supported for transfers involving PosixFilesystem.

.google.storagetransfer.v1.NotificationConfig notification_config = 11;

Returns
TypeDescription
TransferTypes.NotificationConfig.Builder

getNotificationConfigOrBuilder()

public TransferTypes.NotificationConfigOrBuilder getNotificationConfigOrBuilder()

Notification configuration. This is not supported for transfers involving PosixFilesystem.

.google.storagetransfer.v1.NotificationConfig notification_config = 11;

Returns
TypeDescription
TransferTypes.NotificationConfigOrBuilder

getProjectId()

public String getProjectId()

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

string project_id = 3;

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

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

string project_id = 3;

Returns
TypeDescription
ByteString

The bytes for projectId.

getSchedule()

public TransferTypes.Schedule getSchedule()

Specifies schedule for the transfer job. This is an optional field. When the field is not set, the job never executes a transfer, unless you invoke RunTransferJob or update the job to have a non-empty schedule.

.google.storagetransfer.v1.Schedule schedule = 5;

Returns
TypeDescription
TransferTypes.Schedule

The schedule.

getScheduleBuilder()

public TransferTypes.Schedule.Builder getScheduleBuilder()

Specifies schedule for the transfer job. This is an optional field. When the field is not set, the job never executes a transfer, unless you invoke RunTransferJob or update the job to have a non-empty schedule.

.google.storagetransfer.v1.Schedule schedule = 5;

Returns
TypeDescription
TransferTypes.Schedule.Builder

getScheduleOrBuilder()

public TransferTypes.ScheduleOrBuilder getScheduleOrBuilder()

Specifies schedule for the transfer job. This is an optional field. When the field is not set, the job never executes a transfer, unless you invoke RunTransferJob or update the job to have a non-empty schedule.

.google.storagetransfer.v1.Schedule schedule = 5;

Returns
TypeDescription
TransferTypes.ScheduleOrBuilder

getStatus()

public TransferTypes.TransferJob.Status getStatus()

Status of the job. This value MUST be specified for CreateTransferJobRequests. Note: The effect of the new job status takes place during a subsequent job run. For example, if you change the job status from ENABLED to DISABLED, and an operation spawned by the transfer is running, the status change would not affect the current operation.

.google.storagetransfer.v1.TransferJob.Status status = 6;

Returns
TypeDescription
TransferTypes.TransferJob.Status

The status.

getStatusValue()

public int getStatusValue()

Status of the job. This value MUST be specified for CreateTransferJobRequests. Note: The effect of the new job status takes place during a subsequent job run. For example, if you change the job status from ENABLED to DISABLED, and an operation spawned by the transfer is running, the status change would not affect the current operation.

.google.storagetransfer.v1.TransferJob.Status status = 6;

Returns
TypeDescription
int

The enum numeric value on the wire for status.

getTransferSpec()

public TransferTypes.TransferSpec getTransferSpec()

Transfer specification.

.google.storagetransfer.v1.TransferSpec transfer_spec = 4;

Returns
TypeDescription
TransferTypes.TransferSpec

The transferSpec.

getTransferSpecBuilder()

public TransferTypes.TransferSpec.Builder getTransferSpecBuilder()

Transfer specification.

.google.storagetransfer.v1.TransferSpec transfer_spec = 4;

Returns
TypeDescription
TransferTypes.TransferSpec.Builder

getTransferSpecOrBuilder()

public TransferTypes.TransferSpecOrBuilder getTransferSpecOrBuilder()

Transfer specification.

.google.storagetransfer.v1.TransferSpec transfer_spec = 4;

Returns
TypeDescription
TransferTypes.TransferSpecOrBuilder

hasCreationTime()

public boolean hasCreationTime()

Output only. The time that the transfer job was created.

.google.protobuf.Timestamp creation_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the creationTime field is set.

hasDeletionTime()

public boolean hasDeletionTime()

Output only. The time that the transfer job was deleted.

.google.protobuf.Timestamp deletion_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the deletionTime field is set.

hasLastModificationTime()

public boolean hasLastModificationTime()

Output only. The time that the transfer job was last modified.

.google.protobuf.Timestamp last_modification_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the lastModificationTime field is set.

hasLoggingConfig()

public boolean hasLoggingConfig()

Logging configuration.

.google.storagetransfer.v1.LoggingConfig logging_config = 14;

Returns
TypeDescription
boolean

Whether the loggingConfig field is set.

hasNotificationConfig()

public boolean hasNotificationConfig()

Notification configuration. This is not supported for transfers involving PosixFilesystem.

.google.storagetransfer.v1.NotificationConfig notification_config = 11;

Returns
TypeDescription
boolean

Whether the notificationConfig field is set.

hasSchedule()

public boolean hasSchedule()

Specifies schedule for the transfer job. This is an optional field. When the field is not set, the job never executes a transfer, unless you invoke RunTransferJob or update the job to have a non-empty schedule.

.google.storagetransfer.v1.Schedule schedule = 5;

Returns
TypeDescription
boolean

Whether the schedule field is set.

hasTransferSpec()

public boolean hasTransferSpec()

Transfer specification.

.google.storagetransfer.v1.TransferSpec transfer_spec = 4;

Returns
TypeDescription
boolean

Whether the transferSpec field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreationTime(Timestamp value)

public TransferTypes.TransferJob.Builder mergeCreationTime(Timestamp value)

Output only. The time that the transfer job was created.

.google.protobuf.Timestamp creation_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TransferTypes.TransferJob.Builder

mergeDeletionTime(Timestamp value)

public TransferTypes.TransferJob.Builder mergeDeletionTime(Timestamp value)

Output only. The time that the transfer job was deleted.

.google.protobuf.Timestamp deletion_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TransferTypes.TransferJob.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(TransferTypes.TransferJob other)

public TransferTypes.TransferJob.Builder mergeFrom(TransferTypes.TransferJob other)
Parameter
NameDescription
otherTransferTypes.TransferJob
Returns
TypeDescription
TransferTypes.TransferJob.Builder

mergeLastModificationTime(Timestamp value)

public TransferTypes.TransferJob.Builder mergeLastModificationTime(Timestamp value)

Output only. The time that the transfer job was last modified.

.google.protobuf.Timestamp last_modification_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TransferTypes.TransferJob.Builder

mergeLoggingConfig(TransferTypes.LoggingConfig value)

public TransferTypes.TransferJob.Builder mergeLoggingConfig(TransferTypes.LoggingConfig value)

Logging configuration.

.google.storagetransfer.v1.LoggingConfig logging_config = 14;

Parameter
NameDescription
valueTransferTypes.LoggingConfig
Returns
TypeDescription
TransferTypes.TransferJob.Builder

mergeNotificationConfig(TransferTypes.NotificationConfig value)

public TransferTypes.TransferJob.Builder mergeNotificationConfig(TransferTypes.NotificationConfig value)

Notification configuration. This is not supported for transfers involving PosixFilesystem.

.google.storagetransfer.v1.NotificationConfig notification_config = 11;

Parameter
NameDescription
valueTransferTypes.NotificationConfig
Returns
TypeDescription
TransferTypes.TransferJob.Builder

mergeSchedule(TransferTypes.Schedule value)

public TransferTypes.TransferJob.Builder mergeSchedule(TransferTypes.Schedule value)

Specifies schedule for the transfer job. This is an optional field. When the field is not set, the job never executes a transfer, unless you invoke RunTransferJob or update the job to have a non-empty schedule.

.google.storagetransfer.v1.Schedule schedule = 5;

Parameter
NameDescription
valueTransferTypes.Schedule
Returns
TypeDescription
TransferTypes.TransferJob.Builder

mergeTransferSpec(TransferTypes.TransferSpec value)

public TransferTypes.TransferJob.Builder mergeTransferSpec(TransferTypes.TransferSpec value)

Transfer specification.

.google.storagetransfer.v1.TransferSpec transfer_spec = 4;

Parameter
NameDescription
valueTransferTypes.TransferSpec
Returns
TypeDescription
TransferTypes.TransferJob.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCreationTime(Timestamp value)

public TransferTypes.TransferJob.Builder setCreationTime(Timestamp value)

Output only. The time that the transfer job was created.

.google.protobuf.Timestamp creation_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TransferTypes.TransferJob.Builder

setCreationTime(Timestamp.Builder builderForValue)

public TransferTypes.TransferJob.Builder setCreationTime(Timestamp.Builder builderForValue)

Output only. The time that the transfer job was created.

.google.protobuf.Timestamp creation_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
TransferTypes.TransferJob.Builder

setDeletionTime(Timestamp value)

public TransferTypes.TransferJob.Builder setDeletionTime(Timestamp value)

Output only. The time that the transfer job was deleted.

.google.protobuf.Timestamp deletion_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TransferTypes.TransferJob.Builder

setDeletionTime(Timestamp.Builder builderForValue)

public TransferTypes.TransferJob.Builder setDeletionTime(Timestamp.Builder builderForValue)

Output only. The time that the transfer job was deleted.

.google.protobuf.Timestamp deletion_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
TransferTypes.TransferJob.Builder

setDescription(String value)

public TransferTypes.TransferJob.Builder setDescription(String value)

A description provided by the user for the job. Its max length is 1024 bytes when Unicode-encoded.

string description = 2;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
TransferTypes.TransferJob.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public TransferTypes.TransferJob.Builder setDescriptionBytes(ByteString value)

A description provided by the user for the job. Its max length is 1024 bytes when Unicode-encoded.

string description = 2;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
TransferTypes.TransferJob.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLastModificationTime(Timestamp value)

public TransferTypes.TransferJob.Builder setLastModificationTime(Timestamp value)

Output only. The time that the transfer job was last modified.

.google.protobuf.Timestamp last_modification_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TransferTypes.TransferJob.Builder

setLastModificationTime(Timestamp.Builder builderForValue)

public TransferTypes.TransferJob.Builder setLastModificationTime(Timestamp.Builder builderForValue)

Output only. The time that the transfer job was last modified.

.google.protobuf.Timestamp last_modification_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
TransferTypes.TransferJob.Builder

setLatestOperationName(String value)

public TransferTypes.TransferJob.Builder setLatestOperationName(String value)

The name of the most recently started TransferOperation of this JobConfig. Present if a TransferOperation has been created for this JobConfig.

string latest_operation_name = 12;

Parameter
NameDescription
valueString

The latestOperationName to set.

Returns
TypeDescription
TransferTypes.TransferJob.Builder

This builder for chaining.

setLatestOperationNameBytes(ByteString value)

public TransferTypes.TransferJob.Builder setLatestOperationNameBytes(ByteString value)

The name of the most recently started TransferOperation of this JobConfig. Present if a TransferOperation has been created for this JobConfig.

string latest_operation_name = 12;

Parameter
NameDescription
valueByteString

The bytes for latestOperationName to set.

Returns
TypeDescription
TransferTypes.TransferJob.Builder

This builder for chaining.

setLoggingConfig(TransferTypes.LoggingConfig value)

public TransferTypes.TransferJob.Builder setLoggingConfig(TransferTypes.LoggingConfig value)

Logging configuration.

.google.storagetransfer.v1.LoggingConfig logging_config = 14;

Parameter
NameDescription
valueTransferTypes.LoggingConfig
Returns
TypeDescription
TransferTypes.TransferJob.Builder

setLoggingConfig(TransferTypes.LoggingConfig.Builder builderForValue)

public TransferTypes.TransferJob.Builder setLoggingConfig(TransferTypes.LoggingConfig.Builder builderForValue)

Logging configuration.

.google.storagetransfer.v1.LoggingConfig logging_config = 14;

Parameter
NameDescription
builderForValueTransferTypes.LoggingConfig.Builder
Returns
TypeDescription
TransferTypes.TransferJob.Builder

setName(String value)

public TransferTypes.TransferJob.Builder setName(String value)

A unique name (within the transfer project) assigned when the job is created. If this field is empty in a CreateTransferJobRequest, Storage Transfer Service assigns a unique name. Otherwise, the specified name is used as the unique name for this job. If the specified name is in use by a job, the creation request fails with an ALREADY_EXISTS error. This name must start with "transferJobs/" prefix and end with a letter or a number, and should be no more than 128 characters. For transfers involving PosixFilesystem, this name must start with transferJobs/OPI specifically. For all other transfer types, this name must not start with transferJobs/OPI. Non-PosixFilesystem example: "transferJobs/^(?!OPI)[A-Za-z0-9-.~]*[A-Za-z0-9]$" PosixFilesystem example: "transferJobs/OPI^[A-Za-z0-9-.~]*[A-Za-z0-9]$" Applications must not rely on the enforcement of naming requirements involving OPI. Invalid job names fail with an INVALID_ARGUMENT error.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
TransferTypes.TransferJob.Builder

This builder for chaining.

setNameBytes(ByteString value)

public TransferTypes.TransferJob.Builder setNameBytes(ByteString value)

A unique name (within the transfer project) assigned when the job is created. If this field is empty in a CreateTransferJobRequest, Storage Transfer Service assigns a unique name. Otherwise, the specified name is used as the unique name for this job. If the specified name is in use by a job, the creation request fails with an ALREADY_EXISTS error. This name must start with "transferJobs/" prefix and end with a letter or a number, and should be no more than 128 characters. For transfers involving PosixFilesystem, this name must start with transferJobs/OPI specifically. For all other transfer types, this name must not start with transferJobs/OPI. Non-PosixFilesystem example: "transferJobs/^(?!OPI)[A-Za-z0-9-.~]*[A-Za-z0-9]$" PosixFilesystem example: "transferJobs/OPI^[A-Za-z0-9-.~]*[A-Za-z0-9]$" Applications must not rely on the enforcement of naming requirements involving OPI. Invalid job names fail with an INVALID_ARGUMENT error.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
TransferTypes.TransferJob.Builder

This builder for chaining.

setNotificationConfig(TransferTypes.NotificationConfig value)

public TransferTypes.TransferJob.Builder setNotificationConfig(TransferTypes.NotificationConfig value)

Notification configuration. This is not supported for transfers involving PosixFilesystem.

.google.storagetransfer.v1.NotificationConfig notification_config = 11;

Parameter
NameDescription
valueTransferTypes.NotificationConfig
Returns
TypeDescription
TransferTypes.TransferJob.Builder

setNotificationConfig(TransferTypes.NotificationConfig.Builder builderForValue)

public TransferTypes.TransferJob.Builder setNotificationConfig(TransferTypes.NotificationConfig.Builder builderForValue)

Notification configuration. This is not supported for transfers involving PosixFilesystem.

.google.storagetransfer.v1.NotificationConfig notification_config = 11;

Parameter
NameDescription
builderForValueTransferTypes.NotificationConfig.Builder
Returns
TypeDescription
TransferTypes.TransferJob.Builder

setProjectId(String value)

public TransferTypes.TransferJob.Builder setProjectId(String value)

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

string project_id = 3;

Parameter
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
TransferTypes.TransferJob.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public TransferTypes.TransferJob.Builder setProjectIdBytes(ByteString value)

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

string project_id = 3;

Parameter
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
TransferTypes.TransferJob.Builder

This builder for chaining.

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

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

setSchedule(TransferTypes.Schedule value)

public TransferTypes.TransferJob.Builder setSchedule(TransferTypes.Schedule value)

Specifies schedule for the transfer job. This is an optional field. When the field is not set, the job never executes a transfer, unless you invoke RunTransferJob or update the job to have a non-empty schedule.

.google.storagetransfer.v1.Schedule schedule = 5;

Parameter
NameDescription
valueTransferTypes.Schedule
Returns
TypeDescription
TransferTypes.TransferJob.Builder

setSchedule(TransferTypes.Schedule.Builder builderForValue)

public TransferTypes.TransferJob.Builder setSchedule(TransferTypes.Schedule.Builder builderForValue)

Specifies schedule for the transfer job. This is an optional field. When the field is not set, the job never executes a transfer, unless you invoke RunTransferJob or update the job to have a non-empty schedule.

.google.storagetransfer.v1.Schedule schedule = 5;

Parameter
NameDescription
builderForValueTransferTypes.Schedule.Builder
Returns
TypeDescription
TransferTypes.TransferJob.Builder

setStatus(TransferTypes.TransferJob.Status value)

public TransferTypes.TransferJob.Builder setStatus(TransferTypes.TransferJob.Status value)

Status of the job. This value MUST be specified for CreateTransferJobRequests. Note: The effect of the new job status takes place during a subsequent job run. For example, if you change the job status from ENABLED to DISABLED, and an operation spawned by the transfer is running, the status change would not affect the current operation.

.google.storagetransfer.v1.TransferJob.Status status = 6;

Parameter
NameDescription
valueTransferTypes.TransferJob.Status

The status to set.

Returns
TypeDescription
TransferTypes.TransferJob.Builder

This builder for chaining.

setStatusValue(int value)

public TransferTypes.TransferJob.Builder setStatusValue(int value)

Status of the job. This value MUST be specified for CreateTransferJobRequests. Note: The effect of the new job status takes place during a subsequent job run. For example, if you change the job status from ENABLED to DISABLED, and an operation spawned by the transfer is running, the status change would not affect the current operation.

.google.storagetransfer.v1.TransferJob.Status status = 6;

Parameter
NameDescription
valueint

The enum numeric value on the wire for status to set.

Returns
TypeDescription
TransferTypes.TransferJob.Builder

This builder for chaining.

setTransferSpec(TransferTypes.TransferSpec value)

public TransferTypes.TransferJob.Builder setTransferSpec(TransferTypes.TransferSpec value)

Transfer specification.

.google.storagetransfer.v1.TransferSpec transfer_spec = 4;

Parameter
NameDescription
valueTransferTypes.TransferSpec
Returns
TypeDescription
TransferTypes.TransferJob.Builder

setTransferSpec(TransferTypes.TransferSpec.Builder builderForValue)

public TransferTypes.TransferJob.Builder setTransferSpec(TransferTypes.TransferSpec.Builder builderForValue)

Transfer specification.

.google.storagetransfer.v1.TransferSpec transfer_spec = 4;

Parameter
NameDescription
builderForValueTransferTypes.TransferSpec.Builder
Returns
TypeDescription
TransferTypes.TransferJob.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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