Class Stage.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Stage.Builder>
com.google.cloud.deploy.v1.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.GeneratedMessage.Builder<Stage.Builder> implements StageOrBuilder
 Stage specifies a location to which to deploy.
 
Protobuf type google.cloud.deploy.v1.Stage
  • 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<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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public Stage.Builder mergeFrom(Stage other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTargetId in interface StageOrBuilder
      Returns:
      The targetId.
    • getTargetIdBytes

      public com.google.protobuf.ByteString getTargetIdBytes()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTargetIdBytes in interface StageOrBuilder
      Returns:
      The bytes for targetId.
    • setTargetId

      public Stage.Builder setTargetId(String value)
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The targetId to set.
      Returns:
      This builder for chaining.
    • clearTargetId

      public Stage.Builder clearTargetId()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setTargetIdBytes

      public Stage.Builder setTargetIdBytes(com.google.protobuf.ByteString value)
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for targetId to set.
      Returns:
      This builder for chaining.
    • getProfilesList

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

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

      public String getProfiles(int index)
       Optional. Skaffold profiles to use when rendering the manifest for this
       stage's `Target`.
       
      repeated string profiles = 2 [(.google.api.field_behavior) = OPTIONAL];
      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)
       Optional. Skaffold profiles to use when rendering the manifest for this
       stage's `Target`.
       
      repeated string profiles = 2 [(.google.api.field_behavior) = OPTIONAL];
      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)
       Optional. Skaffold profiles to use when rendering the manifest for this
       stage's `Target`.
       
      repeated string profiles = 2 [(.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

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

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

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

      public Stage.Builder addProfilesBytes(com.google.protobuf.ByteString value)
       Optional. Skaffold profiles to use when rendering the manifest for this
       stage's `Target`.
       
      repeated string profiles = 2 [(.google.api.field_behavior) = OPTIONAL];
      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];