[![](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/logo.svg)](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/index.html)
- 
[Show / Hide Table of Contents](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1.GetDocumentRequest#sidetoggle) Request message for
\[DeveloperKnowledge.GetDocument\]\[google.developers.knowledge.v1.DeveloperKnowledge.GetDocument\].

##### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) GetDocumentRequest

##### Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)\<[GetDocumentRequest](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1.GetDocumentRequest)\> [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)\<[GetDocumentRequest](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1.GetDocumentRequest)\> [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)\<[GetDocumentRequest](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1.GetDocumentRequest)\> [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html) [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

##### Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

###### **Namespace** : [Google](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google).[Developers](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers).[DeveloperKnowledge](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge).[V1](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1)

###### **Assembly**: Google.Developers.DeveloperKnowledge.V1.dll

##### Syntax

    public sealed class GetDocumentRequest : IMessage<GetDocumentRequest>, IEquatable<GetDocumentRequest>, IDeepCloneable<GetDocumentRequest>, IBufferMessage, IMessage

### Constructors

#### GetDocumentRequest()

##### Declaration

    public GetDocumentRequest()

#### GetDocumentRequest(GetDocumentRequest)

##### Declaration

    public GetDocumentRequest(GetDocumentRequest other)

##### Parameters

| Type | Name | Description |
|---|---|---|
| [GetDocumentRequest](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1.GetDocumentRequest) | other |   |

### Properties

#### DocumentName

[DocumentName](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1.DocumentName)-typed view over the [Name](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1.GetDocumentRequest#Google_Developers_DeveloperKnowledge_V1_GetDocumentRequest_Name) resource name property.

##### Declaration

    public DocumentName DocumentName { get; set; }

##### Property Value

| Type | Description |
|---|---|
| [DocumentName](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1.DocumentName) |   |

#### Name

Required. Specifies the name of the document to retrieve.
Format: `documents/{uri_without_scheme}`
Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets`

##### Declaration

    public string Name { get; set; }

##### Property Value

| Type | Description |
|---|---|
| [string](https://learn.microsoft.com/dotnet/api/system.string) |   |

#### View

Optional. Specifies the
\[DocumentView\]\[google.developers.knowledge.v1.DocumentView\] of the
document. If unspecified,
\[DeveloperKnowledge.GetDocument\]\[google.developers.knowledge.v1.DeveloperKnowledge.GetDocument\]
defaults to `DOCUMENT_VIEW_CONTENT`.

##### Declaration

    public DocumentView View { get; set; }

##### Property Value

| Type | Description |
|---|---|
| [DocumentView](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1.DocumentView) |   |

##### In this article

[Back to top](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1.GetDocumentRequest#top) Generated by **DocFX**