Autogenerated update (2020-05-07)

Delete:
- commentanalyzer_v1alpha1
- osconfig_v1beta

Update:
- adexchangebuyer2_v2beta1
- androidenterprise_v1
- androidpublisher_v1
- androidpublisher_v1_1
- androidpublisher_v2
- androidpublisher_v3
- bigquery_v2
- bigqueryconnection_v1beta1
- bigqueryreservation_v1
- bigqueryreservation_v1beta1
- binaryauthorization_v1
- binaryauthorization_v1beta1
- calendar_v3
- cloudasset_v1p1beta1
- cloudbilling_v1
- cloudbuild_v1
- clouddebugger_v2
- cloudidentity_v1beta1
- cloudiot_v1
- cloudresourcemanager_v1
- cloudresourcemanager_v1beta1
- cloudresourcemanager_v2
- cloudresourcemanager_v2beta1
- cloudscheduler_v1
- cloudscheduler_v1beta1
- cloudsearch_v1
- cloudshell_v1alpha1
- cloudtasks_v2
- cloudtasks_v2beta2
- cloudtasks_v2beta3
- cloudtrace_v2
- composer_v1beta1
- compute_alpha
- compute_beta
- compute_v1
- container_v1
- container_v1beta1
- containeranalysis_v1alpha1
- containeranalysis_v1beta1
- content_v2
- content_v2_1
- customsearch_v1
- datacatalog_v1beta1
- dataproc_v1
- dataproc_v1beta2
- dialogflow_v2
- dialogflow_v2beta1
- displayvideo_v1
- dlp_v2
- drive_v2
- drive_v3
- driveactivity_v2
- file_v1
- file_v1beta1
- firebase_v1beta1
- firebasehosting_v1beta1
- games_configuration_v1configuration
- games_management_v1management
- games_v1
- gameservices_v1beta
- healthcare_v1
- healthcare_v1beta1
- homegraph_v1
- iamcredentials_v1
- managedidentities_v1
- managedidentities_v1alpha1
- managedidentities_v1beta1
- memcache_v1beta2
- ml_v1
- monitoring_v3
- people_v1
- policytroubleshooter_v1
- policytroubleshooter_v1beta
- prod_tt_sasportal_v1alpha1
- remotebuildexecution_v1
- remotebuildexecution_v1alpha
- remotebuildexecution_v2
- run_v1
- run_v1alpha1
- runtimeconfig_v1beta1
- sasportal_v1alpha1
- script_v1
- secretmanager_v1
- secretmanager_v1beta1
- serviceconsumermanagement_v1
- serviceconsumermanagement_v1beta1
- servicecontrol_v1
- servicedirectory_v1beta1
- servicemanagement_v1
- servicenetworking_v1
- servicenetworking_v1beta
- serviceusage_v1
- serviceusage_v1beta1
- sheets_v4
- sourcerepo_v1
- speech_v1
- speech_v1p1beta1
- storage_v1
- tagmanager_v1
- tagmanager_v2
- testing_v1
- toolresults_v1beta3
- vault_v1
- videointelligence_v1
- videointelligence_v1beta2
- videointelligence_v1p1beta1
- videointelligence_v1p2beta1
- videointelligence_v1p3beta1
- youtube_partner_v1
- youtube_v3
This commit is contained in:
Google APIs committed 2020-05-07 20:07:42 +00:00
1 parent 334a41b6f9
commit 2aab01171a
308 files changed
+40747 -16123

No files matched your search

