Send feedback
Class ExperimentInfo.Builder (2.44.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.44.0 keyboard_arrow_down
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.v2alpha.ExperimentInfo
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ExperimentInfo . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public ExperimentInfo build ()
buildPartial()
public ExperimentInfo buildPartial ()
clear()
public ExperimentInfo . Builder clear ()
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) = { ... }
public ExperimentInfo . Builder clearExperimentMetadata ()
clearField(Descriptors.FieldDescriptor field)
public ExperimentInfo . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ExperimentInfo . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearServingConfigExperiment()
public ExperimentInfo . Builder clearServingConfigExperiment ()
A/B test between existing Cloud Retail Search
ServingConfig s.
.google.cloud.retail.v2alpha.ExperimentInfo.ServingConfigExperiment serving_config_experiment = 2;
clone()
public ExperimentInfo . Builder clone ()
Overrides
getDefaultInstanceForType()
public ExperimentInfo getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
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.
public ExperimentInfo . ExperimentMetadataCase getExperimentMetadataCase ()
getServingConfigExperiment()
public ExperimentInfo . ServingConfigExperiment getServingConfigExperiment ()
A/B test between existing Cloud Retail Search
ServingConfig s.
.google.cloud.retail.v2alpha.ExperimentInfo.ServingConfigExperiment serving_config_experiment = 2;
getServingConfigExperimentBuilder()
public ExperimentInfo . ServingConfigExperiment . Builder getServingConfigExperimentBuilder ()
A/B test between existing Cloud Retail Search
ServingConfig s.
.google.cloud.retail.v2alpha.ExperimentInfo.ServingConfigExperiment serving_config_experiment = 2;
getServingConfigExperimentOrBuilder()
public ExperimentInfo . ServingConfigExperimentOrBuilder getServingConfigExperimentOrBuilder ()
A/B test between existing Cloud Retail Search
ServingConfig s.
.google.cloud.retail.v2alpha.ExperimentInfo.ServingConfigExperiment serving_config_experiment = 2;
hasServingConfigExperiment()
public boolean hasServingConfigExperiment ()
A/B test between existing Cloud Retail Search
ServingConfig s.
.google.cloud.retail.v2alpha.ExperimentInfo.ServingConfigExperiment serving_config_experiment = 2;
Returns
Type
Description
boolean
Whether the servingConfigExperiment field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(ExperimentInfo other)
public ExperimentInfo . Builder mergeFrom ( ExperimentInfo other )
public ExperimentInfo . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public ExperimentInfo . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeServingConfigExperiment(ExperimentInfo.ServingConfigExperiment value)
public ExperimentInfo . Builder mergeServingConfigExperiment ( ExperimentInfo . ServingConfigExperiment value )
A/B test between existing Cloud Retail Search
ServingConfig s.
.google.cloud.retail.v2alpha.ExperimentInfo.ServingConfigExperiment serving_config_experiment = 2;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ExperimentInfo . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
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.
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.
setField(Descriptors.FieldDescriptor field, Object value)
public ExperimentInfo . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ExperimentInfo . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setServingConfigExperiment(ExperimentInfo.ServingConfigExperiment value)
public ExperimentInfo . Builder setServingConfigExperiment ( ExperimentInfo . ServingConfigExperiment value )
A/B test between existing Cloud Retail Search
ServingConfig s.
.google.cloud.retail.v2alpha.ExperimentInfo.ServingConfigExperiment serving_config_experiment = 2;
setServingConfigExperiment(ExperimentInfo.ServingConfigExperiment.Builder builderForValue)
public ExperimentInfo . Builder setServingConfigExperiment ( ExperimentInfo . ServingConfigExperiment . Builder builderForValue )
A/B test between existing Cloud Retail Search
ServingConfig s.
.google.cloud.retail.v2alpha.ExperimentInfo.ServingConfigExperiment serving_config_experiment = 2;
setUnknownFields(UnknownFieldSet unknownFields)
public final ExperimentInfo . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]