Class Stage.Builder

  • All Implemented Interfaces:
    StageOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Stage

    public static final class Stage.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Stage.Builder>
    implements StageOrBuilder
     Stage specifies a location to which to deploy.
     
    Protobuf type google.cloud.deploy.v1.Stage
    • 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<Stage.Builder>
      • clear

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

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

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

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

        public Stage.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<Stage.Builder>
      • setField

        public Stage.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<Stage.Builder>
      • clearField

        public Stage.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<Stage.Builder>
      • clearOneof

        public Stage.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<Stage.Builder>
      • setRepeatedField

        public Stage.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<Stage.Builder>
      • addRepeatedField

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

        public Stage.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<Stage.Builder>
      • isInitialized

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

        public Stage.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<Stage.Builder>
        Throws:
        IOException
      • getTargetId

        public String getTargetId()
         The target_id to which this stage points. This field refers exclusively to
         the last segment of a target name. For example, this field would just be
         `my-target` (rather than
         `projects/project/locations/location/targets/my-target`). The location of
         the `Target` is inferred to be the same as the location of the
         `DeliveryPipeline` that contains this `Stage`.
         
        string target_id = 1;
        Specified by:
        getTargetId in interface StageOrBuilder
        Returns:
        The targetId.
      • getTargetIdBytes

        public com.google.protobuf.ByteString getTargetIdBytes()
         The target_id to which this stage points. This field refers exclusively to
         the last segment of a target name. For example, this field would just be
         `my-target` (rather than
         `projects/project/locations/location/targets/my-target`). The location of
         the `Target` is inferred to be the same as the location of the
         `DeliveryPipeline` that contains this `Stage`.
         
        string target_id = 1;
        Specified by:
        getTargetIdBytes in interface StageOrBuilder
        Returns:
        The bytes for targetId.
      • setTargetId

        public Stage.Builder setTargetId​(String value)
         The target_id to which this stage points. This field refers exclusively to
         the last segment of a target name. For example, this field would just be
         `my-target` (rather than
         `projects/project/locations/location/targets/my-target`). The location of
         the `Target` is inferred to be the same as the location of the
         `DeliveryPipeline` that contains this `Stage`.
         
        string target_id = 1;
        Parameters:
        value - The targetId to set.
        Returns:
        This builder for chaining.
      • clearTargetId

        public Stage.Builder clearTargetId()
         The target_id to which this stage points. This field refers exclusively to
         the last segment of a target name. For example, this field would just be
         `my-target` (rather than
         `projects/project/locations/location/targets/my-target`). The location of
         the `Target` is inferred to be the same as the location of the
         `DeliveryPipeline` that contains this `Stage`.
         
        string target_id = 1;
        Returns:
        This builder for chaining.
      • setTargetIdBytes

        public Stage.Builder setTargetIdBytes​(com.google.protobuf.ByteString value)
         The target_id to which this stage points. This field refers exclusively to
         the last segment of a target name. For example, this field would just be
         `my-target` (rather than
         `projects/project/locations/location/targets/my-target`). The location of
         the `Target` is inferred to be the same as the location of the
         `DeliveryPipeline` that contains this `Stage`.
         
        string target_id = 1;
        Parameters:
        value - The bytes for targetId to set.
        Returns:
        This builder for chaining.
      • getProfilesList

        public com.google.protobuf.ProtocolStringList getProfilesList()
         Skaffold profiles to use when rendering the manifest for this stage's
         `Target`.
         
        repeated string profiles = 2;
        Specified by:
        getProfilesList in interface StageOrBuilder
        Returns:
        A list containing the profiles.
      • getProfilesCount

        public int getProfilesCount()
         Skaffold profiles to use when rendering the manifest for this stage's
         `Target`.
         
        repeated string profiles = 2;
        Specified by:
        getProfilesCount in interface StageOrBuilder
        Returns:
        The count of profiles.
      • getProfiles

        public String getProfiles​(int index)
         Skaffold profiles to use when rendering the manifest for this stage's
         `Target`.
         
        repeated string profiles = 2;
        Specified by:
        getProfiles in interface StageOrBuilder
        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 stage's
         `Target`.
         
        repeated string profiles = 2;
        Specified by:
        getProfilesBytes in interface StageOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the profiles at the given index.
      • setProfiles

        public Stage.Builder setProfiles​(int index,
                                         String value)
         Skaffold profiles to use when rendering the manifest for this stage's
         `Target`.
         
        repeated string profiles = 2;
        Parameters:
        index - The index to set the value at.
        value - The profiles to set.
        Returns:
        This builder for chaining.
      • addProfiles

        public Stage.Builder addProfiles​(String value)
         Skaffold profiles to use when rendering the manifest for this stage's
         `Target`.
         
        repeated string profiles = 2;
        Parameters:
        value - The profiles to add.
        Returns:
        This builder for chaining.
      • addAllProfiles

        public Stage.Builder addAllProfiles​(Iterable<String> values)
         Skaffold profiles to use when rendering the manifest for this stage's
         `Target`.
         
        repeated string profiles = 2;
        Parameters:
        values - The profiles to add.
        Returns:
        This builder for chaining.
      • clearProfiles

        public Stage.Builder clearProfiles()
         Skaffold profiles to use when rendering the manifest for this stage's
         `Target`.
         
        repeated string profiles = 2;
        Returns:
        This builder for chaining.
      • addProfilesBytes

        public Stage.Builder addProfilesBytes​(com.google.protobuf.ByteString value)
         Skaffold profiles to use when rendering the manifest for this stage's
         `Target`.
         
        repeated string profiles = 2;
        Parameters:
        value - The bytes of the profiles to add.
        Returns:
        This builder for chaining.
      • hasStrategy

        public boolean hasStrategy()
         Optional. The strategy to use for a `Rollout` to this stage.
         
        .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasStrategy in interface StageOrBuilder
        Returns:
        Whether the strategy field is set.
      • getStrategy

        public Strategy getStrategy()
         Optional. The strategy to use for a `Rollout` to this stage.
         
        .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getStrategy in interface StageOrBuilder
        Returns:
        The strategy.
      • setStrategy

        public Stage.Builder setStrategy​(Strategy value)
         Optional. The strategy to use for a `Rollout` to this stage.
         
        .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
      • setStrategy

        public Stage.Builder setStrategy​(Strategy.Builder builderForValue)
         Optional. The strategy to use for a `Rollout` to this stage.
         
        .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
      • mergeStrategy

        public Stage.Builder mergeStrategy​(Strategy value)
         Optional. The strategy to use for a `Rollout` to this stage.
         
        .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
      • clearStrategy

        public Stage.Builder clearStrategy()
         Optional. The strategy to use for a `Rollout` to this stage.
         
        .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
      • getStrategyBuilder

        public Strategy.Builder getStrategyBuilder()
         Optional. The strategy to use for a `Rollout` to this stage.
         
        .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
      • getStrategyOrBuilder

        public StrategyOrBuilder getStrategyOrBuilder()
         Optional. The strategy to use for a `Rollout` to this stage.
         
        .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getStrategyOrBuilder in interface StageOrBuilder
      • getDeployParametersList

        public List<DeployParameters> getDeployParametersList()
         Optional. The deploy parameters to use for the target in this stage.
         
        repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDeployParametersList in interface StageOrBuilder
      • getDeployParametersCount

        public int getDeployParametersCount()
         Optional. The deploy parameters to use for the target in this stage.
         
        repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDeployParametersCount in interface StageOrBuilder
      • getDeployParameters

        public DeployParameters getDeployParameters​(int index)
         Optional. The deploy parameters to use for the target in this stage.
         
        repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDeployParameters in interface StageOrBuilder
      • setDeployParameters

        public Stage.Builder setDeployParameters​(int index,
                                                 DeployParameters value)
         Optional. The deploy parameters to use for the target in this stage.
         
        repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
      • setDeployParameters

        public Stage.Builder setDeployParameters​(int index,
                                                 DeployParameters.Builder builderForValue)
         Optional. The deploy parameters to use for the target in this stage.
         
        repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
      • addDeployParameters

        public Stage.Builder addDeployParameters​(DeployParameters value)
         Optional. The deploy parameters to use for the target in this stage.
         
        repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
      • addDeployParameters

        public Stage.Builder addDeployParameters​(int index,
                                                 DeployParameters value)
         Optional. The deploy parameters to use for the target in this stage.
         
        repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
      • addDeployParameters

        public Stage.Builder addDeployParameters​(DeployParameters.Builder builderForValue)
         Optional. The deploy parameters to use for the target in this stage.
         
        repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
      • addDeployParameters

        public Stage.Builder addDeployParameters​(int index,
                                                 DeployParameters.Builder builderForValue)
         Optional. The deploy parameters to use for the target in this stage.
         
        repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
      • addAllDeployParameters

        public Stage.Builder addAllDeployParameters​(Iterable<? extends DeployParameters> values)
         Optional. The deploy parameters to use for the target in this stage.
         
        repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
      • clearDeployParameters

        public Stage.Builder clearDeployParameters()
         Optional. The deploy parameters to use for the target in this stage.
         
        repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
      • removeDeployParameters

        public Stage.Builder removeDeployParameters​(int index)
         Optional. The deploy parameters to use for the target in this stage.
         
        repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
      • getDeployParametersBuilder

        public DeployParameters.Builder getDeployParametersBuilder​(int index)
         Optional. The deploy parameters to use for the target in this stage.
         
        repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
      • getDeployParametersOrBuilder

        public DeployParametersOrBuilder getDeployParametersOrBuilder​(int index)
         Optional. The deploy parameters to use for the target in this stage.
         
        repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDeployParametersOrBuilder in interface StageOrBuilder
      • getDeployParametersOrBuilderList

        public List<? extends DeployParametersOrBuilder> getDeployParametersOrBuilderList()
         Optional. The deploy parameters to use for the target in this stage.
         
        repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDeployParametersOrBuilderList in interface StageOrBuilder
      • addDeployParametersBuilder

        public DeployParameters.Builder addDeployParametersBuilder()
         Optional. The deploy parameters to use for the target in this stage.
         
        repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
      • addDeployParametersBuilder

        public DeployParameters.Builder addDeployParametersBuilder​(int index)
         Optional. The deploy parameters to use for the target in this stage.
         
        repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
      • getDeployParametersBuilderList

        public List<DeployParameters.Builder> getDeployParametersBuilderList()
         Optional. The deploy parameters to use for the target in this stage.
         
        repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
      • setUnknownFields

        public final Stage.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<Stage.Builder>
      • mergeUnknownFields

        public final Stage.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<Stage.Builder>