google-cloud-dialogflow 0.13.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0b35290c27c7c1ac20cbecc4437e1f17a983aeab32d3f5625cf74810cfe25be
4
- data.tar.gz: bf7c91f50263ee563b1d729e6b63e455558746b9316d1df6859b3bd2a7ff3667
3
+ metadata.gz: 562bf0c58ba96993d8b2b29bb2c94bbea240d568ce1539c9eb3382e0b595e230
4
+ data.tar.gz: '0450876f78d7d2f2fcbdef564b922521fd3edb35993df07f07b63b95a504defa'
5
5
  SHA512:
6
- metadata.gz: 449657096816c8d7335347031fa21dabe0ede63884bec39c8c126c502266b93a85eb87fb1e40623722979ee0b49701a11f467b25e32f5904dac1fdfe0a0142fd
7
- data.tar.gz: e0cdd00ef9c01ac854e0b2912c23d624b370a438f6d7686b907ee36cd89fa5ee970e26e87421cfcd551871101914c92729b7bf47d84a8a015397c1a781ff0e87
6
+ metadata.gz: a36da11e15a5712e44d69745eff52d173195767042a1d4adb020e490b19b7827203dfe1c94d317cc95b30aae938a8bc6f58dad76af43f4d2ef89f655ae7c69e7
7
+ data.tar.gz: 3653fa1206867b9733a86cc0823cf9abb11951d43b8cf6bc2a2074f86e966a684a397c598685b49c4e1d50955a2634aa8663c19eba5906bc0020cb97af409e78
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Ruby Client for Dialogflow API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
1
+ # Ruby Client for Dialogflow API
2
2
 
3
3
  [Dialogflow API][Product Documentation]:
4
4
  Builds conversational interfaces (for example, chatbots, and voice-powered
@@ -21,7 +21,7 @@ module Google
21
21
  # rubocop:disable LineLength
22
22
 
23
23
  ##
24
- # # Ruby Client for Dialogflow API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
24
+ # # Ruby Client for Dialogflow API
25
25
  #
26
26
  # [Dialogflow API][Product Documentation]:
27
27
  # Builds conversational interfaces (for example, chatbots, and voice-powered
@@ -30,7 +30,7 @@ module Google
30
30
  # rubocop:disable LineLength
31
31
 
32
32
  ##
33
- # # Ruby Client for Dialogflow API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
33
+ # # Ruby Client for Dialogflow API
34
34
  #
35
35
  # [Dialogflow API][Product Documentation]:
36
36
  # Builds conversational interfaces (for example, chatbots, and voice-powered
@@ -8,6 +8,7 @@ require 'google/api/annotations_pb'
8
8
  require 'google/api/client_pb'
9
9
  require 'google/api/field_behavior_pb'
10
10
  require 'google/api/resource_pb'
11
+ require 'google/cloud/dialogflow/v2/validation_result_pb'
11
12
  require 'google/longrunning/operations_pb'
12
13
  require 'google/protobuf/empty_pb'
13
14
  require 'google/protobuf/field_mask_pb'
@@ -89,6 +90,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
89
90
  optional :agent_content, :bytes, 3
90
91
  end
91
92
  end
93
+ add_message "google.cloud.dialogflow.v2.GetValidationResultRequest" do
94
+ optional :parent, :string, 1
95
+ optional :language_code, :string, 3
96
+ end
92
97
  end
93
98
 
94
99
  module Google
@@ -109,6 +114,7 @@ module Google
109
114
  ExportAgentResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ExportAgentResponse").msgclass
110
115
  ImportAgentRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ImportAgentRequest").msgclass
111
116
  RestoreAgentRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.RestoreAgentRequest").msgclass
117
+ GetValidationResultRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.GetValidationResultRequest").msgclass
112
118
  end
113
119
  end
114
120
  end
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/cloud/dialogflow/v2/agent.proto for package 'google.cloud.dialogflow.v2'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2020 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
 
21
20
  require 'grpc'
@@ -99,6 +98,9 @@ module Google
99
98
  #
100
99
  # Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>
101
100
  rpc :RestoreAgent, RestoreAgentRequest, Google::Longrunning::Operation
101
+ # Gets agent validation result. Agent validation is performed during
102
+ # training time and is updated automatically when training is completed.
103
+ rpc :GetValidationResult, GetValidationResultRequest, ValidationResult
102
104
  end
103
105
 
104
106
  Stub = Service.rpc_stub_class
@@ -303,6 +303,14 @@ module Google
303
303
  {'parent' => request.parent}
304
304
  end
305
305
  )
