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::Document.

A Document represents a page of documentation in the Developer Knowledge
corpus, like the page at
<https://docs.cloud.google.com/storage/docs/creating-buckets>.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #content

    def content() -> ::String

**Returns**

- (::String) --- Output only. Contains the full content of the document in Markdown format.

### #content_length_bytes

    def content_length_bytes() -> ::Integer

**Returns**

- (::Integer) --- Output only. The length of the `content` field in bytes.

### #data_source

    def data_source() -> ::String

**Returns**

- (::String) --- Output only. Specifies the data source of the document. Example data source: `firebase.google.com`

### #description

    def description() -> ::String

**Returns**

- (::String) --- Output only. Provides a description of the document.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Identifier. Contains the resource name of the document. Format: `documents/{uri_without_scheme}` Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets`

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. Contains the resource name of the document. Format: `documents/{uri_without_scheme}` Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets`
**Returns**

- (::String) --- Identifier. Contains the resource name of the document. Format: `documents/{uri_without_scheme}` Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets`

### #title

    def title() -> ::String

**Returns**

- (::String) --- Output only. Provides the title of the document.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://developers.google.com/ruby/docs/reference/google-developers-developer_knowledge-v1/latest/Google-Protobuf-Timestamp)) --- Output only. Represents the timestamp when the content or metadata of the document was last updated.

### #uri

    def uri() -> ::String

**Returns**

- (::String) --- Output only. Provides the URI of the content, such as `docs.cloud.google.com/storage/docs/creating-buckets`.

### #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)) --- Output only. 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.