# Interface SearchDocumentChunksResponseOrBuilder (0.3.0)

0.3.0 (latest) 0.2.0 0.1.0

```java
public interface SearchDocumentChunksResponseOrBuilder extends MessageOrBuilder
```

## Implements

com.google.protobuf.MessageOrBuilder

## Methods

### getNextPageToken()

```java
public abstract String getNextPageToken()
```
Optional. Provides a token that can be sent as `page_token` to retrieve the
next page. If this field is omitted, there are no subsequent pages.

`string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];`

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

### getNextPageTokenBytes()

```java
public abstract ByteString getNextPageTokenBytes()
```
Optional. Provides a token that can be sent as `page_token` to retrieve the
next page. If this field is omitted, there are no subsequent pages.

`string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];`

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

### getResults(int index)

```java
public abstract DocumentChunk getResults(int index)
```
Contains the search results for the given query. Each
DocumentChunk in this list
contains a snippet of content relevant to the search query. Use the
DocumentChunk.parent
field of each result with
DeveloperKnowledge.GetDocument
or
DeveloperKnowledge.BatchGetDocuments
to retrieve the full document content.

`repeated .google.developers.knowledge.v1.DocumentChunk results = 1;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `DocumentChunk` |   |

### getResultsCount()

```java
public abstract int getResultsCount()
```
Contains the search results for the given query. Each
DocumentChunk in this list
contains a snippet of content relevant to the search query. Use the
DocumentChunk.parent
field of each result with
DeveloperKnowledge.GetDocument
or
DeveloperKnowledge.BatchGetDocuments
to retrieve the full document content.

`repeated .google.developers.knowledge.v1.DocumentChunk results = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### getResultsList()

```java
public abstract List<DocumentChunk> getResultsList()
```
Contains the search results for the given query. Each
DocumentChunk in this list
contains a snippet of content relevant to the search query. Use the
DocumentChunk.parent
field of each result with
DeveloperKnowledge.GetDocument
or
DeveloperKnowledge.BatchGetDocuments
to retrieve the full document content.

`repeated .google.developers.knowledge.v1.DocumentChunk results = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `List<DocumentChunk>` |   |

### getResultsOrBuilder(int index)

```java
public abstract DocumentChunkOrBuilder getResultsOrBuilder(int index)
```
Contains the search results for the given query. Each
DocumentChunk in this list
contains a snippet of content relevant to the search query. Use the
DocumentChunk.parent
field of each result with
DeveloperKnowledge.GetDocument
or
DeveloperKnowledge.BatchGetDocuments
to retrieve the full document content.

`repeated .google.developers.knowledge.v1.DocumentChunk results = 1;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `DocumentChunkOrBuilder` |   |

### getResultsOrBuilderList()

```java
public abstract List<? extends DocumentChunkOrBuilder> getResultsOrBuilderList()
```
Contains the search results for the given query. Each
DocumentChunk in this list
contains a snippet of content relevant to the search query. Use the
DocumentChunk.parent
field of each result with
DeveloperKnowledge.GetDocument
or
DeveloperKnowledge.BatchGetDocuments
to retrieve the full document content.

`repeated .google.developers.knowledge.v1.DocumentChunk results = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `List<? extends com.google.developers.knowledge.v1.DocumentChunkOrBuilder>` |   |