Class ExperimentInfo.ServingConfigExperiment.Builder (2.56.0)

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

Metadata for active serving config A/B tests.

Protobuf type google.cloud.retail.v2.ExperimentInfo.ServingConfigExperiment

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExperimentInfo.ServingConfigExperiment build()
Returns
Type Description
ExperimentInfo.ServingConfigExperiment

buildPartial()

public ExperimentInfo.ServingConfigExperiment buildPartial()
Returns
Type Description
ExperimentInfo.ServingConfigExperiment

clear()

public ExperimentInfo.ServingConfigExperiment.Builder clear()
Returns
Type Description
ExperimentInfo.ServingConfigExperiment.Builder
Overrides

clearExperimentServingConfig()

public ExperimentInfo.ServingConfigExperiment.Builder clearExperimentServingConfig()

The fully qualified resource name of the serving config [Experiment.VariantArm.serving_config_id][] responsible for generating the search response. For example: projects/*/locations/*/catalogs/*/servingConfigs/*.

string experiment_serving_config = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ExperimentInfo.ServingConfigExperiment.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOriginalServingConfig()

public ExperimentInfo.ServingConfigExperiment.Builder clearOriginalServingConfig()

The fully qualified resource name of the original SearchRequest.placement in the search request prior to reassignment by experiment API. For example: projects/*/locations/*/catalogs/*/servingConfigs/*.

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

Returns
Type Description
ExperimentInfo.ServingConfigExperiment.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ExperimentInfo.ServingConfigExperiment getDefaultInstanceForType()
Returns
Type Description
ExperimentInfo.ServingConfigExperiment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExperimentServingConfig()

public String getExperimentServingConfig()

The fully qualified resource name of the serving config [Experiment.VariantArm.serving_config_id][] responsible for generating the search response. For example: projects/*/locations/*/catalogs/*/servingConfigs/*.

string experiment_serving_config = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The experimentServingConfig.

getExperimentServingConfigBytes()

public ByteString getExperimentServingConfigBytes()

The fully qualified resource name of the serving config [Experiment.VariantArm.serving_config_id][] responsible for generating the search response. For example: projects/*/locations/*/catalogs/*/servingConfigs/*.

string experiment_serving_config = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for experimentServingConfig.

getOriginalServingConfig()

public String getOriginalServingConfig()

The fully qualified resource name of the original SearchRequest.placement in the search request prior to reassignment by experiment API. For example: projects/*/locations/*/catalogs/*/servingConfigs/*.

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

Returns
Type Description
String

The originalServingConfig.

getOriginalServingConfigBytes()

public ByteString getOriginalServingConfigBytes()

The fully qualified resource name of the original SearchRequest.placement in the search request prior to reassignment by experiment API. For example: projects/*/locations/*/catalogs/*/servingConfigs/*.

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

Returns
Type Description
ByteString

The bytes for originalServingConfig.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExperimentInfo.ServingConfigExperiment other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setExperimentServingConfig(String value)

public ExperimentInfo.ServingConfigExperiment.Builder setExperimentServingConfig(String value)

The fully qualified resource name of the serving config [Experiment.VariantArm.serving_config_id][] responsible for generating the search response. For example: projects/*/locations/*/catalogs/*/servingConfigs/*.

string experiment_serving_config = 2 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The experimentServingConfig to set.

Returns
Type Description
ExperimentInfo.ServingConfigExperiment.Builder

This builder for chaining.

setExperimentServingConfigBytes(ByteString value)

public ExperimentInfo.ServingConfigExperiment.Builder setExperimentServingConfigBytes(ByteString value)

The fully qualified resource name of the serving config [Experiment.VariantArm.serving_config_id][] responsible for generating the search response. For example: projects/*/locations/*/catalogs/*/servingConfigs/*.

string experiment_serving_config = 2 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for experimentServingConfig to set.

Returns
Type Description
ExperimentInfo.ServingConfigExperiment.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setOriginalServingConfig(String value)

public ExperimentInfo.ServingConfigExperiment.Builder setOriginalServingConfig(String value)

The fully qualified resource name of the original SearchRequest.placement in the search request prior to reassignment by experiment API. For example: projects/*/locations/*/catalogs/*/servingConfigs/*.

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

Parameter
Name Description
value String

The originalServingConfig to set.

Returns
Type Description
ExperimentInfo.ServingConfigExperiment.Builder

This builder for chaining.

setOriginalServingConfigBytes(ByteString value)

public ExperimentInfo.ServingConfigExperiment.Builder setOriginalServingConfigBytes(ByteString value)

The fully qualified resource name of the original SearchRequest.placement in the search request prior to reassignment by experiment API. For example: projects/*/locations/*/catalogs/*/servingConfigs/*.

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

Parameter
Name Description
value ByteString

The bytes for originalServingConfig to set.

Returns
Type Description
ExperimentInfo.ServingConfigExperiment.Builder

This builder for chaining.

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

public ExperimentInfo.ServingConfigExperiment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ExperimentInfo.ServingConfigExperiment.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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