Class RetryJobRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RetryJobRequest.Builder>
com.google.cloud.deploy.v1.RetryJobRequest.Builder
All Implemented Interfaces:
RetryJobRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RetryJobRequest

public static final class RetryJobRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<RetryJobRequest.Builder> implements RetryJobRequestOrBuilder
 RetryJobRequest is the request object used by `RetryJob`.
 
Protobuf type google.cloud.deploy.v1.RetryJobRequest
  • 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<RetryJobRequest.Builder>
    • clear

      public RetryJobRequest.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<RetryJobRequest.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<RetryJobRequest.Builder>
    • getDefaultInstanceForType

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

      public RetryJobRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public RetryJobRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public RetryJobRequest.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<RetryJobRequest.Builder>
    • mergeFrom

      public RetryJobRequest.Builder mergeFrom(RetryJobRequest other)
    • isInitialized

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

      public RetryJobRequest.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<RetryJobRequest.Builder>
      Throws:
      IOException
    • getRollout

      public String getRollout()
       Required. Name of the Rollout. Format is
       `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
       
      string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getRollout in interface RetryJobRequestOrBuilder
      Returns:
      The rollout.
    • getRolloutBytes

      public com.google.protobuf.ByteString getRolloutBytes()
       Required. Name of the Rollout. Format is
       `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
       
      string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getRolloutBytes in interface RetryJobRequestOrBuilder
      Returns:
      The bytes for rollout.
    • setRollout

      public RetryJobRequest.Builder setRollout(String value)
       Required. Name of the Rollout. Format is
       `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
       
      string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The rollout to set.
      Returns:
      This builder for chaining.
    • clearRollout

      public RetryJobRequest.Builder clearRollout()
       Required. Name of the Rollout. Format is
       `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
       
      string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setRolloutBytes

      public RetryJobRequest.Builder setRolloutBytes(com.google.protobuf.ByteString value)
       Required. Name of the Rollout. Format is
       `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
       
      string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for rollout to set.
      Returns:
      This builder for chaining.
    • getPhaseId

      public String getPhaseId()
       Required. The phase ID the Job to retry belongs to.
       
      string phase_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPhaseId in interface RetryJobRequestOrBuilder
      Returns:
      The phaseId.
    • getPhaseIdBytes

      public com.google.protobuf.ByteString getPhaseIdBytes()
       Required. The phase ID the Job to retry belongs to.
       
      string phase_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPhaseIdBytes in interface RetryJobRequestOrBuilder
      Returns:
      The bytes for phaseId.
    • setPhaseId

      public RetryJobRequest.Builder setPhaseId(String value)
       Required. The phase ID the Job to retry belongs to.
       
      string phase_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The phaseId to set.
      Returns:
      This builder for chaining.
    • clearPhaseId

      public RetryJobRequest.Builder clearPhaseId()
       Required. The phase ID the Job to retry belongs to.
       
      string phase_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setPhaseIdBytes

      public RetryJobRequest.Builder setPhaseIdBytes(com.google.protobuf.ByteString value)
       Required. The phase ID the Job to retry belongs to.
       
      string phase_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for phaseId to set.
      Returns:
      This builder for chaining.
    • getJobId

      public String getJobId()
       Required. The job ID for the Job to retry.
       
      string job_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getJobId in interface RetryJobRequestOrBuilder
      Returns:
      The jobId.
    • getJobIdBytes

      public com.google.protobuf.ByteString getJobIdBytes()
       Required. The job ID for the Job to retry.
       
      string job_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getJobIdBytes in interface RetryJobRequestOrBuilder
      Returns:
      The bytes for jobId.
    • setJobId

      public RetryJobRequest.Builder setJobId(String value)
       Required. The job ID for the Job to retry.
       
      string job_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The jobId to set.
      Returns:
      This builder for chaining.
    • clearJobId

      public RetryJobRequest.Builder clearJobId()
       Required. The job ID for the Job to retry.
       
      string job_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setJobIdBytes

      public RetryJobRequest.Builder setJobIdBytes(com.google.protobuf.ByteString value)
       Required. The job ID for the Job to retry.
       
      string job_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for jobId to set.
      Returns:
      This builder for chaining.
    • getOverrideDeployPolicyList

      public com.google.protobuf.ProtocolStringList getOverrideDeployPolicyList()
       Optional. Deploy policies to override. Format is
       `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
       
      repeated string override_deploy_policy = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getOverrideDeployPolicyList in interface RetryJobRequestOrBuilder
      Returns:
      A list containing the overrideDeployPolicy.
    • getOverrideDeployPolicyCount

      public int getOverrideDeployPolicyCount()
       Optional. Deploy policies to override. Format is
       `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
       
      repeated string override_deploy_policy = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getOverrideDeployPolicyCount in interface RetryJobRequestOrBuilder
      Returns:
      The count of overrideDeployPolicy.
    • getOverrideDeployPolicy

      public String getOverrideDeployPolicy(int index)
       Optional. Deploy policies to override. Format is
       `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
       
      repeated string override_deploy_policy = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getOverrideDeployPolicy in interface RetryJobRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The overrideDeployPolicy at the given index.
    • getOverrideDeployPolicyBytes

      public com.google.protobuf.ByteString getOverrideDeployPolicyBytes(int index)
       Optional. Deploy policies to override. Format is
       `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
       
      repeated string override_deploy_policy = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getOverrideDeployPolicyBytes in interface RetryJobRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the overrideDeployPolicy at the given index.
    • setOverrideDeployPolicy

      public RetryJobRequest.Builder setOverrideDeployPolicy(int index, String value)
       Optional. Deploy policies to override. Format is
       `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
       
      repeated string override_deploy_policy = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The overrideDeployPolicy to set.
      Returns:
      This builder for chaining.
    • addOverrideDeployPolicy

      public RetryJobRequest.Builder addOverrideDeployPolicy(String value)
       Optional. Deploy policies to override. Format is
       `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
       
      repeated string override_deploy_policy = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The overrideDeployPolicy to add.
      Returns:
      This builder for chaining.
    • addAllOverrideDeployPolicy

      public RetryJobRequest.Builder addAllOverrideDeployPolicy(Iterable<String> values)
       Optional. Deploy policies to override. Format is
       `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
       
      repeated string override_deploy_policy = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      values - The overrideDeployPolicy to add.
      Returns:
      This builder for chaining.
    • clearOverrideDeployPolicy

      public RetryJobRequest.Builder clearOverrideDeployPolicy()
       Optional. Deploy policies to override. Format is
       `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
       
      repeated string override_deploy_policy = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addOverrideDeployPolicyBytes

      public RetryJobRequest.Builder addOverrideDeployPolicyBytes(com.google.protobuf.ByteString value)
       Optional. Deploy policies to override. Format is
       `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
       
      repeated string override_deploy_policy = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the overrideDeployPolicy to add.
      Returns:
      This builder for chaining.