Class: Google::Cloud::AutoML::V1::TextSnippet

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/automl/v1/data_items.rb

Overview

A representation of a text snippet.

Instance Attribute Summary collapse

Instance Attribute Details

#content::String

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.



52
53
54
55
# File 'proto_docs/google/cloud/automl/v1/data_items.rb', line 52

class TextSnippet
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#content_uri::String

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

Returns:

  • (::String)

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



52
53
54
55
# File 'proto_docs/google/cloud/automl/v1/data_items.rb', line 52

class TextSnippet
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#mime_type::String

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



52
53
54
55
# File 'proto_docs/google/cloud/automl/v1/data_items.rb', line 52

class TextSnippet
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end