public static final class SearchRequest.SearchAddonSpec extends GeneratedMessage implements SearchRequest.SearchAddonSpecOrBuilderSearchAddonSpec is used to disable add-ons for search as per new repricing model. By default if the SearchAddonSpec is not specified, we consider that the customer wants to enable them wherever applicable.
Protobuf type google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > SearchRequest.SearchAddonSpecImplements
SearchRequest.SearchAddonSpecOrBuilderStatic Fields
DISABLE_GENERATIVE_ANSWER_ADD_ON_FIELD_NUMBER
public static final int DISABLE_GENERATIVE_ANSWER_ADD_ON_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DISABLE_KPI_PERSONALIZATION_ADD_ON_FIELD_NUMBER
public static final int DISABLE_KPI_PERSONALIZATION_ADD_ON_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DISABLE_SEMANTIC_ADD_ON_FIELD_NUMBER
public static final int DISABLE_SEMANTIC_ADD_ON_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static SearchRequest.SearchAddonSpec getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
SearchRequest.SearchAddonSpec |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static SearchRequest.SearchAddonSpec.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
SearchRequest.SearchAddonSpec.Builder |
|
newBuilder(SearchRequest.SearchAddonSpec prototype)
public static SearchRequest.SearchAddonSpec.Builder newBuilder(SearchRequest.SearchAddonSpec prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
SearchRequest.SearchAddonSpec |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.SearchAddonSpec.Builder |
|
parseDelimitedFrom(InputStream input)
public static SearchRequest.SearchAddonSpec parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.SearchAddonSpec |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SearchRequest.SearchAddonSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.SearchAddonSpec |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static SearchRequest.SearchAddonSpec parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.SearchAddonSpec |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SearchRequest.SearchAddonSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.SearchAddonSpec |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static SearchRequest.SearchAddonSpec parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.SearchAddonSpec |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SearchRequest.SearchAddonSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.SearchAddonSpec |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static SearchRequest.SearchAddonSpec parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.SearchAddonSpec |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SearchRequest.SearchAddonSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.SearchAddonSpec |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static SearchRequest.SearchAddonSpec parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.SearchAddonSpec |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SearchRequest.SearchAddonSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.SearchAddonSpec |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static SearchRequest.SearchAddonSpec parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.SearchAddonSpec |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SearchRequest.SearchAddonSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.SearchAddonSpec |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<SearchRequest.SearchAddonSpec> parser()| Returns | |
|---|---|
| Type | Description |
Parser<SearchAddonSpec> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public SearchRequest.SearchAddonSpec getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SearchRequest.SearchAddonSpec |
|
getDisableGenerativeAnswerAddOn()
public boolean getDisableGenerativeAnswerAddOn()Optional. If true, generative answer add-on is disabled. Generative answer add-on includes natural language to filters and simple answers.
bool disable_generative_answer_add_on = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The disableGenerativeAnswerAddOn. |
getDisableKpiPersonalizationAddOn()
public boolean getDisableKpiPersonalizationAddOn()Optional. If true, disables event re-ranking and personalization to optimize KPIs & personalize results.
bool disable_kpi_personalization_add_on = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The disableKpiPersonalizationAddOn. |
getDisableSemanticAddOn()
public boolean getDisableSemanticAddOn()Optional. If true, semantic add-on is disabled. Semantic add-on includes embeddings and jetstream.
bool disable_semantic_add_on = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The disableSemanticAddOn. |
getParserForType()
public Parser<SearchRequest.SearchAddonSpec> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<SearchAddonSpec> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public SearchRequest.SearchAddonSpec.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
SearchRequest.SearchAddonSpec.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected SearchRequest.SearchAddonSpec.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.SearchAddonSpec.Builder |
|
toBuilder()
public SearchRequest.SearchAddonSpec.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
SearchRequest.SearchAddonSpec.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|