Class: Google::Apis::LanguageV1::XpsSpeechModelSpec

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsSpeechModelSpec

Returns a new instance of XpsSpeechModelSpec.



3526
3527
3528
# File 'lib/google/apis/language_v1/classes.rb', line 3526

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

Instance Attribute Details

#dataset_idFixnum

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

Returns:

  • (Fixnum)


3514
3515
3516
# File 'lib/google/apis/language_v1/classes.rb', line 3514

def dataset_id
  @dataset_id
end

#languageString

Corresponds to the JSON property language

Returns:

  • (String)


3519
3520
3521
# File 'lib/google/apis/language_v1/classes.rb', line 3519

def language
  @language
end

#sub_model_specsArray<Google::Apis::LanguageV1::XpsSpeechModelSpecSubModelSpec>

Model specs for all submodels contained in this model. Corresponds to the JSON property subModelSpecs



3524
3525
3526
# File 'lib/google/apis/language_v1/classes.rb', line 3524

def sub_model_specs
  @sub_model_specs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3531
3532
3533
3534
3535
# File 'lib/google/apis/language_v1/classes.rb', line 3531

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