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.



1387
1388
1389
# File 'lib/google/apis/translate_v3/classes.rb', line 1387

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



1380
1381
1382
# File 'lib/google/apis/translate_v3/classes.rb', line 1380

def adaptive_mt_sentences
  @adaptive_mt_sentences
end

#next_page_tokenString

Optional. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


1385
1386
1387
# File 'lib/google/apis/translate_v3/classes.rb', line 1385

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1392
1393
1394
1395
# File 'lib/google/apis/translate_v3/classes.rb', line 1392

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