# Class Document.Builder (0.3.0)

0.3.0 (latest) 0.2.0 0.1.0

```java
public static final class Document.Builder extends GeneratedMessage.Builder<Document.Builder> implements DocumentOrBuilder
```
A Document represents a piece of content from the Developer Knowledge corpus.

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

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

## Implements

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Document` |   |

### buildPartial()

```java
public Document buildPartial()
```

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Document` |   |

### clear()

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

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

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

### clearContent()

```java
public Document.Builder clearContent()
```
Output only. Contains the full content of the document in Markdown format.

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

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

### clearContentLengthBytes()

```java
public Document.Builder clearContentLengthBytes()
```
Output only. The length of the `content` field in bytes.

`int32 content_length_bytes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### clearDataSource()

```java
public Document.Builder clearDataSource()
```
Output only. Specifies the data source of the document.
Example data source: `firebase.google.com`

`string data_source = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### clearDescription()

```java
public Document.Builder clearDescription()
```
Output only. Provides a description of the document.

`string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### clearName()

```java
public Document.Builder clearName()
```
Identifier. Contains the resource name of the document.
Format: `documents/{uri_without_scheme}`
Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets`

`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];`

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

### clearTitle()

```java
public Document.Builder clearTitle()
```
Output only. Provides the title of the document.

`string title = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### clearUpdateTime()

```java
public Document.Builder clearUpdateTime()
```
Output only. Represents the timestamp when the content or metadata of the
document was last updated.

`
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### clearUri()

```java
public Document.Builder clearUri()
```
Output only. Provides the URI of the content, such as
`docs.cloud.google.com/storage/docs/creating-buckets`.

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

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

### clearView()

```java
public Document.Builder clearView()
```
Output only. Specifies the
DocumentView of the
document.

`
.google.developers.knowledge.v1.DocumentView view = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getContent()

```java
public String getContent()
```
Output only. Contains the full content of the document in Markdown format.

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

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

### getContentBytes()

```java
public ByteString getContentBytes()
```
Output only. Contains the full content of the document in Markdown format.

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

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

### getContentLengthBytes()

```java
public int getContentLengthBytes()
```
Output only. The length of the `content` field in bytes.

`int32 content_length_bytes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getDataSource()

```java
public String getDataSource()
```
Output only. Specifies the data source of the document.
Example data source: `firebase.google.com`

`string data_source = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getDataSourceBytes()

```java
public ByteString getDataSourceBytes()
```
Output only. Specifies the data source of the document.
Example data source: `firebase.google.com`

`string data_source = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getDefaultInstanceForType()

```java
public Document getDefaultInstanceForType()
```

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Document` |   |

### getDescription()

```java
public String getDescription()
```
Output only. Provides a description of the document.

`string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getDescriptionBytes()

```java
public ByteString getDescriptionBytes()
```
Output only. Provides a description of the document.

`string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getDescriptorForType()

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

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

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

### getName()

```java
public String getName()
```
Identifier. Contains the resource name of the document.
Format: `documents/{uri_without_scheme}`
Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets`

`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];`

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

### getNameBytes()

```java
public ByteString getNameBytes()
```
Identifier. Contains the resource name of the document.
Format: `documents/{uri_without_scheme}`
Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets`

`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];`

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

### getTitle()

```java
public String getTitle()
```
Output only. Provides the title of the document.

`string title = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getTitleBytes()

```java
public ByteString getTitleBytes()
```
Output only. Provides the title of the document.

`string title = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getUpdateTime()

```java
public Timestamp getUpdateTime()
```
Output only. Represents the timestamp when the content or metadata of the
document was last updated.

`
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.protobuf.Timestamp` | The updateTime. |

### getUpdateTimeBuilder()

```java
public Timestamp.Builder getUpdateTimeBuilder()
```
Output only. Represents the timestamp when the content or metadata of the
document was last updated.

`
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.protobuf.Timestamp.Builder` |   |

### getUpdateTimeOrBuilder()

```java
public TimestampOrBuilder getUpdateTimeOrBuilder()
```
Output only. Represents the timestamp when the content or metadata of the
document was last updated.

`
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getUri()

```java
public String getUri()
```
Output only. Provides the URI of the content, such as
`docs.cloud.google.com/storage/docs/creating-buckets`.

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

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

### getUriBytes()

```java
public ByteString getUriBytes()
```
Output only. Provides the URI of the content, such as
`docs.cloud.google.com/storage/docs/creating-buckets`.

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

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

