Class: Google::Apis::TranslateV3::ListDatasetsResponse
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3::ListDatasetsResponse
- 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
-
#datasets ⇒ Array<Google::Apis::TranslateV3::Dataset>
The datasets read.
-
#next_page_token ⇒ String
A token to retrieve next page of results.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ListDatasetsResponse
constructor
A new instance of ListDatasetsResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ListDatasetsResponse
Returns a new instance of ListDatasetsResponse.
1027 1028 1029 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1027 def initialize(**args) update!(**args) end |
Instance Attribute Details
#datasets ⇒ Array<Google::Apis::TranslateV3::Dataset>
The datasets read.
Corresponds to the JSON property datasets
1019 1020 1021 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1019 def datasets @datasets end |
#next_page_token ⇒ String
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
1025 1026 1027 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1025 def next_page_token @next_page_token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1032 1033 1034 1035 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1032 def update!(**args) @datasets = args[:datasets] if args.key?(:datasets) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end |