Cloud Translation V3 API - Class Google::Cloud::Translate::V3::Example (v1.3.0)

Reference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::Example.

A sentence pair.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#name

def name() -> ::String
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}

#source_text

def source_text() -> ::String
Returns
  • (::String) — Sentence in source language.

#source_text=

def source_text=(value) -> ::String
Parameter
  • value (::String) — Sentence in source language.
Returns
  • (::String) — Sentence in source language.

#target_text

def target_text() -> ::String
Returns
  • (::String) — Sentence in target language.

#target_text=

def target_text=(value) -> ::String
Parameter
  • value (::String) — Sentence in target language.
Returns
  • (::String) — Sentence in target language.

#usage

def usage() -> ::String
Returns
  • (::String) — Output only. Usage of the sentence pair. Options are TRAIN|VALIDATION|TEST.