Class TransferProto.UpdateTransferJobRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TransferProto.UpdateTransferJobRequest.Builder>
com.google.storagetransfer.v1.proto.TransferProto.UpdateTransferJobRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TransferProto.UpdateTransferJobRequestOrBuilder, Cloneable
Enclosing class:
TransferProto.UpdateTransferJobRequest

public static final class TransferProto.UpdateTransferJobRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<TransferProto.UpdateTransferJobRequest.Builder> implements TransferProto.UpdateTransferJobRequestOrBuilder
 Request passed to UpdateTransferJob.
 
Protobuf type google.storagetransfer.v1.UpdateTransferJobRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TransferProto.UpdateTransferJobRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<TransferProto.UpdateTransferJobRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TransferProto.UpdateTransferJobRequest.Builder>
    • getDefaultInstanceForType

      public TransferProto.UpdateTransferJobRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TransferProto.UpdateTransferJobRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransferProto.UpdateTransferJobRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<TransferProto.UpdateTransferJobRequest.Builder>
    • mergeFrom

      public TransferProto.UpdateTransferJobRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransferProto.UpdateTransferJobRequest.Builder>
      Throws:
      IOException
    • getJobName

      public String getJobName()
       Required. The name of job to update.
       
      string job_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getJobName in interface TransferProto.UpdateTransferJobRequestOrBuilder
      Returns:
      The jobName.
    • getJobNameBytes

      public com.google.protobuf.ByteString getJobNameBytes()
       Required. The name of job to update.
       
      string job_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getJobNameBytes in interface TransferProto.UpdateTransferJobRequestOrBuilder
      Returns:
      The bytes for jobName.
    • setJobName

       Required. The name of job to update.
       
      string job_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The jobName to set.
      Returns:
      This builder for chaining.
    • clearJobName

       Required. The name of job to update.
       
      string job_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setJobNameBytes

      public TransferProto.UpdateTransferJobRequest.Builder setJobNameBytes(com.google.protobuf.ByteString value)
       Required. The name of job to update.
       
      string job_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for jobName to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getProjectId in interface TransferProto.UpdateTransferJobRequestOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.ByteString getProjectIdBytes()
       Required. The ID of the Google Cloud project that owns the
       job.
       
      string project_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProjectIdBytes in interface TransferProto.UpdateTransferJobRequestOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

       Required. The ID of the Google Cloud project that owns the
       job.
       
      string project_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The projectId to set.
      Returns:
      This builder for chaining.
    • clearProjectId

       Required. The ID of the Google Cloud project that owns the
       job.
       
      string project_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setProjectIdBytes

      public TransferProto.UpdateTransferJobRequest.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
       Required. The ID of the Google Cloud project that owns the
       job.
       
      string project_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for projectId to set.
      Returns:
      This builder for chaining.
    • hasTransferJob

      public boolean hasTransferJob()
       Required. The job to update. `transferJob` is expected to specify one or
       more of five fields:
       [description][google.storagetransfer.v1.TransferJob.description],
       [transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec],
       [notification_config][google.storagetransfer.v1.TransferJob.notification_config],
       [logging_config][google.storagetransfer.v1.TransferJob.logging_config], and
       [status][google.storagetransfer.v1.TransferJob.status].  An
       `UpdateTransferJobRequest` that specifies other fields are rejected with
       the error [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. Updating a
       job status to
       [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED] requires
       `storagetransfer.jobs.delete` permission.
       
      .google.storagetransfer.v1.TransferJob transfer_job = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasTransferJob in interface TransferProto.UpdateTransferJobRequestOrBuilder
      Returns:
      Whether the transferJob field is set.
    • getTransferJob

      public TransferTypes.TransferJob getTransferJob()
       Required. The job to update. `transferJob` is expected to specify one or
       more of five fields:
       [description][google.storagetransfer.v1.TransferJob.description],
       [transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec],
       [notification_config][google.storagetransfer.v1.TransferJob.notification_config],
       [logging_config][google.storagetransfer.v1.TransferJob.logging_config], and
       [status][google.storagetransfer.v1.TransferJob.status].  An
       `UpdateTransferJobRequest` that specifies other fields are rejected with
       the error [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. Updating a
       job status to
       [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED] requires
       `storagetransfer.jobs.delete` permission.
       
      .google.storagetransfer.v1.TransferJob transfer_job = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTransferJob in interface TransferProto.UpdateTransferJobRequestOrBuilder
      Returns:
      The transferJob.
    • setTransferJob

       Required. The job to update. `transferJob` is expected to specify one or
       more of five fields:
       [description][google.storagetransfer.v1.TransferJob.description],
       [transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec],
       [notification_config][google.storagetransfer.v1.TransferJob.notification_config],
       [logging_config][google.storagetransfer.v1.TransferJob.logging_config], and
       [status][google.storagetransfer.v1.TransferJob.status].  An
       `UpdateTransferJobRequest` that specifies other fields are rejected with
       the error [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. Updating a
       job status to
       [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED] requires
       `storagetransfer.jobs.delete` permission.
       
      .google.storagetransfer.v1.TransferJob transfer_job = 3 [(.google.api.field_behavior) = REQUIRED];
    • setTransferJob

       Required. The job to update. `transferJob` is expected to specify one or
       more of five fields:
       [description][google.storagetransfer.v1.TransferJob.description],
       [transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec],
       [notification_config][google.storagetransfer.v1.TransferJob.notification_config],
       [logging_config][google.storagetransfer.v1.TransferJob.logging_config], and
       [status][google.storagetransfer.v1.TransferJob.status].  An
       `UpdateTransferJobRequest` that specifies other fields are rejected with
       the error [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. Updating a
       job status to
       [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED] requires
       `storagetransfer.jobs.delete` permission.
       
      .google.storagetransfer.v1.TransferJob transfer_job = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeTransferJob

       Required. The job to update. `transferJob` is expected to specify one or
       more of five fields:
       [description][google.storagetransfer.v1.TransferJob.description],
       [transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec],
       [notification_config][google.storagetransfer.v1.TransferJob.notification_config],
       [logging_config][google.storagetransfer.v1.TransferJob.logging_config], and
       [status][google.storagetransfer.v1.TransferJob.status].  An
       `UpdateTransferJobRequest` that specifies other fields are rejected with
       the error [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. Updating a
       job status to
       [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED] requires
       `storagetransfer.jobs.delete` permission.
       
      .google.storagetransfer.v1.TransferJob transfer_job = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearTransferJob

       Required. The job to update. `transferJob` is expected to specify one or
       more of five fields:
       [description][google.storagetransfer.v1.TransferJob.description],
       [transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec],
       [notification_config][google.storagetransfer.v1.TransferJob.notification_config],
       [logging_config][google.storagetransfer.v1.TransferJob.logging_config], and
       [status][google.storagetransfer.v1.TransferJob.status].  An
       `UpdateTransferJobRequest` that specifies other fields are rejected with
       the error [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. Updating a
       job status to
       [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED] requires
       `storagetransfer.jobs.delete` permission.
       
      .google.storagetransfer.v1.TransferJob transfer_job = 3 [(.google.api.field_behavior) = REQUIRED];
    • getTransferJobBuilder

      public TransferTypes.TransferJob.Builder getTransferJobBuilder()
       Required. The job to update. `transferJob` is expected to specify one or
       more of five fields:
       [description][google.storagetransfer.v1.TransferJob.description],
       [transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec],
       [notification_config][google.storagetransfer.v1.TransferJob.notification_config],
       [logging_config][google.storagetransfer.v1.TransferJob.logging_config], and
       [status][google.storagetransfer.v1.TransferJob.status].  An
       `UpdateTransferJobRequest` that specifies other fields are rejected with
       the error [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. Updating a
       job status to
       [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED] requires
       `storagetransfer.jobs.delete` permission.
       
      .google.storagetransfer.v1.TransferJob transfer_job = 3 [(.google.api.field_behavior) = REQUIRED];
    • getTransferJobOrBuilder

      public TransferTypes.TransferJobOrBuilder getTransferJobOrBuilder()
       Required. The job to update. `transferJob` is expected to specify one or
       more of five fields:
       [description][google.storagetransfer.v1.TransferJob.description],
       [transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec],
       [notification_config][google.storagetransfer.v1.TransferJob.notification_config],
       [logging_config][google.storagetransfer.v1.TransferJob.logging_config], and
       [status][google.storagetransfer.v1.TransferJob.status].  An
       `UpdateTransferJobRequest` that specifies other fields are rejected with
       the error [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. Updating a
       job status to
       [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED] requires
       `storagetransfer.jobs.delete` permission.
       
      .google.storagetransfer.v1.TransferJob transfer_job = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTransferJobOrBuilder in interface TransferProto.UpdateTransferJobRequestOrBuilder
    • 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][google.storagetransfer.v1.TransferJob.description],
       [transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec],
       [notification_config][google.storagetransfer.v1.TransferJob.notification_config],
       [logging_config][google.storagetransfer.v1.TransferJob.logging_config], and
       [status][google.storagetransfer.v1.TransferJob.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.rpc.Code.INVALID_ARGUMENT].
       
      .google.protobuf.FieldMask update_transfer_job_field_mask = 4;
      Specified by:
      hasUpdateTransferJobFieldMask in interface TransferProto.UpdateTransferJobRequestOrBuilder
      Returns:
      Whether the updateTransferJobFieldMask field is set.
    • getUpdateTransferJobFieldMask

      public com.google.protobuf.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][google.storagetransfer.v1.TransferJob.description],
       [transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec],
       [notification_config][google.storagetransfer.v1.TransferJob.notification_config],
       [logging_config][google.storagetransfer.v1.TransferJob.logging_config], and
       [status][google.storagetransfer.v1.TransferJob.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.rpc.Code.INVALID_ARGUMENT].
       
      .google.protobuf.FieldMask update_transfer_job_field_mask = 4;
      Specified by:
      getUpdateTransferJobFieldMask in interface TransferProto.UpdateTransferJobRequestOrBuilder
      Returns:
      The updateTransferJobFieldMask.
    • setUpdateTransferJobFieldMask

      public TransferProto.UpdateTransferJobRequest.Builder setUpdateTransferJobFieldMask(com.google.protobuf.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][google.storagetransfer.v1.TransferJob.description],
       [transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec],
       [notification_config][google.storagetransfer.v1.TransferJob.notification_config],
       [logging_config][google.storagetransfer.v1.TransferJob.logging_config], and
       [status][google.storagetransfer.v1.TransferJob.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.rpc.Code.INVALID_ARGUMENT].
       
      .google.protobuf.FieldMask update_transfer_job_field_mask = 4;
    • setUpdateTransferJobFieldMask

      public TransferProto.UpdateTransferJobRequest.Builder setUpdateTransferJobFieldMask(com.google.protobuf.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][google.storagetransfer.v1.TransferJob.description],
       [transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec],
       [notification_config][google.storagetransfer.v1.TransferJob.notification_config],
       [logging_config][google.storagetransfer.v1.TransferJob.logging_config], and
       [status][google.storagetransfer.v1.TransferJob.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.rpc.Code.INVALID_ARGUMENT].
       
      .google.protobuf.FieldMask update_transfer_job_field_mask = 4;
    • mergeUpdateTransferJobFieldMask

      public TransferProto.UpdateTransferJobRequest.Builder mergeUpdateTransferJobFieldMask(com.google.protobuf.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][google.storagetransfer.v1.TransferJob.description],
       [transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec],
       [notification_config][google.storagetransfer.v1.TransferJob.notification_config],
       [logging_config][google.storagetransfer.v1.TransferJob.logging_config], and
       [status][google.storagetransfer.v1.TransferJob.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.rpc.Code.INVALID_ARGUMENT].
       
      .google.protobuf.FieldMask update_transfer_job_field_mask = 4;
    • 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][google.storagetransfer.v1.TransferJob.description],
       [transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec],
       [notification_config][google.storagetransfer.v1.TransferJob.notification_config],
       [logging_config][google.storagetransfer.v1.TransferJob.logging_config], and
       [status][google.storagetransfer.v1.TransferJob.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.rpc.Code.INVALID_ARGUMENT].
       
      .google.protobuf.FieldMask update_transfer_job_field_mask = 4;
    • getUpdateTransferJobFieldMaskBuilder

      public com.google.protobuf.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][google.storagetransfer.v1.TransferJob.description],
       [transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec],
       [notification_config][google.storagetransfer.v1.TransferJob.notification_config],
       [logging_config][google.storagetransfer.v1.TransferJob.logging_config], and
       [status][google.storagetransfer.v1.TransferJob.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.rpc.Code.INVALID_ARGUMENT].
       
      .google.protobuf.FieldMask update_transfer_job_field_mask = 4;
    • getUpdateTransferJobFieldMaskOrBuilder

      public com.google.protobuf.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][google.storagetransfer.v1.TransferJob.description],
       [transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec],
       [notification_config][google.storagetransfer.v1.TransferJob.notification_config],
       [logging_config][google.storagetransfer.v1.TransferJob.logging_config], and
       [status][google.storagetransfer.v1.TransferJob.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.rpc.Code.INVALID_ARGUMENT].
       
      .google.protobuf.FieldMask update_transfer_job_field_mask = 4;
      Specified by:
      getUpdateTransferJobFieldMaskOrBuilder in interface TransferProto.UpdateTransferJobRequestOrBuilder