[![](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.BatchGetDocumentsRequest#sidetoggle) Request message for
\[DeveloperKnowledge.BatchGetDocuments\]\[google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments\].

##### Inheritance

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

##### Implements

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

### Constructors

#### BatchGetDocumentsRequest()

##### Declaration

    public BatchGetDocumentsRequest()

#### BatchGetDocumentsRequest(BatchGetDocumentsRequest)

##### Declaration

    public BatchGetDocumentsRequest(BatchGetDocumentsRequest other)

##### Parameters

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

### Properties

#### DocumentNames

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

##### Declaration

    public ResourceNameList<DocumentName> DocumentNames { get; }

##### Property Value

| Type | Description |
|---|---|
| [ResourceNameList](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNameList-1.html)\<[DocumentName](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1.DocumentName)\> |   |

#### Names

Required. Specifies the names of the documents to retrieve. A maximum of 20
documents can be retrieved in a batch. The documents are returned in the
same order as the `names` in the request.

Format: `documents/{uri_without_scheme}`
Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets`

##### Declaration

    public RepeatedField<string> Names { get; }

##### Property Value

| Type | Description |
|---|---|
| [RepeatedField](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.html)\<[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.BatchGetDocuments\]\[google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments\]
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.BatchGetDocumentsRequest#top) Generated by **DocFX**