# Developer Knowledge V1 API - Class Google::Developers::DeveloperKnowledge::V1::Document (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::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

```ruby
def content() -> ::String
```
**Returns**

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

### #content_length_bytes

```ruby
def content_length_bytes() -> ::Integer
```
**Returns**

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

### #data_source

```ruby
def data_source() -> ::String
```
**Returns**

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

### #description

```ruby
def description() -> ::String
```
**Returns**

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

### #name

```ruby
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=

```ruby
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

```ruby
def title() -> ::String
```
**Returns**

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

### #update_time

```ruby
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.md.txt)) --- Output only. Represents the timestamp when the content or metadata of the document was last updated.

### #uri

```ruby
def uri() -> ::String
```
**Returns**

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

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