Send feedback
Cloud Translation V3 API - Class Google::Cloud::Translate::V3::Example (v1.5.2)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
Reference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::Example.
A sentence pair.
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#name
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
Returns
(::String) — Output only. Usage of the sentence pair. Options are TRAIN|VALIDATION|TEST.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-09 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud Translation V3 API - Class Google::Cloud::Translate::V3::Example (v1.5.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.5.2 (latest)](/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-V3-Example)\n- [1.5.1](/ruby/docs/reference/google-cloud-translate-v3/1.5.1/Google-Cloud-Translate-V3-Example)\n- [1.4.1](/ruby/docs/reference/google-cloud-translate-v3/1.4.1/Google-Cloud-Translate-V3-Example)\n- [1.3.0](/ruby/docs/reference/google-cloud-translate-v3/1.3.0/Google-Cloud-Translate-V3-Example)\n- [1.2.0](/ruby/docs/reference/google-cloud-translate-v3/1.2.0/Google-Cloud-Translate-V3-Example)\n- [1.1.1](/ruby/docs/reference/google-cloud-translate-v3/1.1.1/Google-Cloud-Translate-V3-Example)\n- [1.0.0](/ruby/docs/reference/google-cloud-translate-v3/1.0.0/Google-Cloud-Translate-V3-Example)\n- [0.12.0](/ruby/docs/reference/google-cloud-translate-v3/0.12.0/Google-Cloud-Translate-V3-Example)\n- [0.11.2](/ruby/docs/reference/google-cloud-translate-v3/0.11.2/Google-Cloud-Translate-V3-Example)\n- [0.10.0](/ruby/docs/reference/google-cloud-translate-v3/0.10.0/Google-Cloud-Translate-V3-Example)\n- [0.9.0](/ruby/docs/reference/google-cloud-translate-v3/0.9.0/Google-Cloud-Translate-V3-Example)\n- [0.8.0](/ruby/docs/reference/google-cloud-translate-v3/0.8.0/Google-Cloud-Translate-V3-Example)\n- [0.7.3](/ruby/docs/reference/google-cloud-translate-v3/0.7.3/Google-Cloud-Translate-V3-Example)\n- [0.6.0](/ruby/docs/reference/google-cloud-translate-v3/0.6.0/Google-Cloud-Translate-V3-Example)\n- [0.5.2](/ruby/docs/reference/google-cloud-translate-v3/0.5.2/Google-Cloud-Translate-V3-Example)\n- [0.4.2](/ruby/docs/reference/google-cloud-translate-v3/0.4.2/Google-Cloud-Translate-V3-Example) \nReference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::Example.\n\nA sentence pair. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::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}`\n\n### #source_text\n\n def source_text() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Sentence in source language.\n\n### #source_text=\n\n def source_text=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Sentence in source language. \n**Returns**\n\n- (::String) --- Sentence in source language.\n\n### #target_text\n\n def target_text() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Sentence in target language.\n\n### #target_text=\n\n def target_text=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Sentence in target language. \n**Returns**\n\n- (::String) --- Sentence in target language.\n\n### #usage\n\n def usage() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Output only. Usage of the sentence pair. Options are TRAIN\\|VALIDATION\\|TEST."]]