Class Model.ModelFeaturesConfig (2.48.0)

public static final class Model.ModelFeaturesConfig extends GeneratedMessageV3 implements Model.ModelFeaturesConfigOrBuilder

Additional model features config.

Protobuf type google.cloud.retail.v2alpha.Model.ModelFeaturesConfig

Static Fields

FREQUENTLY_BOUGHT_TOGETHER_CONFIG_FIELD_NUMBER

public static final int FREQUENTLY_BOUGHT_TOGETHER_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Model.ModelFeaturesConfig getDefaultInstance()
Returns
Type Description
Model.ModelFeaturesConfig

getDescriptor()

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

newBuilder()

public static Model.ModelFeaturesConfig.Builder newBuilder()
Returns
Type Description
Model.ModelFeaturesConfig.Builder

newBuilder(Model.ModelFeaturesConfig prototype)

public static Model.ModelFeaturesConfig.Builder newBuilder(Model.ModelFeaturesConfig prototype)
Parameter
Name Description
prototype Model.ModelFeaturesConfig
Returns
Type Description
Model.ModelFeaturesConfig.Builder

parseDelimitedFrom(InputStream input)

public static Model.ModelFeaturesConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Model.ModelFeaturesConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Model.ModelFeaturesConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Model.ModelFeaturesConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Model.ModelFeaturesConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Model.ModelFeaturesConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Model.ModelFeaturesConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Model.ModelFeaturesConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Model.ModelFeaturesConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Model.ModelFeaturesConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Model.ModelFeaturesConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Model.ModelFeaturesConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Model.ModelFeaturesConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Model.ModelFeaturesConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Model.ModelFeaturesConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Model.ModelFeaturesConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Model.ModelFeaturesConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Model.ModelFeaturesConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Model.ModelFeaturesConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Model.ModelFeaturesConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Model.ModelFeaturesConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Model.ModelFeaturesConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Model.ModelFeaturesConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Model.ModelFeaturesConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Model.ModelFeaturesConfig> parser()
Returns
Type Description
Parser<ModelFeaturesConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Model.ModelFeaturesConfig getDefaultInstanceForType()
Returns
Type Description
Model.ModelFeaturesConfig

getFrequentlyBoughtTogetherConfig()

public Model.FrequentlyBoughtTogetherFeaturesConfig getFrequentlyBoughtTogetherConfig()

Additional configs for frequently-bought-together models.

.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1;

Returns
Type Description
Model.FrequentlyBoughtTogetherFeaturesConfig

The frequentlyBoughtTogetherConfig.

getFrequentlyBoughtTogetherConfigOrBuilder()

public Model.FrequentlyBoughtTogetherFeaturesConfigOrBuilder getFrequentlyBoughtTogetherConfigOrBuilder()

Additional configs for frequently-bought-together models.

.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1;

Returns
Type Description
Model.FrequentlyBoughtTogetherFeaturesConfigOrBuilder

getParserForType()

public Parser<Model.ModelFeaturesConfig> getParserForType()
Returns
Type Description
Parser<ModelFeaturesConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTypeDedicatedConfigCase()

public Model.ModelFeaturesConfig.TypeDedicatedConfigCase getTypeDedicatedConfigCase()
Returns
Type Description
Model.ModelFeaturesConfig.TypeDedicatedConfigCase

hasFrequentlyBoughtTogetherConfig()

public boolean hasFrequentlyBoughtTogetherConfig()

Additional configs for frequently-bought-together models.

.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1;

Returns
Type Description
boolean

Whether the frequentlyBoughtTogetherConfig field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Model.ModelFeaturesConfig.Builder newBuilderForType()
Returns
Type Description
Model.ModelFeaturesConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Model.ModelFeaturesConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Model.ModelFeaturesConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Model.ModelFeaturesConfig.Builder toBuilder()
Returns
Type Description
Model.ModelFeaturesConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException