Class: Google::Apis::TranslateV3::ListGlossariesResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListGlossariesResponse

Returns a new instance of ListGlossariesResponse.



636
637
638
# File 'lib/google/apis/translate_v3/classes.rb', line 636

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

Instance Attribute Details

#glossariesArray<Google::Apis::TranslateV3::Glossary>

The list of glossaries for a project. Corresponds to the JSON property glossaries



627
628
629
# File 'lib/google/apis/translate_v3/classes.rb', line 627

def glossaries
  @glossaries
end

#next_page_tokenString

A token to retrieve a page of results. Pass this value in the [ ListGlossariesRequest.page_token] field in the subsequent call to ListGlossaries method to retrieve the next page of results. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


634
635
636
# File 'lib/google/apis/translate_v3/classes.rb', line 634

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



641
642
643
644
# File 'lib/google/apis/translate_v3/classes.rb', line 641

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