# Cloud AutoML V1beta1 API - Class Google::Cloud::AutoML::V1beta1::TextSnippet (v0.19.0)

0.19.0 (latest) 0.18.0 0.17.0 0.16.1 0.15.0 0.14.1 0.13.1 0.12.0 0.11.1 0.10.2 0.9.0 0.8.0 0.7.0 0.6.1 0.5.5 Reference documentation and code samples for the Cloud AutoML V1beta1 API class Google::Cloud::AutoML::V1beta1::TextSnippet.

A representation of a text snippet.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #content

    def content() -> ::String

**Returns**

- (::String) --- Required. The content of the text snippet as a string. Up to 250000 characters long.

### #content=

    def content=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The content of the text snippet as a string. Up to 250000 characters long.
**Returns**

- (::String) --- Required. The content of the text snippet as a string. Up to 250000 characters long.

### #content_uri

    def content_uri() -> ::String

**Returns**

- (::String) --- Output only. HTTP URI where you can download the content.

### #content_uri=

    def content_uri=(value) -> ::String

**Parameter**

- **value** (::String) --- Output only. HTTP URI where you can download the content.
**Returns**

- (::String) --- Output only. HTTP URI where you can download the content.

### #mime_type

    def mime_type() -> ::String

**Returns**

- (::String) --- Optional. The format of [content](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1beta1/latest/Google-Cloud-AutoML-V1beta1-TextSnippet#Google__Cloud__AutoML__V1beta1__TextSnippet_content_instance_ "Google::Cloud::AutoML::V1beta1::TextSnippet#content (method)"). Currently the only two allowed values are "text/html" and "text/plain". If left blank, the format is automatically determined from the type of the uploaded [content](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1beta1/latest/Google-Cloud-AutoML-V1beta1-TextSnippet#Google__Cloud__AutoML__V1beta1__TextSnippet_content_instance_ "Google::Cloud::AutoML::V1beta1::TextSnippet#content (method)").

### #mime_type=

    def mime_type=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The format of [content](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1beta1/latest/Google-Cloud-AutoML-V1beta1-TextSnippet#Google__Cloud__AutoML__V1beta1__TextSnippet_content_instance_ "Google::Cloud::AutoML::V1beta1::TextSnippet#content (method)"). Currently the only two allowed values are "text/html" and "text/plain". If left blank, the format is automatically determined from the type of the uploaded [content](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1beta1/latest/Google-Cloud-AutoML-V1beta1-TextSnippet#Google__Cloud__AutoML__V1beta1__TextSnippet_content_instance_ "Google::Cloud::AutoML::V1beta1::TextSnippet#content (method)").
**Returns**

- (::String) --- Optional. The format of [content](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1beta1/latest/Google-Cloud-AutoML-V1beta1-TextSnippet#Google__Cloud__AutoML__V1beta1__TextSnippet_content_instance_ "Google::Cloud::AutoML::V1beta1::TextSnippet#content (method)"). Currently the only two allowed values are "text/html" and "text/plain". If left blank, the format is automatically determined from the type of the uploaded [content](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1beta1/latest/Google-Cloud-AutoML-V1beta1-TextSnippet#Google__Cloud__AutoML__V1beta1__TextSnippet_content_instance_ "Google::Cloud::AutoML::V1beta1::TextSnippet#content (method)").