Class VersionVariants.Variant.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VersionVariants.Variant.Builder>
com.google.cloud.dialogflow.cx.v3beta1.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.GeneratedMessage.Builder<VersionVariants.Variant.Builder>
implements VersionVariants.VariantOrBuilder
A single flow version with specified traffic allocation.Protobuf type
google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Whether the variant is for the control group.Percentage of the traffic which should be routed to this version of flow.The name of the flow version.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanWhether the variant is for the control group.floatPercentage of the traffic which should be routed to this version of flow.The name of the flow version.com.google.protobuf.ByteStringThe name of the flow version.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(VersionVariants.Variant other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setIsControlGroup(boolean value) Whether the variant is for the control group.setTrafficAllocation(float value) Percentage of the traffic which should be routed to this version of flow.setVersion(String value) The name of the flow version.setVersionBytes(com.google.protobuf.ByteString value) The name of the flow version.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<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.GeneratedMessage.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.GeneratedMessage.Builder<VersionVariants.Variant.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<VersionVariants.Variant.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
The name of the flow version. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
string version = 1;- Specified by:
getVersionBytesin interfaceVersionVariants.VariantOrBuilder- Returns:
- The bytes for version.
-
setVersion
The name of the flow version. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
string version = 1;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
The name of the flow version. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
string version = 1;- Returns:
- This builder for chaining.
-
setVersionBytes
The name of the flow version. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
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
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
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
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
Whether the variant is for the control group.
bool is_control_group = 3;- Returns:
- This builder for chaining.
-