diff --git a/generated/google/apis/dialogflow_v2.rb b/generated/google/apis/dialogflow_v2.rb index 7fd399df4..193e1a90f 100644 --- a/generated/google/apis/dialogflow_v2.rb +++ b/generated/google/apis/dialogflow_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow/ module DialogflowV2 VERSION = 'V2' - REVISION = '20190717' + REVISION = '20190801' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dialogflow_v2/classes.rb b/generated/google/apis/dialogflow_v2/classes.rb index 955d2daf6..15ad18f7c 100644 --- a/generated/google/apis/dialogflow_v2/classes.rb +++ b/generated/google/apis/dialogflow_v2/classes.rb @@ -4673,6 +4673,40 @@ module Google end end + # The status update for performing NLU model evaluation given a dataset. + # Metadata of the returned long running operation for + # ModelEvaluations.EvaluateModel. + class GoogleCloudDialogflowV2beta1ModelEvaluationMetadata + include Google::Apis::Core::Hashable + + # Optional. Number of samples that have already received the predicted + # intents from Dialogflow server. + # Corresponds to the JSON property `samplesWithIntentDetected` + # @return [Fixnum] + attr_accessor :samples_with_intent_detected + + # Required. Represents the job that the batch worker is currently working on. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Required. Total number of samples in the dataset. + # Corresponds to the JSON property `totalSamples` + # @return [Fixnum] + attr_accessor :total_samples + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @samples_with_intent_detected = args[:samples_with_intent_detected] if args.key?(:samples_with_intent_detected) + @state = args[:state] if args.key?(:state) + @total_samples = args[:total_samples] if args.key?(:total_samples) + end + end + # Represents the contents of the original request that was passed to # the `[Streaming]DetectIntent` call. class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest diff --git a/generated/google/apis/dialogflow_v2/representations.rb b/generated/google/apis/dialogflow_v2/representations.rb index 27f5a9b66..86fae72c7 100644 --- a/generated/google/apis/dialogflow_v2/representations.rb +++ b/generated/google/apis/dialogflow_v2/representations.rb @@ -742,6 +742,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1ModelEvaluationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2037,6 +2043,15 @@ module Google end end + class GoogleCloudDialogflowV2beta1ModelEvaluationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :samples_with_intent_detected, as: 'samplesWithIntentDetected' + property :state, as: 'state' + property :total_samples, as: 'totalSamples' + end + end + class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dialogflow_v2beta1.rb b/generated/google/apis/dialogflow_v2beta1.rb index 5915eca50..787d34dae 100644 --- a/generated/google/apis/dialogflow_v2beta1.rb +++ b/generated/google/apis/dialogflow_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow/ module DialogflowV2beta1 VERSION = 'V2beta1' - REVISION = '20190717' + REVISION = '20190801' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dialogflow_v2beta1/classes.rb b/generated/google/apis/dialogflow_v2beta1/classes.rb index eff9a37ef..c498b4e2a 100644 --- a/generated/google/apis/dialogflow_v2beta1/classes.rb +++ b/generated/google/apis/dialogflow_v2beta1/classes.rb @@ -2629,6 +2629,15 @@ module Google attr_accessor :single_utterance alias_method :single_utterance?, :single_utterance + # Optional. Context information to assist speech recognition. + # See [the Cloud Speech + # documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase- + # hints) + # for more details. + # Corresponds to the JSON property `speechContexts` + # @return [Array] + attr_accessor :speech_contexts + def initialize(**args) update!(**args) end @@ -2643,6 +2652,7 @@ module Google @phrase_hints = args[:phrase_hints] if args.key?(:phrase_hints) @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz) @single_utterance = args[:single_utterance] if args.key?(:single_utterance) + @speech_contexts = args[:speech_contexts] if args.key?(:speech_contexts) end end @@ -4466,6 +4476,40 @@ module Google end end + # The status update for performing NLU model evaluation given a dataset. + # Metadata of the returned long running operation for + # ModelEvaluations.EvaluateModel. + class GoogleCloudDialogflowV2beta1ModelEvaluationMetadata + include Google::Apis::Core::Hashable + + # Optional. Number of samples that have already received the predicted + # intents from Dialogflow server. + # Corresponds to the JSON property `samplesWithIntentDetected` + # @return [Fixnum] + attr_accessor :samples_with_intent_detected + + # Required. Represents the job that the batch worker is currently working on. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Required. Total number of samples in the dataset. + # Corresponds to the JSON property `totalSamples` + # @return [Fixnum] + attr_accessor :total_samples + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @samples_with_intent_detected = args[:samples_with_intent_detected] if args.key?(:samples_with_intent_detected) + @state = args[:state] if args.key?(:state) + @total_samples = args[:total_samples] if args.key?(:total_samples) + end + end + # Represents the contents of the original request that was passed to # the `[Streaming]DetectIntent` call. class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest @@ -5006,6 +5050,47 @@ module Google end end + # Hints for the speech recognizer to help with recognition in a specific + # conversation state. + class GoogleCloudDialogflowV2beta1SpeechContext + include Google::Apis::Core::Hashable + + # Optional. Boost for this context compared to other contexts: + # * If the boost is positive, Dialogflow will increase the probability that + # the phrases in this context are recognized over similar sounding phrases. + # * If the boost is unspecified or non-positive, Dialogflow will not apply + # any boost. + # Dialogflow recommends that you use boosts in the range (0, 20] and that you + # find a value that fits your use case with binary search. + # Corresponds to the JSON property `boost` + # @return [Float] + attr_accessor :boost + + # Optional. A list of strings containing words and phrases that the speech + # recognizer should recognize with higher likelihood. + # This list can be used to: + # * improve accuracy for words and phrases you expect the user to say, + # e.g. typical commands for your Dialogflow agent + # * add additional words to the speech recognizer vocabulary + # * ... + # See the [Cloud Speech + # documentation](https://cloud.google.com/speech-to-text/quotas) for usage + # limits. + # Corresponds to the JSON property `phrases` + # @return [Array] + attr_accessor :phrases + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @boost = args[:boost] if args.key?(:boost) + @phrases = args[:phrases] if args.key?(:phrases) + end + end + # Configuration of how speech should be synthesized. class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dialogflow_v2beta1/representations.rb b/generated/google/apis/dialogflow_v2beta1/representations.rb index 4234a3661..5c6a866be 100644 --- a/generated/google/apis/dialogflow_v2beta1/representations.rb +++ b/generated/google/apis/dialogflow_v2beta1/representations.rb @@ -700,6 +700,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1ModelEvaluationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -772,6 +778,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1SpeechContext + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1492,6 +1504,8 @@ module Google collection :phrase_hints, as: 'phraseHints' property :sample_rate_hertz, as: 'sampleRateHertz' property :single_utterance, as: 'singleUtterance' + collection :speech_contexts, as: 'speechContexts', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SpeechContext, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SpeechContext::Representation + end end @@ -2003,6 +2017,15 @@ module Google end end + class GoogleCloudDialogflowV2beta1ModelEvaluationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :samples_with_intent_detected, as: 'samplesWithIntentDetected' + property :state, as: 'state' + property :total_samples, as: 'totalSamples' + end + end + class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2135,6 +2158,14 @@ module Google end end + class GoogleCloudDialogflowV2beta1SpeechContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :boost, as: 'boost' + collection :phrases, as: 'phrases' + end + end + class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/remotebuildexecution_v1.rb b/generated/google/apis/remotebuildexecution_v1.rb index 21a26c8c6..36a4938fc 100644 --- a/generated/google/apis/remotebuildexecution_v1.rb +++ b/generated/google/apis/remotebuildexecution_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/remote-build-execution/docs/ module RemotebuildexecutionV1 VERSION = 'V1' - REVISION = '20190723' + REVISION = '20190731' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/remotebuildexecution_v1/classes.rb b/generated/google/apis/remotebuildexecution_v1/classes.rb index de3c7a213..dc2579ff0 100644 --- a/generated/google/apis/remotebuildexecution_v1/classes.rb +++ b/generated/google/apis/remotebuildexecution_v1/classes.rb @@ -1592,6 +1592,32 @@ module Google end end + # AcceleratorConfig defines the accelerator cards to attach to the VM. + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig + include Google::Apis::Core::Hashable + + # The number of the guest accelerator cards exposed to this VM. + # Corresponds to the JSON property `acceleratorCount` + # @return [Fixnum] + attr_accessor :accelerator_count + + # The type of accelerator to attach to this VM, e.g. "nvidia-tesla-k80" for + # nVidia Tesla K80. + # Corresponds to the JSON property `acceleratorType` + # @return [String] + attr_accessor :accelerator_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count) + @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type) + end + end + # The request used for `CreateInstance`. class GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest include Google::Apis::Core::Hashable @@ -1939,6 +1965,11 @@ module Google class GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig include Google::Apis::Core::Hashable + # AcceleratorConfig defines the accelerator cards to attach to the VM. + # Corresponds to the JSON property `accelerator` + # @return [Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig] + attr_accessor :accelerator + # Required. Size of the disk attached to the worker, in GB. # See https://cloud.google.com/compute/docs/disks/ # Corresponds to the JSON property `diskSizeGb` @@ -1992,6 +2023,7 @@ module Google # Update properties of this object def update!(**args) + @accelerator = args[:accelerator] if args.key?(:accelerator) @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) @disk_type = args[:disk_type] if args.key?(:disk_type) @labels = args[:labels] if args.key?(:labels) diff --git a/generated/google/apis/remotebuildexecution_v1/representations.rb b/generated/google/apis/remotebuildexecution_v1/representations.rb index 0fa2f484d..d5bf31188 100644 --- a/generated/google/apis/remotebuildexecution_v1/representations.rb +++ b/generated/google/apis/remotebuildexecution_v1/representations.rb @@ -172,6 +172,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -737,6 +743,14 @@ module Google end end + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :accelerator_count, :numeric_string => true, as: 'acceleratorCount' + property :accelerator_type, as: 'acceleratorType' + end + end + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -838,6 +852,8 @@ module Google class GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig # @private class Representation < Google::Apis::Core::JsonRepresentation + property :accelerator, as: 'accelerator', class: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig, decorator: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig::Representation + property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb' property :disk_type, as: 'diskType' hash :labels, as: 'labels'