Autogenerated update (2018-12-01)

Update:
- cloudfunctions_v1beta2
- container_v1beta1
- speech_v1
- speech_v1p1beta1
This commit is contained in:
Google APIs 2018-12-01 00:36:27 +00:00
parent 54d1b4778b
commit 10b80cfffc
14 changed files with 311 additions and 908 deletions

View File

@ -36961,6 +36961,7 @@
"/container:v1beta1/Cluster/statusMessage": status_message
"/container:v1beta1/Cluster/subnetwork": subnetwork
"/container:v1beta1/Cluster/tpuIpv4CidrBlock": tpu_ipv4_cidr_block
"/container:v1beta1/Cluster/verticalPodAutoscaling": vertical_pod_autoscaling
"/container:v1beta1/Cluster/zone": zone
"/container:v1beta1/ClusterAutoscaling": cluster_autoscaling
"/container:v1beta1/ClusterAutoscaling/enableNodeAutoprovisioning": enable_node_autoprovisioning
@ -36981,6 +36982,7 @@
"/container:v1beta1/ClusterUpdate/desiredNodePoolId": desired_node_pool_id
"/container:v1beta1/ClusterUpdate/desiredNodeVersion": desired_node_version
"/container:v1beta1/ClusterUpdate/desiredPodSecurityPolicyConfig": desired_pod_security_policy_config
"/container:v1beta1/ClusterUpdate/desiredVerticalPodAutoscaling": desired_vertical_pod_autoscaling
"/container:v1beta1/CompleteIPRotationRequest": complete_ip_rotation_request
"/container:v1beta1/CompleteIPRotationRequest/clusterId": cluster_id
"/container:v1beta1/CompleteIPRotationRequest/name": name
@ -37316,6 +37318,8 @@
"/container:v1beta1/UsableSubnetworkSecondaryRange/ipCidrRange": ip_cidr_range
"/container:v1beta1/UsableSubnetworkSecondaryRange/rangeName": range_name
"/container:v1beta1/UsableSubnetworkSecondaryRange/status": status
"/container:v1beta1/VerticalPodAutoscaling": vertical_pod_autoscaling
"/container:v1beta1/VerticalPodAutoscaling/enabled": enabled
"/container:v1beta1/WorkloadMetadataConfig": workload_metadata_config
"/container:v1beta1/WorkloadMetadataConfig/nodeMetadata": node_metadata
"/container:v1beta1/container.projects.aggregated.usableSubnetworks.list": list_project_aggregated_usable_subnetworks
@ -85372,9 +85376,16 @@
"/speech:v1/ListOperationsResponse/nextPageToken": next_page_token
"/speech:v1/ListOperationsResponse/operations": operations
"/speech:v1/ListOperationsResponse/operations/operation": operation
"/speech:v1/LongRunningRecognizeMetadata": long_running_recognize_metadata
"/speech:v1/LongRunningRecognizeMetadata/lastUpdateTime": last_update_time
"/speech:v1/LongRunningRecognizeMetadata/progressPercent": progress_percent
"/speech:v1/LongRunningRecognizeMetadata/startTime": start_time
"/speech:v1/LongRunningRecognizeRequest": long_running_recognize_request
"/speech:v1/LongRunningRecognizeRequest/audio": audio
"/speech:v1/LongRunningRecognizeRequest/config": config
"/speech:v1/LongRunningRecognizeResponse": long_running_recognize_response
"/speech:v1/LongRunningRecognizeResponse/results": results
"/speech:v1/LongRunningRecognizeResponse/results/result": result
"/speech:v1/Operation": operation
"/speech:v1/Operation/done": done
"/speech:v1/Operation/error": error
@ -85552,12 +85563,23 @@
"/speech:v1p1beta1/ListModelsResponse/models": models
"/speech:v1p1beta1/ListModelsResponse/models/model": model
"/speech:v1p1beta1/ListModelsResponse/nextPageToken": next_page_token
"/speech:v1p1beta1/ListOperationsResponse": list_operations_response
"/speech:v1p1beta1/ListOperationsResponse/nextPageToken": next_page_token
"/speech:v1p1beta1/ListOperationsResponse/operations": operations
"/speech:v1p1beta1/ListOperationsResponse/operations/operation": operation
"/speech:v1p1beta1/LogBucketStats": log_bucket_stats
"/speech:v1p1beta1/LogBucketStats/bucketName": bucket_name
"/speech:v1p1beta1/LogBucketStats/count": count
"/speech:v1p1beta1/LongRunningRecognizeMetadata": long_running_recognize_metadata
"/speech:v1p1beta1/LongRunningRecognizeMetadata/lastUpdateTime": last_update_time
"/speech:v1p1beta1/LongRunningRecognizeMetadata/progressPercent": progress_percent
"/speech:v1p1beta1/LongRunningRecognizeMetadata/startTime": start_time
"/speech:v1p1beta1/LongRunningRecognizeRequest": long_running_recognize_request
"/speech:v1p1beta1/LongRunningRecognizeRequest/audio": audio
"/speech:v1p1beta1/LongRunningRecognizeRequest/config": config
"/speech:v1p1beta1/LongRunningRecognizeResponse": long_running_recognize_response
"/speech:v1p1beta1/LongRunningRecognizeResponse/results": results
"/speech:v1p1beta1/LongRunningRecognizeResponse/results/result": result
"/speech:v1p1beta1/Model": model
"/speech:v1p1beta1/Model/createTime": create_time
"/speech:v1p1beta1/Model/displayName": display_name
@ -85580,6 +85602,7 @@
"/speech:v1p1beta1/RecognitionConfig/alternativeLanguageCodes": alternative_language_codes
"/speech:v1p1beta1/RecognitionConfig/alternativeLanguageCodes/alternative_language_code": alternative_language_code
"/speech:v1p1beta1/RecognitionConfig/audioChannelCount": audio_channel_count
"/speech:v1p1beta1/RecognitionConfig/diarizationConfig": diarization_config
"/speech:v1p1beta1/RecognitionConfig/diarizationSpeakerCount": diarization_speaker_count
"/speech:v1p1beta1/RecognitionConfig/enableAutomaticPunctuation": enable_automatic_punctuation
"/speech:v1p1beta1/RecognitionConfig/enableSeparateRecognitionPerChannel": enable_separate_recognition_per_channel
@ -85616,6 +85639,10 @@
"/speech:v1p1beta1/RecognizeResponse/results/result": result
"/speech:v1p1beta1/RefreshDataRequest": refresh_data_request
"/speech:v1p1beta1/RefreshDataRequest/uri": uri
"/speech:v1p1beta1/SpeakerDiarizationConfig": speaker_diarization_config
"/speech:v1p1beta1/SpeakerDiarizationConfig/enableSpeakerDiarization": enable_speaker_diarization
"/speech:v1p1beta1/SpeakerDiarizationConfig/maxSpeakerCount": max_speaker_count
"/speech:v1p1beta1/SpeakerDiarizationConfig/minSpeakerCount": min_speaker_count
"/speech:v1p1beta1/SpeechContext": speech_context
"/speech:v1p1beta1/SpeechContext/phrases": phrases
"/speech:v1p1beta1/SpeechContext/phrases/phrase": phrase
@ -85647,6 +85674,11 @@
"/speech:v1p1beta1/quotaUser": quota_user
"/speech:v1p1beta1/speech.operations.get": get_operation
"/speech:v1p1beta1/speech.operations.get/name": name
"/speech:v1p1beta1/speech.operations.list": list_operations
"/speech:v1p1beta1/speech.operations.list/filter": filter
"/speech:v1p1beta1/speech.operations.list/name": name
"/speech:v1p1beta1/speech.operations.list/pageSize": page_size
"/speech:v1p1beta1/speech.operations.list/pageToken": page_token
"/speech:v1p1beta1/speech.projects.locations.datasets.create": create_project_location_dataset
"/speech:v1p1beta1/speech.projects.locations.datasets.create/parent": parent
"/speech:v1p1beta1/speech.projects.locations.datasets.get": get_project_location_dataset

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/functions
module CloudfunctionsV1beta2
VERSION = 'V1beta2'
REVISION = '20181010'
REVISION = '20181121'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -95,7 +95,6 @@ module Google
# @return [String]
attr_accessor :entry_point
# **Beta Feature**
# Environment variables that shall be available during function execution.
# Corresponds to the JSON property `environmentVariables`
# @return [Hash<String,String>]
@ -683,7 +682,7 @@ module Google
attr_accessor :update_time
# Version id of the function created or updated by an API call.
# This field is only pupulated for Create and Update operations.
# This field is only populated for Create and Update operations.
# Corresponds to the JSON property `versionId`
# @return [Fixnum]
attr_accessor :version_id
@ -728,7 +727,7 @@ module Google
attr_accessor :update_time
# Version id of the function created or updated by an API call.
# This field is only pupulated for Create and Update operations.
# This field is only populated for Create and Update operations.
# Corresponds to the JSON property `versionId`
# @return [Fixnum]
attr_accessor :version_id

