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

1.10.0 (latest) 1.9.0 1.8.0 1.7.1 1.6.0 1.5.2 1.4.1 1.3.0 1.2.0 1.1.1 1.0.0 0.12.0 0.11.2 0.10.0 0.9.0 0.8.0 0.7.3 0.6.0 0.5.2 0.4.2 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.