Class Experiment.Definition.Builder (0.14.2)

public static final class Experiment.Definition.Builder extends GeneratedMessageV3.Builder<Experiment.Definition.Builder> implements Experiment.DefinitionOrBuilder

Definition of the experiment.

Protobuf type google.cloud.dialogflow.cx.v3beta1.Experiment.Definition

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Experiment.Definition build()
Returns
TypeDescription
Experiment.Definition

buildPartial()

public Experiment.Definition buildPartial()
Returns
TypeDescription
Experiment.Definition

clear()

public Experiment.Definition.Builder clear()
Returns
TypeDescription
Experiment.Definition.Builder
Overrides

clearCondition()

public Experiment.Definition.Builder clearCondition()

The condition defines which subset of sessions are selected for this experiment. If not specified, all sessions are eligible. E.g. "query_input.language_code=en" See the conditions reference.

string condition = 1;

Returns
TypeDescription
Experiment.Definition.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Experiment.Definition.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Experiment.Definition.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Experiment.Definition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Experiment.Definition.Builder
Overrides

clearVariants()

public Experiment.Definition.Builder clearVariants()
Returns
TypeDescription
Experiment.Definition.Builder

clearVersionVariants()

public Experiment.Definition.Builder clearVersionVariants()

The flow versions as the variants of this experiment.

.google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2;

Returns
TypeDescription
Experiment.Definition.Builder

clone()

public Experiment.Definition.Builder clone()
Returns
TypeDescription
Experiment.Definition.Builder
Overrides

getCondition()

public String getCondition()

The condition defines which subset of sessions are selected for this experiment. If not specified, all sessions are eligible. E.g. "query_input.language_code=en" See the conditions reference.

string condition = 1;

Returns
TypeDescription
String

The condition.

getConditionBytes()

public ByteString getConditionBytes()

The condition defines which subset of sessions are selected for this experiment. If not specified, all sessions are eligible. E.g. "query_input.language_code=en" See the conditions reference.

string condition = 1;

Returns
TypeDescription
ByteString

The bytes for condition.

getDefaultInstanceForType()

public Experiment.Definition getDefaultInstanceForType()
Returns
TypeDescription
Experiment.Definition

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getVariantsCase()

public Experiment.Definition.VariantsCase getVariantsCase()
Returns
TypeDescription
Experiment.Definition.VariantsCase

getVersionVariants()

public VersionVariants getVersionVariants()

The flow versions as the variants of this experiment.

.google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2;

Returns
TypeDescription
VersionVariants

The versionVariants.

getVersionVariantsBuilder()

public VersionVariants.Builder getVersionVariantsBuilder()

The flow versions as the variants of this experiment.

.google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2;

Returns
TypeDescription
VersionVariants.Builder

getVersionVariantsOrBuilder()

public VersionVariantsOrBuilder getVersionVariantsOrBuilder()

The flow versions as the variants of this experiment.

.google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2;

Returns
TypeDescription
VersionVariantsOrBuilder

hasVersionVariants()

public boolean hasVersionVariants()

The flow versions as the variants of this experiment.

.google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2;

Returns
TypeDescription
boolean

Whether the versionVariants field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Experiment.Definition other)

public Experiment.Definition.Builder mergeFrom(Experiment.Definition other)
Parameter
NameDescription
otherExperiment.Definition
Returns
TypeDescription
Experiment.Definition.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Experiment.Definition.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Experiment.Definition.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Experiment.Definition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Experiment.Definition.Builder
Overrides

mergeVersionVariants(VersionVariants value)

public Experiment.Definition.Builder mergeVersionVariants(VersionVariants value)

The flow versions as the variants of this experiment.

.google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2;

Parameter
NameDescription
valueVersionVariants
Returns
TypeDescription
Experiment.Definition.Builder

setCondition(String value)

public Experiment.Definition.Builder setCondition(String value)

The condition defines which subset of sessions are selected for this experiment. If not specified, all sessions are eligible. E.g. "query_input.language_code=en" See the conditions reference.

string condition = 1;

Parameter
NameDescription
valueString

The condition to set.

Returns
TypeDescription
Experiment.Definition.Builder

This builder for chaining.

setConditionBytes(ByteString value)

public Experiment.Definition.Builder setConditionBytes(ByteString value)

The condition defines which subset of sessions are selected for this experiment. If not specified, all sessions are eligible. E.g. "query_input.language_code=en" See the conditions reference.

string condition = 1;

Parameter
NameDescription
valueByteString

The bytes for condition to set.

Returns
TypeDescription
Experiment.Definition.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final Experiment.Definition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Experiment.Definition.Builder
Overrides

setVersionVariants(VersionVariants value)

public Experiment.Definition.Builder setVersionVariants(VersionVariants value)

The flow versions as the variants of this experiment.

.google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2;

Parameter
NameDescription
valueVersionVariants
Returns
TypeDescription
Experiment.Definition.Builder

setVersionVariants(VersionVariants.Builder builderForValue)

public Experiment.Definition.Builder setVersionVariants(VersionVariants.Builder builderForValue)

The flow versions as the variants of this experiment.

.google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2;

Parameter
NameDescription
builderForValueVersionVariants.Builder
Returns
TypeDescription
Experiment.Definition.Builder