Class AdvanceRolloutRule.Builder

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

public static final class AdvanceRolloutRule.Builder extends com.google.protobuf.GeneratedMessage.Builder<AdvanceRolloutRule.Builder> implements AdvanceRolloutRuleOrBuilder
 The `AdvanceRollout` automation rule will automatically advance a successful
 Rollout to the next phase.
 
Protobuf type google.cloud.deploy.v1.AdvanceRolloutRule
  • 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<AdvanceRolloutRule.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<AdvanceRolloutRule.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<AdvanceRolloutRule.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public AdvanceRolloutRule.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<AdvanceRolloutRule.Builder>
      Throws:
      IOException
    • getId

      public String getId()
       Required. ID of the rule. This id must be unique in the `Automation`
       resource to which this rule belongs. The format is
       `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getId in interface AdvanceRolloutRuleOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       Required. ID of the rule. This id must be unique in the `Automation`
       resource to which this rule belongs. The format is
       `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIdBytes in interface AdvanceRolloutRuleOrBuilder
      Returns:
      The bytes for id.
    • setId

      public AdvanceRolloutRule.Builder setId(String value)
       Required. ID of the rule. This id must be unique in the `Automation`
       resource to which this rule belongs. The format is
       `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public AdvanceRolloutRule.Builder clearId()
       Required. ID of the rule. This id must be unique in the `Automation`
       resource to which this rule belongs. The format is
       `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setIdBytes

      public AdvanceRolloutRule.Builder setIdBytes(com.google.protobuf.ByteString value)
       Required. ID of the rule. This id must be unique in the `Automation`
       resource to which this rule belongs. The format is
       `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getSourcePhasesList

      public com.google.protobuf.ProtocolStringList getSourcePhasesList()
       Optional. Proceeds only after phase name matched any one in the list.
       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])?$`.
       
      repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSourcePhasesList in interface AdvanceRolloutRuleOrBuilder
      Returns:
      A list containing the sourcePhases.
    • getSourcePhasesCount

      public int getSourcePhasesCount()
       Optional. Proceeds only after phase name matched any one in the list.
       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])?$`.
       
      repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSourcePhasesCount in interface AdvanceRolloutRuleOrBuilder
      Returns:
      The count of sourcePhases.
    • getSourcePhases

      public String getSourcePhases(int index)
       Optional. Proceeds only after phase name matched any one in the list.
       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])?$`.
       
      repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSourcePhases in interface AdvanceRolloutRuleOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The sourcePhases at the given index.
    • getSourcePhasesBytes

      public com.google.protobuf.ByteString getSourcePhasesBytes(int index)
       Optional. Proceeds only after phase name matched any one in the list.
       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])?$`.
       
      repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSourcePhasesBytes in interface AdvanceRolloutRuleOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the sourcePhases at the given index.
    • setSourcePhases

      public AdvanceRolloutRule.Builder setSourcePhases(int index, String value)
       Optional. Proceeds only after phase name matched any one in the list.
       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])?$`.
       
      repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The sourcePhases to set.
      Returns:
      This builder for chaining.
    • addSourcePhases

      public AdvanceRolloutRule.Builder addSourcePhases(String value)
       Optional. Proceeds only after phase name matched any one in the list.
       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])?$`.
       
      repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The sourcePhases to add.
      Returns:
      This builder for chaining.
    • addAllSourcePhases

      public AdvanceRolloutRule.Builder addAllSourcePhases(Iterable<String> values)
       Optional. Proceeds only after phase name matched any one in the list.
       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])?$`.
       
      repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The sourcePhases to add.
      Returns:
      This builder for chaining.
    • clearSourcePhases

      public AdvanceRolloutRule.Builder clearSourcePhases()
       Optional. Proceeds only after phase name matched any one in the list.
       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])?$`.
       
      repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addSourcePhasesBytes

      public AdvanceRolloutRule.Builder addSourcePhasesBytes(com.google.protobuf.ByteString value)
       Optional. Proceeds only after phase name matched any one in the list.
       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])?$`.
       
      repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the sourcePhases to add.
      Returns:
      This builder for chaining.
    • hasWait

      public boolean hasWait()
       Optional. How long to wait after a rollout is finished.
       
      .google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasWait in interface AdvanceRolloutRuleOrBuilder
      Returns:
      Whether the wait field is set.
    • getWait

      public com.google.protobuf.Duration getWait()
       Optional. How long to wait after a rollout is finished.
       
      .google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWait in interface AdvanceRolloutRuleOrBuilder
      Returns:
      The wait.
    • setWait

      public AdvanceRolloutRule.Builder setWait(com.google.protobuf.Duration value)
       Optional. How long to wait after a rollout is finished.
       
      .google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setWait

      public AdvanceRolloutRule.Builder setWait(com.google.protobuf.Duration.Builder builderForValue)
       Optional. How long to wait after a rollout is finished.
       
      .google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeWait

      public AdvanceRolloutRule.Builder mergeWait(com.google.protobuf.Duration value)
       Optional. How long to wait after a rollout is finished.
       
      .google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearWait

      public AdvanceRolloutRule.Builder clearWait()
       Optional. How long to wait after a rollout is finished.
       
      .google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getWaitBuilder

      public com.google.protobuf.Duration.Builder getWaitBuilder()
       Optional. How long to wait after a rollout is finished.
       
      .google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getWaitOrBuilder

      public com.google.protobuf.DurationOrBuilder getWaitOrBuilder()
       Optional. How long to wait after a rollout is finished.
       
      .google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWaitOrBuilder in interface AdvanceRolloutRuleOrBuilder
    • hasCondition

      public boolean hasCondition()
       Output only. Information around the state of the Automation rule.
       
      .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCondition in interface AdvanceRolloutRuleOrBuilder
      Returns:
      Whether the condition field is set.
    • getCondition

      public AutomationRuleCondition getCondition()
       Output only. Information around the state of the Automation rule.
       
      .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCondition in interface AdvanceRolloutRuleOrBuilder
      Returns:
      The condition.
    • setCondition

       Output only. Information around the state of the Automation rule.
       
      .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCondition

      public AdvanceRolloutRule.Builder setCondition(AutomationRuleCondition.Builder builderForValue)
       Output only. Information around the state of the Automation rule.
       
      .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCondition

      public AdvanceRolloutRule.Builder mergeCondition(AutomationRuleCondition value)
       Output only. Information around the state of the Automation rule.
       
      .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCondition

      public AdvanceRolloutRule.Builder clearCondition()
       Output only. Information around the state of the Automation rule.
       
      .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getConditionBuilder

      public AutomationRuleCondition.Builder getConditionBuilder()
       Output only. Information around the state of the Automation rule.
       
      .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getConditionOrBuilder

      public AutomationRuleConditionOrBuilder getConditionOrBuilder()
       Output only. Information around the state of the Automation rule.
       
      .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getConditionOrBuilder in interface AdvanceRolloutRuleOrBuilder