# Interface DocumentChunkOrBuilder (0.3.0)

0.3.0 (latest) 0.2.0 0.1.0

```java
public interface DocumentChunkOrBuilder extends MessageOrBuilder
```

## Implements

com.google.protobuf.MessageOrBuilder

## Methods

### getContent()

```java
public abstract String getContent()
```
Output only. Contains the content of the document chunk.

`string content = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getContentBytes()

```java
public abstract ByteString getContentBytes()
```
Output only. Contains the content of the document chunk.

`string content = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getDocument()

```java
public abstract Document getDocument()
```
Output only. Represents metadata about the
Document this chunk is from. The
DocumentView of this
Document message will be set to
`DOCUMENT_VIEW_BASIC`. It is included here for convenience so that clients
do not need to call
DeveloperKnowledge.GetDocument
or
DeveloperKnowledge.BatchGetDocuments
if they only need the metadata fields. Otherwise, clients should use
DeveloperKnowledge.GetDocument
or
DeveloperKnowledge.BatchGetDocuments
to fetch the full document content.

`
.google.developers.knowledge.v1.Document document = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Document` | The document. |

### getDocumentOrBuilder()

```java
public abstract DocumentOrBuilder getDocumentOrBuilder()
```
Output only. Represents metadata about the
Document this chunk is from. The
DocumentView of this
Document message will be set to
`DOCUMENT_VIEW_BASIC`. It is included here for convenience so that clients
do not need to call
DeveloperKnowledge.GetDocument
or
DeveloperKnowledge.BatchGetDocuments
if they only need the metadata fields. Otherwise, clients should use
DeveloperKnowledge.GetDocument
or
DeveloperKnowledge.BatchGetDocuments
to fetch the full document content.

`
.google.developers.knowledge.v1.Document document = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `DocumentOrBuilder` |   |

### getId()

```java
public abstract String getId()
```
Output only. Specifies the ID of this chunk within the document. The chunk
ID is unique within a document, but not globally unique across documents.
The chunk ID is not stable and may change over time.

`string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getIdBytes()

```java
public abstract ByteString getIdBytes()
```
Output only. Specifies the ID of this chunk within the document. The chunk
ID is unique within a document, but not globally unique across documents.
The chunk ID is not stable and may change over time.

`string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getParent()

```java
public abstract String getParent()
```
Output only. Contains the resource name of the document this chunk is from.
Format: `documents/{uri_without_scheme}`
Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets`

`
string parent = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
`

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

### getParentBytes()

```java
public abstract ByteString getParentBytes()
```
Output only. Contains the resource name of the document this chunk is from.
Format: `documents/{uri_without_scheme}`
Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets`

`
string parent = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
`

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

### hasDocument()

```java
public abstract boolean hasDocument()
```
Output only. Represents metadata about the
Document this chunk is from. The
DocumentView of this
Document message will be set to
`DOCUMENT_VIEW_BASIC`. It is included here for convenience so that clients
do not need to call
DeveloperKnowledge.GetDocument
or
DeveloperKnowledge.BatchGetDocuments
if they only need the metadata fields. Otherwise, clients should use
DeveloperKnowledge.GetDocument
or
DeveloperKnowledge.BatchGetDocuments
to fetch the full document content.

`
.google.developers.knowledge.v1.Document document = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `boolean` | Whether the document field is set. |