@@ -22,6 +22,59 @@ module Google
module Apis
module SpeechV1p1beta1
# An item of the class.
class ClassItem
include Google::Apis::Core::Hashable
# The class item's value.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@value = args[:value] if args.key?(:value)
end
end
# A set of words or phrases that represents a common concept likely to appear
# in your audio, for example a list of passenger ship names. CustomClass items
# can be substituted into placeholders that you set in PhraseSet phrases.
class CustomClass
include Google::Apis::Core::Hashable
# If this custom class is a resource, the custom_class_id is the resource id
# of the CustomClass. Case sensitive.
# Corresponds to the JSON property `customClassId`
# @return [String]
attr_accessor :custom_class_id
# A collection of class items.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::SpeechV1p1beta1::ClassItem>]
attr_accessor :items
# The resource name of the custom class.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@custom_class_id = args[:custom_class_id] if args.key?(:custom_class_id)
@items = args[:items] if args.key?(:items)
@name = args[:name] if args.key?(:name)
end
end
# The response message for Operations.ListOperations.
class ListOperationsResponse
include Google::Apis::Core::Hashable
@@ -69,7 +122,8 @@ module Google
# @return [String]
attr_accessor :start_time
# The URI of the audio file being transcribed. Empty if the audio was sent
# Output only. The URI of the audio file being transcribed. Empty if the audio
# was sent
# as byte content.
# Corresponds to the JSON property `uri`
# @return [String]
@@ -206,6 +260,97 @@ module Google
end
end
# A phrases containing words and phrase "hints" so that
# the speech recognition is more likely to recognize them. This can be used
# to improve the accuracy for specific words and phrases, for example, if
# specific commands are typically spoken by the user. This can also be used
# to add additional words to the vocabulary of the recognizer. See
# [usage limits](https://cloud.google.com/speech-to-text/quotas#content).
# List items can also include pre-built or custom classes containing groups
# of words that represent common concepts that occur in natural language. For
# example, rather than providing a phrase hint for every month of the
# year (e.g. "i was born in january", "i was born in febuary", ...), use the
# pre-built `$MONTH` class improves the likelihood of correctly transcribing
# audio that includes months (e.g. "i was born in $month").
# To refer to pre-built classes, use the class' symbol prepended with `$`
# e.g. `$MONTH`. To refer to custom classes that were defined inline in the
# request, set the class's `custom_class_id` to a string unique to all class
# resources and inline classes. Then use the class' id wrapped in $``...``
# e.g. "$`my-months`". To refer to custom classes resources, use the class'
# id wrapped in `$``` (e.g. `$`my-months``).
class Phrase
include Google::Apis::Core::Hashable
# Hint Boost. Overrides the boost set at the phrase set level.
# Positive value will increase the probability that a specific phrase will
# be recognized over other similar sounding phrases. The higher the boost,
# the higher the chance of false positive recognition as well. Negative
# boost values would correspond to anti-biasing. Anti-biasing is not
# enabled, so negative boost will simply be ignored. Though `boost` can
# accept a wide range of positive values, most use cases are best served
# with values between 0 and 20. We recommend using a binary search approach
# to finding the optimal value for your use case. Speech recognition
# will skip PhraseSets with a boost value of 0.
# Corresponds to the JSON property `boost`
# @return [Float]
attr_accessor :boost
# The phrase itself.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@boost = args[:boost] if args.key?(:boost)
@value = args[:value] if args.key?(:value)
end
end
# Provides "hints" to the speech recognizer to favor specific words and phrases
# in the results.
class PhraseSet
include Google::Apis::Core::Hashable
# Hint Boost. Positive value will increase the probability that a specific
# phrase will be recognized over other similar sounding phrases. The higher
# the boost, the higher the chance of false positive recognition as well.
# Negative boost values would correspond to anti-biasing. Anti-biasing is not
# enabled, so negative boost will simply be ignored. Though `boost` can
# accept a wide range of positive values, most use cases are best served with
# values between 0 (exclusive) and 20. We recommend using a binary search
# approach to finding the optimal value for your use case. Speech recognition
# will skip PhraseSets with a boost value of 0.
# Corresponds to the JSON property `boost`
# @return [Float]
attr_accessor :boost
# The resource name of the phrase set.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# A list of word and phrases.
# Corresponds to the JSON property `phrases`
# @return [Array<Google::Apis::SpeechV1p1beta1::Phrase>]
attr_accessor :phrases
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@boost = args[:boost] if args.key?(:boost)
@name = args[:name] if args.key?(:name)
@phrases = args[:phrases] if args.key?(:phrases)
end
end
# Contains audio data in the encoding specified in the `RecognitionConfig`.
# Either `content` or `uri` must be supplied. Supplying both or neither
# returns google.rpc.Code.INVALID_ARGUMENT. See
@@ -248,6 +393,11 @@ module Google
class RecognitionConfig
include Google::Apis::Core::Hashable
# Speech adaptation configuration.
# Corresponds to the JSON property `adaptation`
# @return [Google::Apis::SpeechV1p1beta1::SpeechAdaptation]
attr_accessor :adaptation
# A list of up to 3 additional
# [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
# listing possible alternative languages of the supplied audio.
@@ -450,6 +600,7 @@ module Google
# Update properties of this object
def update!(**args)
@adaptation = args[:adaptation] if args.key?(:adaptation)
@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)
@@ -643,6 +794,36 @@ module Google
end
end
# Speech adaptation configuration.
class SpeechAdaptation
include Google::Apis::Core::Hashable
# A collection of custom classes. To specify the classes inline, leave the
# class' `name` blank and fill in the rest of its fields, giving it a unique
# `custom_class_id`. Refer to the inline defined class in phrase hints by its
# `custom_class_id`.
# Corresponds to the JSON property `customClasses`
# @return [Array<Google::Apis::SpeechV1p1beta1::CustomClass>]
attr_accessor :custom_classes
# A collection of phrase sets. To specify the hints inline, leave the
# phrase set's `name` blank and fill in the rest of its fields. Any
# phrase set can use any custom class.
# Corresponds to the JSON property `phraseSets`
# @return [Array<Google::Apis::SpeechV1p1beta1::PhraseSet>]
attr_accessor :phrase_sets
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@custom_classes = args[:custom_classes] if args.key?(:custom_classes)
@phrase_sets = args[:phrase_sets] if args.key?(:phrase_sets)
end
end
# Provides "hints" to the speech recognizer to favor specific words and phrases
# in the results.
class SpeechContext
@@ -22,6 +22,18 @@ module Google
module Apis
module SpeechV1p1beta1
class ClassItem
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CustomClass
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -52,6 +64,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Phrase
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PhraseSet
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RecognitionAudio
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -88,6 +112,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SpeechAdaptation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SpeechContext
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -118,6 +148,23 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ClassItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :value, as: 'value'
end
end
class CustomClass
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :custom_class_id, as: 'customClassId'
collection :items, as: 'items', class: Google::Apis::SpeechV1p1beta1::ClassItem, decorator: Google::Apis::SpeechV1p1beta1::ClassItem::Representation
property :name, as: 'name'
end
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -167,6 +214,24 @@ module Google
end
end
class Phrase
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :boost, as: 'boost'
property :value, as: 'value'
end
end
class PhraseSet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :boost, as: 'boost'
property :name, as: 'name'
collection :phrases, as: 'phrases', class: Google::Apis::SpeechV1p1beta1::Phrase, decorator: Google::Apis::SpeechV1p1beta1::Phrase::Representation
end
end
class RecognitionAudio
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -178,6 +243,8 @@ module Google
class RecognitionConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :adaptation, as: 'adaptation', class: Google::Apis::SpeechV1p1beta1::SpeechAdaptation, decorator: Google::Apis::SpeechV1p1beta1::SpeechAdaptation::Representation
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
@@ -245,6 +312,16 @@ module Google
end
end
class SpeechAdaptation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :custom_classes, as: 'customClasses', class: Google::Apis::SpeechV1p1beta1::CustomClass, decorator: Google::Apis::SpeechV1p1beta1::CustomClass::Representation
collection :phrase_sets, as: 'phraseSets', class: Google::Apis::SpeechV1p1beta1::PhraseSet, decorator: Google::Apis::SpeechV1p1beta1::PhraseSet::Representation
end
end
class SpeechContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation