# Class DocumentChunk.Builder (0.3.0)

0.3.0 (latest) 0.2.0 0.1.0

```java
public static final class DocumentChunk.Builder extends GeneratedMessage.Builder<DocumentChunk.Builder> implements DocumentChunkOrBuilder
```
A DocumentChunk represents a piece of content from a
Document in the DeveloperKnowledge
corpus. To fetch the entire document content, pass the `parent` to
DeveloperKnowledge.GetDocument
or
DeveloperKnowledge.BatchGetDocuments.

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

## 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 \> DocumentChunk.Builder

## Implements

[DocumentChunkOrBuilder](https://developers.google.com/java/docs/reference/google-cloud-developer-knowledge/latest/com.google.developers.knowledge.v1.DocumentChunkOrBuilder.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 DocumentChunk build()
```

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

### buildPartial()

```java
public DocumentChunk buildPartial()
```

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

### clear()

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

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

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

### clearContent()

```java
public DocumentChunk.Builder clearContent()
```
Output only. Contains the content of the document chunk.

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

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

### clearDocument()

```java
public DocumentChunk.Builder clearDocument()
```
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** |
| `DocumentChunk.Builder` |   |

### clearId()

```java
public DocumentChunk.Builder clearId()
```
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** |
| `DocumentChunk.Builder` | This builder for chaining. |

### clearParent()

```java
public DocumentChunk.Builder clearParent()
```
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** |
| `DocumentChunk.Builder` | This builder for chaining. |

### getContent()

```java
public 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 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. |

### getDefaultInstanceForType()

```java
public DocumentChunk getDefaultInstanceForType()
```

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

### getDescriptorForType()

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

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

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

### getDocument()

```java
public 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. |

### getDocumentBuilder()

```java
public Document.Builder getDocumentBuilder()
```
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.Builder` |   |

### getDocumentOrBuilder()

```java
public 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 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 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 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 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 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. |

### 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()

### mergeDocument(Document value)

```java
public DocumentChunk.Builder mergeDocument(Document value)
```
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];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `Document` |

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

### mergeFrom(DocumentChunk other)

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

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

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

### mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `DocumentChunk.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 DocumentChunk.Builder mergeFrom(Message other)
```

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

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

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

### setContent(String value)

```java
public DocumentChunk.Builder setContent(String value)
```
Output only. Contains the content of the document chunk.

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

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

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

### setContentBytes(ByteString value)

```java
public DocumentChunk.Builder setContentBytes(ByteString value)
```
Output only. Contains the content of the document chunk.

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

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

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

### setDocument(Document value)

```java
public DocumentChunk.Builder setDocument(Document value)
```
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];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `Document` |

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

### setDocument(Document.Builder builderForValue)

```java
public DocumentChunk.Builder setDocument(Document.Builder builderForValue)
```
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];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `Document.Builder` |

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

### setId(String value)

```java
public DocumentChunk.Builder setId(String value)
```
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];`

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

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

### setIdBytes(ByteString value)

```java
public DocumentChunk.Builder setIdBytes(ByteString value)
```
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];`

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

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

### setParent(String value)

```java
public DocumentChunk.Builder setParent(String value)
```
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) = { ... }
`

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

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

### setParentBytes(ByteString value)

```java
public DocumentChunk.Builder setParentBytes(ByteString value)
```
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) = { ... }
`

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

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