Class GenerativeQuestionsFeatureConfig (2.54.0)

public final class GenerativeQuestionsFeatureConfig extends GeneratedMessageV3 implements GenerativeQuestionsFeatureConfigOrBuilder

Configuration for overall generative question feature state.

Protobuf type google.cloud.retail.v2alpha.GenerativeQuestionsFeatureConfig

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > GenerativeQuestionsFeatureConfig

Static Fields

CATALOG_FIELD_NUMBER

public static final int CATALOG_FIELD_NUMBER
Field Value
Type Description
int

FEATURE_ENABLED_FIELD_NUMBER

public static final int FEATURE_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

MINIMUM_PRODUCTS_FIELD_NUMBER

public static final int MINIMUM_PRODUCTS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GenerativeQuestionsFeatureConfig getDefaultInstance()
Returns
Type Description
GenerativeQuestionsFeatureConfig

getDescriptor()

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

newBuilder()

public static GenerativeQuestionsFeatureConfig.Builder newBuilder()
Returns
Type Description
GenerativeQuestionsFeatureConfig.Builder

newBuilder(GenerativeQuestionsFeatureConfig prototype)

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

parseDelimitedFrom(InputStream input)

public static GenerativeQuestionsFeatureConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GenerativeQuestionsFeatureConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static GenerativeQuestionsFeatureConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
GenerativeQuestionsFeatureConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static GenerativeQuestionsFeatureConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GenerativeQuestionsFeatureConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static GenerativeQuestionsFeatureConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GenerativeQuestionsFeatureConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static GenerativeQuestionsFeatureConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GenerativeQuestionsFeatureConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<GenerativeQuestionsFeatureConfig> parser()
Returns
Type Description
Parser<GenerativeQuestionsFeatureConfig>

Methods

equals(Object obj)

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

getCatalog()

public String getCatalog()

Required. Resource name of the affected catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

string catalog = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The catalog.

getCatalogBytes()

public ByteString getCatalogBytes()

Required. Resource name of the affected catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

string catalog = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for catalog.

getDefaultInstanceForType()

public GenerativeQuestionsFeatureConfig getDefaultInstanceForType()
Returns
Type Description
GenerativeQuestionsFeatureConfig

getFeatureEnabled()

public boolean getFeatureEnabled()

Optional. Determines whether questions will be used at serving time. Note: This feature cannot be enabled until initial data requirements are satisfied.

bool feature_enabled = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The featureEnabled.

getMinimumProducts()

public int getMinimumProducts()

Optional. Minimum number of products in the response to trigger follow-up questions. Value must be 0 or positive.

int32 minimum_products = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The minimumProducts.

getParserForType()

public Parser<GenerativeQuestionsFeatureConfig> getParserForType()
Returns
Type Description
Parser<GenerativeQuestionsFeatureConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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 GenerativeQuestionsFeatureConfig.Builder newBuilderForType()
Returns
Type Description
GenerativeQuestionsFeatureConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public GenerativeQuestionsFeatureConfig.Builder toBuilder()
Returns
Type Description
GenerativeQuestionsFeatureConfig.Builder

writeTo(CodedOutputStream output)

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