# Copyright 2015 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require 'date' require 'google/apis/core/base_service' require 'google/apis/core/json_representation' require 'google/apis/core/hashable' require 'google/apis/errors' module Google module Apis module SpeechV1p1beta1 # Different types of dataset errors and the stats associated with each error. class DataErrors include Google::Apis::Core::Hashable # Number of records having errors associated with the enum. # Corresponds to the JSON property `count` # @return [Fixnum] attr_accessor :count # Type of the error. # Corresponds to the JSON property `errorType` # @return [String] attr_accessor :error_type def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @count = args[:count] if args.key?(:count) @error_type = args[:error_type] if args.key?(:error_type) end end # Contains stats about the data which was uploaded and preprocessed to be # use by downstream pipelines like training, evals pipelines. class DataStats include Google::Apis::Core::Hashable # Different types of data errors and the counts associated with them. # Corresponds to the JSON property `dataErrors` # @return [Array] attr_accessor :data_errors # The number of examples used for testing. # Corresponds to the JSON property `testExampleCount` # @return [Fixnum] attr_accessor :test_example_count # The number of examples used for training. # Corresponds to the JSON property `trainingExampleCount` # @return [Fixnum] attr_accessor :training_example_count def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @data_errors = args[:data_errors] if args.key?(:data_errors) @test_example_count = args[:test_example_count] if args.key?(:test_example_count) @training_example_count = args[:training_example_count] if args.key?(:training_example_count) end end # Specifies the parameters needed for creating a dataset. In addition this # is also the message returned to the client by the `CreateDataset` method. # It is included in the `result.response` field of the `Operation` # returned by the `GetOperation` call of the `google::longrunning::Operations` # service. class Dataset include Google::Apis::Core::Hashable # Output only. All the blocking operations associated with this dataset. # Like (pre-processing, training-model, testing-model) # Corresponds to the JSON property `blockingOperationIds` # @return [Array] attr_accessor :blocking_operation_ids # If set, the log data to be used in this dataset is restricted to the # bucket specified. This field is only applicable if use_logged_data is true. # If use_logged_data is true, but this field is not set, then all logs will # be used for training the models. See: RecognitionMetadata for information # on setting up data logs. # Corresponds to the JSON property `bucketName` # @return [String] attr_accessor :bucket_name # Output only. The timestamp this dataset is created. # Corresponds to the JSON property `createTime` # @return [String] attr_accessor :create_time # Location where the data should be processed. If not specified then we will # pick a location on behalf of the user for storing and processing the data. # Currently only us-central is supported. # Corresponds to the JSON property `dataProcessingRegion` # @return [String] attr_accessor :data_processing_region # Contains stats about the data which was uploaded and preprocessed to be # use by downstream pipelines like training, evals pipelines. # Corresponds to the JSON property `dataStats` # @return [Google::Apis::SpeechV1p1beta1::DataStats] attr_accessor :data_stats # Required. Name of the data set for display. # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name # Output only. True if the data is sufficient to create custom models. # Corresponds to the JSON property `hasSufficientData` # @return [Boolean] attr_accessor :has_sufficient_data alias_method :has_sufficient_data?, :has_sufficient_data # Required. The language of the supplied audio as a # [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. # Example: "en-US". # See [Language Support](/speech-to-text/docs/languages) # for a list of the currently supported language codes. # Corresponds to the JSON property `languageCode` # @return [String] attr_accessor :language_code # All the models (including models pending training) built using the dataset. # Corresponds to the JSON property `models` # @return [Array] attr_accessor :models # Output only. Resource name of the dataset. Form :- # '/projects/`project_number`/locations/`location_id`/datasets/`dataset_id`' # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # Output only. The timestamp this dataset is last updated. # Corresponds to the JSON property `updateTime` # @return [String] attr_accessor :update_time # URI that points to a file in csv file where each row has following format. # ,,