Class RolloutConfig.RolloutStep.Builder (0.13.0)

public static final class RolloutConfig.RolloutStep.Builder extends GeneratedMessageV3.Builder<RolloutConfig.RolloutStep.Builder> implements RolloutConfig.RolloutStepOrBuilder

A single rollout step with specified traffic allocation.

Protobuf type google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RolloutConfig.RolloutStep.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RolloutConfig.RolloutStep.Builder
Overrides

build()

public RolloutConfig.RolloutStep build()
Returns
TypeDescription
RolloutConfig.RolloutStep

buildPartial()

public RolloutConfig.RolloutStep buildPartial()
Returns
TypeDescription
RolloutConfig.RolloutStep

clear()

public RolloutConfig.RolloutStep.Builder clear()
Returns
TypeDescription
RolloutConfig.RolloutStep.Builder
Overrides

clearDisplayName()

public RolloutConfig.RolloutStep.Builder clearDisplayName()

The name of the rollout step;

string display_name = 1;

Returns
TypeDescription
RolloutConfig.RolloutStep.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RolloutConfig.RolloutStep.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RolloutConfig.RolloutStep.Builder
Overrides

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;

Returns
TypeDescription
RolloutConfig.RolloutStep.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public RolloutConfig.RolloutStep.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RolloutConfig.RolloutStep.Builder
Overrides

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
TypeDescription
RolloutConfig.RolloutStep.Builder

This builder for chaining.

clone()

public RolloutConfig.RolloutStep.Builder clone()
Returns
TypeDescription
RolloutConfig.RolloutStep.Builder
Overrides

getDefaultInstanceForType()

public RolloutConfig.RolloutStep getDefaultInstanceForType()
Returns
TypeDescription
RolloutConfig.RolloutStep

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The name of the rollout step;

string display_name = 1;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The name of the rollout step;

string display_name = 1;

Returns
TypeDescription
ByteString

The bytes for displayName.

getMinDuration()

public 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;

Returns
TypeDescription
Duration

The minDuration.

getMinDurationBuilder()

public 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;

Returns
TypeDescription
Builder

getMinDurationOrBuilder()

public 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;

Returns
TypeDescription
DurationOrBuilder

getTrafficPercent()

public int getTrafficPercent()

The percentage of traffic allocated to the flow version of this rollout step. (0%, 100%].

int32 traffic_percent = 2;

Returns
TypeDescription
int

The trafficPercent.

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;

Returns
TypeDescription
boolean

Whether the minDuration field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RolloutConfig.RolloutStep other)

public RolloutConfig.RolloutStep.Builder mergeFrom(RolloutConfig.RolloutStep other)
Parameter
NameDescription
otherRolloutConfig.RolloutStep
Returns
TypeDescription
RolloutConfig.RolloutStep.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RolloutConfig.RolloutStep.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RolloutConfig.RolloutStep.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RolloutConfig.RolloutStep.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RolloutConfig.RolloutStep.Builder
Overrides

mergeMinDuration(Duration value)

public RolloutConfig.RolloutStep.Builder mergeMinDuration(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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
RolloutConfig.RolloutStep.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RolloutConfig.RolloutStep.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RolloutConfig.RolloutStep.Builder
Overrides

setDisplayName(String value)

public RolloutConfig.RolloutStep.Builder setDisplayName(String value)

The name of the rollout step;

string display_name = 1;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
RolloutConfig.RolloutStep.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public RolloutConfig.RolloutStep.Builder setDisplayNameBytes(ByteString value)

The name of the rollout step;

string display_name = 1;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
RolloutConfig.RolloutStep.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RolloutConfig.RolloutStep.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RolloutConfig.RolloutStep.Builder
Overrides

setMinDuration(Duration value)

public RolloutConfig.RolloutStep.Builder setMinDuration(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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
RolloutConfig.RolloutStep.Builder

setMinDuration(Duration.Builder builderForValue)

public RolloutConfig.RolloutStep.Builder setMinDuration(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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
RolloutConfig.RolloutStep.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RolloutConfig.RolloutStep.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RolloutConfig.RolloutStep.Builder
Overrides

setTrafficPercent(int value)

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;

Parameter
NameDescription
valueint

The trafficPercent to set.

Returns
TypeDescription
RolloutConfig.RolloutStep.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RolloutConfig.RolloutStep.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RolloutConfig.RolloutStep.Builder
Overrides