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#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

    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=

    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

    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)) --- Optional. Specifies the [DocumentView](https://developers.google.com/ruby/docs/reference/google-developers-developer_knowledge-v1/latest/Google-Developers-DeveloperKnowledge-V1-DocumentView "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#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=

    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)) --- Optional. Specifies the [DocumentView](https://developers.google.com/ruby/docs/reference/google-developers-developer_knowledge-v1/latest/Google-Developers-DeveloperKnowledge-V1-DocumentView "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#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)) --- Optional. Specifies the [DocumentView](https://developers.google.com/ruby/docs/reference/google-developers-developer_knowledge-v1/latest/Google-Developers-DeveloperKnowledge-V1-DocumentView "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#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`.