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 Summary
Modifier and TypeMethodDescriptionbuild()clear()The name of the rollout step;The minimum time that this step should last.The percentage of traffic allocated to the flow version of this rollout step. (0%, 100%].static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe name of the rollout step;com.google.protobuf.ByteStringThe name of the rollout step;com.google.protobuf.DurationThe minimum time that this step should last.com.google.protobuf.Duration.BuilderThe minimum time that this step should last.com.google.protobuf.DurationOrBuilderThe minimum time that this step should last.intThe percentage of traffic allocated to the flow version of this rollout step. (0%, 100%].booleanThe minimum time that this step should last.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMinDuration(com.google.protobuf.Duration value) The minimum time that this step should last.setDisplayName(String value) The name of the rollout step;setDisplayNameBytes(com.google.protobuf.ByteString value) The name of the rollout step;setMinDuration(com.google.protobuf.Duration value) The minimum time that this step should last.setMinDuration(com.google.protobuf.Duration.Builder builderForValue) The minimum time that this step should last.setTrafficPercent(int value) The percentage of traffic allocated to the flow version of this rollout step. (0%, 100%].Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RolloutConfig.RolloutStep.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RolloutConfig.RolloutStep.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RolloutConfig.RolloutStep.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RolloutConfig.RolloutStep.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RolloutConfig.RolloutStep.Builder>- Throws:
IOException
-
getDisplayName
The name of the rollout step;
string display_name = 1;- Specified by:
getDisplayNamein interfaceRolloutConfig.RolloutStepOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()The name of the rollout step;
string display_name = 1;- Specified by:
getDisplayNameBytesin interfaceRolloutConfig.RolloutStepOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
The name of the rollout step;
string display_name = 1;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
The name of the rollout step;
string display_name = 1;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
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:
getTrafficPercentin interfaceRolloutConfig.RolloutStepOrBuilder- Returns:
- The trafficPercent.
-
setTrafficPercent
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
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:
hasMinDurationin interfaceRolloutConfig.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:
getMinDurationin interfaceRolloutConfig.RolloutStepOrBuilder- Returns:
- The minDuration.
-
setMinDuration
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
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
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:
getMinDurationOrBuilderin interfaceRolloutConfig.RolloutStepOrBuilder
-