public static final class VersionVariants.Variant.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder> implements VersionVariants.VariantOrBuilder
A single flow version with specified traffic allocation.Protobuf type
google.cloud.dialogflow.cx.v3.VersionVariants.Variant| Modifier and Type | Method and Description |
|---|---|
VersionVariants.Variant.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
VersionVariants.Variant |
build() |
VersionVariants.Variant |
buildPartial() |
VersionVariants.Variant.Builder |
clear() |
VersionVariants.Variant.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
VersionVariants.Variant.Builder |
clearIsControlGroup()
Whether the variant is for the control group.
|
VersionVariants.Variant.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
VersionVariants.Variant.Builder |
clearTrafficAllocation()
Percentage of the traffic which should be routed to this
version of flow.
|
VersionVariants.Variant.Builder |
clearVersion()
The name of the flow version.
|
VersionVariants.Variant.Builder |
clone() |
VersionVariants.Variant |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getIsControlGroup()
Whether the variant is for the control group.
|
float |
getTrafficAllocation()
Percentage of the traffic which should be routed to this
version of flow.
|
String |
getVersion()
The name of the flow version.
|
com.google.protobuf.ByteString |
getVersionBytes()
The name of the flow version.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
VersionVariants.Variant.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
VersionVariants.Variant.Builder |
mergeFrom(com.google.protobuf.Message other) |
VersionVariants.Variant.Builder |
mergeFrom(VersionVariants.Variant other) |
VersionVariants.Variant.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
VersionVariants.Variant.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
VersionVariants.Variant.Builder |
setIsControlGroup(boolean value)
Whether the variant is for the control group.
|
VersionVariants.Variant.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
VersionVariants.Variant.Builder |
setTrafficAllocation(float value)
Percentage of the traffic which should be routed to this
version of flow.
|
VersionVariants.Variant.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
VersionVariants.Variant.Builder |
setVersion(String value)
The name of the flow version.
|
VersionVariants.Variant.Builder |
setVersionBytes(com.google.protobuf.ByteString value)
The name of the flow version.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>public VersionVariants.Variant.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>public VersionVariants.Variant getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic VersionVariants.Variant build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic VersionVariants.Variant buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic VersionVariants.Variant.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>public VersionVariants.Variant.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>public VersionVariants.Variant.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>public VersionVariants.Variant.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>public VersionVariants.Variant.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>public VersionVariants.Variant.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>public VersionVariants.Variant.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<VersionVariants.Variant.Builder>public VersionVariants.Variant.Builder mergeFrom(VersionVariants.Variant other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>public VersionVariants.Variant.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<VersionVariants.Variant.Builder>IOExceptionpublic String getVersion()
The name of the flow version. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
string version = 1;getVersion in interface VersionVariants.VariantOrBuilderpublic com.google.protobuf.ByteString getVersionBytes()
The name of the flow version. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
string version = 1;getVersionBytes in interface VersionVariants.VariantOrBuilderpublic VersionVariants.Variant.Builder setVersion(String value)
The name of the flow version. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
string version = 1;value - The version to set.public VersionVariants.Variant.Builder clearVersion()
The name of the flow version. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
string version = 1;public VersionVariants.Variant.Builder setVersionBytes(com.google.protobuf.ByteString value)
The name of the flow version. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
string version = 1;value - The bytes for version to set.public float getTrafficAllocation()
Percentage of the traffic which should be routed to this version of flow. Traffic allocation for a single flow must sum up to 1.0.
float traffic_allocation = 2;getTrafficAllocation in interface VersionVariants.VariantOrBuilderpublic VersionVariants.Variant.Builder setTrafficAllocation(float value)
Percentage of the traffic which should be routed to this version of flow. Traffic allocation for a single flow must sum up to 1.0.
float traffic_allocation = 2;value - The trafficAllocation to set.public VersionVariants.Variant.Builder clearTrafficAllocation()
Percentage of the traffic which should be routed to this version of flow. Traffic allocation for a single flow must sum up to 1.0.
float traffic_allocation = 2;public boolean getIsControlGroup()
Whether the variant is for the control group.
bool is_control_group = 3;getIsControlGroup in interface VersionVariants.VariantOrBuilderpublic VersionVariants.Variant.Builder setIsControlGroup(boolean value)
Whether the variant is for the control group.
bool is_control_group = 3;value - The isControlGroup to set.public VersionVariants.Variant.Builder clearIsControlGroup()
Whether the variant is for the control group.
bool is_control_group = 3;public final VersionVariants.Variant.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>public final VersionVariants.Variant.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>Copyright © 2022 Google LLC. All rights reserved.