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.



1461
1462
1463
# File 'lib/google/apis/translate_v3/classes.rb', line 1461

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



1454
1455
1456
# File 'lib/google/apis/translate_v3/classes.rb', line 1454

def adaptive_mt_sentences
  @adaptive_mt_sentences
end

#next_page_tokenString

Optional. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


1459
1460
1461
# File 'lib/google/apis/translate_v3/classes.rb', line 1459

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1466
1467
1468
1469
# File 'lib/google/apis/translate_v3/classes.rb', line 1466

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