### getView()

```java
public DocumentView getView()
```
Output only. Specifies the
DocumentView of the
document.

`
.google.developers.knowledge.v1.DocumentView view = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `DocumentView` | The view. |

### getViewValue()

```java
public int getViewValue()
```
Output only. Specifies the
DocumentView of the
document.

`
.google.developers.knowledge.v1.DocumentView view = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | The enum numeric value on the wire for view. |

### hasUpdateTime()

```java
public boolean hasUpdateTime()
```
Output only. Represents the timestamp when the content or metadata of the
document was last updated.

`
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `boolean` | Whether the updateTime 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()

### mergeFrom(Document other)

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

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

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

### mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

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

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

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

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

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

### mergeUpdateTime(Timestamp value)

```java
public Document.Builder mergeUpdateTime(Timestamp value)
```
Output only. Represents the timestamp when the content or metadata of the
document was last updated.

`
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `com.google.protobuf.Timestamp` |

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

### setContent(String value)

```java
public Document.Builder setContent(String value)
```
Output only. Contains the full content of the document in Markdown format.

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

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

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

### setContentBytes(ByteString value)

```java
public Document.Builder setContentBytes(ByteString value)
```
Output only. Contains the full content of the document in Markdown format.

`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** |
| `Document.Builder` | This builder for chaining. |

### setContentLengthBytes(int value)

```java
public Document.Builder setContentLengthBytes(int value)
```
Output only. The length of the `content` field in bytes.

`int32 content_length_bytes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

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

### setDataSource(String value)

```java
public Document.Builder setDataSource(String value)
```
Output only. Specifies the data source of the document.
Example data source: `firebase.google.com`

`string data_source = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

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

### setDataSourceBytes(ByteString value)

```java
public Document.Builder setDataSourceBytes(ByteString value)
```
Output only. Specifies the data source of the document.
Example data source: `firebase.google.com`

`string data_source = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

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

### setDescription(String value)

```java
public Document.Builder setDescription(String value)
```
Output only. Provides a description of the document.

`string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

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

### setDescriptionBytes(ByteString value)

```java
public Document.Builder setDescriptionBytes(ByteString value)
```
Output only. Provides a description of the document.

`string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

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

### setName(String value)

```java
public Document.Builder setName(String value)
```
Identifier. Contains the resource name of the document.
Format: `documents/{uri_without_scheme}`
Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets`

`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];`

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

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

### setNameBytes(ByteString value)

```java
public Document.Builder setNameBytes(ByteString value)
```
Identifier. Contains the resource name of the document.
Format: `documents/{uri_without_scheme}`
Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets`

`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];`

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

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

### setTitle(String value)

```java
public Document.Builder setTitle(String value)
```
Output only. Provides the title of the document.

`string title = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

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

### setTitleBytes(ByteString value)

```java
public Document.Builder setTitleBytes(ByteString value)
```
Output only. Provides the title of the document.

`string title = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

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

### setUpdateTime(Timestamp value)

```java
public Document.Builder setUpdateTime(Timestamp value)
```
Output only. Represents the timestamp when the content or metadata of the
document was last updated.

`
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `com.google.protobuf.Timestamp` |

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

### setUpdateTime(Timestamp.Builder builderForValue)

```java
public Document.Builder setUpdateTime(Timestamp.Builder builderForValue)
```
Output only. Represents the timestamp when the content or metadata of the
document was last updated.

`
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `com.google.protobuf.Timestamp.Builder` |

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

### setUri(String value)

```java
public Document.Builder setUri(String value)
```
Output only. Provides the URI of the content, such as
`docs.cloud.google.com/storage/docs/creating-buckets`.

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

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

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

### setUriBytes(ByteString value)

```java
public Document.Builder setUriBytes(ByteString value)
```
Output only. Provides the URI of the content, such as
`docs.cloud.google.com/storage/docs/creating-buckets`.

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

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

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

### setView(DocumentView value)

```java
public Document.Builder setView(DocumentView value)
```
Output only. Specifies the
DocumentView of the
document.

`
.google.developers.knowledge.v1.DocumentView view = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `DocumentView` The view to set. |

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

### setViewValue(int value)

```java
public Document.Builder setViewValue(int value)
```
Output only. Specifies the
DocumentView of the
document.

`
.google.developers.knowledge.v1.DocumentView view = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `int` The enum numeric value on the wire for view to set. |

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