google-cloud-discovery_engine-v1beta 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +30 -20
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/client.rb +32 -7
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/operations.rb +12 -15
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +32 -7
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/operations.rb +43 -38
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/service_stub.rb +62 -38
- data/lib/google/cloud/discovery_engine/v1beta/control_service/client.rb +29 -6
- data/lib/google/cloud/discovery_engine/v1beta/control_service/rest/client.rb +29 -6
- data/lib/google/cloud/discovery_engine/v1beta/control_service/rest/service_stub.rb +54 -32
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +30 -14
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +30 -14
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/service_stub.rb +118 -80
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/client.rb +31 -6
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/operations.rb +12 -15
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/client.rb +31 -6
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/operations.rb +43 -38
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/service_stub.rb +54 -32
- data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +31 -9
- data/lib/google/cloud/discovery_engine/v1beta/document_service/operations.rb +12 -15
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +31 -9
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/operations.rb +43 -38
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/service_stub.rb +78 -50
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/client.rb +32 -9
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/operations.rb +12 -15
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/client.rb +32 -9
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/operations.rb +43 -38
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/service_stub.rb +78 -50
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/client.rb +31 -5
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/operations.rb +12 -15
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/client.rb +31 -5
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/operations.rb +43 -38
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/service_stub.rb +46 -26
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/client.rb +28 -4
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/client.rb +28 -3
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/service_stub.rb +30 -14
- data/lib/google/cloud/discovery_engine/v1beta/project_service/client.rb +29 -2
- data/lib/google/cloud/discovery_engine/v1beta/project_service/operations.rb +12 -15
- data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/client.rb +29 -2
- data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/operations.rb +43 -38
- data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/service_stub.rb +22 -8
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/client.rb +28 -2
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest/client.rb +28 -2
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest/service_stub.rb +22 -8
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/client.rb +28 -2
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/client.rb +28 -2
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/service_stub.rb +22 -8
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/client.rb +30 -7
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/operations.rb +12 -15
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/client.rb +30 -7
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/operations.rb +43 -38
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/service_stub.rb +62 -38
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/client.rb +29 -6
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/rest/client.rb +29 -6
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/rest/service_stub.rb +54 -32
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/client.rb +32 -6
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/operations.rb +12 -15
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/client.rb +32 -6
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/operations.rb +43 -38
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/service_stub.rb +54 -32
- data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +30 -3
- data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +28 -3
- data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/service_stub.rb +30 -14
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/client.rb +29 -3
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/operations.rb +12 -15
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/client.rb +29 -3
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/operations.rb +43 -38
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/service_stub.rb +30 -14
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/client.rb +29 -4
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest/client.rb +29 -4
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest/service_stub.rb +38 -20
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/client.rb +40 -16
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/operations.rb +12 -15
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/client.rb +40 -16
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/operations.rb +43 -38
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/service_stub.rb +134 -92
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +30 -5
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/operations.rb +12 -15
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +30 -5
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/operations.rb +43 -38
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/service_stub.rb +46 -26
- data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
- data/proto_docs/google/api/client.rb +19 -0
- data/proto_docs/google/longrunning/operations.rb +19 -14
- metadata +5 -5
@@ -163,14 +163,26 @@ module Google
|
|
163
163
|
universe_domain: @config.universe_domain,
|
164
164
|
channel_args: @config.channel_args,
|
165
165
|
interceptors: @config.interceptors,
|
166
|
-
channel_pool_config: @config.channel_pool
|
166
|
+
channel_pool_config: @config.channel_pool,
|
167
|
+
logger: @config.logger
|
167
168
|
)
|
168
169
|
|
170
|
+
@conversational_search_service_stub.stub_logger&.info do |entry|
|
171
|
+
entry.set_system_name
|
172
|
+
entry.set_service
|
173
|
+
entry.message = "Created client for #{entry.service}"
|
174
|
+
entry.set_credentials_fields credentials
|
175
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
176
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
177
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
178
|
+
end
|
179
|
+
|
169
180
|
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
170
181
|
config.credentials = credentials
|
171
182
|
config.quota_project = @quota_project_id
|
172
183
|
config.endpoint = @conversational_search_service_stub.endpoint
|
173
184
|
config.universe_domain = @conversational_search_service_stub.universe_domain
|
185
|
+
config.logger = @conversational_search_service_stub.logger if config.respond_to? :logger=
|
174
186
|
end
|
175
187
|
end
|
176
188
|
|
@@ -181,6 +193,15 @@ module Google
|
|
181
193
|
#
|
182
194
|
attr_reader :location_client
|
183
195
|
|
196
|
+
##
|
197
|
+
# The logger used for request/response debug logging.
|
198
|
+
#
|
199
|
+
# @return [Logger]
|
200
|
+
#
|
201
|
+
def logger
|
202
|
+
@conversational_search_service_stub.logger
|
203
|
+
end
|
204
|
+
|
184
205
|
# Service calls
|
185
206
|
|
186
207
|
##
|
@@ -321,7 +342,6 @@ module Google
|
|
321
342
|
|
322
343
|
@conversational_search_service_stub.call_rpc :converse_conversation, request, options: options do |response, operation|
|
323
344
|
yield response, operation if block_given?
|
324
|
-
return response
|
325
345
|
end
|
326
346
|
rescue ::GRPC::BadStatus => e
|
327
347
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -413,7 +433,6 @@ module Google
|
|
413
433
|
|
414
434
|
@conversational_search_service_stub.call_rpc :create_conversation, request, options: options do |response, operation|
|
415
435
|
yield response, operation if block_given?
|
416
|
-
return response
|
417
436
|
end
|
418
437
|
rescue ::GRPC::BadStatus => e
|
419
438
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -503,7 +522,6 @@ module Google
|
|
503
522
|
|
504
523
|
@conversational_search_service_stub.call_rpc :delete_conversation, request, options: options do |response, operation|
|
505
524
|
yield response, operation if block_given?
|
506
|
-
return response
|
507
525
|
end
|
508
526
|
rescue ::GRPC::BadStatus => e
|
509
527
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -602,7 +620,6 @@ module Google
|
|
602
620
|
|
603
621
|
@conversational_search_service_stub.call_rpc :update_conversation, request, options: options do |response, operation|
|
604
622
|
yield response, operation if block_given?
|
605
|
-
return response
|
606
623
|
end
|
607
624
|
rescue ::GRPC::BadStatus => e
|
608
625
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -689,7 +706,6 @@ module Google
|
|
689
706
|
|
690
707
|
@conversational_search_service_stub.call_rpc :get_conversation, request, options: options do |response, operation|
|
691
708
|
yield response, operation if block_given?
|
692
|
-
return response
|
693
709
|
end
|
694
710
|
rescue ::GRPC::BadStatus => e
|
695
711
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -805,7 +821,7 @@ module Google
|
|
805
821
|
@conversational_search_service_stub.call_rpc :list_conversations, request, options: options do |response, operation|
|
806
822
|
response = ::Gapic::PagedEnumerable.new @conversational_search_service_stub, :list_conversations, request, response, operation, options
|
807
823
|
yield response, operation if block_given?
|
808
|
-
|
824
|
+
throw :response, response
|
809
825
|
end
|
810
826
|
rescue ::GRPC::BadStatus => e
|
811
827
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -958,7 +974,6 @@ module Google
|
|
958
974
|
|
959
975
|
@conversational_search_service_stub.call_rpc :answer_query, request, options: options do |response, operation|
|
960
976
|
yield response, operation if block_given?
|
961
|
-
return response
|
962
977
|
end
|
963
978
|
rescue ::GRPC::BadStatus => e
|
964
979
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1045,7 +1060,6 @@ module Google
|
|
1045
1060
|
|
1046
1061
|
@conversational_search_service_stub.call_rpc :get_answer, request, options: options do |response, operation|
|
1047
1062
|
yield response, operation if block_given?
|
1048
|
-
return response
|
1049
1063
|
end
|
1050
1064
|
rescue ::GRPC::BadStatus => e
|
1051
1065
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1137,7 +1151,6 @@ module Google
|
|
1137
1151
|
|
1138
1152
|
@conversational_search_service_stub.call_rpc :create_session, request, options: options do |response, operation|
|
1139
1153
|
yield response, operation if block_given?
|
1140
|
-
return response
|
1141
1154
|
end
|
1142
1155
|
rescue ::GRPC::BadStatus => e
|
1143
1156
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1227,7 +1240,6 @@ module Google
|
|
1227
1240
|
|
1228
1241
|
@conversational_search_service_stub.call_rpc :delete_session, request, options: options do |response, operation|
|
1229
1242
|
yield response, operation if block_given?
|
1230
|
-
return response
|
1231
1243
|
end
|
1232
1244
|
rescue ::GRPC::BadStatus => e
|
1233
1245
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1325,7 +1337,6 @@ module Google
|
|
1325
1337
|
|
1326
1338
|
@conversational_search_service_stub.call_rpc :update_session, request, options: options do |response, operation|
|
1327
1339
|
yield response, operation if block_given?
|
1328
|
-
return response
|
1329
1340
|
end
|
1330
1341
|
rescue ::GRPC::BadStatus => e
|
1331
1342
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1412,7 +1423,6 @@ module Google
|
|
1412
1423
|
|
1413
1424
|
@conversational_search_service_stub.call_rpc :get_session, request, options: options do |response, operation|
|
1414
1425
|
yield response, operation if block_given?
|
1415
|
-
return response
|
1416
1426
|
end
|
1417
1427
|
rescue ::GRPC::BadStatus => e
|
1418
1428
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1528,7 +1538,7 @@ module Google
|
|
1528
1538
|
@conversational_search_service_stub.call_rpc :list_sessions, request, options: options do |response, operation|
|
1529
1539
|
response = ::Gapic::PagedEnumerable.new @conversational_search_service_stub, :list_sessions, request, response, operation, options
|
1530
1540
|
yield response, operation if block_given?
|
1531
|
-
|
1541
|
+
throw :response, response
|
1532
1542
|
end
|
1533
1543
|
rescue ::GRPC::BadStatus => e
|
1534
1544
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1617,6 +1627,11 @@ module Google
|
|
1617
1627
|
# default endpoint URL. The default value of nil uses the environment
|
1618
1628
|
# universe (usually the default "googleapis.com" universe).
|
1619
1629
|
# @return [::String,nil]
|
1630
|
+
# @!attribute [rw] logger
|
1631
|
+
# A custom logger to use for request/response debug logging, or the value
|
1632
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
1633
|
+
# explicitly disable logging.
|
1634
|
+
# @return [::Logger,:default,nil]
|
1620
1635
|
#
|
1621
1636
|
class Configuration
|
1622
1637
|
extend ::Gapic::Config
|
@@ -1641,6 +1656,7 @@ module Google
|
|
1641
1656
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1642
1657
|
config_attr :quota_project, nil, ::String, nil
|
1643
1658
|
config_attr :universe_domain, nil, ::String, nil
|
1659
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
1644
1660
|
|
1645
1661
|
# @private
|
1646
1662
|
def initialize parent_config = nil
|
@@ -156,14 +156,26 @@ module Google
|
|
156
156
|
endpoint: @config.endpoint,
|
157
157
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
158
158
|
universe_domain: @config.universe_domain,
|
159
|
-
credentials: credentials
|
159
|
+
credentials: credentials,
|
160
|
+
logger: @config.logger
|
160
161
|
)
|
161
162
|
|
163
|
+
@conversational_search_service_stub.logger(stub: true)&.info do |entry|
|
164
|
+
entry.set_system_name
|
165
|
+
entry.set_service
|
166
|
+
entry.message = "Created client for #{entry.service}"
|
167
|
+
entry.set_credentials_fields credentials
|
168
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
169
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
170
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
171
|
+
end
|
172
|
+
|
162
173
|
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
163
174
|
config.credentials = credentials
|
164
175
|
config.quota_project = @quota_project_id
|
165
176
|
config.endpoint = @conversational_search_service_stub.endpoint
|
166
177
|
config.universe_domain = @conversational_search_service_stub.universe_domain
|
178
|
+
config.logger = @conversational_search_service_stub.logger if config.respond_to? :logger=
|
167
179
|
end
|
168
180
|
end
|
169
181
|
|
@@ -174,6 +186,15 @@ module Google
|
|
174
186
|
#
|
175
187
|
attr_reader :location_client
|
176
188
|
|
189
|
+
##
|
190
|
+
# The logger used for request/response debug logging.
|
191
|
+
#
|
192
|
+
# @return [Logger]
|
193
|
+
#
|
194
|
+
def logger
|
195
|
+
@conversational_search_service_stub.logger
|
196
|
+
end
|
197
|
+
|
177
198
|
# Service calls
|
178
199
|
|
179
200
|
##
|
@@ -307,7 +328,6 @@ module Google
|
|
307
328
|
|
308
329
|
@conversational_search_service_stub.converse_conversation request, options do |result, operation|
|
309
330
|
yield result, operation if block_given?
|
310
|
-
return result
|
311
331
|
end
|
312
332
|
rescue ::Gapic::Rest::Error => e
|
313
333
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -392,7 +412,6 @@ module Google
|
|
392
412
|
|
393
413
|
@conversational_search_service_stub.create_conversation request, options do |result, operation|
|
394
414
|
yield result, operation if block_given?
|
395
|
-
return result
|
396
415
|
end
|
397
416
|
rescue ::Gapic::Rest::Error => e
|
398
417
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -475,7 +494,6 @@ module Google
|
|
475
494
|
|
476
495
|
@conversational_search_service_stub.delete_conversation request, options do |result, operation|
|
477
496
|
yield result, operation if block_given?
|
478
|
-
return result
|
479
497
|
end
|
480
498
|
rescue ::Gapic::Rest::Error => e
|
481
499
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -567,7 +585,6 @@ module Google
|
|
567
585
|
|
568
586
|
@conversational_search_service_stub.update_conversation request, options do |result, operation|
|
569
587
|
yield result, operation if block_given?
|
570
|
-
return result
|
571
588
|
end
|
572
589
|
rescue ::Gapic::Rest::Error => e
|
573
590
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -647,7 +664,6 @@ module Google
|
|
647
664
|
|
648
665
|
@conversational_search_service_stub.get_conversation request, options do |result, operation|
|
649
666
|
yield result, operation if block_given?
|
650
|
-
return result
|
651
667
|
end
|
652
668
|
rescue ::Gapic::Rest::Error => e
|
653
669
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -756,7 +772,7 @@ module Google
|
|
756
772
|
@conversational_search_service_stub.list_conversations request, options do |result, operation|
|
757
773
|
result = ::Gapic::Rest::PagedEnumerable.new @conversational_search_service_stub, :list_conversations, "conversations", request, result, options
|
758
774
|
yield result, operation if block_given?
|
759
|
-
|
775
|
+
throw :response, result
|
760
776
|
end
|
761
777
|
rescue ::Gapic::Rest::Error => e
|
762
778
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -902,7 +918,6 @@ module Google
|
|
902
918
|
|
903
919
|
@conversational_search_service_stub.answer_query request, options do |result, operation|
|
904
920
|
yield result, operation if block_given?
|
905
|
-
return result
|
906
921
|
end
|
907
922
|
rescue ::Gapic::Rest::Error => e
|
908
923
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -982,7 +997,6 @@ module Google
|
|
982
997
|
|
983
998
|
@conversational_search_service_stub.get_answer request, options do |result, operation|
|
984
999
|
yield result, operation if block_given?
|
985
|
-
return result
|
986
1000
|
end
|
987
1001
|
rescue ::Gapic::Rest::Error => e
|
988
1002
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1067,7 +1081,6 @@ module Google
|
|
1067
1081
|
|
1068
1082
|
@conversational_search_service_stub.create_session request, options do |result, operation|
|
1069
1083
|
yield result, operation if block_given?
|
1070
|
-
return result
|
1071
1084
|
end
|
1072
1085
|
rescue ::Gapic::Rest::Error => e
|
1073
1086
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1150,7 +1163,6 @@ module Google
|
|
1150
1163
|
|
1151
1164
|
@conversational_search_service_stub.delete_session request, options do |result, operation|
|
1152
1165
|
yield result, operation if block_given?
|
1153
|
-
return result
|
1154
1166
|
end
|
1155
1167
|
rescue ::Gapic::Rest::Error => e
|
1156
1168
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1241,7 +1253,6 @@ module Google
|
|
1241
1253
|
|
1242
1254
|
@conversational_search_service_stub.update_session request, options do |result, operation|
|
1243
1255
|
yield result, operation if block_given?
|
1244
|
-
return result
|
1245
1256
|
end
|
1246
1257
|
rescue ::Gapic::Rest::Error => e
|
1247
1258
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1321,7 +1332,6 @@ module Google
|
|
1321
1332
|
|
1322
1333
|
@conversational_search_service_stub.get_session request, options do |result, operation|
|
1323
1334
|
yield result, operation if block_given?
|
1324
|
-
return result
|
1325
1335
|
end
|
1326
1336
|
rescue ::Gapic::Rest::Error => e
|
1327
1337
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1430,7 +1440,7 @@ module Google
|
|
1430
1440
|
@conversational_search_service_stub.list_sessions request, options do |result, operation|
|
1431
1441
|
result = ::Gapic::Rest::PagedEnumerable.new @conversational_search_service_stub, :list_sessions, "sessions", request, result, options
|
1432
1442
|
yield result, operation if block_given?
|
1433
|
-
|
1443
|
+
throw :response, result
|
1434
1444
|
end
|
1435
1445
|
rescue ::Gapic::Rest::Error => e
|
1436
1446
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1510,6 +1520,11 @@ module Google
|
|
1510
1520
|
# default endpoint URL. The default value of nil uses the environment
|
1511
1521
|
# universe (usually the default "googleapis.com" universe).
|
1512
1522
|
# @return [::String,nil]
|
1523
|
+
# @!attribute [rw] logger
|
1524
|
+
# A custom logger to use for request/response debug logging, or the value
|
1525
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
1526
|
+
# explicitly disable logging.
|
1527
|
+
# @return [::Logger,:default,nil]
|
1513
1528
|
#
|
1514
1529
|
class Configuration
|
1515
1530
|
extend ::Gapic::Config
|
@@ -1531,6 +1546,7 @@ module Google
|
|
1531
1546
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1532
1547
|
config_attr :quota_project, nil, ::String, nil
|
1533
1548
|
config_attr :universe_domain, nil, ::String, nil
|
1549
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
1534
1550
|
|
1535
1551
|
# @private
|
1536
1552
|
def initialize parent_config = nil
|