# Class SearchDocumentChunksRequest.Builder (0.3.0)

0.3.0 (latest) 0.2.0 0.1.0

```java
public static final class SearchDocumentChunksRequest.Builder extends GeneratedMessage.Builder<SearchDocumentChunksRequest.Builder> implements SearchDocumentChunksRequestOrBuilder
```
Request message for
DeveloperKnowledge.SearchDocumentChunks.

Protobuf type `google.developers.knowledge.v1.SearchDocumentChunksRequest`

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> com.google.protobuf.AbstractMessageLite.Builder \> com.google.protobuf.AbstractMessage.Builder \> com.google.protobuf.GeneratedMessage.Builder \> SearchDocumentChunksRequest.Builder

## Implements

[SearchDocumentChunksRequestOrBuilder](https://developers.google.com/java/docs/reference/google-cloud-developer-knowledge/latest/com.google.developers.knowledge.v1.SearchDocumentChunksRequestOrBuilder.md.txt)

## Inherited Members

com.google.protobuf.AbstractMessage.Builder.findInitializationErrors() com.google.protobuf.AbstractMessage.Builder.getInitializationErrorString() com.google.protobuf.AbstractMessage.Builder.internalMergeFrom(com.google.protobuf.AbstractMessageLite) com.google.protobuf.AbstractMessage.Builder.mergeFrom(byte\[\]) com.google.protobuf.AbstractMessage.Builder.mergeFrom(byte\[\],com.google.protobuf.ExtensionRegistryLite) com.google.protobuf.AbstractMessage.Builder.mergeFrom(byte\[\],int,int) com.google.protobuf.AbstractMessage.Builder.mergeFrom(byte\[\],int,int,com.google.protobuf.ExtensionRegistryLite) com.google.protobuf.AbstractMessage.Builder.mergeFrom(com.google.protobuf.ByteString) com.google.protobuf.AbstractMessage.Builder.mergeFrom(com.google.protobuf.ByteString,com.google.protobuf.ExtensionRegistryLite) com.google.protobuf.AbstractMessage.Builder.mergeFrom(com.google.protobuf.CodedInputStream) com.google.protobuf.AbstractMessage.Builder.mergeFrom(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite) com.google.protobuf.AbstractMessage.Builder.mergeFrom(com.google.protobuf.Message) com.google.protobuf.AbstractMessage.Builder.mergeFrom(java.io.InputStream) com.google.protobuf.AbstractMessage.Builder.mergeFrom(java.io.InputStream,com.google.protobuf.ExtensionRegistryLite) com.google.protobuf.AbstractMessage.Builder.newUninitializedMessageException(com.google.protobuf.Message) com.google.protobuf.AbstractMessage.Builder.toString() com.google.protobuf.AbstractMessageLite.Builder.\<T\>addAll(java.lang.Iterable\<T\>,java.util.Collection\<? super T\>) com.google.protobuf.AbstractMessageLite.Builder.\<T\>addAll(java.lang.Iterable\<T\>,java.util.List\<? super T\>) com.google.protobuf.AbstractMessageLite.Builder.internalMergeFrom(MessageType) com.google.protobuf.AbstractMessageLite.Builder.mergeDelimitedFrom(java.io.InputStream) com.google.protobuf.AbstractMessageLite.Builder.mergeDelimitedFrom(java.io.InputStream,com.google.protobuf.ExtensionRegistryLite) com.google.protobuf.AbstractMessageLite.Builder.mergeFrom(com.google.protobuf.MessageLite) com.google.protobuf.AbstractMessageLite.Builder.newUninitializedMessageException(com.google.protobuf.MessageLite) com.google.protobuf.GeneratedMessage.Builder.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor,java.lang.Object) com.google.protobuf.GeneratedMessage.Builder.clear() com.google.protobuf.GeneratedMessage.Builder.clearField(com.google.protobuf.Descriptors.FieldDescriptor) com.google.protobuf.GeneratedMessage.Builder.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor) com.google.protobuf.GeneratedMessage.Builder.clone() com.google.protobuf.GeneratedMessage.Builder.getAllFields() com.google.protobuf.GeneratedMessage.Builder.getDescriptorForType() com.google.protobuf.GeneratedMessage.Builder.getField(com.google.protobuf.Descriptors.FieldDescriptor) com.google.protobuf.GeneratedMessage.Builder.getFieldBuilder(com.google.protobuf.Descriptors.FieldDescriptor) com.google.protobuf.GeneratedMessage.Builder.getOneofFieldDescriptor(com.google.protobuf.Descriptors.OneofDescriptor) com.google.protobuf.GeneratedMessage.Builder.getParentForChildren() com.google.protobuf.GeneratedMessage.Builder.getRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor,int) com.google.protobuf.GeneratedMessage.Builder.getRepeatedFieldBuilder(com.google.protobuf.Descriptors.FieldDescriptor,int) com.google.protobuf.GeneratedMessage.Builder.getRepeatedFieldCount(com.google.protobuf.Descriptors.FieldDescriptor) com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder() com.google.protobuf.GeneratedMessage.Builder.getUnknownFields() com.google.protobuf.GeneratedMessage.Builder.hasField(com.google.protobuf.Descriptors.FieldDescriptor) com.google.protobuf.GeneratedMessage.Builder.hasOneof(com.google.protobuf.Descriptors.OneofDescriptor) com.google.protobuf.GeneratedMessage.Builder.internalGetFieldAccessorTable() com.google.protobuf.GeneratedMessage.Builder.internalGetMapField(int) com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int) com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapField(int) com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int) com.google.protobuf.GeneratedMessage.Builder.isClean() com.google.protobuf.GeneratedMessage.Builder.isInitialized() com.google.protobuf.GeneratedMessage.Builder.markClean() com.google.protobuf.GeneratedMessage.Builder.mergeUnknownFields(com.google.protobuf.UnknownFieldSet) com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int) com.google.protobuf.GeneratedMessage.Builder.newBuilderForField(com.google.protobuf.Descriptors.FieldDescriptor) com.google.protobuf.GeneratedMessage.Builder.onBuilt() com.google.protobuf.GeneratedMessage.Builder.onChanged() com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) com.google.protobuf.GeneratedMessage.Builder.setField(com.google.protobuf.Descriptors.FieldDescriptor,java.lang.Object) com.google.protobuf.GeneratedMessage.Builder.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor,int,java.lang.Object) com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) com.google.protobuf.GeneratedMessage.Builder.setUnknownFields(com.google.protobuf.UnknownFieldSet) com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [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.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [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 Methods

### getDescriptor()

```java
public static final Descriptors.Descriptor getDescriptor()
```

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.protobuf.Descriptors.Descriptor` |   |

## Methods

### build()

```java
public SearchDocumentChunksRequest build()
```

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SearchDocumentChunksRequest` |   |

### buildPartial()

```java
public SearchDocumentChunksRequest buildPartial()
```

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SearchDocumentChunksRequest` |   |

### clear()

```java
public SearchDocumentChunksRequest.Builder clear()
```

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SearchDocumentChunksRequest.Builder` |   |

**Overrides** com.google.protobuf.GeneratedMessage.Builder.clear()

### clearFilter()

```java
public SearchDocumentChunksRequest.Builder clearFilter()
```
Optional. Applies a strict filter to the search results. The expression
supports a subset of the syntax described at <https://google.aip.dev/160>.

While `SearchDocumentChunks` returns
DocumentChunks, the filter
is applied to `DocumentChunk.document` fields.

Supported fields for filtering:

- `data_source` (STRING): The source of the document, e.g. `docs.cloud.google.com`. See <https://developers.google.com/knowledge/reference/corpus-reference> for the complete list of data sources in the corpus.
- `update_time` (TIMESTAMP): The timestamp of when the document was last meaningfully updated. A meaningful update is one that changes document's markdown content or metadata.
- `uri` (STRING): The document URI, e.g.
  `https://docs.cloud.google.com/bigquery/docs/tables`.

  STRING fields support `=` (equals) and `!=` (not equals) operators for
  **exact match** on the whole string. Partial match, prefix match, and
  regexp match are not supported.

  TIMESTAMP fields support `=`, `<`, `<=`, `>`, and `>=` operators.
  Timestamps must be in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"`.

  Note: Field names must be in `snake_case` (e.g., `data_source`). Values on
  the right-hand side of filtering expressions must be string literals
  enclosed in double quotes (e.g., `"docs.cloud.google.com"`).

  You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical
  operators. `OR` has higher precedence than `AND`. Use parentheses for
  explicit precedence grouping.

  Examples:
- `data_source = "docs.cloud.google.com" OR data_source =
  "firebase.google.com"`

- `data_source != "firebase.google.com"`
- `update_time < "2024-01-01T00:00:00Z"`
- `update_time >= "2025-01-22T00:00:00Z" AND (data_source =
  "developer.chrome.com" OR data_source = "web.dev")`
- `uri = "https://docs.cloud.google.com/release-notes"`

  The `filter` string must not exceed 500 characters; values longer than 500
  characters will result in an `INVALID_ARGUMENT` error.

`string filter = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SearchDocumentChunksRequest.Builder` | This builder for chaining. |

### clearPageSize()

```java
public SearchDocumentChunksRequest.Builder clearPageSize()
```
Optional. Specifies the maximum number of results to return. The service
may return fewer than this value.

If unspecified, at most 5 results will be returned.

The maximum value is 100; values above 100 will be coerced to 100.

`int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SearchDocumentChunksRequest.Builder` | This builder for chaining. |

### clearPageToken()

```java
public SearchDocumentChunksRequest.Builder clearPageToken()
```
Optional. Contains a page token, received from a previous
`SearchDocumentChunks` call. Provide this to retrieve the subsequent page.

`string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SearchDocumentChunksRequest.Builder` | This builder for chaining. |

### clearQuery()

```java
public SearchDocumentChunksRequest.Builder clearQuery()
```
Required. Provides the raw query string provided by the user, such as "How
to create a Cloud Storage bucket?".

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SearchDocumentChunksRequest.Builder` | This builder for chaining. |

### getDefaultInstanceForType()

```java
public SearchDocumentChunksRequest getDefaultInstanceForType()
```

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SearchDocumentChunksRequest` |   |

### getDescriptorForType()

```java
public Descriptors.Descriptor getDescriptorForType()
```

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.protobuf.Descriptors.Descriptor` |   |

**Overrides** com.google.protobuf.GeneratedMessage.Builder.getDescriptorForType()

### getFilter()

```java
public String getFilter()
```
Optional. Applies a strict filter to the search results. The expression
supports a subset of the syntax described at <https://google.aip.dev/160>.

While `SearchDocumentChunks` returns
DocumentChunks, the filter
is applied to `DocumentChunk.document` fields.

Supported fields for filtering:

- `data_source` (STRING): The source of the document, e.g. `docs.cloud.google.com`. See <https://developers.google.com/knowledge/reference/corpus-reference> for the complete list of data sources in the corpus.
- `update_time` (TIMESTAMP): The timestamp of when the document was last meaningfully updated. A meaningful update is one that changes document's markdown content or metadata.
- `uri` (STRING): The document URI, e.g.
  `https://docs.cloud.google.com/bigquery/docs/tables`.

  STRING fields support `=` (equals) and `!=` (not equals) operators for
  **exact match** on the whole string. Partial match, prefix match, and
  regexp match are not supported.

  TIMESTAMP fields support `=`, `<`, `<=`, `>`, and `>=` operators.
  Timestamps must be in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"`.

  Note: Field names must be in `snake_case` (e.g., `data_source`). Values on
  the right-hand side of filtering expressions must be string literals
  enclosed in double quotes (e.g., `"docs.cloud.google.com"`).

  You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical
  operators. `OR` has higher precedence than `AND`. Use parentheses for
  explicit precedence grouping.

  Examples:
- `data_source = "docs.cloud.google.com" OR data_source =
  "firebase.google.com"`

- `data_source != "firebase.google.com"`
- `update_time < "2024-01-01T00:00:00Z"`
- `update_time >= "2025-01-22T00:00:00Z" AND (data_source =
  "developer.chrome.com" OR data_source = "web.dev")`
- `uri = "https://docs.cloud.google.com/release-notes"`

  The `filter` string must not exceed 500 characters; values longer than 500
  characters will result in an `INVALID_ARGUMENT` error.

`string filter = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `String` | The filter. |

### getFilterBytes()

```java
public ByteString getFilterBytes()
```
Optional. Applies a strict filter to the search results. The expression
supports a subset of the syntax described at <https://google.aip.dev/160>.

While `SearchDocumentChunks` returns
DocumentChunks, the filter
is applied to `DocumentChunk.document` fields.

Supported fields for filtering:

- `data_source` (STRING): The source of the document, e.g. `docs.cloud.google.com`. See <https://developers.google.com/knowledge/reference/corpus-reference> for the complete list of data sources in the corpus.
- `update_time` (TIMESTAMP): The timestamp of when the document was last meaningfully updated. A meaningful update is one that changes document's markdown content or metadata.
- `uri` (STRING): The document URI, e.g.
  `https://docs.cloud.google.com/bigquery/docs/tables`.

  STRING fields support `=` (equals) and `!=` (not equals) operators for
  **exact match** on the whole string. Partial match, prefix match, and
  regexp match are not supported.

  TIMESTAMP fields support `=`, `<`, `<=`, `>`, and `>=` operators.
  Timestamps must be in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"`.

  Note: Field names must be in `snake_case` (e.g., `data_source`). Values on
  the right-hand side of filtering expressions must be string literals
  enclosed in double quotes (e.g., `"docs.cloud.google.com"`).

  You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical
  operators. `OR` has higher precedence than `AND`. Use parentheses for
  explicit precedence grouping.

  Examples:
- `data_source = "docs.cloud.google.com" OR data_source =
  "firebase.google.com"`

- `data_source != "firebase.google.com"`
- `update_time < "2024-01-01T00:00:00Z"`
- `update_time >= "2025-01-22T00:00:00Z" AND (data_source =
  "developer.chrome.com" OR data_source = "web.dev")`
- `uri = "https://docs.cloud.google.com/release-notes"`

  The `filter` string must not exceed 500 characters; values longer than 500
  characters will result in an `INVALID_ARGUMENT` error.

`string filter = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.protobuf.ByteString` | The bytes for filter. |

### getPageSize()

```java
public int getPageSize()
```
Optional. Specifies the maximum number of results to return. The service
may return fewer than this value.

If unspecified, at most 5 results will be returned.

The maximum value is 100; values above 100 will be coerced to 100.

`int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | The pageSize. |

### getPageToken()

```java
public String getPageToken()
```
Optional. Contains a page token, received from a previous
`SearchDocumentChunks` call. Provide this to retrieve the subsequent page.

`string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `String` | The pageToken. |

### getPageTokenBytes()

```java
public ByteString getPageTokenBytes()
```
Optional. Contains a page token, received from a previous
`SearchDocumentChunks` call. Provide this to retrieve the subsequent page.

`string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.protobuf.ByteString` | The bytes for pageToken. |

### getQuery()

```java
public String getQuery()
```
Required. Provides the raw query string provided by the user, such as "How
to create a Cloud Storage bucket?".

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `String` | The query. |

### getQueryBytes()

```java
public ByteString getQueryBytes()
```
Required. Provides the raw query string provided by the user, such as "How
to create a Cloud Storage bucket?".

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.protobuf.ByteString` | The bytes for query. |

### internalGetFieldAccessorTable()

```java
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
```

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.protobuf.GeneratedMessage.FieldAccessorTable` |   |

**Overrides** com.google.protobuf.GeneratedMessage.Builder.internalGetFieldAccessorTable()

### isInitialized()

```java
public final boolean isInitialized()
```

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `boolean` |   |

**Overrides** com.google.protobuf.GeneratedMessage.Builder.isInitialized()

### mergeFrom(SearchDocumentChunksRequest other)

```java
public SearchDocumentChunksRequest.Builder mergeFrom(SearchDocumentChunksRequest other)
```

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `SearchDocumentChunksRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SearchDocumentChunksRequest.Builder` |   |

### mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

```java
public SearchDocumentChunksRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
```

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `input` | `com.google.protobuf.CodedInputStream` |
| `extensionRegistry` | `com.google.protobuf.ExtensionRegistryLite` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SearchDocumentChunksRequest.Builder` |   |

**Overrides** com.google.protobuf.AbstractMessage.Builder.mergeFrom(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `IOException` |   |

### mergeFrom(Message other)

```java
public SearchDocumentChunksRequest.Builder mergeFrom(Message other)
```

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `com.google.protobuf.Message` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SearchDocumentChunksRequest.Builder` |   |

**Overrides** com.google.protobuf.AbstractMessage.Builder.mergeFrom(com.google.protobuf.Message)

### setFilter(String value)

```java
public SearchDocumentChunksRequest.Builder setFilter(String value)
```
Optional. Applies a strict filter to the search results. The expression
supports a subset of the syntax described at <https://google.aip.dev/160>.

While `SearchDocumentChunks` returns
DocumentChunks, the filter
is applied to `DocumentChunk.document` fields.

Supported fields for filtering:

- `data_source` (STRING): The source of the document, e.g. `docs.cloud.google.com`. See <https://developers.google.com/knowledge/reference/corpus-reference> for the complete list of data sources in the corpus.
- `update_time` (TIMESTAMP): The timestamp of when the document was last meaningfully updated. A meaningful update is one that changes document's markdown content or metadata.
- `uri` (STRING): The document URI, e.g.
  `https://docs.cloud.google.com/bigquery/docs/tables`.

  STRING fields support `=` (equals) and `!=` (not equals) operators for
  **exact match** on the whole string. Partial match, prefix match, and
  regexp match are not supported.

  TIMESTAMP fields support `=`, `<`, `<=`, `>`, and `>=` operators.
  Timestamps must be in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"`.

  Note: Field names must be in `snake_case` (e.g., `data_source`). Values on
  the right-hand side of filtering expressions must be string literals
  enclosed in double quotes (e.g., `"docs.cloud.google.com"`).

  You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical
  operators. `OR` has higher precedence than `AND`. Use parentheses for
  explicit precedence grouping.

  Examples:
- `data_source = "docs.cloud.google.com" OR data_source =
  "firebase.google.com"`

- `data_source != "firebase.google.com"`
- `update_time < "2024-01-01T00:00:00Z"`
- `update_time >= "2025-01-22T00:00:00Z" AND (data_source =
  "developer.chrome.com" OR data_source = "web.dev")`
- `uri = "https://docs.cloud.google.com/release-notes"`

  The `filter` string must not exceed 500 characters; values longer than 500
  characters will result in an `INVALID_ARGUMENT` error.

`string filter = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `String` The filter to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SearchDocumentChunksRequest.Builder` | This builder for chaining. |

### setFilterBytes(ByteString value)

```java
public SearchDocumentChunksRequest.Builder setFilterBytes(ByteString value)
```
Optional. Applies a strict filter to the search results. The expression
supports a subset of the syntax described at <https://google.aip.dev/160>.

While `SearchDocumentChunks` returns
DocumentChunks, the filter
is applied to `DocumentChunk.document` fields.

Supported fields for filtering:

- `data_source` (STRING): The source of the document, e.g. `docs.cloud.google.com`. See <https://developers.google.com/knowledge/reference/corpus-reference> for the complete list of data sources in the corpus.
- `update_time` (TIMESTAMP): The timestamp of when the document was last meaningfully updated. A meaningful update is one that changes document's markdown content or metadata.
- `uri` (STRING): The document URI, e.g.
  `https://docs.cloud.google.com/bigquery/docs/tables`.

  STRING fields support `=` (equals) and `!=` (not equals) operators for
  **exact match** on the whole string. Partial match, prefix match, and
  regexp match are not supported.

  TIMESTAMP fields support `=`, `<`, `<=`, `>`, and `>=` operators.
  Timestamps must be in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"`.

  Note: Field names must be in `snake_case` (e.g., `data_source`). Values on
  the right-hand side of filtering expressions must be string literals
  enclosed in double quotes (e.g., `"docs.cloud.google.com"`).

  You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical
  operators. `OR` has higher precedence than `AND`. Use parentheses for
  explicit precedence grouping.

  Examples:
- `data_source = "docs.cloud.google.com" OR data_source =
  "firebase.google.com"`

- `data_source != "firebase.google.com"`
- `update_time < "2024-01-01T00:00:00Z"`
- `update_time >= "2025-01-22T00:00:00Z" AND (data_source =
  "developer.chrome.com" OR data_source = "web.dev")`
- `uri = "https://docs.cloud.google.com/release-notes"`

  The `filter` string must not exceed 500 characters; values longer than 500
  characters will result in an `INVALID_ARGUMENT` error.

`string filter = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `com.google.protobuf.ByteString` The bytes for filter to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SearchDocumentChunksRequest.Builder` | This builder for chaining. |

### setPageSize(int value)

```java
public SearchDocumentChunksRequest.Builder setPageSize(int value)
```
Optional. Specifies the maximum number of results to return. The service
may return fewer than this value.

If unspecified, at most 5 results will be returned.

The maximum value is 100; values above 100 will be coerced to 100.

`int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `int` The pageSize to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SearchDocumentChunksRequest.Builder` | This builder for chaining. |

### setPageToken(String value)

```java
public SearchDocumentChunksRequest.Builder setPageToken(String value)
```
Optional. Contains a page token, received from a previous
`SearchDocumentChunks` call. Provide this to retrieve the subsequent page.

`string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `String` The pageToken to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SearchDocumentChunksRequest.Builder` | This builder for chaining. |

### setPageTokenBytes(ByteString value)

```java
public SearchDocumentChunksRequest.Builder setPageTokenBytes(ByteString value)
```
Optional. Contains a page token, received from a previous
`SearchDocumentChunks` call. Provide this to retrieve the subsequent page.

`string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `com.google.protobuf.ByteString` The bytes for pageToken to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SearchDocumentChunksRequest.Builder` | This builder for chaining. |

### setQuery(String value)

```java
public SearchDocumentChunksRequest.Builder setQuery(String value)
```
Required. Provides the raw query string provided by the user, such as "How
to create a Cloud Storage bucket?".

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `String` The query to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SearchDocumentChunksRequest.Builder` | This builder for chaining. |

### setQueryBytes(ByteString value)

```java
public SearchDocumentChunksRequest.Builder setQueryBytes(ByteString value)
```
Required. Provides the raw query string provided by the user, such as "How
to create a Cloud Storage bucket?".

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `com.google.protobuf.ByteString` The bytes for query to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SearchDocumentChunksRequest.Builder` | This builder for chaining. |