Class CanaryDeployment.Builder

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

public static final class CanaryDeployment.Builder extends com.google.protobuf.GeneratedMessage.Builder<CanaryDeployment.Builder> implements CanaryDeploymentOrBuilder
 CanaryDeployment represents the canary deployment configuration
 
Protobuf type google.cloud.deploy.v1.CanaryDeployment
  • 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<CanaryDeployment.Builder>
    • clear

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

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

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

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

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

      public CanaryDeployment.Builder mergeFrom(CanaryDeployment other)
    • isInitialized

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

      public CanaryDeployment.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<CanaryDeployment.Builder>
      Throws:
      IOException
    • getPercentagesList

      public List<Integer> getPercentagesList()
       Required. The percentage based deployments that will occur as a part of a
       `Rollout`. List is expected in ascending order and each integer n is
       0 <= n < 100.
       If the GatewayServiceMesh is configured for Kubernetes, then the range for
       n is 0 <= n <= 100.
       
      repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPercentagesList in interface CanaryDeploymentOrBuilder
      Returns:
      A list containing the percentages.
    • getPercentagesCount

      public int getPercentagesCount()
       Required. The percentage based deployments that will occur as a part of a
       `Rollout`. List is expected in ascending order and each integer n is
       0 <= n < 100.
       If the GatewayServiceMesh is configured for Kubernetes, then the range for
       n is 0 <= n <= 100.
       
      repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPercentagesCount in interface CanaryDeploymentOrBuilder
      Returns:
      The count of percentages.
    • getPercentages

      public int getPercentages(int index)
       Required. The percentage based deployments that will occur as a part of a
       `Rollout`. List is expected in ascending order and each integer n is
       0 <= n < 100.
       If the GatewayServiceMesh is configured for Kubernetes, then the range for
       n is 0 <= n <= 100.
       
      repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPercentages in interface CanaryDeploymentOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The percentages at the given index.
    • setPercentages

      public CanaryDeployment.Builder setPercentages(int index, int value)
       Required. The percentage based deployments that will occur as a part of a
       `Rollout`. List is expected in ascending order and each integer n is
       0 <= n < 100.
       If the GatewayServiceMesh is configured for Kubernetes, then the range for
       n is 0 <= n <= 100.
       
      repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The percentages to set.
      Returns:
      This builder for chaining.
    • addPercentages

      public CanaryDeployment.Builder addPercentages(int value)
       Required. The percentage based deployments that will occur as a part of a
       `Rollout`. List is expected in ascending order and each integer n is
       0 <= n < 100.
       If the GatewayServiceMesh is configured for Kubernetes, then the range for
       n is 0 <= n <= 100.
       
      repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The percentages to add.
      Returns:
      This builder for chaining.
    • addAllPercentages

      public CanaryDeployment.Builder addAllPercentages(Iterable<? extends Integer> values)
       Required. The percentage based deployments that will occur as a part of a
       `Rollout`. List is expected in ascending order and each integer n is
       0 <= n < 100.
       If the GatewayServiceMesh is configured for Kubernetes, then the range for
       n is 0 <= n <= 100.
       
      repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The percentages to add.
      Returns:
      This builder for chaining.
    • clearPercentages

      public CanaryDeployment.Builder clearPercentages()
       Required. The percentage based deployments that will occur as a part of a
       `Rollout`. List is expected in ascending order and each integer n is
       0 <= n < 100.
       If the GatewayServiceMesh is configured for Kubernetes, then the range for
       n is 0 <= n <= 100.
       
      repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getVerify

      public boolean getVerify()
       Optional. Whether to run verify tests after each percentage deployment via
       `skaffold verify`.
       
      bool verify = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVerify in interface CanaryDeploymentOrBuilder
      Returns:
      The verify.
    • setVerify

      public CanaryDeployment.Builder setVerify(boolean value)
       Optional. Whether to run verify tests after each percentage deployment via
       `skaffold verify`.
       
      bool verify = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The verify to set.
      Returns:
      This builder for chaining.
    • clearVerify

      public CanaryDeployment.Builder clearVerify()
       Optional. Whether to run verify tests after each percentage deployment via
       `skaffold verify`.
       
      bool verify = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasPredeploy

      public boolean hasPredeploy()
       Optional. Configuration for the predeploy job of the first phase. If this
       is not configured, there will be no predeploy job for this phase.
       
      .google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasPredeploy in interface CanaryDeploymentOrBuilder
      Returns:
      Whether the predeploy field is set.
    • getPredeploy

      public Predeploy getPredeploy()
       Optional. Configuration for the predeploy job of the first phase. If this
       is not configured, there will be no predeploy job for this phase.
       
      .google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPredeploy in interface CanaryDeploymentOrBuilder
      Returns:
      The predeploy.
    • setPredeploy

      public CanaryDeployment.Builder setPredeploy(Predeploy value)
       Optional. Configuration for the predeploy job of the first phase. If this
       is not configured, there will be no predeploy job for this phase.
       
      .google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setPredeploy

      public CanaryDeployment.Builder setPredeploy(Predeploy.Builder builderForValue)
       Optional. Configuration for the predeploy job of the first phase. If this
       is not configured, there will be no predeploy job for this phase.
       
      .google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergePredeploy

      public CanaryDeployment.Builder mergePredeploy(Predeploy value)
       Optional. Configuration for the predeploy job of the first phase. If this
       is not configured, there will be no predeploy job for this phase.
       
      .google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearPredeploy

      public CanaryDeployment.Builder clearPredeploy()
       Optional. Configuration for the predeploy job of the first phase. If this
       is not configured, there will be no predeploy job for this phase.
       
      .google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getPredeployBuilder

      public Predeploy.Builder getPredeployBuilder()
       Optional. Configuration for the predeploy job of the first phase. If this
       is not configured, there will be no predeploy job for this phase.
       
      .google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getPredeployOrBuilder

      public PredeployOrBuilder getPredeployOrBuilder()
       Optional. Configuration for the predeploy job of the first phase. If this
       is not configured, there will be no predeploy job for this phase.
       
      .google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPredeployOrBuilder in interface CanaryDeploymentOrBuilder
    • hasPostdeploy

      public boolean hasPostdeploy()
       Optional. Configuration for the postdeploy job of the last phase. If this
       is not configured, there will be no postdeploy job for this phase.
       
      .google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasPostdeploy in interface CanaryDeploymentOrBuilder
      Returns:
      Whether the postdeploy field is set.
    • getPostdeploy

      public Postdeploy getPostdeploy()
       Optional. Configuration for the postdeploy job of the last phase. If this
       is not configured, there will be no postdeploy job for this phase.
       
      .google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPostdeploy in interface CanaryDeploymentOrBuilder
      Returns:
      The postdeploy.
    • setPostdeploy

      public CanaryDeployment.Builder setPostdeploy(Postdeploy value)
       Optional. Configuration for the postdeploy job of the last phase. If this
       is not configured, there will be no postdeploy job for this phase.
       
      .google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setPostdeploy

      public CanaryDeployment.Builder setPostdeploy(Postdeploy.Builder builderForValue)
       Optional. Configuration for the postdeploy job of the last phase. If this
       is not configured, there will be no postdeploy job for this phase.
       
      .google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergePostdeploy

      public CanaryDeployment.Builder mergePostdeploy(Postdeploy value)
       Optional. Configuration for the postdeploy job of the last phase. If this
       is not configured, there will be no postdeploy job for this phase.
       
      .google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearPostdeploy

      public CanaryDeployment.Builder clearPostdeploy()
       Optional. Configuration for the postdeploy job of the last phase. If this
       is not configured, there will be no postdeploy job for this phase.
       
      .google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getPostdeployBuilder

      public Postdeploy.Builder getPostdeployBuilder()
       Optional. Configuration for the postdeploy job of the last phase. If this
       is not configured, there will be no postdeploy job for this phase.
       
      .google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getPostdeployOrBuilder

      public PostdeployOrBuilder getPostdeployOrBuilder()
       Optional. Configuration for the postdeploy job of the last phase. If this
       is not configured, there will be no postdeploy job for this phase.
       
      .google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPostdeployOrBuilder in interface CanaryDeploymentOrBuilder