0.95.0 (latest) 0.91.0 0.90.0 0.89.0 0.87.0 0.84.0 0.83.0 0.81.0 0.79.0 0.78.0 0.77.0 0.76.0 0.74.0 0.72.0 0.71.0 0.70.0 0.69.0 0.68.0 0.66.0 0.64.0 0.63.0 0.60.0 0.59.0 0.58.0 0.56.0 0.55.0 0.54.0 0.53.0 0.52.0 0.51.0 0.50.0 0.49.0 0.48.0 0.47.0 0.45.0 0.44.0 0.43.0 0.42.0 0.41.0 0.40.0 0.39.0 0.38.0 0.37.0 0.36.0 0.35.0 0.33.0 0.32.0 0.31.0 0.30.0 0.29.0 0.28.0 0.27.0 0.26.0 0.25.0 0.24.0 0.23.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public final class SearchRequest extends GeneratedMessage implements SearchRequestOrBuilder

Request message for
SearchService.Search
method.

Protobuf type `google.cloud.discoveryengine.v1.SearchRequest`

## Inheritance

[Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> [AbstractMessageLite\<MessageType,BuilderType\>](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.html) \> [AbstractMessage](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.html) \> [GeneratedMessage](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html) \> SearchRequest

## Implements

[SearchRequestOrBuilder](https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequestOrBuilder)

## Inherited Members

[AbstractMessage.equals(Object)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.html#com_google_protobuf_AbstractMessage_equals_java_lang_Object_) [AbstractMessage.findInitializationErrors()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.html#com_google_protobuf_AbstractMessage_findInitializationErrors__) [AbstractMessage.getInitializationErrorString()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.html#com_google_protobuf_AbstractMessage_getInitializationErrorString__) [AbstractMessage.hashCode()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.html#com_google_protobuf_AbstractMessage_hashCode__) [AbstractMessage.hashFields(int,Map\<Descriptors.FieldDescriptor,Object\>)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.html#com_google_protobuf_AbstractMessage_hashFields_int_java_util_Map_com_google_protobuf_Descriptors_FieldDescriptor_java_lang_Object__) [AbstractMessage.newBuilderForType(AbstractMessage.BuilderParent)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.html#com_google_protobuf_AbstractMessage_newBuilderForType_com_google_protobuf_AbstractMessage_BuilderParent_) [AbstractMessage.toString()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.html#com_google_protobuf_AbstractMessage_toString__) [AbstractMessageLite.\<T\>addAll(Iterable\<T\>,List\<? super T\>)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.html#com_google_protobuf_AbstractMessageLite__T_addAll_java_lang_Iterable_T__java_util_List___super_T__) [AbstractMessageLite.checkByteStringIsUtf8(ByteString)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.html#com_google_protobuf_AbstractMessageLite_checkByteStringIsUtf8_com_google_protobuf_ByteString_) [AbstractMessageLite.toByteArray()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.html#com_google_protobuf_AbstractMessageLite_toByteArray__) [AbstractMessageLite.toByteString()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.html#com_google_protobuf_AbstractMessageLite_toByteString__) [AbstractMessageLite.writeDelimitedTo(OutputStream)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.html#com_google_protobuf_AbstractMessageLite_writeDelimitedTo_java_io_OutputStream_) [AbstractMessageLite.writeTo(OutputStream)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.html#com_google_protobuf_AbstractMessageLite_writeTo_java_io_OutputStream_) com.google.protobuf.GeneratedMessage.\<ContainingT,T\>newFileScopedGeneratedExtension(java.lang.Class\<?\>,com.google.protobuf.Message) com.google.protobuf.GeneratedMessage.\<ContainingT,T\>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class\<?\>,com.google.protobuf.Message) com.google.protobuf.GeneratedMessage.\<ListT\>makeMutableCopy(ListT) com.google.protobuf.GeneratedMessage.\<ListT\>makeMutableCopy(ListT,int) [GeneratedMessage.\<M\>parseDelimitedWithIOException(Parser\<M\>,InputStream)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage__M_parseDelimitedWithIOException_com_google_protobuf_Parser_M__java_io_InputStream_) [GeneratedMessage.\<M\>parseDelimitedWithIOException(Parser\<M\>,InputStream,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage__M_parseDelimitedWithIOException_com_google_protobuf_Parser_M__java_io_InputStream_com_google_protobuf_ExtensionRegistryLite_) [GeneratedMessage.\<M\>parseWithIOException(Parser\<M\>,CodedInputStream)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage__M_parseWithIOException_com_google_protobuf_Parser_M__com_google_protobuf_CodedInputStream_) [GeneratedMessage.\<M\>parseWithIOException(Parser\<M\>,CodedInputStream,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage__M_parseWithIOException_com_google_protobuf_Parser_M__com_google_protobuf_CodedInputStream_com_google_protobuf_ExtensionRegistryLite_) [GeneratedMessage.\<M\>parseWithIOException(Parser\<M\>,InputStream)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage__M_parseWithIOException_com_google_protobuf_Parser_M__java_io_InputStream_) [GeneratedMessage.\<M\>parseWithIOException(Parser\<M\>,InputStream,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage__M_parseWithIOException_com_google_protobuf_Parser_M__java_io_InputStream_com_google_protobuf_ExtensionRegistryLite_) com.google.protobuf.GeneratedMessage.\<T\>emptyList(java.lang.Class\<T\>) com.google.protobuf.GeneratedMessage.\<V\>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField\<java.lang.Boolean,V\>,com.google.protobuf.MapEntry\<java.lang.Boolean,V\>,int) com.google.protobuf.GeneratedMessage.\<V\>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField\<java.lang.Integer,V\>,com.google.protobuf.MapEntry\<java.lang.Integer,V\>,int) com.google.protobuf.GeneratedMessage.\<V\>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField\<java.lang.Long,V\>,com.google.protobuf.MapEntry\<java.lang.Long,V\>,int) com.google.protobuf.GeneratedMessage.\<V\>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField\<java.lang.String,V\>,com.google.protobuf.MapEntry\<java.lang.String,V\>,int) com.google.protobuf.GeneratedMessage.canUseUnsafe() [GeneratedMessage.computeStringSize(int,Object)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_computeStringSize_int_java_lang_Object_) [GeneratedMessage.computeStringSizeNoTag(Object)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_computeStringSizeNoTag_java_lang_Object_) com.google.protobuf.GeneratedMessage.emptyBooleanList() com.google.protobuf.GeneratedMessage.emptyDoubleList() com.google.protobuf.GeneratedMessage.emptyFloatList() com.google.protobuf.GeneratedMessage.emptyIntList() com.google.protobuf.GeneratedMessage.emptyLongList() [GeneratedMessage.getAllFields()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_getAllFields__) [GeneratedMessage.getDescriptorForType()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_getDescriptorForType__) [GeneratedMessage.getField(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_getField_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessage.getOneofFieldDescriptor(Descriptors.OneofDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_getOneofFieldDescriptor_com_google_protobuf_Descriptors_OneofDescriptor_) [GeneratedMessage.getParserForType()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_getParserForType__) [GeneratedMessage.getRepeatedField(Descriptors.FieldDescriptor,int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_getRepeatedField_com_google_protobuf_Descriptors_FieldDescriptor_int_) [GeneratedMessage.getRepeatedFieldCount(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_getRepeatedFieldCount_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessage.getSerializedSize()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_getSerializedSize__) [GeneratedMessage.getUnknownFields()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_getUnknownFields__) [GeneratedMessage.hasField(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_hasField_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessage.hasOneof(Descriptors.OneofDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_hasOneof_com_google_protobuf_Descriptors_OneofDescriptor_) [GeneratedMessage.internalGetFieldAccessorTable()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_internalGetFieldAccessorTable__) [GeneratedMessage.internalGetMapField(int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_internalGetMapField_int_) com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int) [GeneratedMessage.isInitialized()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_isInitialized__) com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object) [GeneratedMessage.makeExtensionsImmutable()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_makeExtensionsImmutable__) com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite) com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter) [GeneratedMessage.parseUnknownField(CodedInputStream,UnknownFieldSet.Builder,ExtensionRegistryLite,int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_parseUnknownField_com_google_protobuf_CodedInputStream_com_google_protobuf_UnknownFieldSet_Builder_com_google_protobuf_ExtensionRegistryLite_int_) com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int) [GeneratedMessage.writeReplace()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_writeReplace__) [GeneratedMessage.writeString(CodedOutputStream,int,Object)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_writeString_com_google_protobuf_CodedOutputStream_int_java_lang_Object_) [GeneratedMessage.writeStringNoTag(CodedOutputStream,Object)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_writeStringNoTag_com_google_protobuf_CodedOutputStream_java_lang_Object_) [GeneratedMessage.writeTo(CodedOutputStream)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_writeTo_com_google_protobuf_CodedOutputStream_) [Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Static Fields

### BOOST_SPEC_FIELD_NUMBER

    public static final int BOOST_SPEC_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### BRANCH_FIELD_NUMBER

    public static final int BRANCH_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### CANONICAL_FILTER_FIELD_NUMBER

    public static final int CANONICAL_FILTER_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### CONTENT_SEARCH_SPEC_FIELD_NUMBER

    public static final int CONTENT_SEARCH_SPEC_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### CROWDING_SPECS_FIELD_NUMBER

    public static final int CROWDING_SPECS_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### CUSTOM_RANKING_PARAMS_FIELD_NUMBER

    public static final int CUSTOM_RANKING_PARAMS_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### DATA_STORE_SPECS_FIELD_NUMBER

    public static final int DATA_STORE_SPECS_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### DISPLAY_SPEC_FIELD_NUMBER

    public static final int DISPLAY_SPEC_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### ENTITY_FIELD_NUMBER

    public static final int ENTITY_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### FACET_SPECS_FIELD_NUMBER

    public static final int FACET_SPECS_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### FILTER_FIELD_NUMBER

    public static final int FILTER_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### IMAGE_QUERY_FIELD_NUMBER

    public static final int IMAGE_QUERY_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### LANGUAGE_CODE_FIELD_NUMBER

    public static final int LANGUAGE_CODE_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### NATURAL_LANGUAGE_QUERY_UNDERSTANDING_SPEC_FIELD_NUMBER

    public static final int NATURAL_LANGUAGE_QUERY_UNDERSTANDING_SPEC_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### NUM_RESULTS_PER_DATA_STORE_FIELD_NUMBER

    public static final int NUM_RESULTS_PER_DATA_STORE_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### OFFSET_FIELD_NUMBER

    public static final int OFFSET_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### ONE_BOX_PAGE_SIZE_FIELD_NUMBER

    public static final int ONE_BOX_PAGE_SIZE_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### ORDER_BY_FIELD_NUMBER

    public static final int ORDER_BY_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### PAGE_CATEGORIES_FIELD_NUMBER

    public static final int PAGE_CATEGORIES_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### PAGE_SIZE_FIELD_NUMBER

    public static final int PAGE_SIZE_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### PAGE_TOKEN_FIELD_NUMBER

    public static final int PAGE_TOKEN_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### PARAMS_FIELD_NUMBER

    public static final int PARAMS_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### QUERY_EXPANSION_SPEC_FIELD_NUMBER

    public static final int QUERY_EXPANSION_SPEC_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### QUERY_FIELD_NUMBER

    public static final int QUERY_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### RANKING_EXPRESSION_BACKEND_FIELD_NUMBER

    public static final int RANKING_EXPRESSION_BACKEND_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### RANKING_EXPRESSION_FIELD_NUMBER

    public static final int RANKING_EXPRESSION_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### RELEVANCE_FILTER_SPEC_FIELD_NUMBER

    public static final int RELEVANCE_FILTER_SPEC_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### RELEVANCE_SCORE_SPEC_FIELD_NUMBER

    public static final int RELEVANCE_SCORE_SPEC_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### RELEVANCE_THRESHOLD_FIELD_NUMBER

    public static final int RELEVANCE_THRESHOLD_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### SAFE_SEARCH_FIELD_NUMBER

    public static final int SAFE_SEARCH_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### SEARCH_ADDON_SPEC_FIELD_NUMBER

    public static final int SEARCH_ADDON_SPEC_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### SEARCH_AS_YOU_TYPE_SPEC_FIELD_NUMBER

    public static final int SEARCH_AS_YOU_TYPE_SPEC_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### SERVING_CONFIG_FIELD_NUMBER

    public static final int SERVING_CONFIG_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### SESSION_FIELD_NUMBER

    public static final int SESSION_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### SESSION_SPEC_FIELD_NUMBER

    public static final int SESSION_SPEC_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### SPELL_CORRECTION_SPEC_FIELD_NUMBER

    public static final int SPELL_CORRECTION_SPEC_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### USER_INFO_FIELD_NUMBER

    public static final int USER_INFO_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### USER_LABELS_FIELD_NUMBER

    public static final int USER_LABELS_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### USER_PSEUDO_ID_FIELD_NUMBER

    public static final int USER_PSEUDO_ID_FIELD_NUMBER

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

## Static Methods

### getDefaultInstance()

    public static SearchRequest getDefaultInstance()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest` |   |

### getDescriptor()

    public static final Descriptors.Descriptor getDescriptor()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Descriptors.Descriptor.html` |   |

### newBuilder()

    public static SearchRequest.Builder newBuilder()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.Builder` |   |

### newBuilder(SearchRequest prototype)

    public static SearchRequest.Builder newBuilder(SearchRequest prototype)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `prototype` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.Builder` |   |

### parseDelimitedFrom(InputStream input)

    public static SearchRequest parseDelimitedFrom(InputStream input)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `input` | `https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |

### parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

    public static SearchRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `input` | `https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html` |
| `extensionRegistry` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ExtensionRegistryLite.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |

### parseFrom(byte\[\] data)

    public static SearchRequest parseFrom(byte[] data)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `byte[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.InvalidProtocolBufferException.html` |   |

### parseFrom(byte\[\] data, ExtensionRegistryLite extensionRegistry)

    public static SearchRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `byte[]` |
| `extensionRegistry` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ExtensionRegistryLite.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.InvalidProtocolBufferException.html` |   |

### parseFrom(ByteString data)

    public static SearchRequest parseFrom(ByteString data)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.InvalidProtocolBufferException.html` |   |

### parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

    public static SearchRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` |
| `extensionRegistry` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ExtensionRegistryLite.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.InvalidProtocolBufferException.html` |   |

### parseFrom(CodedInputStream input)

    public static SearchRequest parseFrom(CodedInputStream input)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `input` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.CodedInputStream.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |

### parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

    public static SearchRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `input` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.CodedInputStream.html` |
| `extensionRegistry` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ExtensionRegistryLite.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |

### parseFrom(InputStream input)

    public static SearchRequest parseFrom(InputStream input)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `input` | `https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |

### parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

    public static SearchRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `input` | `https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html` |
| `extensionRegistry` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ExtensionRegistryLite.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |

### parseFrom(ByteBuffer data)

    public static SearchRequest parseFrom(ByteBuffer data)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.InvalidProtocolBufferException.html` |   |

### parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

    public static SearchRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html` |
| `extensionRegistry` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ExtensionRegistryLite.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.InvalidProtocolBufferException.html` |   |

### parser()

    public static Parser<SearchRequest> parser()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Parser.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest>` |   |

## Methods

### containsParams(String key)

    public boolean containsParams(String key)

Additional search parameters.

For public website search only, supported values are:

- `user_country_code`: string. Default empty. If set to non-empty, results
  are restricted or boosted based on the location provided.
  For example, `user_country_code: "au"`

  For available codes see [Country
  Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
- `search_type`: double. Default empty. Enables non-webpage searching
  depending on the value. The only valid non-default value is 1,
  which enables image searching.
  For example, `search_type: 1`

`map<string, .google.protobuf.Value> params = 11;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### containsUserLabels(String key)

    public boolean containsUserLabels(String key)

The user labels applied to a resource must meet the following requirements:

- Each resource can have multiple labels, up to a maximum of 64.
- Each label must be a key-value pair.
- Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters.
- Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed.
- The key portion of a label must be unique. However, you can use the same key with multiple resources.
- Keys must start with a lowercase letter or international character.

  See [Google Cloud
  Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
  for more details.

`map<string, string> user_labels = 22;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### equals(Object obj)

    public boolean equals(Object obj)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `obj` | `https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

**Overrides** [AbstractMessage.equals(Object other)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.html#com_google_protobuf_AbstractMessage_equals_java_lang_Object_)

### getBoostSpec()

    public SearchRequest.BoostSpec getBoostSpec()

Boost specification to boost certain documents.
For more information on boosting, see
[Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)

`.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec` | The boostSpec. |

### getBoostSpecOrBuilder()

    public SearchRequest.BoostSpecOrBuilder getBoostSpecOrBuilder()

Boost specification to boost certain documents.
For more information on boosting, see
[Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)

`.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpecOrBuilder` |   |

### getBranch()

    public String getBranch()

The branch resource name, such as
`projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.

Use `default_branch` as the branch ID or leave this field empty, to search
documents under the default branch.

`string branch = 2 [(.google.api.resource_reference) = { ... }`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The branch. |

### getBranchBytes()

    public ByteString getBranchBytes()

The branch resource name, such as
`projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.

Use `default_branch` as the branch ID or leave this field empty, to search
documents under the default branch.

`string branch = 2 [(.google.api.resource_reference) = { ... }`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for branch. |

### getCanonicalFilter()

    public String getCanonicalFilter()

The default filter that is applied when a user performs a search without
checking any filters on the search page.

The filter applied to every search request when quality improvement such as
query expansion is needed. In the case a query does not have a sufficient
amount of results this filter will be used to determine whether or not to
enable the query expansion flow. The original filter will still be used for
the query expanded search.
This field is strongly recommended to achieve high search quality.

For more information about filter syntax, see
SearchRequest.filter.

`string canonical_filter = 29;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The canonicalFilter. |

### getCanonicalFilterBytes()

    public ByteString getCanonicalFilterBytes()

The default filter that is applied when a user performs a search without
checking any filters on the search page.

The filter applied to every search request when quality improvement such as
query expansion is needed. In the case a query does not have a sufficient
amount of results this filter will be used to determine whether or not to
enable the query expansion flow. The original filter will still be used for
the query expanded search.
This field is strongly recommended to achieve high search quality.

For more information about filter syntax, see
SearchRequest.filter.

`string canonical_filter = 29;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for canonicalFilter. |

### getContentSearchSpec()

    public SearchRequest.ContentSearchSpec getContentSearchSpec()

A specification for configuring the behavior of content search.

`
.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec` | The contentSearchSpec. |

### getContentSearchSpecOrBuilder()

    public SearchRequest.ContentSearchSpecOrBuilder getContentSearchSpecOrBuilder()

A specification for configuring the behavior of content search.

`
.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpecOrBuilder` |   |

### getCrowdingSpecs(int index)

    public SearchRequest.CrowdingSpec getCrowdingSpecs(int index)

Optional. Crowding specifications for improving result diversity.
If multiple CrowdingSpecs are specified, crowding will be evaluated on
each unique combination of the `field` values, and max_count will be the
maximum value of `max_count` across all CrowdingSpecs.
For example, if the first CrowdingSpec has `field` = "color" and
`max_count` = 3, and the second CrowdingSpec has `field` = "size" and
`max_count` = 2, then after 3 documents that share the same color AND size
have been returned, subsequent ones should be
removed or demoted.

`
repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec` |   |

### getCrowdingSpecsCount()

    public int getCrowdingSpecsCount()

Optional. Crowding specifications for improving result diversity.
If multiple CrowdingSpecs are specified, crowding will be evaluated on
each unique combination of the `field` values, and max_count will be the
maximum value of `max_count` across all CrowdingSpecs.
For example, if the first CrowdingSpec has `field` = "color" and
`max_count` = 3, and the second CrowdingSpec has `field` = "size" and
`max_count` = 2, then after 3 documents that share the same color AND size
have been returned, subsequent ones should be
removed or demoted.

`
repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getCrowdingSpecsList()

    public List<SearchRequest.CrowdingSpec> getCrowdingSpecsList()

Optional. Crowding specifications for improving result diversity.
If multiple CrowdingSpecs are specified, crowding will be evaluated on
each unique combination of the `field` values, and max_count will be the
maximum value of `max_count` across all CrowdingSpecs.
For example, if the first CrowdingSpec has `field` = "color" and
`max_count` = 3, and the second CrowdingSpec has `field` = "size" and
`max_count` = 2, then after 3 documents that share the same color AND size
have been returned, subsequent ones should be
removed or demoted.

`
repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec>` |   |

### getCrowdingSpecsOrBuilder(int index)

    public SearchRequest.CrowdingSpecOrBuilder getCrowdingSpecsOrBuilder(int index)

Optional. Crowding specifications for improving result diversity.
If multiple CrowdingSpecs are specified, crowding will be evaluated on
each unique combination of the `field` values, and max_count will be the
maximum value of `max_count` across all CrowdingSpecs.
For example, if the first CrowdingSpec has `field` = "color" and
`max_count` = 3, and the second CrowdingSpec has `field` = "size" and
`max_count` = 2, then after 3 documents that share the same color AND size
have been returned, subsequent ones should be
removed or demoted.

`
repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpecOrBuilder` |   |

### getCrowdingSpecsOrBuilderList()

    public List<? extends SearchRequest.CrowdingSpecOrBuilder> getCrowdingSpecsOrBuilderList()

Optional. Crowding specifications for improving result diversity.
If multiple CrowdingSpecs are specified, crowding will be evaluated on
each unique combination of the `field` values, and max_count will be the
maximum value of `max_count` across all CrowdingSpecs.
For example, if the first CrowdingSpec has `field` = "color" and
`max_count` = 3, and the second CrowdingSpec has `field` = "size" and
`max_count` = 2, then after 3 documents that share the same color AND size
have been returned, subsequent ones should be
removed or demoted.

`
repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpecOrBuilder>` |   |

### getCustomRankingParams()

    public SearchRequest.CustomRankingParams getCustomRankingParams()

Optional. Optional configuration for the Custom Ranking feature.

`
.google.cloud.discoveryengine.v1.SearchRequest.CustomRankingParams custom_ranking_params = 64 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.CustomRankingParams` | The customRankingParams. |

### getCustomRankingParamsOrBuilder()

    public SearchRequest.CustomRankingParamsOrBuilder getCustomRankingParamsOrBuilder()

Optional. Optional configuration for the Custom Ranking feature.

`
.google.cloud.discoveryengine.v1.SearchRequest.CustomRankingParams custom_ranking_params = 64 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.CustomRankingParamsOrBuilder` |   |

### getDataStoreSpecs(int index)

    public SearchRequest.DataStoreSpec getDataStoreSpecs(int index)

Specifications that define the specific
DataStores to be searched,
along with configurations for those data stores. This is only considered
for Engines with multiple data
stores. For engines with a single data store, the specs directly under
SearchRequest should be
used.

`
repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 32;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec` |   |

### getDataStoreSpecsCount()

    public int getDataStoreSpecsCount()

Specifications that define the specific
DataStores to be searched,
along with configurations for those data stores. This is only considered
for Engines with multiple data
stores. For engines with a single data store, the specs directly under
SearchRequest should be
used.

`
repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 32;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getDataStoreSpecsList()

    public List<SearchRequest.DataStoreSpec> getDataStoreSpecsList()

Specifications that define the specific
DataStores to be searched,
along with configurations for those data stores. This is only considered
for Engines with multiple data
stores. For engines with a single data store, the specs directly under
SearchRequest should be
used.

`
repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 32;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec>` |   |

### getDataStoreSpecsOrBuilder(int index)

    public SearchRequest.DataStoreSpecOrBuilder getDataStoreSpecsOrBuilder(int index)

Specifications that define the specific
DataStores to be searched,
along with configurations for those data stores. This is only considered
for Engines with multiple data
stores. For engines with a single data store, the specs directly under
SearchRequest should be
used.

`
repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 32;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpecOrBuilder` |   |

### getDataStoreSpecsOrBuilderList()

    public List<? extends SearchRequest.DataStoreSpecOrBuilder> getDataStoreSpecsOrBuilderList()

Specifications that define the specific
DataStores to be searched,
along with configurations for those data stores. This is only considered
for Engines with multiple data
stores. For engines with a single data store, the specs directly under
SearchRequest should be
used.

`
repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 32;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpecOrBuilder>` |   |

### getDefaultInstanceForType()

    public SearchRequest getDefaultInstanceForType()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest` |   |

### getDisplaySpec()

    public SearchRequest.DisplaySpec getDisplaySpec()

Optional. Config for display feature, like match highlighting on search
results.

`
.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec display_spec = 38 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec` | The displaySpec. |

### getDisplaySpecOrBuilder()

    public SearchRequest.DisplaySpecOrBuilder getDisplaySpecOrBuilder()

Optional. Config for display feature, like match highlighting on search
results.

`
.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec display_spec = 38 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpecOrBuilder` |   |

### getEntity()

    public String getEntity()

Optional. The entity for customers that may run multiple different
entities, domains, sites or regions, for example, "Google US", "Google
Ads", "Waymo", "google.com", "youtube.com", etc. If this is set, it should
be exactly matched with
UserEvent.entity to get
search results boosted by entity.

`string entity = 66 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The entity. |

### getEntityBytes()

    public ByteString getEntityBytes()

Optional. The entity for customers that may run multiple different
entities, domains, sites or regions, for example, "Google US", "Google
Ads", "Waymo", "google.com", "youtube.com", etc. If this is set, it should
be exactly matched with
UserEvent.entity to get
search results boosted by entity.

`string entity = 66 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for entity. |

### getFacetSpecs(int index)

    public SearchRequest.FacetSpec getFacetSpecs(int index)

Facet specifications for faceted search. If empty, no facets are returned.

A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT`
error is returned.

`repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec` |   |

### getFacetSpecsCount()

    public int getFacetSpecsCount()

Facet specifications for faceted search. If empty, no facets are returned.

A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT`
error is returned.

`repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getFacetSpecsList()

    public List<SearchRequest.FacetSpec> getFacetSpecsList()

Facet specifications for faceted search. If empty, no facets are returned.

A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT`
error is returned.

`repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec>` |   |

### getFacetSpecsOrBuilder(int index)

    public SearchRequest.FacetSpecOrBuilder getFacetSpecsOrBuilder(int index)

Facet specifications for faceted search. If empty, no facets are returned.

A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT`
error is returned.

`repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpecOrBuilder` |   |

### getFacetSpecsOrBuilderList()

    public List<? extends SearchRequest.FacetSpecOrBuilder> getFacetSpecsOrBuilderList()

Facet specifications for faceted search. If empty, no facets are returned.

A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT`
error is returned.

`repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpecOrBuilder>` |   |

### getFilter()

    public String getFilter()

The filter syntax consists of an expression language for constructing a
predicate from one or more fields of the documents being filtered. Filter
expression is case-sensitive.

If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.

Filtering in Vertex AI Search is done by mapping the LHS filter key to a
key property defined in the Vertex AI Search backend -- this mapping is
defined by the customer in their schema. For example a media customer might
have a field 'name' in their schema. In this case the filter would look
like this: filter --\> name:'ANY("king kong")'

For more information about filtering including syntax and filter
operators, see
[Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)

`string filter = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The filter. |

### getFilterBytes()

    public ByteString getFilterBytes()

The filter syntax consists of an expression language for constructing a
predicate from one or more fields of the documents being filtered. Filter
expression is case-sensitive.

If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.

Filtering in Vertex AI Search is done by mapping the LHS filter key to a
key property defined in the Vertex AI Search backend -- this mapping is
defined by the customer in their schema. For example a media customer might
have a field 'name' in their schema. In this case the filter would look
like this: filter --\> name:'ANY("king kong")'

For more information about filtering including syntax and filter
operators, see
[Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)

`string filter = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for filter. |

### getImageQuery()

    public SearchRequest.ImageQuery getImageQuery()

Raw image query.

`.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery image_query = 19;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery` | The imageQuery. |

### getImageQueryOrBuilder()

    public SearchRequest.ImageQueryOrBuilder getImageQueryOrBuilder()

Raw image query.

`.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery image_query = 19;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.ImageQueryOrBuilder` |   |

### getLanguageCode()

    public String getLanguageCode()

The BCP-47 language code, such as "en-US" or "sr-Latn". For more
information, see [Standard
fields](https://cloud.google.com/apis/design/standard_fields). This field
helps to better interpret the query. If a value isn't specified, the query
language code is automatically detected, which may not be accurate.

`string language_code = 35;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The languageCode. |

### getLanguageCodeBytes()

    public ByteString getLanguageCodeBytes()

The BCP-47 language code, such as "en-US" or "sr-Latn". For more
information, see [Standard
fields](https://cloud.google.com/apis/design/standard_fields). This field
helps to better interpret the query. If a value isn't specified, the query
language code is automatically detected, which may not be accurate.

`string language_code = 35;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for languageCode. |

### getNaturalLanguageQueryUnderstandingSpec()

    public SearchRequest.NaturalLanguageQueryUnderstandingSpec getNaturalLanguageQueryUnderstandingSpec()

Optional. Config for natural language query understanding capabilities,
such as extracting structured field filters from the query. Refer to [this
documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
for more information.
If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
natural language query understanding will be done.

`
.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec` | The naturalLanguageQueryUnderstandingSpec. |

### getNaturalLanguageQueryUnderstandingSpecOrBuilder()

    public SearchRequest.NaturalLanguageQueryUnderstandingSpecOrBuilder getNaturalLanguageQueryUnderstandingSpecOrBuilder()

Optional. Config for natural language query understanding capabilities,
such as extracting structured field filters from the query. Refer to [this
documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
for more information.
If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
natural language query understanding will be done.

`
.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpecOrBuilder` |   |

### getNumResultsPerDataStore()

    public int getNumResultsPerDataStore()

Optional. The maximum number of results to retrieve from each data store.
If not specified, it will use the
SearchRequest.DataStoreSpec.num_results
if provided, otherwise there is no limit.

`int32 num_results_per_data_store = 65 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The numResultsPerDataStore. |

### getOffset()

    public int getOffset()

A 0-indexed integer that specifies the current offset (that is, starting
result location, amongst the
Documents deemed by the API as
relevant) in search results. This field is only considered if
page_token is
unset.

If this field is negative, an `INVALID_ARGUMENT` is returned.

A large offset may be capped to a reasonable threshold.

`int32 offset = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The offset. |

### getOneBoxPageSize()

    public int getOneBoxPageSize()

The maximum number of results to return for OneBox.
This applies to each OneBox type individually.
Default number is 10.

`int32 one_box_page_size = 47;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The oneBoxPageSize. |

### getOrderBy()

    public String getOrderBy()

The order in which documents are returned. Documents can be ordered by
a field in an Document object.
Leave it unset if ordered by relevance. `order_by` expression is
case-sensitive.

For more information on ordering the website search results, see
[Order web search
results](https://cloud.google.com/generative-ai-app-builder/docs/order-web-search-results).
For more information on ordering the healthcare search results, see
[Order healthcare search
results](https://cloud.google.com/generative-ai-app-builder/docs/order-hc-results).
If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.

`string order_by = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The orderBy. |

### getOrderByBytes()

    public ByteString getOrderByBytes()

The order in which documents are returned. Documents can be ordered by
a field in an Document object.
Leave it unset if ordered by relevance. `order_by` expression is
case-sensitive.

For more information on ordering the website search results, see
[Order web search
results](https://cloud.google.com/generative-ai-app-builder/docs/order-web-search-results).
For more information on ordering the healthcare search results, see
[Order healthcare search
results](https://cloud.google.com/generative-ai-app-builder/docs/order-hc-results).
If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.

`string order_by = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for orderBy. |

### getPageCategories(int index)

    public String getPageCategories(int index)

Optional. The categories associated with a category page. Must be set for
category navigation queries to achieve good search quality. The format
should be the same as
PageInfo.page_category.
This field is the equivalent of the query for browse (navigation) queries.
It's used by the browse model when the query is empty.

If the field is empty, it will not be used by the browse model.
If the field contains more than one element, only the first element will
be used.

To represent full path of a category, use '\>' character to separate
different hierarchies. If '\>' is part of the category name, replace it with
other character(s).
For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX \>
4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
> Founders Edition`

`repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The pageCategories at the given index. |

### getPageCategoriesBytes(int index)

    public ByteString getPageCategoriesBytes(int index)

Optional. The categories associated with a category page. Must be set for
category navigation queries to achieve good search quality. The format
should be the same as
PageInfo.page_category.
This field is the equivalent of the query for browse (navigation) queries.
It's used by the browse model when the query is empty.

If the field is empty, it will not be used by the browse model.
If the field contains more than one element, only the first element will
be used.

To represent full path of a category, use '\>' character to separate
different hierarchies. If '\>' is part of the category name, replace it with
other character(s).
For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX \>
4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
> Founders Edition`

`repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the pageCategories at the given index. |

### getPageCategoriesCount()

    public int getPageCategoriesCount()

Optional. The categories associated with a category page. Must be set for
category navigation queries to achieve good search quality. The format
should be the same as
PageInfo.page_category.
This field is the equivalent of the query for browse (navigation) queries.
It's used by the browse model when the query is empty.

If the field is empty, it will not be used by the browse model.
If the field contains more than one element, only the first element will
be used.

To represent full path of a category, use '\>' character to separate
different hierarchies. If '\>' is part of the category name, replace it with
other character(s).
For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX \>
4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
> Founders Edition`

`repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of pageCategories. |

### getPageCategoriesList()

    public ProtocolStringList getPageCategoriesList()

Optional. The categories associated with a category page. Must be set for
category navigation queries to achieve good search quality. The format
should be the same as
PageInfo.page_category.
This field is the equivalent of the query for browse (navigation) queries.
It's used by the browse model when the query is empty.

If the field is empty, it will not be used by the browse model.
If the field contains more than one element, only the first element will
be used.

To represent full path of a category, use '\>' character to separate
different hierarchies. If '\>' is part of the category name, replace it with
other character(s).
For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX \>
4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
> Founders Edition`

`repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ProtocolStringList.html` | A list containing the pageCategories. |

### getPageSize()

    public int getPageSize()

Maximum number of Documents to
return. The maximum allowed value depends on the data type. Values above
the maximum value are coerced to the maximum value.

- Websites with basic indexing: Default `10`, Maximum `25`.
- Websites with advanced indexing: Default `25`, Maximum `50`.
- Other: Default `50`, Maximum `100`.

  If this field is negative, an `INVALID_ARGUMENT` is returned.

`int32 page_size = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The pageSize. |

### getPageToken()

    public String getPageToken()

A page token received from a previous
SearchService.Search
call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to
SearchService.Search
must match the call that provided the page token. Otherwise, an
`INVALID_ARGUMENT` error is returned.

`string page_token = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The pageToken. |

### getPageTokenBytes()

    public ByteString getPageTokenBytes()

A page token received from a previous
SearchService.Search
call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to
SearchService.Search
must match the call that provided the page token. Otherwise, an
`INVALID_ARGUMENT` error is returned.

`string page_token = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for pageToken. |

### getParams() (deprecated)

    public Map<String,Value> getParams()

Use [#getParamsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest#com_google_cloud_discoveryengine_v1_SearchRequest_getParamsMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Value.html>` |   |

### getParamsCount()

    public int getParamsCount()

Additional search parameters.

For public website search only, supported values are:

- `user_country_code`: string. Default empty. If set to non-empty, results
  are restricted or boosted based on the location provided.
  For example, `user_country_code: "au"`

  For available codes see [Country
  Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
- `search_type`: double. Default empty. Enables non-webpage searching
  depending on the value. The only valid non-default value is 1,
  which enables image searching.
  For example, `search_type: 1`

`map<string, .google.protobuf.Value> params = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getParamsMap()

    public Map<String,Value> getParamsMap()

Additional search parameters.

For public website search only, supported values are:

- `user_country_code`: string. Default empty. If set to non-empty, results
  are restricted or boosted based on the location provided.
  For example, `user_country_code: "au"`

  For available codes see [Country
  Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
- `search_type`: double. Default empty. Enables non-webpage searching
  depending on the value. The only valid non-default value is 1,
  which enables image searching.
  For example, `search_type: 1`

`map<string, .google.protobuf.Value> params = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Value.html>` |   |

### getParamsOrDefault(String key, Value defaultValue)

    public Value getParamsOrDefault(String key, Value defaultValue)

Additional search parameters.

For public website search only, supported values are:

- `user_country_code`: string. Default empty. If set to non-empty, results
  are restricted or boosted based on the location provided.
  For example, `user_country_code: "au"`

  For available codes see [Country
  Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
- `search_type`: double. Default empty. Enables non-webpage searching
  depending on the value. The only valid non-default value is 1,
  which enables image searching.
  For example, `search_type: 1`

`map<string, .google.protobuf.Value> params = 11;`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Value.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Value.html` |   |

### getParamsOrThrow(String key)

    public Value getParamsOrThrow(String key)

Additional search parameters.

For public website search only, supported values are:

- `user_country_code`: string. Default empty. If set to non-empty, results
  are restricted or boosted based on the location provided.
  For example, `user_country_code: "au"`

  For available codes see [Country
  Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
- `search_type`: double. Default empty. Enables non-webpage searching
  depending on the value. The only valid non-default value is 1,
  which enables image searching.
  For example, `search_type: 1`

`map<string, .google.protobuf.Value> params = 11;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Value.html` |   |

### getParserForType()

    public Parser<SearchRequest> getParserForType()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Parser.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest>` |   |

**Overrides** [GeneratedMessage.getParserForType()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_getParserForType__)

### getQuery()

    public String getQuery()

Raw search query.

`string query = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The query. |

### getQueryBytes()

    public ByteString getQueryBytes()

Raw search query.

`string query = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for query. |

### getQueryExpansionSpec()

    public SearchRequest.QueryExpansionSpec getQueryExpansionSpec()

The query expansion specification that specifies the conditions under which
query expansion occurs.

`
.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec` | The queryExpansionSpec. |

### getQueryExpansionSpecOrBuilder()

    public SearchRequest.QueryExpansionSpecOrBuilder getQueryExpansionSpecOrBuilder()

The query expansion specification that specifies the conditions under which
query expansion occurs.

`
.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpecOrBuilder` |   |

### getRankingExpression()

    public String getRankingExpression()

Optional. The ranking expression controls the customized ranking on
retrieval documents. This overrides
ServingConfig.ranking_expression.
The syntax and supported features depend on the
`ranking_expression_backend` value. If `ranking_expression_backend` is not
provided, it defaults to `RANK_BY_EMBEDDING`.

If
ranking_expression_backend
is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
function or multiple functions that are joined by "+".

- ranking_expression = function, { " + ", function };

  Supported functions:
- double \* relevance_score

- double \* dotProduct(embedding_field_path)

  Function variables:
- `relevance_score`: pre-defined keywords, used for measure relevance
  between query and document.

- `embedding_field_path`: the document embedding field used with query embedding vector.
- `dotProduct`: embedding function between `embedding_field_path` and
  query embedding vector.

  Example ranking expression:

  If document has an embedding field doc_embedding, the ranking expression
  could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.

  If
  ranking_expression_backend
  is set to `RANK_BY_FORMULA`, the following expression types (and
  combinations of those chained using + or
- operators) are supported:

- `double`

- `signal`
- `log(signal)`
- `exp(signal)`
- `rr(signal, double > 0)` -- reciprocal rank transformation with second argument being a denominator constant.
- `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
- `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
  signal2 \| double, else returns signal1.

  Here are a few examples of ranking formulas that use the supported
  ranking expression types:
- `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
  -- mostly rank by the logarithm of `keyword_similarity_score` with slight
  `semantic_smilarity_score` adjustment.

- `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
  is_nan(keyword_similarity_score)` -- rank by the exponent of `semantic_similarity_score` filling the value with 0 if it's NaN, also add constant 0.3 adjustment to the final score if `semantic_similarity_score` is NaN.
- `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
  rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
  of `keyword_similarity_score` with slight adjustment of reciprocal rank
  of `semantic_smilarity_score`.

  The following signals are supported:
- `semantic_similarity_score`: semantic similarity adjustment that is
  calculated using the embeddings generated by a proprietary Google model.
  This score determines how semantically similar a search query is to a
  document.

- `keyword_similarity_score`: keyword match adjustment uses the Best Match 25 (BM25) ranking function. This score is calculated using a probabilistic model to estimate the probability that a document is relevant to a given query.
- `relevance_score`: semantic relevance adjustment that uses a proprietary Google model to determine the meaning and intent behind a user's query in context with the content in the documents.
- `pctr_rank`: predicted conversion rate adjustment as a rank use predicted Click-through rate (pCTR) to gauge the relevance and attractiveness of a search result from a user's perspective. A higher pCTR suggests that the result is more likely to satisfy the user's query and intent, making it a valuable signal for ranking.
- `freshness_rank`: freshness adjustment as a rank
- `document_age`: The time in hours elapsed since the document was last updated, a floating-point number (e.g., 0.25 means 15 minutes).
- `topicality_rank`: topicality adjustment as a rank. Uses proprietary Google model to determine the keyword-based overlap between the query and the document.
- `base_rank`: the default rank of the result
- `media_actor_match`: whether the media actor matches the query
- `media_director_match`: whether the media director matches the query
- `media_genre_match`: whether the media genre matches the query
- `media_language_match`: whether the media language matches the query
- `media_title_match`: whether the media title matches the query
- `media_prefix_similarity_rank`: prefix similarity rank for media results
- `media_semantic_similarity_rank`: semantic similarity rank for media results

`string ranking_expression = 26 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The rankingExpression. |

### getRankingExpressionBackend()

    public SearchRequest.RankingExpressionBackend getRankingExpressionBackend()

Optional. The backend to use for the ranking expression evaluation.

`
.google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend` | The rankingExpressionBackend. |

### getRankingExpressionBackendValue()

    public int getRankingExpressionBackendValue()

Optional. The backend to use for the ranking expression evaluation.

`
.google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for rankingExpressionBackend. |

### getRankingExpressionBytes()

    public ByteString getRankingExpressionBytes()

Optional. The ranking expression controls the customized ranking on
retrieval documents. This overrides
ServingConfig.ranking_expression.
The syntax and supported features depend on the
`ranking_expression_backend` value. If `ranking_expression_backend` is not
provided, it defaults to `RANK_BY_EMBEDDING`.

If
ranking_expression_backend
is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
function or multiple functions that are joined by "+".

- ranking_expression = function, { " + ", function };

  Supported functions:
- double \* relevance_score

- double \* dotProduct(embedding_field_path)

  Function variables:
- `relevance_score`: pre-defined keywords, used for measure relevance
  between query and document.

- `embedding_field_path`: the document embedding field used with query embedding vector.
- `dotProduct`: embedding function between `embedding_field_path` and
  query embedding vector.

  Example ranking expression:

  If document has an embedding field doc_embedding, the ranking expression
  could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.

  If
  ranking_expression_backend
  is set to `RANK_BY_FORMULA`, the following expression types (and
  combinations of those chained using + or
- operators) are supported:

- `double`

- `signal`
- `log(signal)`
- `exp(signal)`
- `rr(signal, double > 0)` -- reciprocal rank transformation with second argument being a denominator constant.
- `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
- `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
  signal2 \| double, else returns signal1.

  Here are a few examples of ranking formulas that use the supported
  ranking expression types:
- `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
  -- mostly rank by the logarithm of `keyword_similarity_score` with slight
  `semantic_smilarity_score` adjustment.

- `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
  is_nan(keyword_similarity_score)` -- rank by the exponent of `semantic_similarity_score` filling the value with 0 if it's NaN, also add constant 0.3 adjustment to the final score if `semantic_similarity_score` is NaN.
- `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
  rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
  of `keyword_similarity_score` with slight adjustment of reciprocal rank
  of `semantic_smilarity_score`.

  The following signals are supported:
- `semantic_similarity_score`: semantic similarity adjustment that is
  calculated using the embeddings generated by a proprietary Google model.
  This score determines how semantically similar a search query is to a
  document.

- `keyword_similarity_score`: keyword match adjustment uses the Best Match 25 (BM25) ranking function. This score is calculated using a probabilistic model to estimate the probability that a document is relevant to a given query.
- `relevance_score`: semantic relevance adjustment that uses a proprietary Google model to determine the meaning and intent behind a user's query in context with the content in the documents.
- `pctr_rank`: predicted conversion rate adjustment as a rank use predicted Click-through rate (pCTR) to gauge the relevance and attractiveness of a search result from a user's perspective. A higher pCTR suggests that the result is more likely to satisfy the user's query and intent, making it a valuable signal for ranking.
- `freshness_rank`: freshness adjustment as a rank
- `document_age`: The time in hours elapsed since the document was last updated, a floating-point number (e.g., 0.25 means 15 minutes).
- `topicality_rank`: topicality adjustment as a rank. Uses proprietary Google model to determine the keyword-based overlap between the query and the document.
- `base_rank`: the default rank of the result
- `media_actor_match`: whether the media actor matches the query
- `media_director_match`: whether the media director matches the query
- `media_genre_match`: whether the media genre matches the query
- `media_language_match`: whether the media language matches the query
- `media_title_match`: whether the media title matches the query
- `media_prefix_similarity_rank`: prefix similarity rank for media results
- `media_semantic_similarity_rank`: semantic similarity rank for media results

`string ranking_expression = 26 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for rankingExpression. |

### getRelevanceFilterSpec()

    public SearchRequest.RelevanceFilterSpec getRelevanceFilterSpec()

Optional. The granular relevance filtering specification.

If not specified, the global `relevance_threshold` will be used for all
sub-searches. If specified, this overrides the global
`relevance_threshold` to use thresholds on a per sub-search basis.

This feature is currently supported only for custom and site search.

`
.google.cloud.discoveryengine.v1.SearchRequest.RelevanceFilterSpec relevance_filter_spec = 86 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceFilterSpec` | The relevanceFilterSpec. |

### getRelevanceFilterSpecOrBuilder()

    public SearchRequest.RelevanceFilterSpecOrBuilder getRelevanceFilterSpecOrBuilder()

Optional. The granular relevance filtering specification.

If not specified, the global `relevance_threshold` will be used for all
sub-searches. If specified, this overrides the global
`relevance_threshold` to use thresholds on a per sub-search basis.

This feature is currently supported only for custom and site search.

`
.google.cloud.discoveryengine.v1.SearchRequest.RelevanceFilterSpec relevance_filter_spec = 86 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceFilterSpecOrBuilder` |   |

### getRelevanceScoreSpec()

    public SearchRequest.RelevanceScoreSpec getRelevanceScoreSpec()

Optional. The specification for returning the relevance score.

`
.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec` | The relevanceScoreSpec. |

### getRelevanceScoreSpecOrBuilder()

    public SearchRequest.RelevanceScoreSpecOrBuilder getRelevanceScoreSpecOrBuilder()

Optional. The specification for returning the relevance score.

`
.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpecOrBuilder` |   |

### getRelevanceThreshold()

    public SearchRequest.RelevanceThreshold getRelevanceThreshold()

The global relevance threshold of the search results.

Defaults to Google defined threshold, leveraging a balance of
precision and recall to deliver both highly accurate results and
comprehensive coverage of relevant information.

If more granular relevance filtering is required, use the
`relevance_filter_spec` instead.

This feature is not supported for healthcare search.

`
.google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold relevance_threshold = 44;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold` | The relevanceThreshold. |

### getRelevanceThresholdValue()

    public int getRelevanceThresholdValue()

The global relevance threshold of the search results.

Defaults to Google defined threshold, leveraging a balance of
precision and recall to deliver both highly accurate results and
comprehensive coverage of relevant information.

If more granular relevance filtering is required, use the
`relevance_filter_spec` instead.

This feature is not supported for healthcare search.

`
.google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold relevance_threshold = 44;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for relevanceThreshold. |

### getSafeSearch()

    public boolean getSafeSearch()

Whether to turn on safe search. This is only supported for
website search.

`bool safe_search = 20;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The safeSearch. |

### getSearchAddonSpec()

    public SearchRequest.SearchAddonSpec getSearchAddonSpec()

Optional. SearchAddonSpec is used to disable add-ons for search as per new
repricing model.
This field is only supported for search requests.

`
.google.cloud.discoveryengine.v1.SearchRequest.SearchAddonSpec search_addon_spec = 62 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.SearchAddonSpec` | The searchAddonSpec. |

### getSearchAddonSpecOrBuilder()

    public SearchRequest.SearchAddonSpecOrBuilder getSearchAddonSpecOrBuilder()

Optional. SearchAddonSpec is used to disable add-ons for search as per new
repricing model.
This field is only supported for search requests.

`
.google.cloud.discoveryengine.v1.SearchRequest.SearchAddonSpec search_addon_spec = 62 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.SearchAddonSpecOrBuilder` |   |

### getSearchAsYouTypeSpec()

    public SearchRequest.SearchAsYouTypeSpec getSearchAsYouTypeSpec()

Search as you type configuration. Only supported for the
IndustryVertical.MEDIA
vertical.

`
.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec` | The searchAsYouTypeSpec. |

### getSearchAsYouTypeSpecOrBuilder()

    public SearchRequest.SearchAsYouTypeSpecOrBuilder getSearchAsYouTypeSpecOrBuilder()

Search as you type configuration. Only supported for the
IndustryVertical.MEDIA
vertical.

`
.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpecOrBuilder` |   |

### getSerializedSize()

    public int getSerializedSize()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

**Overrides** [GeneratedMessage.getSerializedSize()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_getSerializedSize__)

### getServingConfig()

    public String getServingConfig()

Required. The resource name of the Search serving config, such as
`projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
or
`projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
This field is used to identify the serving configuration name, set
of models used to make the search.

`
string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The servingConfig. |

### getServingConfigBytes()

    public ByteString getServingConfigBytes()

Required. The resource name of the Search serving config, such as
`projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
or
`projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
This field is used to identify the serving configuration name, set
of models used to make the search.

`
string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for servingConfig. |

### getSession()

    public String getSession()

The session resource name. Optional.

Session allows users to do multi-turn /search API calls or coordination
between /search API calls and /answer API calls.

Example #1 (multi-turn /search API calls):
Call /search API with the session ID generated in the first call.
Here, the previous search query gets considered in query
standing. I.e., if the first query is "How did Alphabet do in 2022?"
and the current query is "How about 2023?", the current query will
be interpreted as "How did Alphabet do in 2023?".

Example #2 (coordination between /search API calls and /answer API calls):
Call /answer API with the session ID generated in the first call.
Here, the answer generation happens in the context of the search
results from the first search call.

`string session = 41 [(.google.api.resource_reference) = { ... }`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The session. |

### getSessionBytes()

    public ByteString getSessionBytes()

The session resource name. Optional.

Session allows users to do multi-turn /search API calls or coordination
between /search API calls and /answer API calls.

Example #1 (multi-turn /search API calls):
Call /search API with the session ID generated in the first call.
Here, the previous search query gets considered in query
standing. I.e., if the first query is "How did Alphabet do in 2022?"
and the current query is "How about 2023?", the current query will
be interpreted as "How did Alphabet do in 2023?".

Example #2 (coordination between /search API calls and /answer API calls):
Call /answer API with the session ID generated in the first call.
Here, the answer generation happens in the context of the search
results from the first search call.

`string session = 41 [(.google.api.resource_reference) = { ... }`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for session. |

### getSessionSpec()

    public SearchRequest.SessionSpec getSessionSpec()

Session specification.

Can be used only when `session` is set.

`.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec session_spec = 42;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec` | The sessionSpec. |

### getSessionSpecOrBuilder()

    public SearchRequest.SessionSpecOrBuilder getSessionSpecOrBuilder()

Session specification.

Can be used only when `session` is set.

`.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec session_spec = 42;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpecOrBuilder` |   |

### getSpellCorrectionSpec()

    public SearchRequest.SpellCorrectionSpec getSpellCorrectionSpec()

The spell correction specification that specifies the mode under
which spell correction takes effect.

`
.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec` | The spellCorrectionSpec. |

### getSpellCorrectionSpecOrBuilder()

    public SearchRequest.SpellCorrectionSpecOrBuilder getSpellCorrectionSpecOrBuilder()

The spell correction specification that specifies the mode under
which spell correction takes effect.

`
.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpecOrBuilder` |   |

### getUserInfo()

    public UserInfo getUserInfo()

Information about the end user.
Highly recommended for analytics and personalization.
UserInfo.user_agent
is used to deduce `device_type` for analytics.

`.google.cloud.discoveryengine.v1.UserInfo user_info = 21;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.UserInfo` | The userInfo. |

### getUserInfoOrBuilder()

    public UserInfoOrBuilder getUserInfoOrBuilder()

Information about the end user.
Highly recommended for analytics and personalization.
UserInfo.user_agent
is used to deduce `device_type` for analytics.

`.google.cloud.discoveryengine.v1.UserInfo user_info = 21;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.UserInfoOrBuilder` |   |

### getUserLabels() (deprecated)

    public Map<String,String> getUserLabels()

Use [#getUserLabelsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest#com_google_cloud_discoveryengine_v1_SearchRequest_getUserLabelsMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getUserLabelsCount()

    public int getUserLabelsCount()

The user labels applied to a resource must meet the following requirements:

- Each resource can have multiple labels, up to a maximum of 64.
- Each label must be a key-value pair.
- Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters.
- Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed.
- The key portion of a label must be unique. However, you can use the same key with multiple resources.
- Keys must start with a lowercase letter or international character.

  See [Google Cloud
  Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
  for more details.

`map<string, string> user_labels = 22;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getUserLabelsMap()

    public Map<String,String> getUserLabelsMap()

The user labels applied to a resource must meet the following requirements:

- Each resource can have multiple labels, up to a maximum of 64.
- Each label must be a key-value pair.
- Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters.
- Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed.
- The key portion of a label must be unique. However, you can use the same key with multiple resources.
- Keys must start with a lowercase letter or international character.

  See [Google Cloud
  Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
  for more details.

`map<string, string> user_labels = 22;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getUserLabelsOrDefault(String key, String defaultValue)

    public String getUserLabelsOrDefault(String key, String defaultValue)

The user labels applied to a resource must meet the following requirements:

- Each resource can have multiple labels, up to a maximum of 64.
- Each label must be a key-value pair.
- Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters.
- Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed.
- The key portion of a label must be unique. However, you can use the same key with multiple resources.
- Keys must start with a lowercase letter or international character.

  See [Google Cloud
  Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
  for more details.

`map<string, string> user_labels = 22;`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getUserLabelsOrThrow(String key)

    public String getUserLabelsOrThrow(String key)

The user labels applied to a resource must meet the following requirements:

- Each resource can have multiple labels, up to a maximum of 64.
- Each label must be a key-value pair.
- Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters.
- Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed.
- The key portion of a label must be unique. However, you can use the same key with multiple resources.
- Keys must start with a lowercase letter or international character.

  See [Google Cloud
  Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
  for more details.

`map<string, string> user_labels = 22;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getUserPseudoId()

    public String getUserPseudoId()

Optional. A unique identifier for tracking visitors. For example, this
could be implemented with an HTTP cookie, which should be able to uniquely
identify a visitor on a single device. This unique identifier should not
change if the visitor logs in or out of the website.

This field should NOT have a fixed value such as `unknown_visitor`.

This should be the same identifier as
UserEvent.user_pseudo_id
and
CompleteQueryRequest.user_pseudo_id

The field must be a UTF-8 encoded string with a length limit of 128
characters. Otherwise, an `INVALID_ARGUMENT` error is returned.

`string user_pseudo_id = 15 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The userPseudoId. |

### getUserPseudoIdBytes()

    public ByteString getUserPseudoIdBytes()

Optional. A unique identifier for tracking visitors. For example, this
could be implemented with an HTTP cookie, which should be able to uniquely
identify a visitor on a single device. This unique identifier should not
change if the visitor logs in or out of the website.

This field should NOT have a fixed value such as `unknown_visitor`.

This should be the same identifier as
UserEvent.user_pseudo_id
and
CompleteQueryRequest.user_pseudo_id

The field must be a UTF-8 encoded string with a length limit of 128
characters. Otherwise, an `INVALID_ARGUMENT` error is returned.

`string user_pseudo_id = 15 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for userPseudoId. |

### hasBoostSpec()

    public boolean hasBoostSpec()

Boost specification to boost certain documents.
For more information on boosting, see
[Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)

`.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the boostSpec field is set. |

### hasContentSearchSpec()

    public boolean hasContentSearchSpec()

A specification for configuring the behavior of content search.

`
.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the contentSearchSpec field is set. |

### hasCustomRankingParams()

    public boolean hasCustomRankingParams()

Optional. Optional configuration for the Custom Ranking feature.

`
.google.cloud.discoveryengine.v1.SearchRequest.CustomRankingParams custom_ranking_params = 64 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the customRankingParams field is set. |

### hasDisplaySpec()

    public boolean hasDisplaySpec()

Optional. Config for display feature, like match highlighting on search
results.

`
.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec display_spec = 38 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the displaySpec field is set. |

### hasImageQuery()

    public boolean hasImageQuery()

Raw image query.

`.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery image_query = 19;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the imageQuery field is set. |

### hasNaturalLanguageQueryUnderstandingSpec()

    public boolean hasNaturalLanguageQueryUnderstandingSpec()

Optional. Config for natural language query understanding capabilities,
such as extracting structured field filters from the query. Refer to [this
documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
for more information.
If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
natural language query understanding will be done.

`
.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the naturalLanguageQueryUnderstandingSpec field is set. |

### hasQueryExpansionSpec()

    public boolean hasQueryExpansionSpec()

The query expansion specification that specifies the conditions under which
query expansion occurs.

`
.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the queryExpansionSpec field is set. |

### hasRelevanceFilterSpec()

    public boolean hasRelevanceFilterSpec()

Optional. The granular relevance filtering specification.

If not specified, the global `relevance_threshold` will be used for all
sub-searches. If specified, this overrides the global
`relevance_threshold` to use thresholds on a per sub-search basis.

This feature is currently supported only for custom and site search.

`
.google.cloud.discoveryengine.v1.SearchRequest.RelevanceFilterSpec relevance_filter_spec = 86 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the relevanceFilterSpec field is set. |

### hasRelevanceScoreSpec()

    public boolean hasRelevanceScoreSpec()

Optional. The specification for returning the relevance score.

`
.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the relevanceScoreSpec field is set. |

### hasSearchAddonSpec()

    public boolean hasSearchAddonSpec()

Optional. SearchAddonSpec is used to disable add-ons for search as per new
repricing model.
This field is only supported for search requests.

`
.google.cloud.discoveryengine.v1.SearchRequest.SearchAddonSpec search_addon_spec = 62 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the searchAddonSpec field is set. |

### hasSearchAsYouTypeSpec()

    public boolean hasSearchAsYouTypeSpec()

Search as you type configuration. Only supported for the
IndustryVertical.MEDIA
vertical.

`
.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the searchAsYouTypeSpec field is set. |

### hasSessionSpec()

    public boolean hasSessionSpec()

Session specification.

Can be used only when `session` is set.

`.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec session_spec = 42;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the sessionSpec field is set. |

### hasSpellCorrectionSpec()

    public boolean hasSpellCorrectionSpec()

The spell correction specification that specifies the mode under
which spell correction takes effect.

`
.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the spellCorrectionSpec field is set. |

### hasUserInfo()

    public boolean hasUserInfo()

Information about the end user.
Highly recommended for analytics and personalization.
UserInfo.user_agent
is used to deduce `device_type` for analytics.

`.google.cloud.discoveryengine.v1.UserInfo user_info = 21;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the userInfo field is set. |

### hashCode()

    public int hashCode()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

**Overrides** [AbstractMessage.hashCode()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.html#com_google_protobuf_AbstractMessage_hashCode__)

### internalGetFieldAccessorTable()

    protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.FieldAccessorTable.html` |   |

**Overrides** [GeneratedMessage.internalGetFieldAccessorTable()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_internalGetFieldAccessorTable__)

### internalGetMapFieldReflection(int number)

    protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `number` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.protobuf.MapFieldReflectionAccessor` |   |

**Overrides** com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)

### isInitialized()

    public final boolean isInitialized()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

**Overrides** [GeneratedMessage.isInitialized()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_isInitialized__)

### newBuilderForType()

    public SearchRequest.Builder newBuilderForType()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.Builder` |   |

### newBuilderForType(AbstractMessage.BuilderParent parent)

    protected SearchRequest.Builder newBuilderForType(AbstractMessage.BuilderParent parent)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.BuilderParent.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.Builder` |   |

**Overrides** [AbstractMessage.newBuilderForType(AbstractMessage.BuilderParent parent)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.html#com_google_protobuf_AbstractMessage_newBuilderForType_com_google_protobuf_AbstractMessage_BuilderParent_)

### toBuilder()

    public SearchRequest.Builder toBuilder()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchRequest.Builder` |   |

### writeTo(CodedOutputStream output)

    public void writeTo(CodedOutputStream output)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `output` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.CodedOutputStream.html` |

**Overrides** [GeneratedMessage.writeTo(CodedOutputStream output)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.html#com_google_protobuf_GeneratedMessage_writeTo_com_google_protobuf_CodedOutputStream_)

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |