# Interface GetDocumentRequestOrBuilder (0.3.0)

0.3.0 (latest) 0.2.0 0.1.0

```java
public interface GetDocumentRequestOrBuilder extends MessageOrBuilder
```

## Implements

com.google.protobuf.MessageOrBuilder

## Methods

### getName()

```java
public abstract String getName()
```
Required. Specifies the name of the document to retrieve.
Format: `documents/{uri_without_scheme}`
Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets`

`
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

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

### getNameBytes()

```java
public abstract ByteString getNameBytes()
```
Required. Specifies the name of the document to retrieve.
Format: `documents/{uri_without_scheme}`
Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets`

`
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

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

### getView()

```java
public abstract DocumentView getView()
```
Optional. Specifies the
DocumentView of the
document. If unspecified,
DeveloperKnowledge.GetDocument
defaults to `DOCUMENT_VIEW_CONTENT`.

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

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

### getViewValue()

```java
public abstract int getViewValue()
```
Optional. Specifies the
DocumentView of the
document. If unspecified,
DeveloperKnowledge.GetDocument
defaults to `DOCUMENT_VIEW_CONTENT`.

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

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