306
+ @get_validation_result = Google::Gax.create_api_call(
307
+ @agents_stub.method(:get_validation_result),
308
+ defaults["get_validation_result"],
309
+ exception_transformer: exception_transformer,
310
+ params_extractor: proc do |request|
311
+ {'parent' => request.parent}
312
+ end
313
+ )
306
314
  end
307
315
 
308
316
  # Service calls
@@ -753,6 +761,45 @@ module Google
753
761
  operation.on_done { |operation| yield(operation) } if block_given?
754
762
  operation
755
763
  end
764
+
765
+ # Gets agent validation result. Agent validation is performed during
766
+ # training time and is updated automatically when training is completed.
767
+ #
768
+ # @param parent [String]
769
+ # Required. The project that the agent is associated with.
770
+ # Format: `projects/<Project ID>`.
771
+ # @param language_code [String]
772
+ # Optional. The language for which you want a validation result. If not
773
+ # specified, the agent's default language is used. [Many
774
+ # languages](https://cloud.google.com/dialogflow/docs/reference/language)
775
+ # are supported. Note: languages must be enabled in the agent before they can
776
+ # be used.
777
+ # @param options [Google::Gax::CallOptions]
778
+ # Overrides the default settings for this call, e.g, timeout,
779
+ # retries, etc.
780
+ # @yield [result, operation] Access the result along with the RPC operation
781
+ # @yieldparam result [Google::Cloud::Dialogflow::V2::ValidationResult]
782
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
783
+ # @return [Google::Cloud::Dialogflow::V2::ValidationResult]
784
+ # @raise [Google::Gax::GaxError] if the RPC is aborted.
785
+ # @example
786
+ # require "google/cloud/dialogflow"
787
+ #
788
+ # agents_client = Google::Cloud::Dialogflow::Agents.new(version: :v2)
789
+ # response = agents_client.get_validation_result
790
+
791
+ def get_validation_result \
792
+ parent: nil,
793
+ language_code: nil,
794
+ options: nil,
795
+ &block
796
+ req = {
797
+ parent: parent,
798
+ language_code: language_code
799
+ }.delete_if { |_, v| v.nil? }
800
+ req = Google::Gax::to_proto(req, Google::Cloud::Dialogflow::V2::GetValidationResultRequest)
801
+ @get_validation_result.call(req, options, &block)
802
+ end
756
803
  end
757
804
  end
758
805
  end
@@ -59,6 +59,11 @@
59
59
  "timeout_millis": 60000,
60
60
  "retry_codes_name": "idempotent",
61
61
  "retry_params_name": "default"
62
+ },
63
+ "GetValidationResult": {
64
+ "timeout_millis": 60000,
65
+ "retry_codes_name": "idempotent",
66
+ "retry_params_name": "default"
62
67
  }
63
68
  }
64
69
  }
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/cloud/dialogflow/v2/context.proto for package 'google.cloud.dialogflow.v2'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2020 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
 
21
20
  require 'grpc'
@@ -227,6 +227,20 @@ module Google
227
227
  # @return [String]
228
228
  # Zip compressed raw byte content for agent.
229
229
  class RestoreAgentRequest; end