View File

@ -20,13 +20,13 @@ module Google
module Apis
# Kubernetes Engine API
#
# The Google Kubernetes Engine API is used for building and managing container
# based applications, powered by the open source Kubernetes technology.
# Builds and manages container-based applications, powered by the open source
# Kubernetes technology.
#
# @see https://cloud.google.com/container-engine/
module ContainerV1beta1
VERSION = 'V1beta1'
REVISION = '20180917'
REVISION = '20181109'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -276,7 +276,8 @@ module Google
# @return [String]
attr_accessor :current_master_version
# [Output only] The number of nodes currently in the cluster.
# [Output only] The number of nodes currently in the cluster. Deprecated.
# Call Kubernetes API directly to retrieve node information.
# Corresponds to the JSON property `currentNodeCount`
# @return [Fixnum]
attr_accessor :current_node_count
@ -390,7 +391,7 @@ module Google
attr_accessor :location
# The list of Google Compute Engine
# [locations](/compute/docs/zones#available) in which the cluster's nodes
# [zones](/compute/docs/zones#available) in which the cluster's nodes
# should be located.
# Corresponds to the JSON property `locations`
# @return [Array<String>]
@ -557,6 +558,13 @@ module Google
# @return [String]
attr_accessor :tpu_ipv4_cidr_block
# VerticalPodAutoscaling contains global, per-cluster information
# required by Vertical Pod Autoscaler to automatically adjust
# the resources of pods controlled by it.
# Corresponds to the JSON property `verticalPodAutoscaling`
# @return [Google::Apis::ContainerV1beta1::VerticalPodAutoscaling]
attr_accessor :vertical_pod_autoscaling
# [Output only] The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
@ -617,6 +625,7 @@ module Google
@status_message = args[:status_message] if args.key?(:status_message)
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
@tpu_ipv4_cidr_block = args[:tpu_ipv4_cidr_block] if args.key?(:tpu_ipv4_cidr_block)
@vertical_pod_autoscaling = args[:vertical_pod_autoscaling] if args.key?(:vertical_pod_autoscaling)
@zone = args[:zone] if args.key?(:zone)
end
end
@ -683,7 +692,7 @@ module Google
attr_accessor :desired_image_type
# The desired list of Google Compute Engine
# [locations](/compute/docs/zones#available) in which the cluster's nodes
# [zones](/compute/docs/zones#available) in which the cluster's nodes
# should be located. Changing the locations a cluster is in will result
# in nodes being either created or removed from the cluster, depending on
# whether locations are being added or removed.
@ -765,6 +774,13 @@ module Google
# @return [Google::Apis::ContainerV1beta1::PodSecurityPolicyConfig]
attr_accessor :desired_pod_security_policy_config
# VerticalPodAutoscaling contains global, per-cluster information
# required by Vertical Pod Autoscaler to automatically adjust
# the resources of pods controlled by it.
# Corresponds to the JSON property `desiredVerticalPodAutoscaling`
# @return [Google::Apis::ContainerV1beta1::VerticalPodAutoscaling]
attr_accessor :desired_vertical_pod_autoscaling
def initialize(**args)
update!(**args)
end
@ -784,6 +800,7 @@ module Google
@desired_node_pool_id = args[:desired_node_pool_id] if args.key?(:desired_node_pool_id)
@desired_node_version = args[:desired_node_version] if args.key?(:desired_node_version)
@desired_pod_security_policy_config = args[:desired_pod_security_policy_config] if args.key?(:desired_pod_security_policy_config)
@desired_vertical_pod_autoscaling = args[:desired_vertical_pod_autoscaling] if args.key?(:desired_vertical_pod_autoscaling)
end
end
@ -1466,8 +1483,8 @@ module Google
attr_accessor :password
# The username to use for HTTP basic authentication to the master endpoint.
# For clusters v1.6.0 and later, you can disable basic authentication by
# providing an empty username.
# For clusters v1.6.0 and later, basic authentication can be disabled by
# leaving username unspecified (or setting it to the empty string).
# Corresponds to the JSON property `username`
# @return [String]
attr_accessor :username
@ -2559,7 +2576,7 @@ module Google
attr_accessor :cluster_id
# The desired list of Google Compute Engine
# [locations](/compute/docs/zones#available) in which the cluster's nodes
# [zones](/compute/docs/zones#available) in which the cluster's nodes
# should be located. Changing the locations a cluster is in will result
# in nodes being either created or removed from the cluster, depending on
# whether locations are being added or removed.
@ -3384,6 +3401,28 @@ module Google
end
end
# VerticalPodAutoscaling contains global, per-cluster information
# required by Vertical Pod Autoscaler to automatically adjust
# the resources of pods controlled by it.
class VerticalPodAutoscaling
include Google::Apis::Core::Hashable
# Enables vertical pod autoscaling.
# Corresponds to the JSON property `enabled`
# @return [Boolean]
attr_accessor :enabled
alias_method :enabled?, :enabled
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@enabled = args[:enabled] if args.key?(:enabled)
end
end
# WorkloadMetadataConfig defines the metadata configuration to expose to
# workloads on the node pool.
class WorkloadMetadataConfig

