Class ExperimentInfo.ServingConfigExperiment.Builder (2.38.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.v2alpha.ExperimentInfo.ServingConfigExperiment

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExperimentInfo.ServingConfigExperiment build()
Returns
TypeDescription
ExperimentInfo.ServingConfigExperiment

buildPartial()

public ExperimentInfo.ServingConfigExperiment buildPartial()
Returns
TypeDescription
ExperimentInfo.ServingConfigExperiment

clear()

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

clearExperimentServingConfig()

public ExperimentInfo.ServingConfigExperiment.Builder clearExperimentServingConfig()

The fully qualified resource name of the serving config [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
TypeDescription
ExperimentInfo.ServingConfigExperiment.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ExperimentInfo.ServingConfigExperiment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ExperimentInfo.ServingConfigExperiment.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ExperimentInfo.ServingConfigExperiment getDefaultInstanceForType()
Returns
TypeDescription
ExperimentInfo.ServingConfigExperiment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExperimentServingConfig()

public String getExperimentServingConfig()

The fully qualified resource name of the serving config [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
TypeDescription
String

The experimentServingConfig.

getExperimentServingConfigBytes()

public ByteString getExperimentServingConfigBytes()

The fully qualified resource name of the serving config [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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for originalServingConfig.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExperimentInfo.ServingConfigExperiment other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setExperimentServingConfig(String value)

public ExperimentInfo.ServingConfigExperiment.Builder setExperimentServingConfig(String value)

The fully qualified resource name of the serving config [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
NameDescription
valueString

The experimentServingConfig to set.

Returns
TypeDescription
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 [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
NameDescription
valueByteString

The bytes for experimentServingConfig to set.

Returns
TypeDescription
ExperimentInfo.ServingConfigExperiment.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ExperimentInfo.ServingConfigExperiment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The originalServingConfig to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for originalServingConfig to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ExperimentInfo.ServingConfigExperiment.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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