Class: Google::Apis::TranslateV3::ListExamplesResponse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListExamplesResponse

Returns a new instance of ListExamplesResponse.



1053
1054
1055
# File 'lib/google/apis/translate_v3/classes.rb', line 1053

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#examplesArray<Google::Apis::TranslateV3::Example>

The sentence pairs. Corresponds to the JSON property examples



1045
1046
1047
# File 'lib/google/apis/translate_v3/classes.rb', line 1045

def examples
  @examples
end

#next_page_tokenString

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

Returns:

  • (String)


1051
1052
1053
# File 'lib/google/apis/translate_v3/classes.rb', line 1051

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1058
1059
1060
1061
# File 'lib/google/apis/translate_v3/classes.rb', line 1058

def update!(**args)
  @examples = args[:examples] if args.key?(:examples)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end