View File

@ -418,6 +418,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class VerticalPodAutoscaling
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WorkloadMetadataConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -551,6 +557,8 @@ module Google
property :status_message, as: 'statusMessage'
property :subnetwork, as: 'subnetwork'
property :tpu_ipv4_cidr_block, as: 'tpuIpv4CidrBlock'
property :vertical_pod_autoscaling, as: 'verticalPodAutoscaling', class: Google::Apis::ContainerV1beta1::VerticalPodAutoscaling, decorator: Google::Apis::ContainerV1beta1::VerticalPodAutoscaling::Representation
property :zone, as: 'zone'
end
end
@ -586,6 +594,8 @@ module Google
property :desired_node_version, as: 'desiredNodeVersion'
property :desired_pod_security_policy_config, as: 'desiredPodSecurityPolicyConfig', class: Google::Apis::ContainerV1beta1::PodSecurityPolicyConfig, decorator: Google::Apis::ContainerV1beta1::PodSecurityPolicyConfig::Representation
property :desired_vertical_pod_autoscaling, as: 'desiredVerticalPodAutoscaling', class: Google::Apis::ContainerV1beta1::VerticalPodAutoscaling, decorator: Google::Apis::ContainerV1beta1::VerticalPodAutoscaling::Representation
end
end
@ -1193,6 +1203,13 @@ module Google
end
end
class VerticalPodAutoscaling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enabled, as: 'enabled'
end
end
class WorkloadMetadataConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -22,8 +22,8 @@ module Google
module ContainerV1beta1
# Kubernetes Engine API
#
# The Google Kubernetes Engine API is used for building and managing container
# based applications, powered by the open source Kubernetes technology.
# Builds and manages container-based applications, powered by the open source
# Kubernetes technology.
#
# @example
# require 'google/apis/container_v1beta1'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol
module SpeechV1
VERSION = 'V1'
REVISION = '20180914'
REVISION = '20181127'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -47,6 +47,40 @@ module Google
end
end
# Describes the progress of a long-running `LongRunningRecognize` call. It is
# included in the `metadata` field of the `Operation` returned by the
# `GetOperation` call of the `google::longrunning::Operations` service.
class LongRunningRecognizeMetadata
include Google::Apis::Core::Hashable
# Time of the most recent processing update.
# Corresponds to the JSON property `lastUpdateTime`
# @return [String]
attr_accessor :last_update_time
# Approximate percentage of audio processed thus far. Guaranteed to be 100
# when the audio is fully processed and the results are available.
# Corresponds to the JSON property `progressPercent`
# @return [Fixnum]
attr_accessor :progress_percent
# Time when the request was received.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@last_update_time = args[:last_update_time] if args.key?(:last_update_time)
@progress_percent = args[:progress_percent] if args.key?(:progress_percent)
@start_time = args[:start_time] if args.key?(:start_time)
end
end
# The top-level message sent by the client for the `LongRunningRecognize`
# method.
class LongRunningRecognizeRequest
@ -77,6 +111,30 @@ module Google
end
end
# The only message returned to the client by the `LongRunningRecognize` method.
# It contains the result as zero or more sequential `SpeechRecognitionResult`
# messages. It is included in the `result.response` field of the `Operation`
# returned by the `GetOperation` call of the `google::longrunning::Operations`
# service.
class LongRunningRecognizeResponse
include Google::Apis::Core::Hashable
# Output only. Sequential list of transcription results corresponding to
# sequential portions of audio.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::SpeechV1::SpeechRecognitionResult>]
attr_accessor :results
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@results = args[:results] if args.key?(:results)
end
end
# This resource represents a long-running operation that is the result of a
# network API call.
class Operation
@ -586,15 +644,6 @@ module Google
# @return [String]
attr_accessor :end_time
# Output only. A distinct integer value is assigned for every speaker within
# the audio. This field specifies which one of those speakers was detected to
# have spoken this word. Value ranges from '1' to diarization_speaker_count.
# speaker_tag is set if enable_speaker_diarization = 'true' and only in the
# top alternative.
# Corresponds to the JSON property `speakerTag`
# @return [Fixnum]
attr_accessor :speaker_tag
# Output only. Time offset relative to the beginning of the audio,
# and corresponding to the start of the spoken word.
# This field is only set if `enable_word_time_offsets=true` and only
@ -617,7 +666,6 @@ module Google
# Update properties of this object
def update!(**args)
@end_time = args[:end_time] if args.key?(:end_time)
@speaker_tag = args[:speaker_tag] if args.key?(:speaker_tag)
@start_time = args[:start_time] if args.key?(:start_time)
@word = args[:word] if args.key?(:word)
end

