Class: Google::Apis::TranslateV3::ListDatasetsResponse

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 ListDatasets.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListDatasetsResponse

Returns a new instance of ListDatasetsResponse.



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

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

Instance Attribute Details

#datasetsArray<Google::Apis::TranslateV3::Dataset>

The datasets read. Corresponds to the JSON property datasets



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

def datasets
  @datasets
end

#next_page_tokenString

A token to retrieve next page of results. Pass this token to the page_token field in the ListDatasetsRequest to obtain the corresponding page. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


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

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1418
1419
1420
1421
# File 'lib/google/apis/translate_v3/classes.rb', line 1418

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