Class VersionVariants.Variant.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
-
- com.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.Builder
-
- All Implemented Interfaces:
VersionVariants.VariantOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- VersionVariants.Variant
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 typegoogle.cloud.dialogflow.cx.v3.VersionVariants.Variant
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VersionVariants.Variant.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)VersionVariants.Variantbuild()VersionVariants.VariantbuildPartial()VersionVariants.Variant.Builderclear()VersionVariants.Variant.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)VersionVariants.Variant.BuilderclearIsControlGroup()Whether the variant is for the control group.VersionVariants.Variant.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)VersionVariants.Variant.BuilderclearTrafficAllocation()Percentage of the traffic which should be routed to this version of flow.VersionVariants.Variant.BuilderclearVersion()The name of the flow version.VersionVariants.Variant.Builderclone()VersionVariants.VariantgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetIsControlGroup()Whether the variant is for the control group.floatgetTrafficAllocation()Percentage of the traffic which should be routed to this version of flow.StringgetVersion()The name of the flow version.com.google.protobuf.ByteStringgetVersionBytes()The name of the flow version.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()VersionVariants.Variant.BuildermergeFrom(VersionVariants.Variant other)VersionVariants.Variant.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)VersionVariants.Variant.BuildermergeFrom(com.google.protobuf.Message other)VersionVariants.Variant.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)VersionVariants.Variant.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)VersionVariants.Variant.BuildersetIsControlGroup(boolean value)Whether the variant is for the control group.VersionVariants.Variant.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)VersionVariants.Variant.BuildersetTrafficAllocation(float value)Percentage of the traffic which should be routed to this version of flow.VersionVariants.Variant.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)VersionVariants.Variant.BuildersetVersion(String value)The name of the flow version.VersionVariants.Variant.BuildersetVersionBytes(com.google.protobuf.ByteString value)The name of the flow version.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
-
clear
public VersionVariants.Variant.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.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.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
-
getDefaultInstanceForType
public VersionVariants.Variant getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public VersionVariants.Variant build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VersionVariants.Variant buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public VersionVariants.Variant.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
-
setField
public VersionVariants.Variant.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
-
clearField
public VersionVariants.Variant.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
-
clearOneof
public VersionVariants.Variant.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
-
setRepeatedField
public VersionVariants.Variant.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
-
addRepeatedField
public VersionVariants.Variant.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
-
mergeFrom
public VersionVariants.Variant.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VersionVariants.Variant.Builder>
-
mergeFrom
public VersionVariants.Variant.Builder mergeFrom(VersionVariants.Variant other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
-
mergeFrom
public VersionVariants.Variant.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<VersionVariants.Variant.Builder>- Throws:
IOException
-
getVersion
public 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;- Specified by:
getVersionin interfaceVersionVariants.VariantOrBuilder- Returns:
- The version.
-
getVersionBytes
public 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;- Specified by:
getVersionBytesin interfaceVersionVariants.VariantOrBuilder- Returns:
- The bytes for version.
-
setVersion
public 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;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
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;- Returns:
- This builder for chaining.
-
setVersionBytes
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;- Parameters:
value- The bytes for version to set.- Returns:
- This builder for chaining.
-
getTrafficAllocation
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;- Specified by:
getTrafficAllocationin interfaceVersionVariants.VariantOrBuilder- Returns:
- The trafficAllocation.
-
setTrafficAllocation
public 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;- Parameters:
value- The trafficAllocation to set.- Returns:
- This builder for chaining.
-
clearTrafficAllocation
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;- Returns:
- This builder for chaining.
-
getIsControlGroup
public boolean getIsControlGroup()
Whether the variant is for the control group.
bool is_control_group = 3;- Specified by:
getIsControlGroupin interfaceVersionVariants.VariantOrBuilder- Returns:
- The isControlGroup.
-
setIsControlGroup
public VersionVariants.Variant.Builder setIsControlGroup(boolean value)
Whether the variant is for the control group.
bool is_control_group = 3;- Parameters:
value- The isControlGroup to set.- Returns:
- This builder for chaining.
-
clearIsControlGroup
public VersionVariants.Variant.Builder clearIsControlGroup()
Whether the variant is for the control group.
bool is_control_group = 3;- Returns:
- This builder for chaining.
-
setUnknownFields
public final VersionVariants.Variant.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
-
mergeUnknownFields
public final VersionVariants.Variant.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
-
-