Class ExperimentInfo.Builder (2.44.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.v2beta.ExperimentInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExperimentInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ExperimentInfo.Builder
Overrides

build()

public ExperimentInfo build()
Returns
Type Description
ExperimentInfo

buildPartial()

public ExperimentInfo buildPartial()
Returns
Type Description
ExperimentInfo

clear()

public ExperimentInfo.Builder clear()
Returns
Type Description
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
Type Description
ExperimentInfo.Builder

This builder for chaining.

clearExperimentMetadata()

public ExperimentInfo.Builder clearExperimentMetadata()
Returns
Type Description
ExperimentInfo.Builder

clearField(Descriptors.FieldDescriptor field)

public ExperimentInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ExperimentInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ExperimentInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ExperimentInfo.Builder
Overrides

clearServingConfigExperiment()

public ExperimentInfo.Builder clearServingConfigExperiment()

A/B test between existing Cloud Retail Search ServingConfigs.

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

Returns
Type Description
ExperimentInfo.Builder

clone()

public ExperimentInfo.Builder clone()
Returns
Type Description
ExperimentInfo.Builder
Overrides

getDefaultInstanceForType()

public ExperimentInfo getDefaultInstanceForType()
Returns
Type Description
ExperimentInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for experiment.

getExperimentMetadataCase()

public ExperimentInfo.ExperimentMetadataCase getExperimentMetadataCase()
Returns
Type Description
ExperimentInfo.ExperimentMetadataCase

getServingConfigExperiment()

public ExperimentInfo.ServingConfigExperiment getServingConfigExperiment()

A/B test between existing Cloud Retail Search ServingConfigs.

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

Returns
Type Description
ExperimentInfo.ServingConfigExperiment

The servingConfigExperiment.

getServingConfigExperimentBuilder()

public ExperimentInfo.ServingConfigExperiment.Builder getServingConfigExperimentBuilder()

A/B test between existing Cloud Retail Search ServingConfigs.

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

Returns
Type Description
ExperimentInfo.ServingConfigExperiment.Builder

getServingConfigExperimentOrBuilder()

public ExperimentInfo.ServingConfigExperimentOrBuilder getServingConfigExperimentOrBuilder()

A/B test between existing Cloud Retail Search ServingConfigs.

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

Returns
Type Description
ExperimentInfo.ServingConfigExperimentOrBuilder

hasServingConfigExperiment()

public boolean hasServingConfigExperiment()

A/B test between existing Cloud Retail Search ServingConfigs.

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

Returns
Type Description
boolean

Whether the servingConfigExperiment field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExperimentInfo other)

public ExperimentInfo.Builder mergeFrom(ExperimentInfo other)
Parameter
Name Description
other ExperimentInfo
Returns
Type Description
ExperimentInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExperimentInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExperimentInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ExperimentInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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.v2beta.ExperimentInfo.ServingConfigExperiment serving_config_experiment = 2;

Parameter
Name Description
value ExperimentInfo.ServingConfigExperiment
Returns
Type Description
ExperimentInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExperimentInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value String

The experiment to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for experiment to set.

Returns
Type Description
ExperimentInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ExperimentInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ExperimentInfo.Builder
Overrides

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

public ExperimentInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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.v2beta.ExperimentInfo.ServingConfigExperiment serving_config_experiment = 2;

Parameter
Name Description
value ExperimentInfo.ServingConfigExperiment
Returns
Type Description
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.v2beta.ExperimentInfo.ServingConfigExperiment serving_config_experiment = 2;

Parameter
Name Description
builderForValue ExperimentInfo.ServingConfigExperiment.Builder
Returns
Type Description
ExperimentInfo.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ExperimentInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ExperimentInfo.Builder
Overrides