# Developer Knowledge V1 API - Class Google::Developers::DeveloperKnowledge::V1::BatchGetDocumentsRequest (v0.3.0)

0.3.0 (latest) 0.2.1 0.1.0 Reference documentation and code samples for the Developer Knowledge V1 API class Google::Developers::DeveloperKnowledge::V1::BatchGetDocumentsRequest.

Request message for
[DeveloperKnowledge.BatchGetDocuments](https://developers.google.com/ruby/docs/reference/google-developers-developer_knowledge-v1/latest/Google-Developers-DeveloperKnowledge-V1-DeveloperKnowledge-Client.md.txt#Google__Developers__DeveloperKnowledge__V1__DeveloperKnowledge__Client_batch_get_documents_instance_ "Google::Developers::DeveloperKnowledge::V1::DeveloperKnowledge::Client#batch_get_documents (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #names

```ruby
def names() -> ::Array<::String>
```
**Returns**

- (::Array\<::String\>) --- 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`

  Each name must not exceed 500 characters; values longer than 500 characters
  will result in an `INVALID_ARGUMENT` error.

### #names=

```ruby
def names=(value) -> ::Array<::String>
```
**Parameter**

- **value** (::Array\<::String\>) --- 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`

  Each name must not exceed 500 characters; values longer than 500 characters
  will result in an `INVALID_ARGUMENT` error.
**Returns**

- (::Array\<::String\>) --- 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`

  Each name must not exceed 500 characters; values longer than 500 characters
  will result in an `INVALID_ARGUMENT` error.

### #view

```ruby
def view() -> ::Google::Developers::DeveloperKnowledge::V1::DocumentView
```
**Returns**

- ([::Google::Developers::DeveloperKnowledge::V1::DocumentView](https://developers.google.com/ruby/docs/reference/google-developers-developer_knowledge-v1/latest/Google-Developers-DeveloperKnowledge-V1-DocumentView.md.txt)) --- Optional. Specifies the [DocumentView](https://developers.google.com/ruby/docs/reference/google-developers-developer_knowledge-v1/latest/Google-Developers-DeveloperKnowledge-V1-DocumentView.md.txt "Google::Developers::DeveloperKnowledge::V1::DocumentView (module)") of the document. If unspecified, [DeveloperKnowledge.BatchGetDocuments](https://developers.google.com/ruby/docs/reference/google-developers-developer_knowledge-v1/latest/Google-Developers-DeveloperKnowledge-V1-DeveloperKnowledge-Client.md.txt#Google__Developers__DeveloperKnowledge__V1__DeveloperKnowledge__Client_batch_get_documents_instance_ "Google::Developers::DeveloperKnowledge::V1::DeveloperKnowledge::Client#batch_get_documents (method)") defaults to `DOCUMENT_VIEW_CONTENT`.

### #view=

```ruby
def view=(value) -> ::Google::Developers::DeveloperKnowledge::V1::DocumentView
```
**Parameter**

- **value** ([::Google::Developers::DeveloperKnowledge::V1::DocumentView](https://developers.google.com/ruby/docs/reference/google-developers-developer_knowledge-v1/latest/Google-Developers-DeveloperKnowledge-V1-DocumentView.md.txt)) --- Optional. Specifies the [DocumentView](https://developers.google.com/ruby/docs/reference/google-developers-developer_knowledge-v1/latest/Google-Developers-DeveloperKnowledge-V1-DocumentView.md.txt "Google::Developers::DeveloperKnowledge::V1::DocumentView (module)") of the document. If unspecified, [DeveloperKnowledge.BatchGetDocuments](https://developers.google.com/ruby/docs/reference/google-developers-developer_knowledge-v1/latest/Google-Developers-DeveloperKnowledge-V1-DeveloperKnowledge-Client.md.txt#Google__Developers__DeveloperKnowledge__V1__DeveloperKnowledge__Client_batch_get_documents_instance_ "Google::Developers::DeveloperKnowledge::V1::DeveloperKnowledge::Client#batch_get_documents (method)") defaults to `DOCUMENT_VIEW_CONTENT`.
**Returns**

- ([::Google::Developers::DeveloperKnowledge::V1::DocumentView](https://developers.google.com/ruby/docs/reference/google-developers-developer_knowledge-v1/latest/Google-Developers-DeveloperKnowledge-V1-DocumentView.md.txt)) --- Optional. Specifies the [DocumentView](https://developers.google.com/ruby/docs/reference/google-developers-developer_knowledge-v1/latest/Google-Developers-DeveloperKnowledge-V1-DocumentView.md.txt "Google::Developers::DeveloperKnowledge::V1::DocumentView (module)") of the document. If unspecified, [DeveloperKnowledge.BatchGetDocuments](https://developers.google.com/ruby/docs/reference/google-developers-developer_knowledge-v1/latest/Google-Developers-DeveloperKnowledge-V1-DeveloperKnowledge-Client.md.txt#Google__Developers__DeveloperKnowledge__V1__DeveloperKnowledge__Client_batch_get_documents_instance_ "Google::Developers::DeveloperKnowledge::V1::DeveloperKnowledge::Client#batch_get_documents (method)") defaults to `DOCUMENT_VIEW_CONTENT`.