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

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

#mime_type=

def mime_type=(value) -> ::String
Parameter
  • value (::String) — Optional. The format of content. 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.
Returns
  • (::String) — Optional. The format of content. 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.