View File

@ -28,12 +28,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class LongRunningRecognizeMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LongRunningRecognizeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LongRunningRecognizeResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -103,6 +115,15 @@ module Google
end
end
class LongRunningRecognizeMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :last_update_time, as: 'lastUpdateTime'
property :progress_percent, as: 'progressPercent'
property :start_time, as: 'startTime'
end
end
class LongRunningRecognizeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -113,6 +134,14 @@ module Google
end
end
class LongRunningRecognizeResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :results, as: 'results', class: Google::Apis::SpeechV1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1::SpeechRecognitionResult::Representation
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -206,7 +235,6 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_time, as: 'endTime'
property :speaker_tag, as: 'speakerTag'
property :start_time, as: 'startTime'
property :word, as: 'word'
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol
module SpeechV1p1beta1
VERSION = 'V1p1beta1'
REVISION = '20181107'
REVISION = '20181127'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,362 +22,52 @@ module Google
module Apis
module SpeechV1p1beta1
# Different types of dataset errors and the stats associated with each error.
class DataErrors
# The response message for Operations.ListOperations.
class ListOperationsResponse
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<Google::Apis::SpeechV1p1beta1::DataErrors>]
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<String>]
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<Google::Apis::SpeechV1p1beta1::Model>]
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.
# <gs_path_to_audio>,<gs_path_to_transcript>,<label>
# label can be HUMAN_TRANSCRIBED or MACHINE_TRANSCRIBED. To be valid, rows
# must do the following:
# 1. Each row must have at least a label and <gs_path_to_transcript>
# 2. If a row is marked HUMAN_TRANSCRIBED, then you must specify both
# <gs_path_to_audio> and <gs_path_to_transcript>. Only WAV file formats
# which encode linear 16-bit pulse-code modulation (PCM) audio format are
# supported. The maximum audio file size is 50 MB. Also note that the audio
# has to be single channel audio.
# 3. There has to be at least 500 rows labelled HUMAN_TRANSCRIBED covering
# at least ~10K words in order to get reliable word error rate results.
# 4. To create a language model, you should provide at least 100,000 words
# in your transcriptions as training data if you have conversational and
# captions type of data. You should provide at least 10,000 words if you
# have short utterances like voice commands and search type of use cases.
# Currently, only Google Cloud Storage URIs are
# supported, which must be specified in the following format:
# `gs://bucket_name/object_name` (other URI formats will be ignored).
# For more information, see
# [Request URIs](/storage/docs/reference-uris).
# Corresponds to the JSON property `uri`
# @return [String]
attr_accessor :uri
# If this is true, then use the previously logged data (for the project)
# The logs data for this project will be preprocessed and prepared for
# downstream pipelines (like training)
# Corresponds to the JSON property `useLoggedData`
# @return [Boolean]
attr_accessor :use_logged_data
alias_method :use_logged_data?, :use_logged_data
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@blocking_operation_ids = args[:blocking_operation_ids] if args.key?(:blocking_operation_ids)
@bucket_name = args[:bucket_name] if args.key?(:bucket_name)
@create_time = args[:create_time] if args.key?(:create_time)
@data_processing_region = args[:data_processing_region] if args.key?(:data_processing_region)
@data_stats = args[:data_stats] if args.key?(:data_stats)
@display_name = args[:display_name] if args.key?(:display_name)
@has_sufficient_data = args[:has_sufficient_data] if args.key?(:has_sufficient_data)
@language_code = args[:language_code] if args.key?(:language_code)
@models = args[:models] if args.key?(:models)
@name = args[:name] if args.key?(:name)
@update_time = args[:update_time] if args.key?(:update_time)
@uri = args[:uri] if args.key?(:uri)
@use_logged_data = args[:use_logged_data] if args.key?(:use_logged_data)
end
end
# Message sent by the client for the `DeployModel` method.
class DeployModelRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Message sent by the client for the `EvaluateModel` method.
class EvaluateModelRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# The only message returned to the client by the `EvaluateModel` method. This
# is also returned as part of the Dataset 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 EvaluateModelResponse
include Google::Apis::Core::Hashable
# If true then it means we are referring to the results of an enhanced
# version of the model_type. Currently only PHONE_CALL model_type has an
# enhanced version.
# Corresponds to the JSON property `isEnhancedModel`
# @return [Boolean]
attr_accessor :is_enhanced_model
alias_method :is_enhanced_model?, :is_enhanced_model
# Required. The type of model used in this evaluation.
# Corresponds to the JSON property `modelType`
# @return [String]
attr_accessor :model_type
# Number of words used in the word_error_rate computation.
# Corresponds to the JSON property `wordCount`
# @return [Fixnum]
attr_accessor :word_count
# Word error rate metric computed on the test set using the AutoML model.
# Corresponds to the JSON property `wordErrorRate`
# @return [Float]
attr_accessor :word_error_rate
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@is_enhanced_model = args[:is_enhanced_model] if args.key?(:is_enhanced_model)
@model_type = args[:model_type] if args.key?(:model_type)
@word_count = args[:word_count] if args.key?(:word_count)
@word_error_rate = args[:word_error_rate] if args.key?(:word_error_rate)
end
end
#
class ListDatasetsResponse
include Google::Apis::Core::Hashable
# Repeated list of data sets containing details about each data set.
# Corresponds to the JSON property `datasets`
# @return [Array<Google::Apis::SpeechV1p1beta1::Dataset>]
attr_accessor :datasets
# Token to retrieve the next page of results, or empty if there are no
# more results in the list.
# The standard List next-page token.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# A list of operations that matches the specified filter in the request.
# Corresponds to the JSON property `operations`
# @return [Array<Google::Apis::SpeechV1p1beta1::Operation>]
attr_accessor :operations
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@datasets = args[:datasets] if args.key?(:datasets)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@operations = args[:operations] if args.key?(:operations)
end
end
# Message received by the client for the `ListLogDataStats` method.
class ListLogDataStatsResponse
# Describes the progress of a long-running `LongRunningRecognize` call. It is
# included in the `metadata` field of the `Operation` returned by the
# `GetOperation` call of the `google::longrunning::Operations` service.
class LongRunningRecognizeMetadata
include Google::Apis::Core::Hashable
# Output only. True if user has opted in for log data collection.
# Corresponds to the JSON property `logDataEnabled`
# @return [Boolean]
attr_accessor :log_data_enabled
alias_method :log_data_enabled?, :log_data_enabled
# The stats for each bucket.
# Corresponds to the JSON property `logDataStats`
# @return [Array<Google::Apis::SpeechV1p1beta1::LogBucketStats>]
attr_accessor :log_data_stats
# The overall count for log data (including all bucket data).
# Corresponds to the JSON property `totalCount`
# @return [Fixnum]
attr_accessor :total_count
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@log_data_enabled = args[:log_data_enabled] if args.key?(:log_data_enabled)
@log_data_stats = args[:log_data_stats] if args.key?(:log_data_stats)
@total_count = args[:total_count] if args.key?(:total_count)
end
end
#
class ListModelsResponse
include Google::Apis::Core::Hashable
# Repeated list of models containing details about each model.
# Corresponds to the JSON property `models`
# @return [Array<Google::Apis::SpeechV1p1beta1::Model>]
attr_accessor :models
# Token to retrieve the next page of results, or empty if there are no
# more results in the list.
# Corresponds to the JSON property `nextPageToken`
# Time of the most recent processing update.
# Corresponds to the JSON property `lastUpdateTime`
# @return [String]
attr_accessor :next_page_token
attr_accessor :last_update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@models = args[:models] if args.key?(:models)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Stats for log data within a bucket.
class LogBucketStats
include Google::Apis::Core::Hashable
# The display name for the bucket in which logs are collected.
# Corresponds to the JSON property `bucketName`
# @return [String]
attr_accessor :bucket_name
# Number of audio samples that have been collected in this bucket.
# Corresponds to the JSON property `count`
# Approximate percentage of audio processed thus far. Guaranteed to be 100
# when the audio is fully processed and the results are available.
# Corresponds to the JSON property `progressPercent`
# @return [Fixnum]
attr_accessor :count
attr_accessor :progress_percent
# Time when the request was received.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
def initialize(**args)
update!(**args)
@ -385,8 +75,9 @@ module Google
# Update properties of this object
def update!(**args)
@bucket_name = args[:bucket_name] if args.key?(:bucket_name)
@count = args[:count] if args.key?(:count)
@last_update_time = args[:last_update_time] if args.key?(:last_update_time)
@progress_percent = args[:progress_percent] if args.key?(:progress_percent)
@start_time = args[:start_time] if args.key?(:start_time)
end
end
@ -420,42 +111,19 @@ module Google
end
end
# Specifies the model parameters needed for training a model. In addition this
# is also the message returned to the client by the `CreateModel` method.
# It is included in the `result.response` field of the `Operation`
# The only message returned to the client by the `LongRunningRecognize` method.
# It contains the result as zero or more sequential `SpeechRecognitionResult`
# messages. It is included in the `result.response` field of the `Operation`
# returned by the `GetOperation` call of the `google::longrunning::Operations`
# service.
class Model
class LongRunningRecognizeResponse
include Google::Apis::Core::Hashable
# Output only. Timestamp when this model was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Required. Display name of the model to be trained.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Output only. Evaluation results associated with this model. A model can
# contain multiple sub-models in which case the evaluation results for
# all of those are available. If there are no sub models then there would
# be just a single EvaluateModelResponse.
# Corresponds to the JSON property `evaluateModelResponses`
# @return [Array<Google::Apis::SpeechV1p1beta1::EvaluateModelResponse>]
attr_accessor :evaluate_model_responses
# Output only. Resource name of the model.
# Format: "projects/`project_id`/locations/`location_id`/models/`model_id`"
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Required. Type of the training to perform.
# Corresponds to the JSON property `trainingType`
# @return [String]
attr_accessor :training_type
# Output only. Sequential list of transcription results corresponding to
# sequential portions of audio.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult>]
attr_accessor :results
def initialize(**args)
update!(**args)
@ -463,11 +131,7 @@ module Google
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@display_name = args[:display_name] if args.key?(:display_name)
@evaluate_model_responses = args[:evaluate_model_responses] if args.key?(:evaluate_model_responses)
@name = args[:name] if args.key?(:name)
@training_type = args[:training_type] if args.key?(:training_type)
@results = args[:results] if args.key?(:results)
end
end
@ -639,10 +303,23 @@ module Google
# @return [Fixnum]
attr_accessor :audio_channel_count
# *Optional* Config to enable speaker diarization and set additional
# parameters to make diarization better suited for your application.
# Note: When this is enabled, we send all the words from the beginning of the
# audio for the top alternative in every consecutive STREAMING responses.
# This is done in order to improve our speaker tags as our models learn to
# identify the speakers in the conversation over time.
# For non-streaming requests, the diarization results will be provided only
# in the top alternative of the FINAL SpeechRecognitionResult.
# Corresponds to the JSON property `diarizationConfig`
# @return [Google::Apis::SpeechV1p1beta1::SpeakerDiarizationConfig]
attr_accessor :diarization_config
# *Optional*
# If set, specifies the estimated number of speakers in the conversation.
# If not set, defaults to '2'.
# Ignored unless enable_speaker_diarization is set to true."
# Note: Use diarization_config instead. This field will be DEPRECATED soon.
# Corresponds to the JSON property `diarizationSpeakerCount`
# @return [Fixnum]
attr_accessor :diarization_speaker_count
@ -673,12 +350,7 @@ module Google
# *Optional* If 'true', enables speaker detection for each recognized word in
# the top alternative of the recognition result using a speaker_tag provided
# in the WordInfo.
# Note: When this is true, we send all the words from the beginning of the
# audio for the top alternative in every consecutive STREAMING responses.
# This is done in order to improve our speaker tags as our models learn to
# identify the speakers in the conversation over time.
# For non-streaming requests, the diarization results will be provided only
# in the top alternative of the FINAL SpeechRecognitionResult.
# Note: Use diarization_config instead. This field will be DEPRECATED soon.
# Corresponds to the JSON property `enableSpeakerDiarization`
# @return [Boolean]
attr_accessor :enable_speaker_diarization
@ -821,6 +493,7 @@ module Google
def update!(**args)
@alternative_language_codes = args[:alternative_language_codes] if args.key?(:alternative_language_codes)
@audio_channel_count = args[:audio_channel_count] if args.key?(:audio_channel_count)
@diarization_config = args[:diarization_config] if args.key?(:diarization_config)
@diarization_speaker_count = args[:diarization_speaker_count] if args.key?(:diarization_speaker_count)
@enable_automatic_punctuation = args[:enable_automatic_punctuation] if args.key?(:enable_automatic_punctuation)
@enable_separate_recognition_per_channel = args[:enable_separate_recognition_per_channel] if args.key?(:enable_separate_recognition_per_channel)
@ -898,13 +571,6 @@ module Google
# @return [String]
attr_accessor :recording_device_type
# A freeform field to tag this input sample with. This can be used for
# grouping the logs into separate buckets. This enables selective purging of
# data based on the tags, and also for training models in AutoML.
# Corresponds to the JSON property `tags`
# @return [Array<String>]
attr_accessor :tags
def initialize(**args)
update!(**args)
end
@ -920,7 +586,6 @@ module Google
@original_mime_type = args[:original_mime_type] if args.key?(:original_mime_type)
@recording_device_name = args[:recording_device_name] if args.key?(:recording_device_name)
@recording_device_type = args[:recording_device_type] if args.key?(:recording_device_type)
@tags = args[:tags] if args.key?(:tags)
end
end
@ -975,31 +640,33 @@ module Google
end
end
# Message sent by the client to refresh data in a existing dataset.
class RefreshDataRequest
#
class SpeakerDiarizationConfig
include Google::Apis::Core::Hashable
# URI that points to a file in csv file where each row has following format.
# <gs_path_to_audio>,<gs_path_to_transcript>,<label>
# label can be HUMAN_TRANSCRIBED or MACHINE_TRANSCRIBED. Few rules for a row
# to be considered valid are :-
# 1. Each row must have at least a label and <gs_path_to_transcript>
# 2. If a row is marked HUMAN_TRANSCRIBED, then both <gs_path_to_audio>
# and <gs_path_to_transcript> needs to be specified.
# 3. There has to be minimum 500 number of rows labelled HUMAN_TRANSCRIBED if
# evaluation stats are required.
# 4. If use_logged_data_for_training is set to true, then we ignore the rows
# labelled as MACHINE_TRANSCRIBED.
# 5. There has to be minimum 100,000 words in the transcripts in order to
# provide sufficient textual training data for the language model.
# Currently, only Google Cloud Storage URIs are
# supported, which must be specified in the following format:
# `gs://bucket_name/object_name` (other URI formats will be ignored).
# For more information, see
# [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
# Corresponds to the JSON property `uri`
# @return [String]
attr_accessor :uri
# *Optional* If 'true', enables speaker detection for each recognized word in
# the top alternative of the recognition result using a speaker_tag provided
# in the WordInfo.
# Corresponds to the JSON property `enableSpeakerDiarization`
# @return [Boolean]
attr_accessor :enable_speaker_diarization
alias_method :enable_speaker_diarization?, :enable_speaker_diarization
# *Optional* Only used if diarization_speaker_count is not set.
# Maximum number of speakers in the conversation. This range gives you more
# flexibility by allowing the system to automatically determine the correct
# number of speakers. If not set, the default value is 6.
# Corresponds to the JSON property `maxSpeakerCount`
# @return [Fixnum]
attr_accessor :max_speaker_count
# *Optional* Only used if diarization_speaker_count is not set.
# Minimum number of speakers in the conversation. This range gives you more
# flexibility by allowing the system to automatically determine the correct
# number of speakers. If not set, the default value is 2.
# Corresponds to the JSON property `minSpeakerCount`
# @return [Fixnum]
attr_accessor :min_speaker_count
def initialize(**args)
update!(**args)
@ -1007,7 +674,9 @@ module Google
# Update properties of this object
def update!(**args)
@uri = args[:uri] if args.key?(:uri)
@enable_speaker_diarization = args[:enable_speaker_diarization] if args.key?(:enable_speaker_diarization)
@max_speaker_count = args[:max_speaker_count] if args.key?(:max_speaker_count)
@min_speaker_count = args[:min_speaker_count] if args.key?(:min_speaker_count)
end
end
@ -1026,15 +695,6 @@ module Google
# @return [Array<String>]
attr_accessor :phrases
# Hint strength to use (high, medium or low). If you use a high strength then
# you are more likely to see those phrases in the results. If strength is not
# specified then by default medium strength will be used. If you'd like
# different phrases to have different strengths, you can specify multiple
# speech_contexts.
# Corresponds to the JSON property `strength`
# @return [String]
attr_accessor :strength
def initialize(**args)
update!(**args)
end
@ -1042,7 +702,6 @@ module Google
# Update properties of this object
def update!(**args)
@phrases = args[:phrases] if args.key?(:phrases)
@strength = args[:strength] if args.key?(:strength)
end
end

