Class: Google::Cloud::AutoML::V1beta1::TextSnippet

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/data_items.rb

Overview

A representation of a text snippet.

Instance Attribute Summary collapse

Instance Attribute Details

#contentString

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



48
# File 'lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/data_items.rb', line 48

class TextSnippet; end

#content_uriString

Returns Output only. HTTP URI where you can download the content.

Returns:

  • (String)

    Output only. HTTP URI where you can download the content.



48
# File 'lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/data_items.rb', line 48

class TextSnippet; end

#mime_typeString

Returns The format of the source text. 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)

    The format of the source text. 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.



48
# File 'lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/data_items.rb', line 48

class TextSnippet; end