Class ExperimentInfo (2.35.0)

public final class ExperimentInfo extends GeneratedMessageV3 implements ExperimentInfoOrBuilder

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

Protobuf type google.cloud.retail.v2.ExperimentInfo

Static Fields

EXPERIMENT_FIELD_NUMBER

public static final int EXPERIMENT_FIELD_NUMBER
Field Value
TypeDescription
int

SERVING_CONFIG_EXPERIMENT_FIELD_NUMBER

public static final int SERVING_CONFIG_EXPERIMENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ExperimentInfo getDefaultInstance()
Returns
TypeDescription
ExperimentInfo

getDescriptor()

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

newBuilder()

public static ExperimentInfo.Builder newBuilder()
Returns
TypeDescription
ExperimentInfo.Builder

newBuilder(ExperimentInfo prototype)

public static ExperimentInfo.Builder newBuilder(ExperimentInfo prototype)
Parameter
NameDescription
prototypeExperimentInfo
Returns
TypeDescription
ExperimentInfo.Builder

parseDelimitedFrom(InputStream input)

public static ExperimentInfo parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ExperimentInfo
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExperimentInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExperimentInfo
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ExperimentInfo parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ExperimentInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ExperimentInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExperimentInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ExperimentInfo parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ExperimentInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ExperimentInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExperimentInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ExperimentInfo parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ExperimentInfo
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ExperimentInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExperimentInfo
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ExperimentInfo parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ExperimentInfo
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExperimentInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExperimentInfo
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ExperimentInfo parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ExperimentInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ExperimentInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExperimentInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ExperimentInfo> parser()
Returns
TypeDescription
Parser<ExperimentInfo>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ExperimentInfo getDefaultInstanceForType()
Returns
TypeDescription
ExperimentInfo

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

getParserForType()

public Parser<ExperimentInfo> getParserForType()
Returns
TypeDescription
Parser<ExperimentInfo>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ExperimentInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ExperimentInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException