Class RolloutConfig.RolloutStep.Builder

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

public static final class RolloutConfig.RolloutStep.Builder extends com.google.protobuf.GeneratedMessage.Builder<RolloutConfig.RolloutStep.Builder> implements RolloutConfig.RolloutStepOrBuilder
 A single rollout step with specified traffic allocation.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep
  • 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.RolloutStep.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.RolloutStep.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.RolloutStep.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getDisplayName()
       The name of the rollout step;
       
      string display_name = 1;
      Specified by:
      getDisplayName in interface RolloutConfig.RolloutStepOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       The name of the rollout step;
       
      string display_name = 1;
      Specified by:
      getDisplayNameBytes in interface RolloutConfig.RolloutStepOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public RolloutConfig.RolloutStep.Builder setDisplayName(String value)
       The name of the rollout step;
       
      string display_name = 1;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public RolloutConfig.RolloutStep.Builder clearDisplayName()
       The name of the rollout step;
       
      string display_name = 1;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public RolloutConfig.RolloutStep.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       The name of the rollout step;
       
      string display_name = 1;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getTrafficPercent

      public int getTrafficPercent()
       The percentage of traffic allocated to the flow version of this rollout
       step. (0%, 100%].
       
      int32 traffic_percent = 2;
      Specified by:
      getTrafficPercent in interface RolloutConfig.RolloutStepOrBuilder
      Returns:
      The trafficPercent.
    • setTrafficPercent

      public RolloutConfig.RolloutStep.Builder setTrafficPercent(int value)
       The percentage of traffic allocated to the flow version of this rollout
       step. (0%, 100%].
       
      int32 traffic_percent = 2;
      Parameters:
      value - The trafficPercent to set.
      Returns:
      This builder for chaining.
    • clearTrafficPercent

      public RolloutConfig.RolloutStep.Builder clearTrafficPercent()
       The percentage of traffic allocated to the flow version of this rollout
       step. (0%, 100%].
       
      int32 traffic_percent = 2;
      Returns:
      This builder for chaining.
    • hasMinDuration

      public boolean hasMinDuration()
       The minimum time that this step should last. Should be longer than 1
       hour. If not set, the default minimum duration for each step will be 1
       hour.
       
      .google.protobuf.Duration min_duration = 3;
      Specified by:
      hasMinDuration in interface RolloutConfig.RolloutStepOrBuilder
      Returns:
      Whether the minDuration field is set.
    • getMinDuration

      public com.google.protobuf.Duration getMinDuration()
       The minimum time that this step should last. Should be longer than 1
       hour. If not set, the default minimum duration for each step will be 1
       hour.
       
      .google.protobuf.Duration min_duration = 3;
      Specified by:
      getMinDuration in interface RolloutConfig.RolloutStepOrBuilder
      Returns:
      The minDuration.
    • setMinDuration

      public RolloutConfig.RolloutStep.Builder setMinDuration(com.google.protobuf.Duration value)
       The minimum time that this step should last. Should be longer than 1
       hour. If not set, the default minimum duration for each step will be 1
       hour.
       
      .google.protobuf.Duration min_duration = 3;
    • setMinDuration

      public RolloutConfig.RolloutStep.Builder setMinDuration(com.google.protobuf.Duration.Builder builderForValue)
       The minimum time that this step should last. Should be longer than 1
       hour. If not set, the default minimum duration for each step will be 1
       hour.
       
      .google.protobuf.Duration min_duration = 3;
    • mergeMinDuration

      public RolloutConfig.RolloutStep.Builder mergeMinDuration(com.google.protobuf.Duration value)
       The minimum time that this step should last. Should be longer than 1
       hour. If not set, the default minimum duration for each step will be 1
       hour.
       
      .google.protobuf.Duration min_duration = 3;
    • clearMinDuration

      public RolloutConfig.RolloutStep.Builder clearMinDuration()
       The minimum time that this step should last. Should be longer than 1
       hour. If not set, the default minimum duration for each step will be 1
       hour.
       
      .google.protobuf.Duration min_duration = 3;
    • getMinDurationBuilder

      public com.google.protobuf.Duration.Builder getMinDurationBuilder()
       The minimum time that this step should last. Should be longer than 1
       hour. If not set, the default minimum duration for each step will be 1
       hour.
       
      .google.protobuf.Duration min_duration = 3;
    • getMinDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getMinDurationOrBuilder()
       The minimum time that this step should last. Should be longer than 1
       hour. If not set, the default minimum duration for each step will be 1
       hour.
       
      .google.protobuf.Duration min_duration = 3;
      Specified by:
      getMinDurationOrBuilder in interface RolloutConfig.RolloutStepOrBuilder