Class: Google::Apis::LanguageV1beta2::XpsSpeechModelSpec
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1beta2::XpsSpeechModelSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v1beta2/classes.rb,
lib/google/apis/language_v1beta2/representations.rb,
lib/google/apis/language_v1beta2/representations.rb
Instance Attribute Summary collapse
-
#dataset_id ⇒ Fixnum
Required for speech xps backend.
-
#language ⇒ String
Corresponds to the JSON property
language
. -
#sub_model_specs ⇒ Array<Google::Apis::LanguageV1beta2::XpsSpeechModelSpecSubModelSpec>
Model specs for all submodels contained in this model.
Instance Method Summary collapse
-
#initialize(**args) ⇒ XpsSpeechModelSpec
constructor
A new instance of XpsSpeechModelSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XpsSpeechModelSpec
Returns a new instance of XpsSpeechModelSpec.
3546 3547 3548 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3546 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dataset_id ⇒ Fixnum
Required for speech xps backend. Speech xps has to use dataset_id and model_id
as the primary key in db so that speech API can query the db directly.
Corresponds to the JSON property datasetId
3534 3535 3536 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3534 def dataset_id @dataset_id end |
#language ⇒ String
Corresponds to the JSON property language
3539 3540 3541 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3539 def language @language end |
#sub_model_specs ⇒ Array<Google::Apis::LanguageV1beta2::XpsSpeechModelSpecSubModelSpec>
Model specs for all submodels contained in this model.
Corresponds to the JSON property subModelSpecs
3544 3545 3546 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3544 def sub_model_specs @sub_model_specs end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3551 3552 3553 3554 3555 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3551 def update!(**args) @dataset_id = args[:dataset_id] if args.key?(:dataset_id) @language = args[:language] if args.key?(:language) @sub_model_specs = args[:sub_model_specs] if args.key?(:sub_model_specs) end |