View File

@ -22,61 +22,13 @@ module Google
module Apis
module SpeechV1p1beta1
class DataErrors
class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DataStats
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Dataset
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeployModelRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EvaluateModelRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EvaluateModelResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListDatasetsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLogDataStatsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListModelsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogBucketStats
class LongRunningRecognizeMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -88,7 +40,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Model
class LongRunningRecognizeResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -130,7 +82,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RefreshDataRequest
class SpeakerDiarizationConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -166,100 +118,21 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class DataErrors
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, as: 'count'
property :error_type, as: 'errorType'
end
end
class DataStats
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :data_errors, as: 'dataErrors', class: Google::Apis::SpeechV1p1beta1::DataErrors, decorator: Google::Apis::SpeechV1p1beta1::DataErrors::Representation
property :test_example_count, as: 'testExampleCount'
property :training_example_count, as: 'trainingExampleCount'
end
end
class Dataset
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :blocking_operation_ids, as: 'blockingOperationIds'
property :bucket_name, as: 'bucketName'
property :create_time, as: 'createTime'
property :data_processing_region, as: 'dataProcessingRegion'
property :data_stats, as: 'dataStats', class: Google::Apis::SpeechV1p1beta1::DataStats, decorator: Google::Apis::SpeechV1p1beta1::DataStats::Representation
property :display_name, as: 'displayName'
property :has_sufficient_data, as: 'hasSufficientData'
property :language_code, as: 'languageCode'
collection :models, as: 'models', class: Google::Apis::SpeechV1p1beta1::Model, decorator: Google::Apis::SpeechV1p1beta1::Model::Representation
property :name, as: 'name'
property :update_time, as: 'updateTime'
property :uri, as: 'uri'
property :use_logged_data, as: 'useLoggedData'
end
end
class DeployModelRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class EvaluateModelRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class EvaluateModelResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :is_enhanced_model, as: 'isEnhancedModel'
property :model_type, as: 'modelType'
property :word_count, as: 'wordCount'
property :word_error_rate, as: 'wordErrorRate'
end
end
class ListDatasetsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :datasets, as: 'datasets', class: Google::Apis::SpeechV1p1beta1::Dataset, decorator: Google::Apis::SpeechV1p1beta1::Dataset::Representation
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::SpeechV1p1beta1::Operation, decorator: Google::Apis::SpeechV1p1beta1::Operation::Representation
end
end
class ListLogDataStatsResponse
class LongRunningRecognizeMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :log_data_enabled, as: 'logDataEnabled'
collection :log_data_stats, as: 'logDataStats', class: Google::Apis::SpeechV1p1beta1::LogBucketStats, decorator: Google::Apis::SpeechV1p1beta1::LogBucketStats::Representation
property :total_count, as: 'totalCount'
end
end
class ListModelsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :models, as: 'models', class: Google::Apis::SpeechV1p1beta1::Model, decorator: Google::Apis::SpeechV1p1beta1::Model::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class LogBucketStats
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bucket_name, as: 'bucketName'
property :count, as: 'count'
property :last_update_time, as: 'lastUpdateTime'
property :progress_percent, as: 'progressPercent'
property :start_time, as: 'startTime'
end
end
@ -273,15 +146,11 @@ module Google
end
end
class Model
class LongRunningRecognizeResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :display_name, as: 'displayName'
collection :evaluate_model_responses, as: 'evaluateModelResponses', class: Google::Apis::SpeechV1p1beta1::EvaluateModelResponse, decorator: Google::Apis::SpeechV1p1beta1::EvaluateModelResponse::Representation
collection :results, as: 'results', class: Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult::Representation
property :name, as: 'name'
property :training_type, as: 'trainingType'
end
end
@ -310,6 +179,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
collection :alternative_language_codes, as: 'alternativeLanguageCodes'
property :audio_channel_count, as: 'audioChannelCount'
property :diarization_config, as: 'diarizationConfig', class: Google::Apis::SpeechV1p1beta1::SpeakerDiarizationConfig, decorator: Google::Apis::SpeechV1p1beta1::SpeakerDiarizationConfig::Representation
property :diarization_speaker_count, as: 'diarizationSpeakerCount'
property :enable_automatic_punctuation, as: 'enableAutomaticPunctuation'
property :enable_separate_recognition_per_channel, as: 'enableSeparateRecognitionPerChannel'
@ -342,7 +213,6 @@ module Google
property :original_mime_type, as: 'originalMimeType'
property :recording_device_name, as: 'recordingDeviceName'
property :recording_device_type, as: 'recordingDeviceType'
collection :tags, as: 'tags'
end
end
@ -364,10 +234,12 @@ module Google
end
end
class RefreshDataRequest
class SpeakerDiarizationConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :uri, as: 'uri'
property :enable_speaker_diarization, as: 'enableSpeakerDiarization'
property :max_speaker_count, as: 'maxSpeakerCount'
property :min_speaker_count, as: 'minSpeakerCount'
end
end
@ -375,7 +247,6 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :phrases, as: 'phrases'
property :strength, as: 'strength'
end
end

