google-cloud-dialogflow-cx-v3 1.1.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +30 -20
  3. data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +1 -1
  4. data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +2 -1
  5. data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +44 -25
  6. data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +12 -15
  7. data/lib/google/cloud/dialogflow/cx/v3/agents/paths.rb +19 -0
  8. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/client.rb +44 -25
  9. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/operations.rb +43 -38
  10. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/service_stub.rb +102 -68
  11. data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +1 -1
  12. data/lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb +1 -1
  13. data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +32 -6
  14. data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/client.rb +32 -6
  15. data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/service_stub.rb +30 -14
  16. data/lib/google/cloud/dialogflow/cx/v3/data_store_connection_pb.rb +1 -1
  17. data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +32 -8
  18. data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/client.rb +32 -8
  19. data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/service_stub.rb +30 -14
  20. data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +1 -1
  21. data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +43 -21
  22. data/lib/google/cloud/dialogflow/cx/v3/entity_types/operations.rb +12 -15
  23. data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/client.rb +43 -21
  24. data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/operations.rb +43 -38
  25. data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/service_stub.rb +70 -44
  26. data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +1 -1
  27. data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +50 -27
  28. data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +12 -15
  29. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/client.rb +50 -27
  30. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/operations.rb +43 -38
  31. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/service_stub.rb +86 -56
  32. data/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +1 -1
  33. data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +38 -21
  34. data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/client.rb +38 -21
  35. data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/service_stub.rb +70 -44
  36. data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +1 -1
  37. data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +47 -26
  38. data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +12 -15
  39. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/client.rb +47 -26
  40. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/operations.rb +43 -38
  41. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/service_stub.rb +94 -62
  42. data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +1 -1
  43. data/lib/google/cloud/dialogflow/cx/v3/gcs_pb.rb +1 -1
  44. data/lib/google/cloud/dialogflow/cx/v3/generative_settings_pb.rb +1 -1
  45. data/lib/google/cloud/dialogflow/cx/v3/generator_pb.rb +2 -1
  46. data/lib/google/cloud/dialogflow/cx/v3/generators/client.rb +35 -12
  47. data/lib/google/cloud/dialogflow/cx/v3/generators/rest/client.rb +35 -12
  48. data/lib/google/cloud/dialogflow/cx/v3/generators/rest/service_stub.rb +54 -32
  49. data/lib/google/cloud/dialogflow/cx/v3/import_strategy_pb.rb +1 -1
  50. data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +1 -1
  51. data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +41 -19
  52. data/lib/google/cloud/dialogflow/cx/v3/intents/operations.rb +12 -15
  53. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/client.rb +41 -19
  54. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/operations.rb +43 -38
  55. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/service_stub.rb +70 -44
  56. data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +1 -1
  57. data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +37 -14
  58. data/lib/google/cloud/dialogflow/cx/v3/pages/rest/client.rb +37 -14
  59. data/lib/google/cloud/dialogflow/cx/v3/pages/rest/service_stub.rb +54 -32
  60. data/lib/google/cloud/dialogflow/cx/v3/safety_settings_pb.rb +1 -1
  61. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +35 -12
  62. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/client.rb +35 -12
  63. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/service_stub.rb +54 -32
  64. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +54 -29
  65. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/client.rb +54 -29
  66. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/service_stub.rb +54 -32
  67. data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +5 -1
  68. data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +40 -16
  69. data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/client.rb +40 -14
  70. data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/service_stub.rb +47 -26
  71. data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +1 -1
  72. data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +59 -38
  73. data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +12 -15
  74. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/client.rb +59 -38
  75. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/operations.rb +43 -38
  76. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/service_stub.rb +110 -74
  77. data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +1 -1
  78. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +43 -21
  79. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/client.rb +43 -21
  80. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/service_stub.rb +54 -32
  81. data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +1 -1
  82. data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
  83. data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +1 -1
  84. data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +44 -22
  85. data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +12 -15
  86. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/client.rb +44 -22
  87. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/operations.rb +43 -38
  88. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/service_stub.rb +70 -44
  89. data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +1 -1
  90. data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +35 -12
  91. data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/client.rb +35 -12
  92. data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/service_stub.rb +54 -32
  93. data/proto_docs/google/api/client.rb +39 -0
  94. data/proto_docs/google/cloud/dialogflow/cx/v3/advanced_settings.rb +1 -1
  95. data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +44 -20
  96. data/proto_docs/google/cloud/dialogflow/cx/v3/audio_config.rb +6 -0
  97. data/proto_docs/google/cloud/dialogflow/cx/v3/changelog.rb +5 -5
  98. data/proto_docs/google/cloud/dialogflow/cx/v3/deployment.rb +11 -13
  99. data/proto_docs/google/cloud/dialogflow/cx/v3/entity_type.rb +16 -17
  100. data/proto_docs/google/cloud/dialogflow/cx/v3/environment.rb +26 -28
  101. data/proto_docs/google/cloud/dialogflow/cx/v3/experiment.rb +15 -19
  102. data/proto_docs/google/cloud/dialogflow/cx/v3/flow.rb +28 -27
  103. data/proto_docs/google/cloud/dialogflow/cx/v3/fulfillment.rb +2 -2
  104. data/proto_docs/google/cloud/dialogflow/cx/v3/generative_settings.rb +2 -2
  105. data/proto_docs/google/cloud/dialogflow/cx/v3/generator.rb +41 -8
  106. data/proto_docs/google/cloud/dialogflow/cx/v3/intent.rb +19 -19
  107. data/proto_docs/google/cloud/dialogflow/cx/v3/page.rb +33 -33
  108. data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +2 -1
  109. data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +14 -14
  110. data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +107 -22
  111. data/proto_docs/google/cloud/dialogflow/cx/v3/session_entity_type.rb +30 -28
  112. data/proto_docs/google/cloud/dialogflow/cx/v3/test_case.rb +41 -43
  113. data/proto_docs/google/cloud/dialogflow/cx/v3/transition_route_group.rb +16 -18
  114. data/proto_docs/google/cloud/dialogflow/cx/v3/version.rb +19 -19
  115. data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +24 -25
  116. data/proto_docs/google/longrunning/operations.rb +19 -14
  117. metadata +5 -5
@@ -158,15 +158,27 @@ module Google
158
158
  endpoint: @config.endpoint,
159
159
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
160
160
  universe_domain: @config.universe_domain,
161
- credentials: credentials
161
+ credentials: credentials,
162
+ logger: @config.logger
162
163
  )
163
164
 
165
+ @transition_route_groups_stub.logger(stub: true)&.info do |entry|
166
+ entry.set_system_name
167
+ entry.set_service
168
+ entry.message = "Created client for #{entry.service}"
169
+ entry.set_credentials_fields credentials
170
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
171
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
172
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
173
+ end
174
+
164
175
  @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
165
176
  config.credentials = credentials
166
177
  config.quota_project = @quota_project_id
167
178
  config.endpoint = @transition_route_groups_stub.endpoint
168
179
  config.universe_domain = @transition_route_groups_stub.universe_domain
169
180
  config.bindings_override = @config.bindings_override
181
+ config.logger = @transition_route_groups_stub.logger if config.respond_to? :logger=
170
182
  end
171
183
  end
172
184
 
@@ -177,6 +189,15 @@ module Google
177
189
  #
178
190
  attr_reader :location_client
179
191
 
192
+ ##
193
+ # The logger used for request/response debug logging.
194
+ #
195
+ # @return [Logger]
196
+ #
197
+ def logger
198
+ @transition_route_groups_stub.logger
199
+ end
200
+
180
201
  # Service calls
181
202
 
182
203
  ##
@@ -199,9 +220,9 @@ module Google
199
220
  #
200
221
  # @param parent [::String]
201
222
  # Required. The flow to list all transition route groups for.
202
- # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
203
- # ID>/flows/<Flow ID>`
204
- # or `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.
223
+ # Format:
224
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`
225
+ # or `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.
205
226
  # @param page_size [::Integer]
206
227
  # The maximum number of items to return in a single page. By default 100 and
207
228
  # at most 1000.
@@ -215,7 +236,6 @@ module Google
215
236
  # *
216
237
  # `TransitionRouteGroup.transition_routes.trigger_fulfillment.conditional_cases`
217
238
  #
218
- #
219
239
  # If not specified, the agent's default language is used.
220
240
  # [Many
221
241
  # languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
@@ -279,7 +299,7 @@ module Google
279
299
  @transition_route_groups_stub.list_transition_route_groups request, options do |result, operation|
280
300
  result = ::Gapic::Rest::PagedEnumerable.new @transition_route_groups_stub, :list_transition_route_groups, "transition_route_groups", request, result, options
281
301
  yield result, operation if block_given?
282
- return result
302
+ throw :response, result
283
303
  end
284
304
  rescue ::Gapic::Rest::Error => e
285
305
  raise ::Google::Cloud::Error.from_error(e)
@@ -307,10 +327,10 @@ module Google
307
327
  # @param name [::String]
308
328
  # Required. The name of the
309
329
  # {::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup TransitionRouteGroup}.
310
- # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
311
- # ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`
312
- # or `projects/<Project ID>/locations/<Location ID>/agents/<Agent
313
- # ID>/transitionRouteGroups/<Transition Route Group ID>`.
330
+ # Format:
331
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/transitionRouteGroups/<TransitionRouteGroupID>`
332
+ # or
333
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`.
314
334
  # @param language_code [::String]
315
335
  # The language to retrieve the transition route group for. The following
316
336
  # fields are language dependent:
@@ -377,7 +397,6 @@ module Google
377
397
 
378
398
  @transition_route_groups_stub.get_transition_route_group request, options do |result, operation|
379
399
  yield result, operation if block_given?
380
- return result
381
400
  end
382
401
  rescue ::Gapic::Rest::Error => e
383
402
  raise ::Google::Cloud::Error.from_error(e)
@@ -410,9 +429,9 @@ module Google
410
429
  # @param parent [::String]
411
430
  # Required. The flow to create an
412
431
  # {::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup TransitionRouteGroup}
413
- # for. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
414
- # ID>/flows/<Flow ID>`
415
- # or `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`
432
+ # for. Format:
433
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`
434
+ # or `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`
416
435
  # for agent-level groups.
417
436
  # @param transition_route_group [::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup, ::Hash]
418
437
  # Required. The transition route group to create.
@@ -481,7 +500,6 @@ module Google
481
500
 
482
501
  @transition_route_groups_stub.create_transition_route_group request, options do |result, operation|
483
502
  yield result, operation if block_given?
484
- return result
485
503
  end
486
504
  rescue ::Gapic::Rest::Error => e
487
505
  raise ::Google::Cloud::Error.from_error(e)
@@ -579,7 +597,6 @@ module Google
579
597
 
580
598
  @transition_route_groups_stub.update_transition_route_group request, options do |result, operation|
581
599
  yield result, operation if block_given?
582
- return result
583
600
  end
584
601
  rescue ::Gapic::Rest::Error => e
585
602
  raise ::Google::Cloud::Error.from_error(e)
@@ -611,10 +628,10 @@ module Google
611
628
  # @param name [::String]
612
629
  # Required. The name of the
613
630
  # {::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup TransitionRouteGroup}
614
- # to delete. Format: `projects/<Project ID>/locations/<Location
615
- # ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition
616
- # Route Group ID>` or `projects/<Project ID>/locations/<Location
617
- # ID>/agents/<Agent ID>/transitionRouteGroups/<Transition Route Group ID>`.
631
+ # to delete. Format:
632
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/transitionRouteGroups/<TransitionRouteGroupID>`
633
+ # or
634
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`.
618
635
  # @param force [::Boolean]
619
636
  # This field has no effect for transition route group that no page is using.
620
637
  # If the transition route group is referenced by any page:
@@ -676,7 +693,6 @@ module Google
676
693
 
677
694
  @transition_route_groups_stub.delete_transition_route_group request, options do |result, operation|
678
695
  yield result, operation if block_given?
679
- return result
680
696
  end
681
697
  rescue ::Gapic::Rest::Error => e
682
698
  raise ::Google::Cloud::Error.from_error(e)
@@ -756,6 +772,11 @@ module Google
756
772
  # default endpoint URL. The default value of nil uses the environment
757
773
  # universe (usually the default "googleapis.com" universe).
758
774
  # @return [::String,nil]
775
+ # @!attribute [rw] logger
776
+ # A custom logger to use for request/response debug logging, or the value
777
+ # `:default` (the default) to construct a default logger, or `nil` to
778
+ # explicitly disable logging.
779
+ # @return [::Logger,:default,nil]
759
780
  #
760
781
  class Configuration
761
782
  extend ::Gapic::Config
@@ -784,6 +805,7 @@ module Google
784
805
  # by the host service.
785
806
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
786
807
  config_attr :bindings_override, {}, ::Hash, nil
808
+ config_attr :logger, :default, ::Logger, nil, :default
787
809
 
788
810
  # @private
789
811
  def initialize parent_config = nil
@@ -31,7 +31,8 @@ module Google
31
31
  # including transcoding, making the REST call, and deserialing the response.
32
32
  #
33
33
  class ServiceStub
34
- def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
34
+ # @private
35
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
35
36
  # These require statements are intentionally placed here to initialize
36
37
  # the REST modules only when it's required.
37
38
  require "gapic/rest"
@@ -41,7 +42,9 @@ module Google
41
42
  universe_domain: universe_domain,
42
43
  credentials: credentials,
43
44
  numeric_enums: true,
44
- raise_faraday_errors: false
45
+ service_name: self.class,
46
+ raise_faraday_errors: false,
47
+ logger: logger
45
48
  end
46
49
 
47
50
  ##
@@ -62,6 +65,15 @@ module Google
62
65
  @client_stub.endpoint
63
66
  end
64
67
 
68
+ ##
69
+ # The logger used for request/response debug logging.
70
+ #
71
+ # @return [Logger]
72
+ #
73
+ def logger stub: false
74
+ stub ? @client_stub.stub_logger : @client_stub.logger
75
+ end
76
+
65
77
  ##
66
78
  # Baseline implementation for the list_transition_route_groups REST call
67
79
  #
@@ -88,16 +100,18 @@ module Google
88
100
 
89
101
  response = @client_stub.make_http_request(
90
102
  verb,
91
- uri: uri,
92
- body: body || "",
93
- params: query_string_params,
103
+ uri: uri,
104
+ body: body || "",
105
+ params: query_string_params,
106
+ method_name: "list_transition_route_groups",
94
107
  options: options
95
108
  )
96
109
  operation = ::Gapic::Rest::TransportOperation.new response
97
110
  result = ::Google::Cloud::Dialogflow::CX::V3::ListTransitionRouteGroupsResponse.decode_json response.body, ignore_unknown_fields: true
98
-
99
- yield result, operation if block_given?
100
- result
111
+ catch :response do
112
+ yield result, operation if block_given?
113
+ result
114
+ end
101
115
  end
102
116
 
103
117
  ##
@@ -126,16 +140,18 @@ module Google
126
140
 
127
141
  response = @client_stub.make_http_request(
128
142
  verb,
129
- uri: uri,
130
- body: body || "",
131
- params: query_string_params,
143
+ uri: uri,
144
+ body: body || "",
145
+ params: query_string_params,
146
+ method_name: "get_transition_route_group",
132
147
  options: options
133
148
  )
134
149
  operation = ::Gapic::Rest::TransportOperation.new response
135
150
  result = ::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup.decode_json response.body, ignore_unknown_fields: true
136
-
137
- yield result, operation if block_given?
138
- result
151
+ catch :response do
152
+ yield result, operation if block_given?
153
+ result
154
+ end
139
155
  end
140
156
 
141
157
  ##
@@ -164,16 +180,18 @@ module Google
164
180
 
165
181
  response = @client_stub.make_http_request(
166
182
  verb,
167
- uri: uri,
168
- body: body || "",
169
- params: query_string_params,
183
+ uri: uri,
184
+ body: body || "",
185
+ params: query_string_params,
186
+ method_name: "create_transition_route_group",
170
187
  options: options
171
188
  )
172
189
  operation = ::Gapic::Rest::TransportOperation.new response
173
190
  result = ::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup.decode_json response.body, ignore_unknown_fields: true
174
-
175
- yield result, operation if block_given?
176
- result
191
+ catch :response do
192
+ yield result, operation if block_given?
193
+ result
194
+ end
177
195
  end
178
196
 
179
197
  ##
@@ -202,16 +220,18 @@ module Google
202
220
 
203
221
  response = @client_stub.make_http_request(
204
222
  verb,
205
- uri: uri,
206
- body: body || "",
207
- params: query_string_params,
223
+ uri: uri,
224
+ body: body || "",
225
+ params: query_string_params,
226
+ method_name: "update_transition_route_group",
208
227
  options: options
209
228
  )
210
229
  operation = ::Gapic::Rest::TransportOperation.new response
211
230
  result = ::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup.decode_json response.body, ignore_unknown_fields: true
212
-
213
- yield result, operation if block_given?
214
- result
231
+ catch :response do
232
+ yield result, operation if block_given?
233
+ result
234
+ end
215
235
  end
216
236
 
217
237
  ##
@@ -240,16 +260,18 @@ module Google
240
260
 
241
261
  response = @client_stub.make_http_request(
242
262
  verb,
243
- uri: uri,
244
- body: body || "",
245
- params: query_string_params,
263
+ uri: uri,
264
+ body: body || "",
265
+ params: query_string_params,
266
+ method_name: "delete_transition_route_group",
246
267
  options: options
247
268
  )
248
269
  operation = ::Gapic::Rest::TransportOperation.new response
249
270
  result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
250
-
251
- yield result, operation if block_given?
252
- result
271
+ catch :response do
272
+ yield result, operation if block_given?
273
+ result
274
+ end
253
275
  end
254
276
 
255
277
  ##
@@ -5,7 +5,7 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
 
8
- descriptor_data = "\n6google/cloud/dialogflow/cx/v3/validation_message.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\"\x9a\x05\n\x11ValidationMessage\x12T\n\rresource_type\x18\x01 \x01(\x0e\x32=.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType\x12\x15\n\tresources\x18\x02 \x03(\tB\x02\x18\x01\x12\x43\n\x0eresource_names\x18\x06 \x03(\x0b\x32+.google.cloud.dialogflow.cx.v3.ResourceName\x12K\n\x08severity\x18\x03 \x01(\x0e\x32\x39.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity\x12\x0e\n\x06\x64\x65tail\x18\x04 \x01(\t\"\xad\x02\n\x0cResourceType\x12\x1d\n\x19RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41GENT\x10\x01\x12\n\n\x06INTENT\x10\x02\x12\x1a\n\x16INTENT_TRAINING_PHRASE\x10\x08\x12\x14\n\x10INTENT_PARAMETER\x10\t\x12\x0b\n\x07INTENTS\x10\n\x12\x1b\n\x17INTENT_TRAINING_PHRASES\x10\x0b\x12\x0f\n\x0b\x45NTITY_TYPE\x10\x03\x12\x10\n\x0c\x45NTITY_TYPES\x10\x0c\x12\x0b\n\x07WEBHOOK\x10\x04\x12\x08\n\x04\x46LOW\x10\x05\x12\x08\n\x04PAGE\x10\x06\x12\t\n\x05PAGES\x10\r\x12\x1a\n\x16TRANSITION_ROUTE_GROUP\x10\x07\x12 \n\x1c\x41GENT_TRANSITION_ROUTE_GROUP\x10\x0e\"F\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x08\n\x04INFO\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\"2\n\x0cResourceName\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\tB\xbc\x01\n!com.google.cloud.dialogflow.cx.v3B\x16ValidationMessageProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
8
+ descriptor_data = "\n6google/cloud/dialogflow/cx/v3/validation_message.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\"\x9a\x05\n\x11ValidationMessage\x12T\n\rresource_type\x18\x01 \x01(\x0e\x32=.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType\x12\x15\n\tresources\x18\x02 \x03(\tB\x02\x18\x01\x12\x43\n\x0eresource_names\x18\x06 \x03(\x0b\x32+.google.cloud.dialogflow.cx.v3.ResourceName\x12K\n\x08severity\x18\x03 \x01(\x0e\x32\x39.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity\x12\x0e\n\x06\x64\x65tail\x18\x04 \x01(\t\"\xad\x02\n\x0cResourceType\x12\x1d\n\x19RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41GENT\x10\x01\x12\n\n\x06INTENT\x10\x02\x12\x1a\n\x16INTENT_TRAINING_PHRASE\x10\x08\x12\x14\n\x10INTENT_PARAMETER\x10\t\x12\x0b\n\x07INTENTS\x10\n\x12\x1b\n\x17INTENT_TRAINING_PHRASES\x10\x0b\x12\x0f\n\x0b\x45NTITY_TYPE\x10\x03\x12\x10\n\x0c\x45NTITY_TYPES\x10\x0c\x12\x0b\n\x07WEBHOOK\x10\x04\x12\x08\n\x04\x46LOW\x10\x05\x12\x08\n\x04PAGE\x10\x06\x12\t\n\x05PAGES\x10\r\x12\x1a\n\x16TRANSITION_ROUTE_GROUP\x10\x07\x12 \n\x1c\x41GENT_TRANSITION_ROUTE_GROUP\x10\x0e\"F\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x08\n\x04INFO\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\"2\n\x0cResourceName\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\tB\xb9\x01\n!com.google.cloud.dialogflow.cx.v3B\x16ValidationMessageProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
9
9
 
10
10
  pool = Google::Protobuf::DescriptorPool.generated_pool
11
11
 
@@ -22,7 +22,7 @@ module Google
22
22
  module Dialogflow
23
23
  module CX
24
24
  module V3
25
- VERSION = "1.1.1"
25
+ VERSION = "1.3.0"
26
26
  end
27
27
  end
28
28
  end
@@ -16,7 +16,7 @@ require 'google/protobuf/struct_pb'
16
16
  require 'google/protobuf/timestamp_pb'
17
17
 
18
18
 
19
- descriptor_data = "\n+google/cloud/dialogflow/cx/v3/version.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/dialogflow/cx/v3/flow.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"Y\n\x1e\x43reateVersionOperationMetadata\x12\x37\n\x07version\x18\x01 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Version\"\xce\x03\n\x07Version\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x45\n\x0cnlu_settings\x18\x04 \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.NluSettingsB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12@\n\x05state\x18\x06 \x01(\x0e\x32,.google.cloud.dialogflow.cx.v3.Version.StateB\x03\xe0\x41\x03\"F\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03:~\xea\x41{\n!dialogflow.googleapis.com/Version\x12Vprojects/{project}/locations/{location}/agents/{agent}/flows/{flow}/versions/{version}\"w\n\x13ListVersionsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!dialogflow.googleapis.com/Version\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"i\n\x14ListVersionsResponse\x12\x38\n\x08versions\x18\x01 \x03(\x0b\x32&.google.cloud.dialogflow.cx.v3.Version\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"L\n\x11GetVersionRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Version\"\x8f\x01\n\x14\x43reateVersionRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!dialogflow.googleapis.com/Version\x12<\n\x07version\x18\x02 \x01(\x0b\x32&.google.cloud.dialogflow.cx.v3.VersionB\x03\xe0\x41\x02\"\x8a\x01\n\x14UpdateVersionRequest\x12<\n\x07version\x18\x01 \x01(\x0b\x32&.google.cloud.dialogflow.cx.v3.VersionB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"O\n\x14\x44\x65leteVersionRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Version\"u\n\x12LoadVersionRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Version\x12&\n\x1e\x61llow_override_agent_resources\x18\x02 \x01(\x08\"\xb3\x01\n\x16\x43ompareVersionsRequest\x12?\n\x0c\x62\x61se_version\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Version\x12\x41\n\x0etarget_version\x18\x02 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Version\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"\x93\x01\n\x17\x43ompareVersionsResponse\x12!\n\x19\x62\x61se_version_content_json\x18\x01 \x01(\t\x12#\n\x1btarget_version_content_json\x18\x02 \x01(\t\x12\x30\n\x0c\x63ompare_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\xe2\x0c\n\x08Versions\x12\xc7\x01\n\x0cListVersions\x12\x32.google.cloud.dialogflow.cx.v3.ListVersionsRequest\x1a\x33.google.cloud.dialogflow.cx.v3.ListVersionsResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions\x12\xb4\x01\n\nGetVersion\x12\x30.google.cloud.dialogflow.cx.v3.GetVersionRequest\x1a&.google.cloud.dialogflow.cx.v3.Version\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}\x12\xf1\x01\n\rCreateVersion\x12\x33.google.cloud.dialogflow.cx.v3.CreateVersionRequest\x1a\x1d.google.longrunning.Operation\"\x8b\x01\xca\x41)\n\x07Version\x12\x1e\x43reateVersionOperationMetadata\xda\x41\x0eparent,version\x82\xd3\xe4\x93\x02H\"=/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions:\x07version\x12\xda\x01\n\rUpdateVersion\x12\x33.google.cloud.dialogflow.cx.v3.UpdateVersionRequest\x1a&.google.cloud.dialogflow.cx.v3.Version\"l\xda\x41\x13version,update_mask\x82\xd3\xe4\x93\x02P2E/v3/{version.name=projects/*/locations/*/agents/*/flows/*/versions/*}:\x07version\x12\xaa\x01\n\rDeleteVersion\x12\x33.google.cloud.dialogflow.cx.v3.DeleteVersionRequest\x1a\x16.google.protobuf.Empty\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}\x12\xe8\x01\n\x0bLoadVersion\x12\x31.google.cloud.dialogflow.cx.v3.LoadVersionRequest\x1a\x1d.google.longrunning.Operation\"\x86\x01\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\xda\x41\x04name\x82\xd3\xe4\x93\x02G\"B/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}:load:\x01*\x12\xf1\x01\n\x0f\x43ompareVersions\x12\x35.google.cloud.dialogflow.cx.v3.CompareVersionsRequest\x1a\x36.google.cloud.dialogflow.cx.v3.CompareVersionsResponse\"o\xda\x41\x0c\x62\x61se_version\x82\xd3\xe4\x93\x02Z\"U/v3/{base_version=projects/*/locations/*/agents/*/flows/*/versions/*}:compareVersions:\x01*\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xb2\x01\n!com.google.cloud.dialogflow.cx.v3B\x0cVersionProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
19
+ descriptor_data = "\n+google/cloud/dialogflow/cx/v3/version.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/dialogflow/cx/v3/flow.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"Y\n\x1e\x43reateVersionOperationMetadata\x12\x37\n\x07version\x18\x01 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Version\"\xce\x03\n\x07Version\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x45\n\x0cnlu_settings\x18\x04 \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.NluSettingsB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12@\n\x05state\x18\x06 \x01(\x0e\x32,.google.cloud.dialogflow.cx.v3.Version.StateB\x03\xe0\x41\x03\"F\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03:~\xea\x41{\n!dialogflow.googleapis.com/Version\x12Vprojects/{project}/locations/{location}/agents/{agent}/flows/{flow}/versions/{version}\"w\n\x13ListVersionsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!dialogflow.googleapis.com/Version\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"i\n\x14ListVersionsResponse\x12\x38\n\x08versions\x18\x01 \x03(\x0b\x32&.google.cloud.dialogflow.cx.v3.Version\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"L\n\x11GetVersionRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Version\"\x8f\x01\n\x14\x43reateVersionRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!dialogflow.googleapis.com/Version\x12<\n\x07version\x18\x02 \x01(\x0b\x32&.google.cloud.dialogflow.cx.v3.VersionB\x03\xe0\x41\x02\"\x8a\x01\n\x14UpdateVersionRequest\x12<\n\x07version\x18\x01 \x01(\x0b\x32&.google.cloud.dialogflow.cx.v3.VersionB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"O\n\x14\x44\x65leteVersionRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Version\"u\n\x12LoadVersionRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Version\x12&\n\x1e\x61llow_override_agent_resources\x18\x02 \x01(\x08\"\xb3\x01\n\x16\x43ompareVersionsRequest\x12?\n\x0c\x62\x61se_version\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Version\x12\x41\n\x0etarget_version\x18\x02 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Version\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"\x93\x01\n\x17\x43ompareVersionsResponse\x12!\n\x19\x62\x61se_version_content_json\x18\x01 \x01(\t\x12#\n\x1btarget_version_content_json\x18\x02 \x01(\t\x12\x30\n\x0c\x63ompare_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\xe2\x0c\n\x08Versions\x12\xc7\x01\n\x0cListVersions\x12\x32.google.cloud.dialogflow.cx.v3.ListVersionsRequest\x1a\x33.google.cloud.dialogflow.cx.v3.ListVersionsResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions\x12\xb4\x01\n\nGetVersion\x12\x30.google.cloud.dialogflow.cx.v3.GetVersionRequest\x1a&.google.cloud.dialogflow.cx.v3.Version\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}\x12\xf1\x01\n\rCreateVersion\x12\x33.google.cloud.dialogflow.cx.v3.CreateVersionRequest\x1a\x1d.google.longrunning.Operation\"\x8b\x01\xca\x41)\n\x07Version\x12\x1e\x43reateVersionOperationMetadata\xda\x41\x0eparent,version\x82\xd3\xe4\x93\x02H\"=/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions:\x07version\x12\xda\x01\n\rUpdateVersion\x12\x33.google.cloud.dialogflow.cx.v3.UpdateVersionRequest\x1a&.google.cloud.dialogflow.cx.v3.Version\"l\xda\x41\x13version,update_mask\x82\xd3\xe4\x93\x02P2E/v3/{version.name=projects/*/locations/*/agents/*/flows/*/versions/*}:\x07version\x12\xaa\x01\n\rDeleteVersion\x12\x33.google.cloud.dialogflow.cx.v3.DeleteVersionRequest\x1a\x16.google.protobuf.Empty\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}\x12\xe8\x01\n\x0bLoadVersion\x12\x31.google.cloud.dialogflow.cx.v3.LoadVersionRequest\x1a\x1d.google.longrunning.Operation\"\x86\x01\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\xda\x41\x04name\x82\xd3\xe4\x93\x02G\"B/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}:load:\x01*\x12\xf1\x01\n\x0f\x43ompareVersions\x12\x35.google.cloud.dialogflow.cx.v3.CompareVersionsRequest\x1a\x36.google.cloud.dialogflow.cx.v3.CompareVersionsResponse\"o\xda\x41\x0c\x62\x61se_version\x82\xd3\xe4\x93\x02Z\"U/v3/{base_version=projects/*/locations/*/agents/*/flows/*/versions/*}:compareVersions:\x01*\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xaf\x01\n!com.google.cloud.dialogflow.cx.v3B\x0cVersionProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
20
20
 
21
21
  pool = Google::Protobuf::DescriptorPool.generated_pool
22
22
 
@@ -171,14 +171,26 @@ module Google
171
171
  universe_domain: @config.universe_domain,
172
172
  channel_args: @config.channel_args,
173
173
  interceptors: @config.interceptors,
174
- channel_pool_config: @config.channel_pool
174
+ channel_pool_config: @config.channel_pool,
175
+ logger: @config.logger
175
176
  )
176
177
 
178
+ @versions_stub.stub_logger&.info do |entry|
179
+ entry.set_system_name
180
+ entry.set_service
181
+ entry.message = "Created client for #{entry.service}"
182
+ entry.set_credentials_fields credentials
183
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
184
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
185
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
186
+ end
187
+
177
188
  @location_client = Google::Cloud::Location::Locations::Client.new do |config|
178
189
  config.credentials = credentials
179
190
  config.quota_project = @quota_project_id
180
191
  config.endpoint = @versions_stub.endpoint
181
192
  config.universe_domain = @versions_stub.universe_domain
193
+ config.logger = @versions_stub.logger if config.respond_to? :logger=
182
194
  end
183
195
  end
184
196
 
@@ -196,6 +208,15 @@ module Google
196
208
  #
197
209
  attr_reader :location_client
198
210
 
211
+ ##
212
+ # The logger used for request/response debug logging.
213
+ #
214
+ # @return [Logger]
215
+ #
216
+ def logger
217
+ @versions_stub.logger
218
+ end
219
+
199
220
  # Service calls
200
221
 
201
222
  ##
@@ -219,8 +240,8 @@ module Google
219
240
  #
220
241
  # @param parent [::String]
221
242
  # Required. The {::Google::Cloud::Dialogflow::CX::V3::Flow Flow} to list all
222
- # versions for. Format: `projects/<Project ID>/locations/<Location
223
- # ID>/agents/<Agent ID>/flows/<Flow ID>`.
243
+ # versions for. Format:
244
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
224
245
  # @param page_size [::Integer]
225
246
  # The maximum number of items to return in a single page. By default 20 and
226
247
  # at most 100.
@@ -291,7 +312,7 @@ module Google
291
312
  @versions_stub.call_rpc :list_versions, request, options: options do |response, operation|
292
313
  response = ::Gapic::PagedEnumerable.new @versions_stub, :list_versions, request, response, operation, options
293
314
  yield response, operation if block_given?
294
- return response
315
+ throw :response, response
295
316
  end
296
317
  rescue ::GRPC::BadStatus => e
297
318
  raise ::Google::Cloud::Error.from_error(e)
@@ -317,8 +338,8 @@ module Google
317
338
  #
318
339
  # @param name [::String]
319
340
  # Required. The name of the {::Google::Cloud::Dialogflow::CX::V3::Version Version}.
320
- # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
321
- # ID>/flows/<Flow ID>/versions/<Version ID>`.
341
+ # Format:
342
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
322
343
  #
323
344
  # @yield [response, operation] Access the result along with the RPC operation
324
345
  # @yieldparam response [::Google::Cloud::Dialogflow::CX::V3::Version]
@@ -379,7 +400,6 @@ module Google
379
400
 
380
401
  @versions_stub.call_rpc :get_version, request, options: options do |response, operation|
381
402
  yield response, operation if block_given?
382
- return response
383
403
  end
384
404
  rescue ::GRPC::BadStatus => e
385
405
  raise ::Google::Cloud::Error.from_error(e)
@@ -415,8 +435,7 @@ module Google
415
435
  # @param parent [::String]
416
436
  # Required. The {::Google::Cloud::Dialogflow::CX::V3::Flow Flow} to create an
417
437
  # {::Google::Cloud::Dialogflow::CX::V3::Version Version} for. Format:
418
- # `projects/<Project ID>/locations/<Location ID>/agents/<Agent
419
- # ID>/flows/<Flow ID>`.
438
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
420
439
  # @param version [::Google::Cloud::Dialogflow::CX::V3::Version, ::Hash]
421
440
  # Required. The version to create.
422
441
  #
@@ -487,7 +506,7 @@ module Google
487
506
  @versions_stub.call_rpc :create_version, request, options: options do |response, operation|
488
507
  response = ::Gapic::Operation.new response, @operations_client, options: options
489
508
  yield response, operation if block_given?
490
- return response
509
+ throw :response, response
491
510
  end
492
511
  rescue ::GRPC::BadStatus => e
493
512
  raise ::Google::Cloud::Error.from_error(e)
@@ -576,7 +595,6 @@ module Google
576
595
 
577
596
  @versions_stub.call_rpc :update_version, request, options: options do |response, operation|
578
597
  yield response, operation if block_given?
579
- return response
580
598
  end
581
599
  rescue ::GRPC::BadStatus => e
582
600
  raise ::Google::Cloud::Error.from_error(e)
@@ -602,8 +620,8 @@ module Google
602
620
  #
603
621
  # @param name [::String]
604
622
  # Required. The name of the {::Google::Cloud::Dialogflow::CX::V3::Version Version}
605
- # to delete. Format: `projects/<Project ID>/locations/<Location
606
- # ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
623
+ # to delete. Format:
624
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
607
625
  #
608
626
  # @yield [response, operation] Access the result along with the RPC operation
609
627
  # @yieldparam response [::Google::Protobuf::Empty]
@@ -664,7 +682,6 @@ module Google
664
682
 
665
683
  @versions_stub.call_rpc :delete_version, request, options: options do |response, operation|
666
684
  yield response, operation if block_given?
667
- return response
668
685
  end
669
686
  rescue ::GRPC::BadStatus => e
670
687
  raise ::Google::Cloud::Error.from_error(e)
@@ -699,8 +716,8 @@ module Google
699
716
  #
700
717
  # @param name [::String]
701
718
  # Required. The {::Google::Cloud::Dialogflow::CX::V3::Version Version} to be loaded
702
- # to draft flow. Format: `projects/<Project ID>/locations/<Location
703
- # ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
719
+ # to draft flow. Format:
720
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
704
721
  # @param allow_override_agent_resources [::Boolean]
705
722
  # This field is used to prevent accidental overwrite of other agent
706
723
  # resources, which can potentially impact other flow's behavior. If
@@ -774,7 +791,7 @@ module Google
774
791
  @versions_stub.call_rpc :load_version, request, options: options do |response, operation|
775
792
  response = ::Gapic::Operation.new response, @operations_client, options: options
776
793
  yield response, operation if block_given?
777
- return response
794
+ throw :response, response
778
795
  end
779
796
  rescue ::GRPC::BadStatus => e
780
797
  raise ::Google::Cloud::Error.from_error(e)
@@ -802,13 +819,13 @@ module Google
802
819
  # Required. Name of the base flow version to compare with the target version.
803
820
  # Use version ID `0` to indicate the draft version of the specified flow.
804
821
  #
805
- # Format: `projects/<Project ID>/locations/<Location ID>/agents/
806
- # <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
822
+ # Format:
823
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
807
824
  # @param target_version [::String]
808
825
  # Required. Name of the target flow version to compare with the
809
826
  # base version. Use version ID `0` to indicate the draft version of the
810
- # specified flow. Format: `projects/<Project ID>/locations/<Location
811
- # ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
827
+ # specified flow. Format:
828
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
812
829
  # @param language_code [::String]
813
830
  # The language to compare the flow versions for.
814
831
  #
@@ -877,7 +894,6 @@ module Google
877
894
 
878
895
  @versions_stub.call_rpc :compare_versions, request, options: options do |response, operation|
879
896
  yield response, operation if block_given?
880
- return response
881
897
  end
882
898
  rescue ::GRPC::BadStatus => e
883
899
  raise ::Google::Cloud::Error.from_error(e)
@@ -966,6 +982,11 @@ module Google
966
982
  # default endpoint URL. The default value of nil uses the environment
967
983
  # universe (usually the default "googleapis.com" universe).
968
984
  # @return [::String,nil]
985
+ # @!attribute [rw] logger
986
+ # A custom logger to use for request/response debug logging, or the value
987
+ # `:default` (the default) to construct a default logger, or `nil` to
988
+ # explicitly disable logging.
989
+ # @return [::Logger,:default,nil]
969
990
  #
970
991
  class Configuration
971
992
  extend ::Gapic::Config
@@ -990,6 +1011,7 @@ module Google
990
1011
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
991
1012
  config_attr :quota_project, nil, ::String, nil
992
1013
  config_attr :universe_domain, nil, ::String, nil
1014
+ config_attr :logger, :default, ::Logger, nil, :default
993
1015
 
994
1016
  # @private
995
1017
  def initialize parent_config = nil