Class: Google::Apis::TranslateV3::ListAdaptiveMtSentencesResponse

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

List AdaptiveMt sentences response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListAdaptiveMtSentencesResponse

Returns a new instance of ListAdaptiveMtSentencesResponse.



1406
1407
1408
# File 'lib/google/apis/translate_v3/classes.rb', line 1406

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

Instance Attribute Details

#adaptive_mt_sentencesArray<Google::Apis::TranslateV3::AdaptiveMtSentence>

Output only. The list of AdaptiveMtSentences. Corresponds to the JSON property adaptiveMtSentences



1399
1400
1401
# File 'lib/google/apis/translate_v3/classes.rb', line 1399

def adaptive_mt_sentences
  @adaptive_mt_sentences
end

#next_page_tokenString

Optional. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


1404
1405
1406
# File 'lib/google/apis/translate_v3/classes.rb', line 1404

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1411
1412
1413
1414
# File 'lib/google/apis/translate_v3/classes.rb', line 1411

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