230
+
231
+ # The request message for {Google::Cloud::Dialogflow::V2::Agents::GetValidationResult Agents::GetValidationResult}.
232
+ # @!attribute [rw] parent
233
+ # @return [String]
234
+ # Required. The project that the agent is associated with.
235
+ # Format: `projects/<Project ID>`.
236
+ # @!attribute [rw] language_code
237
+ # @return [String]
238
+ # Optional. The language for which you want a validation result. If not
239
+ # specified, the agent's default language is used. [Many
240
+ # languages](https://cloud.google.com/dialogflow/docs/reference/language)
241
+ # are supported. Note: languages must be enabled in the agent before they can
242
+ # be used.
243
+ class GetValidationResultRequest; end
230
244
  end
231
245
  end
232
246
  end
@@ -198,14 +198,14 @@ module Google
198
198
  # Required. Audio encoding of the synthesized audio content.
199
199
  # @!attribute [rw] sample_rate_hertz
200
200
  # @return [Integer]
201
- # Optional. The synthesis sample rate (in hertz) for this audio. If not
201
+ # The synthesis sample rate (in hertz) for this audio. If not
202
202
  # provided, then the synthesizer will use the default sample rate based on
203
203
  # the audio encoding. If this is different from the voice's natural sample
204
204
  # rate, then the synthesizer will honor this request by converting to the
205
205
  # desired sample rate (which might result in worse audio quality).
206
206
  # @!attribute [rw] synthesize_speech_config
207
207
  # @return [Google::Cloud::Dialogflow::V2::SynthesizeSpeechConfig]
208
- # Optional. Configuration of how speech should be synthesized.
208
+ # Configuration of how speech should be synthesized.
209
209
  class OutputAudioConfig; end
210
210
 
211
211
  # Audio encoding of the audio content sent in the conversational query request.
@@ -29,7 +29,7 @@ module Google
29
29
  # ID must not exceed 36 bytes.
30
30
  # @!attribute [rw] query_params
31
31
  # @return [Google::Cloud::Dialogflow::V2::QueryParameters]
32
- # Optional. The parameters of this query.
32
+ # The parameters of this query.
33
33
  # @!attribute [rw] query_input
34
34
  # @return [Google::Cloud::Dialogflow::V2::QueryInput]
35
35
  # Required. The input specification. It can be set to:
@@ -42,12 +42,20 @@ module Google
42
42
  # 3. an event that specifies which intent to trigger.
43
43
  # @!attribute [rw] output_audio_config
44
44
  # @return [Google::Cloud::Dialogflow::V2::OutputAudioConfig]
45
- # Optional. Instructs the speech synthesizer how to generate the output
45
+ # Instructs the speech synthesizer how to generate the output
46
46
  # audio. If this field is not set and agent-level speech synthesizer is not
47
47
  # configured, no output audio is generated.
48
+ # @!attribute [rw] output_audio_config_mask
49
+ # @return [Google::Protobuf::FieldMask]
50
+ # Mask for {Google::Cloud::Dialogflow::V2::DetectIntentRequest#output_audio_config output_audio_config} indicating which settings in this
51
+ # request-level config should override speech synthesizer settings defined at
52
+ # agent-level.
53
+ #
54
+ # If unspecified or empty, {Google::Cloud::Dialogflow::V2::DetectIntentRequest#output_audio_config output_audio_config} replaces the agent-level
55
+ # config in its entirety.
48
56
  # @!attribute [rw] input_audio
49
57
  # @return [String]
50
- # Optional. The natural language speech audio to be processed. This field
58
+ # The natural language speech audio to be processed. This field
51
59
  # should be populated iff `query_input` is set to an input audio config.
52
60
  # A single request can contain up to 1 minute of speech audio data.
53
61
  class DetectIntentRequest; end
@@ -80,33 +88,33 @@ module Google
80
88
  # Represents the parameters of the conversational query.
81
89
  # @!attribute [rw] time_zone
82
90
  # @return [String]
83
- # Optional. The time zone of this conversational query from the
91
+ # The time zone of this conversational query from the
84
92
  # [time zone database](https://www.iana.org/time-zones), e.g.,
85
93
  # America/New_York, Europe/Paris. If not provided, the time zone specified in
86
94
  # agent settings is used.
87
95
  # @!attribute [rw] geo_location
88
96
  # @return [Google::Type::LatLng]
89
- # Optional. The geo location of this conversational query.
97
+ # The geo location of this conversational query.
90
98
  # @!attribute [rw] contexts
91
99
  # @return [Array<Google::Cloud::Dialogflow::V2::Context>]
92
- # Optional. The collection of contexts to be activated before this query is
100
+ # The collection of contexts to be activated before this query is
93
101
  # executed.
94
102
  # @!attribute [rw] reset_contexts
95
103
  # @return [true, false]
96
- # Optional. Specifies whether to delete all contexts in the current session
104
+ # Specifies whether to delete all contexts in the current session
97
105
  # before the new ones are activated.
98
106
  # @!attribute [rw] session_entity_types
99
107
  # @return [Array<Google::Cloud::Dialogflow::V2::SessionEntityType>]
100
- # Optional. Additional session entity types to replace or extend developer
108
+ # Additional session entity types to replace or extend developer
101
109
  # entity types with. The entity synonyms apply to all languages and persist
102
110
  # for the session of this query.
103
111
  # @!attribute [rw] payload
104
112
  # @return [Google::Protobuf::Struct]
105
- # Optional. This field can be used to pass custom data into the webhook
113
+ # This field can be used to pass custom data into the webhook
106
114
  # associated with the agent. Arbitrary JSON objects are supported.
107
115
  # @!attribute [rw] sentiment_analysis_request_config
108
116
  # @return [Google::Cloud::Dialogflow::V2::SentimentAnalysisRequestConfig]
109
- # Optional. Configures the type of sentiment analysis to perform. If not
117
+ # Configures the type of sentiment analysis to perform. If not
110
118
  # provided, sentiment analysis is not performed.
111
119
  class QueryParameters; end
112
120
 
@@ -263,7 +271,7 @@ module Google
263
271
  # ID must not exceed 36 characters.
264
272
  # @!attribute [rw] query_params
265
273
  # @return [Google::Cloud::Dialogflow::V2::QueryParameters]
266
- # Optional. The parameters of this query.
274
+ # The parameters of this query.
267
275
  # @!attribute [rw] query_input
268
276
  # @return [Google::Cloud::Dialogflow::V2::QueryInput]
269
277
  # Required. The input specification. It can be set to:
@@ -276,7 +284,7 @@ module Google
276
284
  # 3. an event that specifies which intent to trigger.
277
285
  # @!attribute [rw] single_utterance
278
286
  # @return [true, false]
279
- # Optional. Please use {Google::Cloud::Dialogflow::V2::InputAudioConfig#single_utterance InputAudioConfig#single_utterance} instead.
287
+ # Please use {Google::Cloud::Dialogflow::V2::InputAudioConfig#single_utterance InputAudioConfig#single_utterance} instead.
280
288
  # If `false` (default), recognition does not cease until
281
289
  # the client closes the stream. If `true`, the recognizer will detect a
282
290
  # single spoken utterance in input audio. Recognition ceases when it detects
@@ -286,12 +294,20 @@ module Google
286
294
  # This setting is ignored when `query_input` is a piece of text or an event.
287
295
  # @!attribute [rw] output_audio_config
288
296
  # @return [Google::Cloud::Dialogflow::V2::OutputAudioConfig]
289
- # Optional. Instructs the speech synthesizer how to generate the output
297
+ # Instructs the speech synthesizer how to generate the output
290
298
  # audio. If this field is not set and agent-level speech synthesizer is not
291
299
  # configured, no output audio is generated.
