Class: Google::Apis::TranslateV3::ListExamplesResponse
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3::ListExamplesResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/translate_v3/classes.rb,
lib/google/apis/translate_v3/representations.rb,
lib/google/apis/translate_v3/representations.rb
Overview
Response message for ListExamples.
Instance Attribute Summary collapse
-
#examples ⇒ Array<Google::Apis::TranslateV3::Example>
The sentence pairs.
-
#next_page_token ⇒ String
A token to retrieve next page of results.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ListExamplesResponse
constructor
A new instance of ListExamplesResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ListExamplesResponse
Returns a new instance of ListExamplesResponse.
1458 1459 1460 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1458 def initialize(**args) update!(**args) end |
Instance Attribute Details
#examples ⇒ Array<Google::Apis::TranslateV3::Example>
The sentence pairs.
Corresponds to the JSON property examples
1450 1451 1452 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1450 def examples @examples end |
#next_page_token ⇒ String
A token to retrieve next page of results. Pass this token to the page_token
field in the ListExamplesRequest to obtain the corresponding page.
Corresponds to the JSON property nextPageToken
1456 1457 1458 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1456 def next_page_token @next_page_token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1463 1464 1465 1466 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1463 def update!(**args) @examples = args[:examples] if args.key?(:examples) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end |