Class CustomCanaryDeployment.PhaseConfig.Builder

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

public static final class CustomCanaryDeployment.PhaseConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<CustomCanaryDeployment.PhaseConfig.Builder> implements CustomCanaryDeployment.PhaseConfigOrBuilder
 PhaseConfig represents the configuration for a phase in the custom
 canary deployment.
 
Protobuf type google.cloud.deploy.v1.CustomCanaryDeployment.PhaseConfig
  • 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<CustomCanaryDeployment.PhaseConfig.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<CustomCanaryDeployment.PhaseConfig.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<CustomCanaryDeployment.PhaseConfig.Builder>
    • getDefaultInstanceForType

      public CustomCanaryDeployment.PhaseConfig 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

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

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

      public CustomCanaryDeployment.PhaseConfig.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<CustomCanaryDeployment.PhaseConfig.Builder>
      Throws:
      IOException
    • getPhaseId

      public String getPhaseId()
       Required. The ID to assign to the `Rollout` phase.
       This value must consist of lower-case letters, numbers, and hyphens,
       start with a letter and end with a letter or a number, and have a max
       length of 63 characters. In other words, it must match the following
       regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
       
      string phase_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPhaseId in interface CustomCanaryDeployment.PhaseConfigOrBuilder
      Returns:
      The phaseId.
    • getPhaseIdBytes

      public com.google.protobuf.ByteString getPhaseIdBytes()
       Required. The ID to assign to the `Rollout` phase.
       This value must consist of lower-case letters, numbers, and hyphens,
       start with a letter and end with a letter or a number, and have a max
       length of 63 characters. In other words, it must match the following
       regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
       
      string phase_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPhaseIdBytes in interface CustomCanaryDeployment.PhaseConfigOrBuilder
      Returns:
      The bytes for phaseId.
    • setPhaseId

       Required. The ID to assign to the `Rollout` phase.
       This value must consist of lower-case letters, numbers, and hyphens,
       start with a letter and end with a letter or a number, and have a max
       length of 63 characters. In other words, it must match the following
       regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
       
      string phase_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The phaseId to set.
      Returns:
      This builder for chaining.
    • clearPhaseId

       Required. The ID to assign to the `Rollout` phase.
       This value must consist of lower-case letters, numbers, and hyphens,
       start with a letter and end with a letter or a number, and have a max
       length of 63 characters. In other words, it must match the following
       regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
       
      string phase_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setPhaseIdBytes

      public CustomCanaryDeployment.PhaseConfig.Builder setPhaseIdBytes(com.google.protobuf.ByteString value)
       Required. The ID to assign to the `Rollout` phase.
       This value must consist of lower-case letters, numbers, and hyphens,
       start with a letter and end with a letter or a number, and have a max
       length of 63 characters. In other words, it must match the following
       regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
       
      string phase_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for phaseId to set.
      Returns:
      This builder for chaining.
    • getPercentage

      public int getPercentage()
       Required. Percentage deployment for the phase.
       
      int32 percentage = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPercentage in interface CustomCanaryDeployment.PhaseConfigOrBuilder
      Returns:
      The percentage.
    • setPercentage

      public CustomCanaryDeployment.PhaseConfig.Builder setPercentage(int value)
       Required. Percentage deployment for the phase.
       
      int32 percentage = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The percentage to set.
      Returns:
      This builder for chaining.
    • clearPercentage

       Required. Percentage deployment for the phase.
       
      int32 percentage = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getProfilesList

      public com.google.protobuf.ProtocolStringList getProfilesList()
       Optional. Skaffold profiles to use when rendering the manifest for this
       phase. These are in addition to the profiles list specified in the
       `DeliveryPipeline` stage.
       
      repeated string profiles = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getProfilesList in interface CustomCanaryDeployment.PhaseConfigOrBuilder
      Returns:
      A list containing the profiles.
    • getProfilesCount

      public int getProfilesCount()
       Optional. Skaffold profiles to use when rendering the manifest for this
       phase. These are in addition to the profiles list specified in the
       `DeliveryPipeline` stage.
       
      repeated string profiles = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getProfilesCount in interface CustomCanaryDeployment.PhaseConfigOrBuilder
      Returns:
      The count of profiles.
    • getProfiles

      public String getProfiles(int index)
       Optional. Skaffold profiles to use when rendering the manifest for this
       phase. These are in addition to the profiles list specified in the
       `DeliveryPipeline` stage.
       
      repeated string profiles = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getProfiles in interface CustomCanaryDeployment.PhaseConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The profiles at the given index.
    • getProfilesBytes

      public com.google.protobuf.ByteString getProfilesBytes(int index)
       Optional. Skaffold profiles to use when rendering the manifest for this
       phase. These are in addition to the profiles list specified in the
       `DeliveryPipeline` stage.
       
      repeated string profiles = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getProfilesBytes in interface CustomCanaryDeployment.PhaseConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the profiles at the given index.
    • setProfiles

      public CustomCanaryDeployment.PhaseConfig.Builder setProfiles(int index, String value)
       Optional. Skaffold profiles to use when rendering the manifest for this
       phase. These are in addition to the profiles list specified in the
       `DeliveryPipeline` stage.
       
      repeated string profiles = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The profiles to set.
      Returns:
      This builder for chaining.
    • addProfiles

       Optional. Skaffold profiles to use when rendering the manifest for this
       phase. These are in addition to the profiles list specified in the
       `DeliveryPipeline` stage.
       
      repeated string profiles = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The profiles to add.
      Returns:
      This builder for chaining.
    • addAllProfiles

       Optional. Skaffold profiles to use when rendering the manifest for this
       phase. These are in addition to the profiles list specified in the
       `DeliveryPipeline` stage.
       
      repeated string profiles = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The profiles to add.
      Returns:
      This builder for chaining.
    • clearProfiles

       Optional. Skaffold profiles to use when rendering the manifest for this
       phase. These are in addition to the profiles list specified in the
       `DeliveryPipeline` stage.
       
      repeated string profiles = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addProfilesBytes

      public CustomCanaryDeployment.PhaseConfig.Builder addProfilesBytes(com.google.protobuf.ByteString value)
       Optional. Skaffold profiles to use when rendering the manifest for this
       phase. These are in addition to the profiles list specified in the
       `DeliveryPipeline` stage.
       
      repeated string profiles = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the profiles to add.
      Returns:
      This builder for chaining.
    • getVerify

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

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

       Optional. Whether to run verify tests after the deployment via `skaffold
       verify`.
       
      bool verify = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasPredeploy

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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