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.



298
299
300
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 298

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

Instance Attribute Details

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

The custom classes. Corresponds to the JSON property customClasses



290
291
292
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 290

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)


296
297
298
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 296

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



303
304
305
306
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 303

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