Class RollbackTargetRequest.Builder

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

public static final class RollbackTargetRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<RollbackTargetRequest.Builder> implements RollbackTargetRequestOrBuilder
 The request object for `RollbackTarget`.
 
Protobuf type google.cloud.deploy.v1.RollbackTargetRequest
  • 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<RollbackTargetRequest.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<RollbackTargetRequest.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<RollbackTargetRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public RollbackTargetRequest.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<RollbackTargetRequest.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. The `DeliveryPipeline` for which the rollback `Rollout` must be
       created. The format is
       `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface RollbackTargetRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The `DeliveryPipeline` for which the rollback `Rollout` must be
       created. The format is
       `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface RollbackTargetRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public RollbackTargetRequest.Builder setName(String value)
       Required. The `DeliveryPipeline` for which the rollback `Rollout` must be
       created. The format is
       `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public RollbackTargetRequest.Builder clearName()
       Required. The `DeliveryPipeline` for which the rollback `Rollout` must be
       created. The format is
       `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public RollbackTargetRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The `DeliveryPipeline` for which the rollback `Rollout` must be
       created. The format is
       `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getTargetId

      public String getTargetId()
       Required. ID of the `Target` that is being rolled back.
       
      string target_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTargetId in interface RollbackTargetRequestOrBuilder
      Returns:
      The targetId.
    • getTargetIdBytes

      public com.google.protobuf.ByteString getTargetIdBytes()
       Required. ID of the `Target` that is being rolled back.
       
      string target_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTargetIdBytes in interface RollbackTargetRequestOrBuilder
      Returns:
      The bytes for targetId.
    • setTargetId

      public RollbackTargetRequest.Builder setTargetId(String value)
       Required. ID of the `Target` that is being rolled back.
       
      string target_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The targetId to set.
      Returns:
      This builder for chaining.
    • clearTargetId

      public RollbackTargetRequest.Builder clearTargetId()
       Required. ID of the `Target` that is being rolled back.
       
      string target_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setTargetIdBytes

      public RollbackTargetRequest.Builder setTargetIdBytes(com.google.protobuf.ByteString value)
       Required. ID of the `Target` that is being rolled back.
       
      string target_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for targetId to set.
      Returns:
      This builder for chaining.
    • getRolloutId

      public String getRolloutId()
       Required. ID of the rollback `Rollout` to create.
       
      string rollout_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRolloutId in interface RollbackTargetRequestOrBuilder
      Returns:
      The rolloutId.
    • getRolloutIdBytes

      public com.google.protobuf.ByteString getRolloutIdBytes()
       Required. ID of the rollback `Rollout` to create.
       
      string rollout_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRolloutIdBytes in interface RollbackTargetRequestOrBuilder
      Returns:
      The bytes for rolloutId.
    • setRolloutId

      public RollbackTargetRequest.Builder setRolloutId(String value)
       Required. ID of the rollback `Rollout` to create.
       
      string rollout_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The rolloutId to set.
      Returns:
      This builder for chaining.
    • clearRolloutId

      public RollbackTargetRequest.Builder clearRolloutId()
       Required. ID of the rollback `Rollout` to create.
       
      string rollout_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setRolloutIdBytes

      public RollbackTargetRequest.Builder setRolloutIdBytes(com.google.protobuf.ByteString value)
       Required. ID of the rollback `Rollout` to create.
       
      string rollout_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for rolloutId to set.
      Returns:
      This builder for chaining.
    • getReleaseId

      public String getReleaseId()
       Optional. ID of the `Release` to roll back to. If this isn't specified, the
       previous successful `Rollout` to the specified target will be used to
       determine the `Release`.
       
      string release_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReleaseId in interface RollbackTargetRequestOrBuilder
      Returns:
      The releaseId.
    • getReleaseIdBytes

      public com.google.protobuf.ByteString getReleaseIdBytes()
       Optional. ID of the `Release` to roll back to. If this isn't specified, the
       previous successful `Rollout` to the specified target will be used to
       determine the `Release`.
       
      string release_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReleaseIdBytes in interface RollbackTargetRequestOrBuilder
      Returns:
      The bytes for releaseId.
    • setReleaseId

      public RollbackTargetRequest.Builder setReleaseId(String value)
       Optional. ID of the `Release` to roll back to. If this isn't specified, the
       previous successful `Rollout` to the specified target will be used to
       determine the `Release`.
       
      string release_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The releaseId to set.
      Returns:
      This builder for chaining.
    • clearReleaseId

      public RollbackTargetRequest.Builder clearReleaseId()
       Optional. ID of the `Release` to roll back to. If this isn't specified, the
       previous successful `Rollout` to the specified target will be used to
       determine the `Release`.
       
      string release_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setReleaseIdBytes

      public RollbackTargetRequest.Builder setReleaseIdBytes(com.google.protobuf.ByteString value)
       Optional. ID of the `Release` to roll back to. If this isn't specified, the
       previous successful `Rollout` to the specified target will be used to
       determine the `Release`.
       
      string release_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for releaseId to set.
      Returns:
      This builder for chaining.
    • getRolloutToRollBack

      public String getRolloutToRollBack()
       Optional. If provided, this must be the latest `Rollout` that is on the
       `Target`.
       
      string rollout_to_roll_back = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRolloutToRollBack in interface RollbackTargetRequestOrBuilder
      Returns:
      The rolloutToRollBack.
    • getRolloutToRollBackBytes

      public com.google.protobuf.ByteString getRolloutToRollBackBytes()
       Optional. If provided, this must be the latest `Rollout` that is on the
       `Target`.
       
      string rollout_to_roll_back = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRolloutToRollBackBytes in interface RollbackTargetRequestOrBuilder
      Returns:
      The bytes for rolloutToRollBack.
    • setRolloutToRollBack

      public RollbackTargetRequest.Builder setRolloutToRollBack(String value)
       Optional. If provided, this must be the latest `Rollout` that is on the
       `Target`.
       
      string rollout_to_roll_back = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The rolloutToRollBack to set.
      Returns:
      This builder for chaining.
    • clearRolloutToRollBack

      public RollbackTargetRequest.Builder clearRolloutToRollBack()
       Optional. If provided, this must be the latest `Rollout` that is on the
       `Target`.
       
      string rollout_to_roll_back = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setRolloutToRollBackBytes

      public RollbackTargetRequest.Builder setRolloutToRollBackBytes(com.google.protobuf.ByteString value)
       Optional. If provided, this must be the latest `Rollout` that is on the
       `Target`.
       
      string rollout_to_roll_back = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for rolloutToRollBack to set.
      Returns:
      This builder for chaining.
    • hasRollbackConfig

      public boolean hasRollbackConfig()
       Optional. Configs for the rollback `Rollout`.
       
      .google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRollbackConfig in interface RollbackTargetRequestOrBuilder
      Returns:
      Whether the rollbackConfig field is set.
    • getRollbackConfig

      public RollbackTargetConfig getRollbackConfig()
       Optional. Configs for the rollback `Rollout`.
       
      .google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRollbackConfig in interface RollbackTargetRequestOrBuilder
      Returns:
      The rollbackConfig.
    • setRollbackConfig

      public RollbackTargetRequest.Builder setRollbackConfig(RollbackTargetConfig value)
       Optional. Configs for the rollback `Rollout`.
       
      .google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL];
    • setRollbackConfig

      public RollbackTargetRequest.Builder setRollbackConfig(RollbackTargetConfig.Builder builderForValue)
       Optional. Configs for the rollback `Rollout`.
       
      .google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL];
    • mergeRollbackConfig

      public RollbackTargetRequest.Builder mergeRollbackConfig(RollbackTargetConfig value)
       Optional. Configs for the rollback `Rollout`.
       
      .google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL];
    • clearRollbackConfig

      public RollbackTargetRequest.Builder clearRollbackConfig()
       Optional. Configs for the rollback `Rollout`.
       
      .google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getRollbackConfigBuilder

      public RollbackTargetConfig.Builder getRollbackConfigBuilder()
       Optional. Configs for the rollback `Rollout`.
       
      .google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getRollbackConfigOrBuilder

      public RollbackTargetConfigOrBuilder getRollbackConfigOrBuilder()
       Optional. Configs for the rollback `Rollout`.
       
      .google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRollbackConfigOrBuilder in interface RollbackTargetRequestOrBuilder
    • getValidateOnly

      public boolean getValidateOnly()
       Optional. If set to true, the request is validated and the user is provided
       with a `RollbackTargetResponse`.
       
      bool validate_only = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValidateOnly in interface RollbackTargetRequestOrBuilder
      Returns:
      The validateOnly.
    • setValidateOnly

      public RollbackTargetRequest.Builder setValidateOnly(boolean value)
       Optional. If set to true, the request is validated and the user is provided
       with a `RollbackTargetResponse`.
       
      bool validate_only = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The validateOnly to set.
      Returns:
      This builder for chaining.
    • clearValidateOnly

      public RollbackTargetRequest.Builder clearValidateOnly()
       Optional. If set to true, the request is validated and the user is provided
       with a `RollbackTargetResponse`.
       
      bool validate_only = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getOverrideDeployPolicyList

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

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

      public String getOverrideDeployPolicy(int index)
       Optional. Deploy policies to override. Format is
       `projects/{project}/locations/{location}/deployPolicies/{deploy_policy}`.
       
      repeated string override_deploy_policy = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getOverrideDeployPolicy in interface RollbackTargetRequestOrBuilder
      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/{deploy_policy}`.
       
      repeated string override_deploy_policy = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getOverrideDeployPolicyBytes in interface RollbackTargetRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the overrideDeployPolicy at the given index.
    • setOverrideDeployPolicy

      public RollbackTargetRequest.Builder setOverrideDeployPolicy(int index, String value)
       Optional. Deploy policies to override. Format is
       `projects/{project}/locations/{location}/deployPolicies/{deploy_policy}`.
       
      repeated string override_deploy_policy = 9 [(.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 RollbackTargetRequest.Builder addOverrideDeployPolicy(String value)
       Optional. Deploy policies to override. Format is
       `projects/{project}/locations/{location}/deployPolicies/{deploy_policy}`.
       
      repeated string override_deploy_policy = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The overrideDeployPolicy to add.
      Returns:
      This builder for chaining.
    • addAllOverrideDeployPolicy

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

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

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