Class RolloutConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RolloutConfig.Builder>
com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.Builder
All Implemented Interfaces:
RolloutConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RolloutConfig

public static final class RolloutConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<RolloutConfig.Builder> implements RolloutConfigOrBuilder
 The configuration for auto rollout.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.RolloutConfig
  • 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<RolloutConfig.Builder>
    • clear

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

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

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

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

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

      public RolloutConfig.Builder mergeFrom(RolloutConfig other)
    • isInitialized

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

      public RolloutConfig.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<RolloutConfig.Builder>
      Throws:
      IOException
    • getRolloutStepsList

      public List<RolloutConfig.RolloutStep> getRolloutStepsList()
       Steps to roll out a flow version. Steps should be sorted by percentage in
       ascending order.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep rollout_steps = 1;
      Specified by:
      getRolloutStepsList in interface RolloutConfigOrBuilder
    • getRolloutStepsCount

      public int getRolloutStepsCount()
       Steps to roll out a flow version. Steps should be sorted by percentage in
       ascending order.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep rollout_steps = 1;
      Specified by:
      getRolloutStepsCount in interface RolloutConfigOrBuilder
    • getRolloutSteps

      public RolloutConfig.RolloutStep getRolloutSteps(int index)
       Steps to roll out a flow version. Steps should be sorted by percentage in
       ascending order.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep rollout_steps = 1;
      Specified by:
      getRolloutSteps in interface RolloutConfigOrBuilder
    • setRolloutSteps

      public RolloutConfig.Builder setRolloutSteps(int index, RolloutConfig.RolloutStep value)
       Steps to roll out a flow version. Steps should be sorted by percentage in
       ascending order.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep rollout_steps = 1;
    • setRolloutSteps

      public RolloutConfig.Builder setRolloutSteps(int index, RolloutConfig.RolloutStep.Builder builderForValue)
       Steps to roll out a flow version. Steps should be sorted by percentage in
       ascending order.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep rollout_steps = 1;
    • addRolloutSteps

      public RolloutConfig.Builder addRolloutSteps(RolloutConfig.RolloutStep value)
       Steps to roll out a flow version. Steps should be sorted by percentage in
       ascending order.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep rollout_steps = 1;
    • addRolloutSteps

      public RolloutConfig.Builder addRolloutSteps(int index, RolloutConfig.RolloutStep value)
       Steps to roll out a flow version. Steps should be sorted by percentage in
       ascending order.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep rollout_steps = 1;
    • addRolloutSteps

      public RolloutConfig.Builder addRolloutSteps(RolloutConfig.RolloutStep.Builder builderForValue)
       Steps to roll out a flow version. Steps should be sorted by percentage in
       ascending order.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep rollout_steps = 1;
    • addRolloutSteps

      public RolloutConfig.Builder addRolloutSteps(int index, RolloutConfig.RolloutStep.Builder builderForValue)
       Steps to roll out a flow version. Steps should be sorted by percentage in
       ascending order.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep rollout_steps = 1;
    • addAllRolloutSteps

      public RolloutConfig.Builder addAllRolloutSteps(Iterable<? extends RolloutConfig.RolloutStep> values)
       Steps to roll out a flow version. Steps should be sorted by percentage in
       ascending order.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep rollout_steps = 1;
    • clearRolloutSteps

      public RolloutConfig.Builder clearRolloutSteps()
       Steps to roll out a flow version. Steps should be sorted by percentage in
       ascending order.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep rollout_steps = 1;
    • removeRolloutSteps

      public RolloutConfig.Builder removeRolloutSteps(int index)
       Steps to roll out a flow version. Steps should be sorted by percentage in
       ascending order.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep rollout_steps = 1;
    • getRolloutStepsBuilder

      public RolloutConfig.RolloutStep.Builder getRolloutStepsBuilder(int index)
       Steps to roll out a flow version. Steps should be sorted by percentage in
       ascending order.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep rollout_steps = 1;
    • getRolloutStepsOrBuilder

      public RolloutConfig.RolloutStepOrBuilder getRolloutStepsOrBuilder(int index)
       Steps to roll out a flow version. Steps should be sorted by percentage in
       ascending order.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep rollout_steps = 1;
      Specified by:
      getRolloutStepsOrBuilder in interface RolloutConfigOrBuilder
    • getRolloutStepsOrBuilderList

      public List<? extends RolloutConfig.RolloutStepOrBuilder> getRolloutStepsOrBuilderList()
       Steps to roll out a flow version. Steps should be sorted by percentage in
       ascending order.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep rollout_steps = 1;
      Specified by:
      getRolloutStepsOrBuilderList in interface RolloutConfigOrBuilder
    • addRolloutStepsBuilder

      public RolloutConfig.RolloutStep.Builder addRolloutStepsBuilder()
       Steps to roll out a flow version. Steps should be sorted by percentage in
       ascending order.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep rollout_steps = 1;
    • addRolloutStepsBuilder

      public RolloutConfig.RolloutStep.Builder addRolloutStepsBuilder(int index)
       Steps to roll out a flow version. Steps should be sorted by percentage in
       ascending order.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep rollout_steps = 1;
    • getRolloutStepsBuilderList

      public List<RolloutConfig.RolloutStep.Builder> getRolloutStepsBuilderList()
       Steps to roll out a flow version. Steps should be sorted by percentage in
       ascending order.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep rollout_steps = 1;
    • getRolloutCondition

      public String getRolloutCondition()
       The conditions that are used to evaluate the success of a rollout
       step. If not specified, all rollout steps will proceed to the next one
       unless failure conditions are met. E.g. "containment_rate > 60% AND
       callback_rate < 20%". See the [conditions
       reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
       
      string rollout_condition = 2;
      Specified by:
      getRolloutCondition in interface RolloutConfigOrBuilder
      Returns:
      The rolloutCondition.
    • getRolloutConditionBytes

      public com.google.protobuf.ByteString getRolloutConditionBytes()
       The conditions that are used to evaluate the success of a rollout
       step. If not specified, all rollout steps will proceed to the next one
       unless failure conditions are met. E.g. "containment_rate > 60% AND
       callback_rate < 20%". See the [conditions
       reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
       
      string rollout_condition = 2;
      Specified by:
      getRolloutConditionBytes in interface RolloutConfigOrBuilder
      Returns:
      The bytes for rolloutCondition.
    • setRolloutCondition

      public RolloutConfig.Builder setRolloutCondition(String value)
       The conditions that are used to evaluate the success of a rollout
       step. If not specified, all rollout steps will proceed to the next one
       unless failure conditions are met. E.g. "containment_rate > 60% AND
       callback_rate < 20%". See the [conditions
       reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
       
      string rollout_condition = 2;
      Parameters:
      value - The rolloutCondition to set.
      Returns:
      This builder for chaining.
    • clearRolloutCondition

      public RolloutConfig.Builder clearRolloutCondition()
       The conditions that are used to evaluate the success of a rollout
       step. If not specified, all rollout steps will proceed to the next one
       unless failure conditions are met. E.g. "containment_rate > 60% AND
       callback_rate < 20%". See the [conditions
       reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
       
      string rollout_condition = 2;
      Returns:
      This builder for chaining.
    • setRolloutConditionBytes

      public RolloutConfig.Builder setRolloutConditionBytes(com.google.protobuf.ByteString value)
       The conditions that are used to evaluate the success of a rollout
       step. If not specified, all rollout steps will proceed to the next one
       unless failure conditions are met. E.g. "containment_rate > 60% AND
       callback_rate < 20%". See the [conditions
       reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
       
      string rollout_condition = 2;
      Parameters:
      value - The bytes for rolloutCondition to set.
      Returns:
      This builder for chaining.
    • getFailureCondition

      public String getFailureCondition()
       The conditions that are used to evaluate the failure of a rollout
       step. If not specified, no rollout steps will fail. E.g. "containment_rate
       < 10% OR average_turn_count < 3". See the [conditions
       reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
       
      string failure_condition = 3;
      Specified by:
      getFailureCondition in interface RolloutConfigOrBuilder
      Returns:
      The failureCondition.
    • getFailureConditionBytes

      public com.google.protobuf.ByteString getFailureConditionBytes()
       The conditions that are used to evaluate the failure of a rollout
       step. If not specified, no rollout steps will fail. E.g. "containment_rate
       < 10% OR average_turn_count < 3". See the [conditions
       reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
       
      string failure_condition = 3;
      Specified by:
      getFailureConditionBytes in interface RolloutConfigOrBuilder
      Returns:
      The bytes for failureCondition.
    • setFailureCondition

      public RolloutConfig.Builder setFailureCondition(String value)
       The conditions that are used to evaluate the failure of a rollout
       step. If not specified, no rollout steps will fail. E.g. "containment_rate
       < 10% OR average_turn_count < 3". See the [conditions
       reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
       
      string failure_condition = 3;
      Parameters:
      value - The failureCondition to set.
      Returns:
      This builder for chaining.
    • clearFailureCondition

      public RolloutConfig.Builder clearFailureCondition()
       The conditions that are used to evaluate the failure of a rollout
       step. If not specified, no rollout steps will fail. E.g. "containment_rate
       < 10% OR average_turn_count < 3". See the [conditions
       reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
       
      string failure_condition = 3;
      Returns:
      This builder for chaining.
    • setFailureConditionBytes

      public RolloutConfig.Builder setFailureConditionBytes(com.google.protobuf.ByteString value)
       The conditions that are used to evaluate the failure of a rollout
       step. If not specified, no rollout steps will fail. E.g. "containment_rate
       < 10% OR average_turn_count < 3". See the [conditions
       reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
       
      string failure_condition = 3;
      Parameters:
      value - The bytes for failureCondition to set.
      Returns:
      This builder for chaining.