Class ExperimentInfo.Builder (2.22.0)

public static final class ExperimentInfo.Builder extends GeneratedMessageV3.Builder<ExperimentInfo.Builder> implements ExperimentInfoOrBuilder

Metadata for active A/B testing [Experiments][].

Protobuf type google.cloud.retail.v2.ExperimentInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExperimentInfo build()
Returns
TypeDescription
ExperimentInfo

buildPartial()

public ExperimentInfo buildPartial()
Returns
TypeDescription
ExperimentInfo

clear()

public ExperimentInfo.Builder clear()
Returns
TypeDescription
ExperimentInfo.Builder
Overrides

clearExperiment()

public ExperimentInfo.Builder clearExperiment()

The fully qualified resource name of the experiment that provides the serving config under test, should an active experiment exist. For example: projects/*/locations/global/catalogs/default_catalog/experiments/experiment_id

string experiment = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ExperimentInfo.Builder

This builder for chaining.

clearExperimentMetadata()

public ExperimentInfo.Builder clearExperimentMetadata()
Returns
TypeDescription
ExperimentInfo.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearServingConfigExperiment()

public ExperimentInfo.Builder clearServingConfigExperiment()

A/B test between existing Cloud Retail Search ServingConfigs.

.google.cloud.retail.v2.ExperimentInfo.ServingConfigExperiment serving_config_experiment = 2;

Returns
TypeDescription
ExperimentInfo.Builder

clone()

public ExperimentInfo.Builder clone()
Returns
TypeDescription
ExperimentInfo.Builder
Overrides

getDefaultInstanceForType()

public ExperimentInfo getDefaultInstanceForType()
Returns
TypeDescription
ExperimentInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExperiment()

public String getExperiment()

The fully qualified resource name of the experiment that provides the serving config under test, should an active experiment exist. For example: projects/*/locations/global/catalogs/default_catalog/experiments/experiment_id

string experiment = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The experiment.

getExperimentBytes()

public ByteString getExperimentBytes()

The fully qualified resource name of the experiment that provides the serving config under test, should an active experiment exist. For example: projects/*/locations/global/catalogs/default_catalog/experiments/experiment_id

string experiment = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for experiment.

getExperimentMetadataCase()

public ExperimentInfo.ExperimentMetadataCase getExperimentMetadataCase()
Returns
TypeDescription
ExperimentInfo.ExperimentMetadataCase

getServingConfigExperiment()

public ExperimentInfo.ServingConfigExperiment getServingConfigExperiment()

A/B test between existing Cloud Retail Search ServingConfigs.

.google.cloud.retail.v2.ExperimentInfo.ServingConfigExperiment serving_config_experiment = 2;

Returns
TypeDescription
ExperimentInfo.ServingConfigExperiment

The servingConfigExperiment.

getServingConfigExperimentBuilder()

public ExperimentInfo.ServingConfigExperiment.Builder getServingConfigExperimentBuilder()

A/B test between existing Cloud Retail Search ServingConfigs.

.google.cloud.retail.v2.ExperimentInfo.ServingConfigExperiment serving_config_experiment = 2;

Returns
TypeDescription
ExperimentInfo.ServingConfigExperiment.Builder

getServingConfigExperimentOrBuilder()

public ExperimentInfo.ServingConfigExperimentOrBuilder getServingConfigExperimentOrBuilder()

A/B test between existing Cloud Retail Search ServingConfigs.

.google.cloud.retail.v2.ExperimentInfo.ServingConfigExperiment serving_config_experiment = 2;

Returns
TypeDescription
ExperimentInfo.ServingConfigExperimentOrBuilder

hasServingConfigExperiment()

public boolean hasServingConfigExperiment()

A/B test between existing Cloud Retail Search ServingConfigs.

.google.cloud.retail.v2.ExperimentInfo.ServingConfigExperiment serving_config_experiment = 2;

Returns
TypeDescription
boolean

Whether the servingConfigExperiment field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExperimentInfo other)

public ExperimentInfo.Builder mergeFrom(ExperimentInfo other)
Parameter
NameDescription
otherExperimentInfo
Returns
TypeDescription
ExperimentInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeServingConfigExperiment(ExperimentInfo.ServingConfigExperiment value)

public ExperimentInfo.Builder mergeServingConfigExperiment(ExperimentInfo.ServingConfigExperiment value)

A/B test between existing Cloud Retail Search ServingConfigs.

.google.cloud.retail.v2.ExperimentInfo.ServingConfigExperiment serving_config_experiment = 2;

Parameter
NameDescription
valueExperimentInfo.ServingConfigExperiment
Returns
TypeDescription
ExperimentInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setExperiment(String value)

public ExperimentInfo.Builder setExperiment(String value)

The fully qualified resource name of the experiment that provides the serving config under test, should an active experiment exist. For example: projects/*/locations/global/catalogs/default_catalog/experiments/experiment_id

string experiment = 1 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The experiment to set.

Returns
TypeDescription
ExperimentInfo.Builder

This builder for chaining.

setExperimentBytes(ByteString value)

public ExperimentInfo.Builder setExperimentBytes(ByteString value)

The fully qualified resource name of the experiment that provides the serving config under test, should an active experiment exist. For example: projects/*/locations/global/catalogs/default_catalog/experiments/experiment_id

string experiment = 1 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for experiment to set.

Returns
TypeDescription
ExperimentInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setServingConfigExperiment(ExperimentInfo.ServingConfigExperiment value)

public ExperimentInfo.Builder setServingConfigExperiment(ExperimentInfo.ServingConfigExperiment value)

A/B test between existing Cloud Retail Search ServingConfigs.

.google.cloud.retail.v2.ExperimentInfo.ServingConfigExperiment serving_config_experiment = 2;

Parameter
NameDescription
valueExperimentInfo.ServingConfigExperiment
Returns
TypeDescription
ExperimentInfo.Builder

setServingConfigExperiment(ExperimentInfo.ServingConfigExperiment.Builder builderForValue)

public ExperimentInfo.Builder setServingConfigExperiment(ExperimentInfo.ServingConfigExperiment.Builder builderForValue)

A/B test between existing Cloud Retail Search ServingConfigs.

.google.cloud.retail.v2.ExperimentInfo.ServingConfigExperiment serving_config_experiment = 2;

Parameter
NameDescription
builderForValueExperimentInfo.ServingConfigExperiment.Builder
Returns
TypeDescription
ExperimentInfo.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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