300
+ # @!attribute [rw] output_audio_config_mask
301
+ # @return [Google::Protobuf::FieldMask]
302
+ # Mask for {Google::Cloud::Dialogflow::V2::StreamingDetectIntentRequest#output_audio_config output_audio_config} indicating which settings in this
303
+ # request-level config should override speech synthesizer settings defined at
304
+ # agent-level.
305
+ #
306
+ # If unspecified or empty, {Google::Cloud::Dialogflow::V2::StreamingDetectIntentRequest#output_audio_config output_audio_config} replaces the agent-level
307
+ # config in its entirety.
292
308
  # @!attribute [rw] input_audio
293
309
  # @return [String]
294
- # Optional. The input audio content to be recognized. Must be sent if
310
+ # The input audio content to be recognized. Must be sent if
295
311
  # `query_input` was set to a streaming input audio config. The complete audio
296
312
  # over all streaming messages must not exceed 1 minute.
297
313
  class StreamingDetectIntentRequest; end
@@ -441,7 +457,7 @@ module Google
441
457
  # Required. The unique identifier of the event.
442
458
  # @!attribute [rw] parameters
443
459
  # @return [Google::Protobuf::Struct]
444
- # Optional. The collection of parameters associated with the event.
460
+ # The collection of parameters associated with the event.
445
461
  # @!attribute [rw] language_code
446
462
  # @return [String]
447
463
  # Required. The language of this query. See [Language
@@ -453,7 +469,7 @@ module Google
453
469
  # Configures the types of sentiment analysis to perform.
454
470
  # @!attribute [rw] analyze_query_text_sentiment
455
471
  # @return [true, false]
456
- # Optional. Instructs the service to perform sentiment analysis on
472
+ # Instructs the service to perform sentiment analysis on
457
473
  # `query_text`. If not provided, sentiment analysis is not performed on
458
474
  # `query_text`.
459
475
  class SentimentAnalysisRequestConfig; end
@@ -0,0 +1,71 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+
16
+ module Google
17
+ module Cloud
18
+ module Dialogflow
19
+ module V2
20
+ # Represents a single validation error.
21
+ # @!attribute [rw] severity
22
+ # @return [Google::Cloud::Dialogflow::V2::ValidationError::Severity]
23
+ # The severity of the error.
24
+ # @!attribute [rw] entries
25
+ # @return [Array<String>]
26
+ # The names of the entries that the error is associated with.
27
+ # Format:
28
+ #
29
+ # * "projects/<Project ID>/agent", if the error is associated with the entire
30
+ # agent.
31
+ # * "projects/<Project ID>/agent/intents/<Intent ID>", if the error is
32
+ # associated with certain intents.
33
+ # * "projects/<Project
34
+ # ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the
35
+ # error is associated with certain intent training phrases.
36
+ # * "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter
37
+ # ID>", if the error is associated with certain intent parameters.
38
+ # * "projects/<Project ID>/agent/entities/<Entity ID>", if the error is
39
+ # associated with certain entities.
40
+ # @!attribute [rw] error_message
41
+ # @return [String]
42
+ # The detailed error messsage.
43
+ class ValidationError
44
+ # Represents a level of severity.
45
+ module Severity
46
+ # Not specified. This value should never be used.
47
+ SEVERITY_UNSPECIFIED = 0
48
+
49
+ # The agent doesn't follow Dialogflow best practicies.
50
+ INFO = 1
51
+
52
+ # The agent may not behave as expected.
53
+ WARNING = 2
54
+
55
+ # The agent may experience partial failures.
56
+ ERROR = 3
57
+
58
+ # The agent may completely fail.
59
+ CRITICAL = 4
60
+ end
61
+ end
62
+
63
+ # Represents the output of agent validation.
64
+ # @!attribute [rw] validation_errors
65
+ # @return [Array<Google::Cloud::Dialogflow::V2::ValidationError>]
66
+ # Contains all validation errors.
67
+ class ValidationResult; end
68
+ end
69
+ end
70
+ end
71
+ end
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/cloud/dialogflow/v2/entity_type.proto for package 'google.cloud.dialogflow.v2'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2020 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
 
