Class 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.GeneratedMessageV3.Builder<CanaryDeployment.Builder>
    implements CanaryDeploymentOrBuilder
     CanaryDeployment represents the canary deployment configuration
     
    Protobuf type google.cloud.deploy.v1.CanaryDeployment
    • 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<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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public CanaryDeployment.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<CanaryDeployment.Builder>
      • setField

        public CanaryDeployment.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<CanaryDeployment.Builder>
      • clearField

        public CanaryDeployment.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CanaryDeployment.Builder>
      • clearOneof

        public CanaryDeployment.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CanaryDeployment.Builder>
      • setRepeatedField

        public CanaryDeployment.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         int index,
                                                         Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CanaryDeployment.Builder>
      • addRepeatedField

        public CanaryDeployment.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CanaryDeployment.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
         
        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.
         
        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.
         
        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.
         
        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.
         
        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.
         
        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.
         
        repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • getVerify

        public boolean getVerify()
         Whether to run verify tests after each percentage deployment.
         
        bool verify = 2;
        Specified by:
        getVerify in interface CanaryDeploymentOrBuilder
        Returns:
        The verify.
      • setVerify

        public CanaryDeployment.Builder setVerify​(boolean value)
         Whether to run verify tests after each percentage deployment.
         
        bool verify = 2;
        Parameters:
        value - The verify to set.
        Returns:
        This builder for chaining.
      • clearVerify

        public CanaryDeployment.Builder clearVerify()
         Whether to run verify tests after each percentage deployment.
         
        bool verify = 2;
        Returns:
        This builder for chaining.
      • hasPredeploy

        public boolean hasPredeploy()
         Optional. Configuration for the predeploy job of the first phase. If this
         is not configured, predeploy job will not be present.
         
        .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, predeploy job will not be present.
         
        .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, predeploy job will not be present.
         
        .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, predeploy job will not be present.
         
        .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, predeploy job will not be present.
         
        .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, predeploy job will not be present.
         
        .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, predeploy job will not be present.
         
        .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, predeploy job will not be present.
         
        .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, postdeploy job will not be present.
         
        .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, postdeploy job will not be present.
         
        .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, postdeploy job will not be present.
         
        .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, postdeploy job will not be present.
         
        .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, postdeploy job will not be present.
         
        .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, postdeploy job will not be present.
         
        .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, postdeploy job will not be present.
         
        .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, postdeploy job will not be present.
         
        .google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPostdeployOrBuilder in interface CanaryDeploymentOrBuilder
      • setUnknownFields

        public final CanaryDeployment.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CanaryDeployment.Builder>
      • mergeUnknownFields

        public final CanaryDeployment.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CanaryDeployment.Builder>