Class: Google::Apis::SpeechV1p1beta1::ListCustomClassesResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/speech_v1p1beta1/classes.rb,
lib/google/apis/speech_v1p1beta1/representations.rb,
lib/google/apis/speech_v1p1beta1/representations.rb

Overview

Message returned to the client by the ListCustomClasses method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListCustomClassesResponse

Returns a new instance of ListCustomClassesResponse.



239
240
241
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 239

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

Instance Attribute Details

#custom_classesArray<Google::Apis::SpeechV1p1beta1::CustomClass>

The custom classes. Corresponds to the JSON property customClasses



231
232
233
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 231

def custom_classes
  @custom_classes
end

#next_page_tokenString

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


237
238
239
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 237

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



244
245
246
247
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 244

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