View File

@ -79,92 +79,23 @@ module Google
execute_or_queue_command(command, &block)
end
# Performs asynchronous data upload for AutoML: receive results via the
# google.longrunning.Operations interface. Returns either an
# `Operation.error` or an `Operation.response` which contains
# a `Dataset` message.
# @param [String] parent
# Required. Resource name of the parent. Has the format :-
# "projects/`project_id`/locations/`location_id`"
# @param [Google::Apis::SpeechV1p1beta1::Dataset] dataset_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SpeechV1p1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SpeechV1p1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_dataset(parent, dataset_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1p1beta1/{+parent}/datasets', options)
command.request_representation = Google::Apis::SpeechV1p1beta1::Dataset::Representation
command.request_object = dataset_object
command.response_representation = Google::Apis::SpeechV1p1beta1::Operation::Representation
command.response_class = Google::Apis::SpeechV1p1beta1::Operation
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Get the dataset associated with the dataset resource.
# @param [String] name
# The resource name of the dataset to retrieve. Form :-
# '/projects/`project_number`/locations/`location_id`/datasets/`dataset_id`'
# @param [Boolean] include_model_info
# If true then also include information about the models built using this
# dataset.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SpeechV1p1beta1::Dataset] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SpeechV1p1beta1::Dataset]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_dataset(name, include_model_info: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1p1beta1/{+name}', options)
command.response_representation = Google::Apis::SpeechV1p1beta1::Dataset::Representation
command.response_class = Google::Apis::SpeechV1p1beta1::Dataset
command.params['name'] = name unless name.nil?
command.query['includeModelInfo'] = include_model_info unless include_model_info.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Fetch the list of dataset associated with this project.
# @param [String] parent
# Required. Resource name of the parent. Has the format :-
# "projects/`project_id`/locations/`location_id`"
# Lists operations that match the specified filter in the request. If the
# server doesn't support this method, it returns `UNIMPLEMENTED`.
# NOTE: the `name` binding allows API services to override the binding
# to use different resource name schemes, such as `users/*/operations`. To
# override the binding, API services can add a binding such as
# `"/v1/`name=users/*`/operations"` to their service configuration.
# For backwards compatibility, the default name includes the operations
# collection id, however overriding users must ensure the name binding
# is the parent resource, without the operations collection id.
# @param [String] filter
# Filter the response based on display_name of the dataset. For e.g
# display_name=Foo The filter string is case sensitive
# @param [Boolean] include_model_info
# If true then also include information about the models built using the
# datasets.
# The standard list filter.
# @param [String] name
# The name of the operation's parent resource.
# @param [Fixnum] page_size
# The maximum number of items to return.
# The standard list page size.
# @param [String] page_token
# The next_page_token value returned from a previous List request, if any.
# The standard list page token.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -174,241 +105,20 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SpeechV1p1beta1::ListDatasetsResponse] parsed result object
# @yieldparam result [Google::Apis::SpeechV1p1beta1::ListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SpeechV1p1beta1::ListDatasetsResponse]
# @return [Google::Apis::SpeechV1p1beta1::ListOperationsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_datasets(parent, filter: nil, include_model_info: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1p1beta1/{+parent}/datasets', options)
command.response_representation = Google::Apis::SpeechV1p1beta1::ListDatasetsResponse::Representation
command.response_class = Google::Apis::SpeechV1p1beta1::ListDatasetsResponse
command.params['parent'] = parent unless parent.nil?
def list_operations(filter: nil, name: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1p1beta1/operations', options)
command.response_representation = Google::Apis::SpeechV1p1beta1::ListOperationsResponse::Representation
command.response_class = Google::Apis::SpeechV1p1beta1::ListOperationsResponse
command.query['filter'] = filter unless filter.nil?
command.query['includeModelInfo'] = include_model_info unless include_model_info.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Refresh data for a dataset.
# @param [String] name
# The resource name of the destination dataset.
# @param [Google::Apis::SpeechV1p1beta1::RefreshDataRequest] refresh_data_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SpeechV1p1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SpeechV1p1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def refresh_dataset_data(name, refresh_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1p1beta1/{+name}:refreshData', options)
command.request_representation = Google::Apis::SpeechV1p1beta1::RefreshDataRequest::Representation
command.request_object = refresh_data_request_object
command.response_representation = Google::Apis::SpeechV1p1beta1::Operation::Representation
command.response_class = Google::Apis::SpeechV1p1beta1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# List all log data stats associated with this project.
# @param [String] parent
# Required. Resource name of the parent. Has the format :-
# "projects/`project_id`/locations/`location_id`"
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SpeechV1p1beta1::ListLogDataStatsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SpeechV1p1beta1::ListLogDataStatsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_log_data_stats(parent, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1p1beta1/{+parent}/log_data_stats', options)
command.response_representation = Google::Apis::SpeechV1p1beta1::ListLogDataStatsResponse::Representation
command.response_class = Google::Apis::SpeechV1p1beta1::ListLogDataStatsResponse
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Performs asynchronous model training for AutoML: receive results via the
# google.longrunning.Operations interface. Returns either an
# `Operation.error` or an `Operation.response` which contains a `Model`
# message.
# @param [String] parent
# Required. Resource name of the parent. Has the format :-
# "projects/`project_id`/locations/`location_id`"
# @param [Google::Apis::SpeechV1p1beta1::Model] model_object
# @param [String] name
# Required. Resource name of the dataset being used to create the model.
# '/projects/`project_id`/locations/`location_id`/datasets/`dataset_id`'
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SpeechV1p1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SpeechV1p1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_model(parent, model_object = nil, name: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1p1beta1/{+parent}/models', options)
command.request_representation = Google::Apis::SpeechV1p1beta1::Model::Representation
command.request_object = model_object
command.response_representation = Google::Apis::SpeechV1p1beta1::Operation::Representation
command.response_class = Google::Apis::SpeechV1p1beta1::Operation
command.params['parent'] = parent unless parent.nil?
command.query['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Performs asynchronous model deployment of the model: receive results
# via the google.longrunning.Operations interface. After the operation is
# completed this returns either an `Operation.error` in case of error or
# a `google.protobuf.Empty` if the deployment was successful.
# @param [String] name
# Resource name of the model.
# Format: "projects/`project_id`/locations/`location_id`/models/`model_id`"
# @param [Google::Apis::SpeechV1p1beta1::DeployModelRequest] deploy_model_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SpeechV1p1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SpeechV1p1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def deploy_model(name, deploy_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1p1beta1/{+name}:deploy', options)
command.request_representation = Google::Apis::SpeechV1p1beta1::DeployModelRequest::Representation
command.request_object = deploy_model_request_object
command.response_representation = Google::Apis::SpeechV1p1beta1::Operation::Representation
command.response_class = Google::Apis::SpeechV1p1beta1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Performs asynchronous evaluation of the model: receive results
# via the google.longrunning.Operations interface. After the operation is
# completed this returns either an `Operation.error` in case of error or
# a `EvaluateModelResponse` with the evaluation results.
# @param [String] name
# Resource name of the model.
# Format: "projects/`project_id`/locations/`location_id`/models/`model_id`"
# @param [Google::Apis::SpeechV1p1beta1::EvaluateModelRequest] evaluate_model_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SpeechV1p1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SpeechV1p1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def evaluate_model(name, evaluate_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1p1beta1/{+name}:evaluate', options)
command.request_representation = Google::Apis::SpeechV1p1beta1::EvaluateModelRequest::Representation
command.request_object = evaluate_model_request_object
command.response_representation = Google::Apis::SpeechV1p1beta1::Operation::Representation
command.response_class = Google::Apis::SpeechV1p1beta1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Fetch the list of models associated with this project.
# @param [String] parent
# Required. Resource name of the parent. Has the format :-
# "projects/`project_id`/locations/`location_id`"
# @param [String] filter
# Filter the response based on display_name of the model. For e.g
# display_name=Foo The filter string is case sensitive
# @param [Fixnum] page_size
# The maximum number of items to return.
# @param [String] page_token
# The next_page_token value returned from a previous List request, if any.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SpeechV1p1beta1::ListModelsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SpeechV1p1beta1::ListModelsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_models(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1p1beta1/{+parent}/models', options)
command.response_representation = Google::Apis::SpeechV1p1beta1::ListModelsResponse::Representation
command.response_class = Google::Apis::SpeechV1p1beta1::ListModelsResponse
command.params['parent'] = parent unless parent.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?