21
20
  require 'grpc'
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/cloud/dialogflow/v2/intent.proto for package 'google.cloud.dialogflow.v2'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2020 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
 
21
20
  require 'grpc'
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/cloud/dialogflow/v2/session_entity_type.proto for package 'google.cloud.dialogflow.v2'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2020 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
 
21
20
  require 'grpc'
@@ -13,6 +13,7 @@ require 'google/cloud/dialogflow/v2/context_pb'
13
13
  require 'google/cloud/dialogflow/v2/intent_pb'
14
14
  require 'google/cloud/dialogflow/v2/session_entity_type_pb'
15
15
  require 'google/protobuf/duration_pb'
16
+ require 'google/protobuf/field_mask_pb'
16
17
  require 'google/protobuf/struct_pb'
17
18
  require 'google/rpc/status_pb'
18
19
  require 'google/type/latlng_pb'
@@ -22,6 +23,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
22
23
  optional :query_params, :message, 2, "google.cloud.dialogflow.v2.QueryParameters"
23
24
  optional :query_input, :message, 3, "google.cloud.dialogflow.v2.QueryInput"
24
25
  optional :output_audio_config, :message, 4, "google.cloud.dialogflow.v2.OutputAudioConfig"
26
+ optional :output_audio_config_mask, :message, 7, "google.protobuf.FieldMask"
25
27
  optional :input_audio, :bytes, 5
26
28
  end
27
29
  add_message "google.cloud.dialogflow.v2.DetectIntentResponse" do
@@ -70,6 +72,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
70
72
  optional :query_input, :message, 3, "google.cloud.dialogflow.v2.QueryInput"
71
73
  optional :single_utterance, :bool, 4
72
74
  optional :output_audio_config, :message, 5, "google.cloud.dialogflow.v2.OutputAudioConfig"
75
+ optional :output_audio_config_mask, :message, 7, "google.protobuf.FieldMask"
73
76
  optional :input_audio, :bytes, 6
74
77
  end
75
78
  add_message "google.cloud.dialogflow.v2.StreamingDetectIntentResponse" do
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/cloud/dialogflow/v2/session.proto for package 'google.cloud.dialogflow.v2'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2020 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
 
21
20
  require 'grpc'
@@ -228,17 +228,26 @@ module Google
228
228
  # A hash of the same form as `Google::Cloud::Dialogflow::V2::QueryInput`
229
229
  # can also be provided.
230
230
  # @param query_params [Google::Cloud::Dialogflow::V2::QueryParameters | Hash]
231
- # Optional. The parameters of this query.
231
+ # The parameters of this query.
232
232
  # A hash of the same form as `Google::Cloud::Dialogflow::V2::QueryParameters`
233
233
  # can also be provided.
234
234
  # @param output_audio_config [Google::Cloud::Dialogflow::V2::OutputAudioConfig | Hash]
235
- # Optional. Instructs the speech synthesizer how to generate the output
235
+ # Instructs the speech synthesizer how to generate the output
236
236
  # audio. If this field is not set and agent-level speech synthesizer is not
237
237
  # configured, no output audio is generated.
238
238
  # A hash of the same form as `Google::Cloud::Dialogflow::V2::OutputAudioConfig`
239
239
  # can also be provided.
240
+ # @param output_audio_config_mask [Google::Protobuf::FieldMask | Hash]
241
+ # Mask for {Google::Cloud::Dialogflow::V2::DetectIntentRequest#output_audio_config output_audio_config} indicating which settings in this
242
+ # request-level config should override speech synthesizer settings defined at
243
+ # agent-level.
244
+ #
245
+ # If unspecified or empty, {Google::Cloud::Dialogflow::V2::DetectIntentRequest#output_audio_config output_audio_config} replaces the agent-level
246
+ # config in its entirety.
247
+ # A hash of the same form as `Google::Protobuf::FieldMask`
248
+ # can also be provided.
240
249
  # @param input_audio [String]
241
- # Optional. The natural language speech audio to be processed. This field
250
+ # The natural language speech audio to be processed. This field
242
251
  # should be populated iff `query_input` is set to an input audio config.
243
252
  # A single request can contain up to 1 minute of speech audio data.
244
253
  # @param options [Google::Gax::CallOptions]
@@ -264,6 +273,7 @@ module Google
264
273
  query_input,
265
274
  query_params: nil,
266
275
  output_audio_config: nil,
276
+ output_audio_config_mask: nil,
267
277
  input_audio: nil,
268
278
  options: nil,
269
279
  &block
@@ -272,6 +282,7 @@ module Google
272
282
  query_input: query_input,
273
283
  query_params: query_params,
274
284
  output_audio_config: output_audio_config,
285
+ output_audio_config_mask: output_audio_config_mask,
275
286
  input_audio: input_audio
276
287
  }.delete_if { |_, v| v.nil? }
277
288
  req = Google::Gax::to_proto(req, Google::Cloud::Dialogflow::V2::DetectIntentRequest)
@@ -0,0 +1,36 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/dialogflow/v2/validation_result.proto
3
+
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_message "google.cloud.dialogflow.v2.ValidationError" do
10
+ optional :severity, :enum, 1, "google.cloud.dialogflow.v2.ValidationError.Severity"
11
+ repeated :entries, :string, 3
12
+ optional :error_message, :string, 4
13
+ end
14
+ add_enum "google.cloud.dialogflow.v2.ValidationError.Severity" do
15
+ value :SEVERITY_UNSPECIFIED, 0
16
+ value :INFO, 1
17
+ value :WARNING, 2
18
+ value :ERROR, 3
19
+ value :CRITICAL, 4
20
+ end
21
+ add_message "google.cloud.dialogflow.v2.ValidationResult" do
22
+ repeated :validation_errors, :message, 1, "google.cloud.dialogflow.v2.ValidationError"
23
+ end
24
+ end
25
+
26
+ module Google
27
+ module Cloud
28
+ module Dialogflow
29
+ module V2
30
+ ValidationError = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ValidationError").msgclass
31
+ ValidationError::Severity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ValidationError.Severity").enummodule
32
+ ValidationResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ValidationResult").msgclass
33
+ end
34
+ end
35
+ end
36
+ end
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Dialogflow
19
- VERSION = "0.13.0".freeze
19
+ VERSION = "0.14.0".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dialogflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-10 00:00:00.000000000 Z
11
+ date: 2020-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -163,6 +163,7 @@ files:
163
163
  - lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb
164
164
  - lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/session.rb
165
165
  - lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/session_entity_type.rb
166
+ - lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/validation_result.rb
166
167
  - lib/google/cloud/dialogflow/v2/doc/google/longrunning/operations.rb
167
168
  - lib/google/cloud/dialogflow/v2/doc/google/protobuf/any.rb
168
169
  - lib/google/cloud/dialogflow/v2/doc/google/protobuf/duration.rb
@@ -187,6 +188,7 @@ files:
187
188
  - lib/google/cloud/dialogflow/v2/session_services_pb.rb
188
189
  - lib/google/cloud/dialogflow/v2/sessions_client.rb
189
190
  - lib/google/cloud/dialogflow/v2/sessions_client_config.json
191
+ - lib/google/cloud/dialogflow/v2/validation_result_pb.rb
190
192
  - lib/google/cloud/dialogflow/v2/webhook_pb.rb
191
193
  - lib/google/cloud/dialogflow/version.rb
192
194
  homepage: https://github.com/googleapis/google-cloud-ruby/tree/master/google-cloud-dialogflow