Class: Google::Cloud::Translate::V3::Example

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/translate/v3/automl_translation.rb

Overview

A sentence pair.

Instance Attribute Summary collapse

Instance Attribute Details

#name::String (readonly)

Returns Output only. The resource name of the example, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}/examples/{example_id}.

Returns:

  • (::String)

    Output only. The resource name of the example, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}/examples/{example_id}



268
269
270
271
# File 'proto_docs/google/cloud/translate/v3/automl_translation.rb', line 268

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

#source_text::String

Returns Sentence in source language.

Returns:

  • (::String)

    Sentence in source language.



268
269
270
271
# File 'proto_docs/google/cloud/translate/v3/automl_translation.rb', line 268

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

#target_text::String

Returns Sentence in target language.

Returns:

  • (::String)

    Sentence in target language.



268
269
270
271
# File 'proto_docs/google/cloud/translate/v3/automl_translation.rb', line 268

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

#usage::String (readonly)

Returns Output only. Usage of the sentence pair. Options are TRAIN|VALIDATION|TEST.

Returns:

  • (::String)

    Output only. Usage of the sentence pair. Options are TRAIN|VALIDATION|TEST.



268
269
270
271
# File 'proto_docs/google/cloud/translate/v3/automl_translation.rb', line 268

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