Class CustomCanaryDeployment.PhaseConfig.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CustomCanaryDeployment.PhaseConfig.Builder>
      • 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

        public CustomCanaryDeployment.PhaseConfig.Builder setPhaseId​(String 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 phaseId to set.
        Returns:
        This builder for chaining.
      • clearPhaseId

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

        public CustomCanaryDeployment.PhaseConfig.Builder 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()
         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;
        Specified by:
        getProfilesList in interface CustomCanaryDeployment.PhaseConfigOrBuilder
        Returns:
        A list containing the profiles.
      • getProfilesCount

        public int getProfilesCount()
         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;
        Specified by:
        getProfilesCount in interface CustomCanaryDeployment.PhaseConfigOrBuilder
        Returns:
        The count of profiles.
      • getProfiles

        public String getProfiles​(int index)
         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;
        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)
         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;
        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)
         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;
        Parameters:
        index - The index to set the value at.
        value - The profiles to set.
        Returns:
        This builder for chaining.
      • addProfiles

        public CustomCanaryDeployment.PhaseConfig.Builder addProfiles​(String value)
         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;
        Parameters:
        value - The profiles to add.
        Returns:
        This builder for chaining.
      • addAllProfiles

        public CustomCanaryDeployment.PhaseConfig.Builder addAllProfiles​(Iterable<String> values)
         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;
        Parameters:
        values - The profiles to add.
        Returns:
        This builder for chaining.
      • clearProfiles

        public CustomCanaryDeployment.PhaseConfig.Builder clearProfiles()
         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;
        Returns:
        This builder for chaining.
      • addProfilesBytes

        public CustomCanaryDeployment.PhaseConfig.Builder addProfilesBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes of the profiles to add.
        Returns:
        This builder for chaining.
      • setVerify

        public CustomCanaryDeployment.PhaseConfig.Builder setVerify​(boolean value)
         Whether to run verify tests after the deployment.
         
        bool verify = 4;
        Parameters:
        value - The verify to set.
        Returns:
        This builder for chaining.
      • hasPredeploy

        public boolean hasPredeploy()
         Optional. Configuration for the predeploy job of this phase. If this is
         not configured, predeploy job will not be present 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, predeploy job will not be present 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

        public CustomCanaryDeployment.PhaseConfig.Builder setPredeploy​(Predeploy value)
         Optional. Configuration for the predeploy job of this phase. If this is
         not configured, predeploy job will not be present 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, predeploy job will not be present for this phase.
         
        .google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL];
      • mergePredeploy

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

        public CustomCanaryDeployment.PhaseConfig.Builder clearPredeploy()
         Optional. Configuration for the predeploy job of this phase. If this is
         not configured, predeploy job will not be present 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, predeploy job will not be present for this phase.
         
        .google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL];
      • hasPostdeploy

        public boolean hasPostdeploy()
         Optional. Configuration for the postdeploy job of this phase. If this is
         not configured, postdeploy job will not be present 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, postdeploy job will not be present 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

        public CustomCanaryDeployment.PhaseConfig.Builder setPostdeploy​(Postdeploy value)
         Optional. Configuration for the postdeploy job of this phase. If this is
         not configured, postdeploy job will not be present 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, postdeploy job will not be present for this phase.
         
        .google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL];
      • mergePostdeploy

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

        public CustomCanaryDeployment.PhaseConfig.Builder clearPostdeploy()
         Optional. Configuration for the postdeploy job of this phase. If this is
         not configured, postdeploy job will not be present 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, postdeploy job will not be present for this phase.
         
        .google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL];