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.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.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder> implements VersionVariants.VariantOrBuilder
A single flow version with specified traffic allocation.
Protobuf typegoogle.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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(VersionVariants.Variant other)
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
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.-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
-
clear
public VersionVariants.Variant.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
-
getDefaultInstanceForType
public VersionVariants.Variant getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public VersionVariants.Variant build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VersionVariants.Variant buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public VersionVariants.Variant.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
-
setField
public VersionVariants.Variant.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
-
clearField
public VersionVariants.Variant.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
-
clearOneof
public VersionVariants.Variant.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
-
addRepeatedField
public VersionVariants.Variant.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
-
mergeFrom
public VersionVariants.Variant.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<VersionVariants.Variant.Builder>
-
mergeFrom
public VersionVariants.Variant.Builder mergeFrom(VersionVariants.Variant other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getVersion
in 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:
getVersionBytes
in 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:
getTrafficAllocation
in 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:
getIsControlGroup
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
-
mergeUnknownFields
public final VersionVariants.Variant.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
-
-