google-cloud-discovery_engine-v1 2.0.0 → 2.1.1
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.
- checksums.yaml +4 -4
- data/lib/google/cloud/discovery_engine/v1/completion_service/client.rb +2 -2
- data/lib/google/cloud/discovery_engine/v1/completion_service/operations.rb +2 -2
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/client.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/operations.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1/control_service/client.rb +2 -2
- data/lib/google/cloud/discovery_engine/v1/control_service/rest/client.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/client.rb +188 -6
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/client.rb +182 -5
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/service_stub.rb +72 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/client.rb +2 -2
- data/lib/google/cloud/discovery_engine/v1/data_store_service/operations.rb +2 -2
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/client.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/operations.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1/document_service/client.rb +10 -4
- data/lib/google/cloud/discovery_engine/v1/document_service/operations.rb +2 -2
- data/lib/google/cloud/discovery_engine/v1/document_service/rest/client.rb +9 -3
- data/lib/google/cloud/discovery_engine/v1/document_service/rest/operations.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1/engine_service/client.rb +2 -2
- data/lib/google/cloud/discovery_engine/v1/engine_service/operations.rb +2 -2
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/client.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/operations.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/client.rb +3 -5
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/rest/client.rb +2 -4
- data/lib/google/cloud/discovery_engine/v1/project_service/client.rb +2 -2
- data/lib/google/cloud/discovery_engine/v1/project_service/operations.rb +2 -2
- data/lib/google/cloud/discovery_engine/v1/project_service/rest/client.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1/project_service/rest/operations.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1/rank_service/client.rb +3 -3
- data/lib/google/cloud/discovery_engine/v1/rank_service/rest/client.rb +2 -2
- data/lib/google/cloud/discovery_engine/v1/recommendation_service/client.rb +5 -5
- data/lib/google/cloud/discovery_engine/v1/recommendation_service/rest/client.rb +4 -4
- data/lib/google/cloud/discovery_engine/v1/rest.rb +1 -0
- data/lib/google/cloud/discovery_engine/v1/schema_service/client.rb +2 -2
- data/lib/google/cloud/discovery_engine/v1/schema_service/operations.rb +2 -2
- data/lib/google/cloud/discovery_engine/v1/schema_service/rest/client.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1/schema_service/rest/operations.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1/search_service/client.rb +46 -14
- data/lib/google/cloud/discovery_engine/v1/search_service/rest/client.rb +45 -13
- data/lib/google/cloud/discovery_engine/v1/search_tuning_service/client.rb +2 -2
- data/lib/google/cloud/discovery_engine/v1/search_tuning_service/operations.rb +2 -2
- data/lib/google/cloud/discovery_engine/v1/search_tuning_service/rest/client.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1/search_tuning_service/rest/operations.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1/serving_config_service/client.rb +484 -0
- data/lib/google/cloud/discovery_engine/v1/serving_config_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/serving_config_service/paths.rb +101 -0
- data/lib/google/cloud/discovery_engine/v1/serving_config_service/rest/client.rb +451 -0
- data/lib/google/cloud/discovery_engine/v1/serving_config_service/rest/service_stub.rb +159 -0
- data/lib/google/cloud/discovery_engine/v1/serving_config_service/rest.rb +53 -0
- data/lib/google/cloud/discovery_engine/v1/serving_config_service.rb +56 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/client.rb +318 -5
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/operations.rb +2 -2
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/paths.rb +49 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/client.rb +296 -4
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/operations.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/service_stub.rb +206 -0
- data/lib/google/cloud/discovery_engine/v1/user_event_service/client.rb +23 -11
- data/lib/google/cloud/discovery_engine/v1/user_event_service/operations.rb +2 -2
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/client.rb +22 -10
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/operations.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/service_stub.rb +8 -0
- data/lib/google/cloud/discovery_engine/v1/version.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1.rb +1 -0
- data/lib/google/cloud/discoveryengine/v1/answer_pb.rb +4 -1
- data/lib/google/cloud/discoveryengine/v1/common_pb.rb +4 -1
- data/lib/google/cloud/discoveryengine/v1/control_pb.rb +7 -1
- data/lib/google/cloud/discoveryengine/v1/conversational_search_service_pb.rb +12 -1
- data/lib/google/cloud/discoveryengine/v1/conversational_search_service_services_pb.rb +8 -0
- data/lib/google/cloud/discoveryengine/v1/data_store_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1/document_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/engine_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/grounded_generation_service_pb.rb +6 -1
- data/lib/google/cloud/discoveryengine/v1/import_config_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/safety_pb.rb +47 -0
- data/lib/google/cloud/discoveryengine/v1/search_service_pb.rb +5 -1
- data/lib/google/cloud/discoveryengine/v1/serving_config_pb.rb +52 -0
- data/lib/google/cloud/discoveryengine/v1/serving_config_service_pb.rb +51 -0
- data/lib/google/cloud/discoveryengine/v1/serving_config_service_services_pb.rb +48 -0
- data/lib/google/cloud/discoveryengine/v1/session_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1/site_search_engine_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1/site_search_engine_service_pb.rb +10 -1
- data/lib/google/cloud/discoveryengine/v1/site_search_engine_service_services_pb.rb +7 -0
- data/lib/google/cloud/discoveryengine/v1/user_event_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/user_event_service_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +6 -0
- data/proto_docs/google/cloud/discoveryengine/v1/answer.rb +53 -2
- data/proto_docs/google/cloud/discoveryengine/v1/chunk.rb +2 -1
- data/proto_docs/google/cloud/discoveryengine/v1/common.rb +40 -0
- data/proto_docs/google/cloud/discoveryengine/v1/control.rb +122 -7
- data/proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb +159 -2
- data/proto_docs/google/cloud/discoveryengine/v1/data_store.rb +25 -4
- data/proto_docs/google/cloud/discoveryengine/v1/document.rb +7 -2
- data/proto_docs/google/cloud/discoveryengine/v1/document_service.rb +1 -1
- data/proto_docs/google/cloud/discoveryengine/v1/engine.rb +16 -3
- data/proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb +90 -12
- data/proto_docs/google/cloud/discoveryengine/v1/import_config.rb +19 -1
- data/proto_docs/google/cloud/discoveryengine/v1/purge_config.rb +9 -5
- data/proto_docs/google/cloud/discoveryengine/v1/rank_service.rb +3 -1
- data/proto_docs/google/cloud/discoveryengine/v1/recommendation_service.rb +3 -3
- data/proto_docs/google/cloud/discoveryengine/v1/safety.rb +108 -0
- data/proto_docs/google/cloud/discoveryengine/v1/search_service.rb +109 -8
- data/proto_docs/google/cloud/discoveryengine/v1/serving_config.rb +261 -0
- data/proto_docs/google/cloud/discoveryengine/v1/serving_config_service.rb +44 -0
- data/proto_docs/google/cloud/discoveryengine/v1/session.rb +18 -0
- data/proto_docs/google/cloud/discoveryengine/v1/site_search_engine.rb +19 -2
- data/proto_docs/google/cloud/discoveryengine/v1/site_search_engine_service.rb +146 -4
- data/proto_docs/google/cloud/discoveryengine/v1/user_event.rb +34 -0
- data/proto_docs/google/cloud/discoveryengine/v1/user_event_service.rb +12 -4
- metadata +17 -3
data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/service_stub.rb
CHANGED
@@ -353,6 +353,40 @@ module Google
|
|
353
353
|
end
|
354
354
|
end
|
355
355
|
|
356
|
+
##
|
357
|
+
# Baseline implementation for the stream_answer_query REST call
|
358
|
+
#
|
359
|
+
# @param request_pb [::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest]
|
360
|
+
# A request object representing the call parameters. Required.
|
361
|
+
# @param options [::Gapic::CallOptions]
|
362
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
363
|
+
#
|
364
|
+
# @yieldparam chunk [::String] The chunk of data received during server streaming.
|
365
|
+
#
|
366
|
+
# @return [::Gapic::Rest::TransportOperation]
|
367
|
+
def stream_answer_query request_pb, options = nil, &block
|
368
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
369
|
+
|
370
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_stream_answer_query_request request_pb
|
371
|
+
query_string_params = if query_string_params.any?
|
372
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
373
|
+
else
|
374
|
+
{}
|
375
|
+
end
|
376
|
+
|
377
|
+
response = @client_stub.make_http_request(
|
378
|
+
verb,
|
379
|
+
uri: uri,
|
380
|
+
body: body || "",
|
381
|
+
params: query_string_params,
|
382
|
+
method_name: "stream_answer_query",
|
383
|
+
options: options,
|
384
|
+
is_server_streaming: true,
|
385
|
+
&block
|
386
|
+
)
|
387
|
+
::Gapic::Rest::TransportOperation.new response
|
388
|
+
end
|
389
|
+
|
356
390
|
##
|
357
391
|
# Baseline implementation for the get_answer REST call
|
358
392
|
#
|
@@ -850,6 +884,44 @@ module Google
|
|
850
884
|
transcoder.transcode request_pb
|
851
885
|
end
|
852
886
|
|
887
|
+
##
|
888
|
+
# @private
|
889
|
+
#
|
890
|
+
# GRPC transcoding helper method for the stream_answer_query REST call
|
891
|
+
#
|
892
|
+
# @param request_pb [::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest]
|
893
|
+
# A request object representing the call parameters. Required.
|
894
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
895
|
+
# Uri, Body, Query string parameters
|
896
|
+
def self.transcode_stream_answer_query_request request_pb
|
897
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
898
|
+
.with_bindings(
|
899
|
+
uri_method: :post,
|
900
|
+
uri_template: "/v1/{serving_config}:streamAnswer",
|
901
|
+
body: "*",
|
902
|
+
matches: [
|
903
|
+
["serving_config", %r{^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+/?$}, false]
|
904
|
+
]
|
905
|
+
)
|
906
|
+
.with_bindings(
|
907
|
+
uri_method: :post,
|
908
|
+
uri_template: "/v1/{serving_config}:streamAnswer",
|
909
|
+
body: "*",
|
910
|
+
matches: [
|
911
|
+
["serving_config", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+/?$}, false]
|
912
|
+
]
|
913
|
+
)
|
914
|
+
.with_bindings(
|
915
|
+
uri_method: :post,
|
916
|
+
uri_template: "/v1/{serving_config}:streamAnswer",
|
917
|
+
body: "*",
|
918
|
+
matches: [
|
919
|
+
["serving_config", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/servingConfigs/[^/]+/?$}, false]
|
920
|
+
]
|
921
|
+
)
|
922
|
+
transcoder.transcode request_pb
|
923
|
+
end
|
924
|
+
|
853
925
|
##
|
854
926
|
# @private
|
855
927
|
#
|
@@ -861,8 +861,8 @@ module Google
|
|
861
861
|
|
862
862
|
config_attr :endpoint, nil, ::String, nil
|
863
863
|
config_attr :credentials, nil do |value|
|
864
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
865
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
864
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
865
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
866
866
|
allowed.any? { |klass| klass === value }
|
867
867
|
end
|
868
868
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -701,8 +701,8 @@ module Google
|
|
701
701
|
|
702
702
|
config_attr :endpoint, nil, ::String, nil
|
703
703
|
config_attr :credentials, nil do |value|
|
704
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
705
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
704
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
705
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
706
706
|
allowed.any? { |klass| klass === value }
|
707
707
|
end
|
708
708
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -810,7 +810,7 @@ module Google
|
|
810
810
|
|
811
811
|
config_attr :endpoint, nil, ::String, nil
|
812
812
|
config_attr :credentials, nil do |value|
|
813
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
813
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
814
814
|
allowed.any? { |klass| klass === value }
|
815
815
|
end
|
816
816
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -556,7 +556,7 @@ module Google
|
|
556
556
|
|
557
557
|
config_attr :endpoint, nil, ::String, nil
|
558
558
|
config_attr :credentials, nil do |value|
|
559
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
559
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
560
560
|
allowed.any? { |klass| klass === value }
|
561
561
|
end
|
562
562
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -474,7 +474,7 @@ module Google
|
|
474
474
|
# Otherwise, an `ALREADY_EXISTS` error is returned.
|
475
475
|
#
|
476
476
|
# This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
|
477
|
-
# standard with a length limit of
|
477
|
+
# standard with a length limit of 128 characters. Otherwise, an
|
478
478
|
# `INVALID_ARGUMENT` error is returned.
|
479
479
|
#
|
480
480
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -755,7 +755,7 @@ module Google
|
|
755
755
|
# @param options [::Gapic::CallOptions, ::Hash]
|
756
756
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
757
757
|
#
|
758
|
-
# @overload import_documents(inline_source: nil, gcs_source: nil, bigquery_source: nil, fhir_store_source: nil, spanner_source: nil, cloud_sql_source: nil, firestore_source: nil, alloy_db_source: nil, bigtable_source: nil, parent: nil, error_config: nil, reconciliation_mode: nil, update_mask: nil, auto_generate_ids: nil, id_field: nil)
|
758
|
+
# @overload import_documents(inline_source: nil, gcs_source: nil, bigquery_source: nil, fhir_store_source: nil, spanner_source: nil, cloud_sql_source: nil, firestore_source: nil, alloy_db_source: nil, bigtable_source: nil, parent: nil, error_config: nil, reconciliation_mode: nil, update_mask: nil, auto_generate_ids: nil, id_field: nil, force_refresh_content: nil)
|
759
759
|
# Pass arguments to `import_documents` via keyword arguments. Note that at
|
760
760
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
761
761
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -870,6 +870,12 @@ module Google
|
|
870
870
|
# * {::Google::Cloud::DiscoveryEngine::V1::CloudSqlSource CloudSqlSource}.
|
871
871
|
# * {::Google::Cloud::DiscoveryEngine::V1::FirestoreSource FirestoreSource}.
|
872
872
|
# * {::Google::Cloud::DiscoveryEngine::V1::BigtableSource BigtableSource}.
|
873
|
+
# @param force_refresh_content [::Boolean]
|
874
|
+
# Optional. Whether to force refresh the unstructured content of the
|
875
|
+
# documents.
|
876
|
+
#
|
877
|
+
# If set to `true`, the content part of the documents will be refreshed
|
878
|
+
# regardless of the update status of the referencing content.
|
873
879
|
#
|
874
880
|
# @yield [response, operation] Access the result along with the RPC operation
|
875
881
|
# @yieldparam response [::Gapic::Operation]
|
@@ -1270,8 +1276,8 @@ module Google
|
|
1270
1276
|
|
1271
1277
|
config_attr :endpoint, nil, ::String, nil
|
1272
1278
|
config_attr :credentials, nil do |value|
|
1273
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1274
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
1279
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
1280
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
1275
1281
|
allowed.any? { |klass| klass === value }
|
1276
1282
|
end
|
1277
1283
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -701,8 +701,8 @@ module Google
|
|
701
701
|
|
702
702
|
config_attr :endpoint, nil, ::String, nil
|
703
703
|
config_attr :credentials, nil do |value|
|
704
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
705
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
704
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
705
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
706
706
|
allowed.any? { |klass| klass === value }
|
707
707
|
end
|
708
708
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -453,7 +453,7 @@ module Google
|
|
453
453
|
# Otherwise, an `ALREADY_EXISTS` error is returned.
|
454
454
|
#
|
455
455
|
# This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
|
456
|
-
# standard with a length limit of
|
456
|
+
# standard with a length limit of 128 characters. Otherwise, an
|
457
457
|
# `INVALID_ARGUMENT` error is returned.
|
458
458
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
459
459
|
# @yieldparam result [::Google::Cloud::DiscoveryEngine::V1::Document]
|
@@ -713,7 +713,7 @@ module Google
|
|
713
713
|
# @param options [::Gapic::CallOptions, ::Hash]
|
714
714
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
715
715
|
#
|
716
|
-
# @overload import_documents(inline_source: nil, gcs_source: nil, bigquery_source: nil, fhir_store_source: nil, spanner_source: nil, cloud_sql_source: nil, firestore_source: nil, alloy_db_source: nil, bigtable_source: nil, parent: nil, error_config: nil, reconciliation_mode: nil, update_mask: nil, auto_generate_ids: nil, id_field: nil)
|
716
|
+
# @overload import_documents(inline_source: nil, gcs_source: nil, bigquery_source: nil, fhir_store_source: nil, spanner_source: nil, cloud_sql_source: nil, firestore_source: nil, alloy_db_source: nil, bigtable_source: nil, parent: nil, error_config: nil, reconciliation_mode: nil, update_mask: nil, auto_generate_ids: nil, id_field: nil, force_refresh_content: nil)
|
717
717
|
# Pass arguments to `import_documents` via keyword arguments. Note that at
|
718
718
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
719
719
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -828,6 +828,12 @@ module Google
|
|
828
828
|
# * {::Google::Cloud::DiscoveryEngine::V1::CloudSqlSource CloudSqlSource}.
|
829
829
|
# * {::Google::Cloud::DiscoveryEngine::V1::FirestoreSource FirestoreSource}.
|
830
830
|
# * {::Google::Cloud::DiscoveryEngine::V1::BigtableSource BigtableSource}.
|
831
|
+
# @param force_refresh_content [::Boolean]
|
832
|
+
# Optional. Whether to force refresh the unstructured content of the
|
833
|
+
# documents.
|
834
|
+
#
|
835
|
+
# If set to `true`, the content part of the documents will be refreshed
|
836
|
+
# regardless of the update status of the referencing content.
|
831
837
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
832
838
|
# @yieldparam result [::Gapic::Operation]
|
833
839
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -1198,7 +1204,7 @@ module Google
|
|
1198
1204
|
|
1199
1205
|
config_attr :endpoint, nil, ::String, nil
|
1200
1206
|
config_attr :credentials, nil do |value|
|
1201
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1207
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
1202
1208
|
allowed.any? { |klass| klass === value }
|
1203
1209
|
end
|
1204
1210
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -556,7 +556,7 @@ module Google
|
|
556
556
|
|
557
557
|
config_attr :endpoint, nil, ::String, nil
|
558
558
|
config_attr :credentials, nil do |value|
|
559
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
559
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
560
560
|
allowed.any? { |klass| klass === value }
|
561
561
|
end
|
562
562
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -813,8 +813,8 @@ module Google
|
|
813
813
|
|
814
814
|
config_attr :endpoint, nil, ::String, nil
|
815
815
|
config_attr :credentials, nil do |value|
|
816
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
817
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
816
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
817
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
818
818
|
allowed.any? { |klass| klass === value }
|
819
819
|
end
|
820
820
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -701,8 +701,8 @@ module Google
|
|
701
701
|
|
702
702
|
config_attr :endpoint, nil, ::String, nil
|
703
703
|
config_attr :credentials, nil do |value|
|
704
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
705
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
704
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
705
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
706
706
|
allowed.any? { |klass| klass === value }
|
707
707
|
end
|
708
708
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -762,7 +762,7 @@ module Google
|
|
762
762
|
|
763
763
|
config_attr :endpoint, nil, ::String, nil
|
764
764
|
config_attr :credentials, nil do |value|
|
765
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
765
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
766
766
|
allowed.any? { |klass| klass === value }
|
767
767
|
end
|
768
768
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -556,7 +556,7 @@ module Google
|
|
556
556
|
|
557
557
|
config_attr :endpoint, nil, ::String, nil
|
558
558
|
config_attr :credentials, nil do |value|
|
559
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
559
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
560
560
|
allowed.any? { |klass| klass === value }
|
561
561
|
end
|
562
562
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -315,8 +315,6 @@ module Google
|
|
315
315
|
# For single-turn queries, this is a single instance. For multi-turn queries,
|
316
316
|
# this is a repeated field that contains conversation history + latest
|
317
317
|
# request.
|
318
|
-
#
|
319
|
-
# Only a single-turn query is supported currently.
|
320
318
|
# @param generation_spec [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::GenerationSpec, ::Hash]
|
321
319
|
# Content generation specification.
|
322
320
|
# @param grounding_spec [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::GroundingSpec, ::Hash]
|
@@ -426,7 +424,7 @@ module Google
|
|
426
424
|
# Required. The resource name of the grounding config, such as
|
427
425
|
# `projects/*/locations/global/groundingConfigs/default_grounding_config`.
|
428
426
|
# @param answer_candidate [::String]
|
429
|
-
# Answer candidate to check.
|
427
|
+
# Answer candidate to check. It can have a maximum length of 4096 tokens.
|
430
428
|
# @param facts [::Array<::Google::Cloud::DiscoveryEngine::V1::GroundingFact, ::Hash>]
|
431
429
|
# List of facts for the grounding check.
|
432
430
|
# We support up to 200 facts.
|
@@ -620,8 +618,8 @@ module Google
|
|
620
618
|
|
621
619
|
config_attr :endpoint, nil, ::String, nil
|
622
620
|
config_attr :credentials, nil do |value|
|
623
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
624
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
621
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
622
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
625
623
|
allowed.any? { |klass| klass === value }
|
626
624
|
end
|
627
625
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -230,8 +230,6 @@ module Google
|
|
230
230
|
# For single-turn queries, this is a single instance. For multi-turn queries,
|
231
231
|
# this is a repeated field that contains conversation history + latest
|
232
232
|
# request.
|
233
|
-
#
|
234
|
-
# Only a single-turn query is supported currently.
|
235
233
|
# @param generation_spec [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::GenerationSpec, ::Hash]
|
236
234
|
# Content generation specification.
|
237
235
|
# @param grounding_spec [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::GroundingSpec, ::Hash]
|
@@ -334,7 +332,7 @@ module Google
|
|
334
332
|
# Required. The resource name of the grounding config, such as
|
335
333
|
# `projects/*/locations/global/groundingConfigs/default_grounding_config`.
|
336
334
|
# @param answer_candidate [::String]
|
337
|
-
# Answer candidate to check.
|
335
|
+
# Answer candidate to check. It can have a maximum length of 4096 tokens.
|
338
336
|
# @param facts [::Array<::Google::Cloud::DiscoveryEngine::V1::GroundingFact, ::Hash>]
|
339
337
|
# List of facts for the grounding check.
|
340
338
|
# We support up to 200 facts.
|
@@ -512,7 +510,7 @@ module Google
|
|
512
510
|
|
513
511
|
config_attr :endpoint, nil, ::String, nil
|
514
512
|
config_attr :credentials, nil do |value|
|
515
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
513
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
516
514
|
allowed.any? { |klass| klass === value }
|
517
515
|
end
|
518
516
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -435,8 +435,8 @@ module Google
|
|
435
435
|
|
436
436
|
config_attr :endpoint, nil, ::String, nil
|
437
437
|
config_attr :credentials, nil do |value|
|
438
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
439
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
438
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
439
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
440
440
|
allowed.any? { |klass| klass === value }
|
441
441
|
end
|
442
442
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -701,8 +701,8 @@ module Google
|
|
701
701
|
|
702
702
|
config_attr :endpoint, nil, ::String, nil
|
703
703
|
config_attr :credentials, nil do |value|
|
704
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
705
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
704
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
705
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
706
706
|
allowed.any? { |klass| klass === value }
|
707
707
|
end
|
708
708
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -412,7 +412,7 @@ module Google
|
|
412
412
|
|
413
413
|
config_attr :endpoint, nil, ::String, nil
|
414
414
|
config_attr :credentials, nil do |value|
|
415
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
415
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
416
416
|
allowed.any? { |klass| klass === value }
|
417
417
|
end
|
418
418
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -556,7 +556,7 @@ module Google
|
|
556
556
|
|
557
557
|
config_attr :endpoint, nil, ::String, nil
|
558
558
|
config_attr :credentials, nil do |value|
|
559
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
559
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
560
560
|
allowed.any? { |klass| klass === value }
|
561
561
|
end
|
562
562
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -228,7 +228,7 @@ module Google
|
|
228
228
|
# @param model [::String]
|
229
229
|
# The identifier of the model to use. It is one of:
|
230
230
|
#
|
231
|
-
# * `semantic-ranker-512@latest`: Semantic ranking model with
|
231
|
+
# * `semantic-ranker-512@latest`: Semantic ranking model with maximum input
|
232
232
|
# token size 512.
|
233
233
|
#
|
234
234
|
# It is set to `semantic-ranker-512@latest` by default if unspecified.
|
@@ -430,8 +430,8 @@ module Google
|
|
430
430
|
|
431
431
|
config_attr :endpoint, nil, ::String, nil
|
432
432
|
config_attr :credentials, nil do |value|
|
433
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
434
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
433
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
434
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
435
435
|
allowed.any? { |klass| klass === value }
|
436
436
|
end
|
437
437
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -221,7 +221,7 @@ module Google
|
|
221
221
|
# @param model [::String]
|
222
222
|
# The identifier of the model to use. It is one of:
|
223
223
|
#
|
224
|
-
# * `semantic-ranker-512@latest`: Semantic ranking model with
|
224
|
+
# * `semantic-ranker-512@latest`: Semantic ranking model with maximum input
|
225
225
|
# token size 512.
|
226
226
|
#
|
227
227
|
# It is set to `semantic-ranker-512@latest` by default if unspecified.
|
@@ -407,7 +407,7 @@ module Google
|
|
407
407
|
|
408
408
|
config_attr :endpoint, nil, ::String, nil
|
409
409
|
config_attr :credentials, nil do |value|
|
410
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
410
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
411
411
|
allowed.any? { |klass| klass === value }
|
412
412
|
end
|
413
413
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -224,7 +224,7 @@ module Google
|
|
224
224
|
#
|
225
225
|
# @param serving_config [::String]
|
226
226
|
# Required. Full resource name of a
|
227
|
-
#
|
227
|
+
# {::Google::Cloud::DiscoveryEngine::V1::ServingConfig ServingConfig}:
|
228
228
|
# `projects/*/locations/global/collections/*/engines/*/servingConfigs/*`, or
|
229
229
|
# `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
|
230
230
|
#
|
@@ -273,9 +273,9 @@ module Google
|
|
273
273
|
# attribute-based expressions are expected instead of the above described
|
274
274
|
# tag-based syntax. Examples:
|
275
275
|
#
|
276
|
-
# * (
|
276
|
+
# * (language: ANY("en", "es")) AND NOT (categories: ANY("Movie"))
|
277
277
|
# * (available: true) AND
|
278
|
-
# (
|
278
|
+
# (language: ANY("en", "es")) OR (categories: ANY("Movie"))
|
279
279
|
#
|
280
280
|
# If your filter blocks all results, the API returns generic
|
281
281
|
# (unfiltered) popular Documents. If you only want results strictly matching
|
@@ -508,8 +508,8 @@ module Google
|
|
508
508
|
|
509
509
|
config_attr :endpoint, nil, ::String, nil
|
510
510
|
config_attr :credentials, nil do |value|
|
511
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
512
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
511
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
512
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
513
513
|
allowed.any? { |klass| klass === value }
|
514
514
|
end
|
515
515
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -217,7 +217,7 @@ module Google
|
|
217
217
|
#
|
218
218
|
# @param serving_config [::String]
|
219
219
|
# Required. Full resource name of a
|
220
|
-
#
|
220
|
+
# {::Google::Cloud::DiscoveryEngine::V1::ServingConfig ServingConfig}:
|
221
221
|
# `projects/*/locations/global/collections/*/engines/*/servingConfigs/*`, or
|
222
222
|
# `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
|
223
223
|
#
|
@@ -266,9 +266,9 @@ module Google
|
|
266
266
|
# attribute-based expressions are expected instead of the above described
|
267
267
|
# tag-based syntax. Examples:
|
268
268
|
#
|
269
|
-
# * (
|
269
|
+
# * (language: ANY("en", "es")) AND NOT (categories: ANY("Movie"))
|
270
270
|
# * (available: true) AND
|
271
|
-
# (
|
271
|
+
# (language: ANY("en", "es")) OR (categories: ANY("Movie"))
|
272
272
|
#
|
273
273
|
# If your filter blocks all results, the API returns generic
|
274
274
|
# (unfiltered) popular Documents. If you only want results strictly matching
|
@@ -485,7 +485,7 @@ module Google
|
|
485
485
|
|
486
486
|
config_attr :endpoint, nil, ::String, nil
|
487
487
|
config_attr :credentials, nil do |value|
|
488
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
488
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
489
489
|
allowed.any? { |klass| klass === value }
|
490
490
|
end
|
491
491
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -29,6 +29,7 @@ require "google/cloud/discovery_engine/v1/rank_service/rest"
|
|
29
29
|
require "google/cloud/discovery_engine/v1/recommendation_service/rest"
|
30
30
|
require "google/cloud/discovery_engine/v1/schema_service/rest"
|
31
31
|
require "google/cloud/discovery_engine/v1/search_tuning_service/rest"
|
32
|
+
require "google/cloud/discovery_engine/v1/serving_config_service/rest"
|
32
33
|
require "google/cloud/discovery_engine/v1/site_search_engine_service/rest"
|
33
34
|
require "google/cloud/discovery_engine/v1/user_event_service/rest"
|
34
35
|
require "google/cloud/discovery_engine/v1/version"
|
@@ -816,8 +816,8 @@ module Google
|
|
816
816
|
|
817
817
|
config_attr :endpoint, nil, ::String, nil
|
818
818
|
config_attr :credentials, nil do |value|
|
819
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
820
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
819
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
820
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
821
821
|
allowed.any? { |klass| klass === value }
|
822
822
|
end
|
823
823
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -701,8 +701,8 @@ module Google
|
|
701
701
|
|
702
702
|
config_attr :endpoint, nil, ::String, nil
|
703
703
|
config_attr :credentials, nil do |value|
|
704
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
705
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
704
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
705
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
706
706
|
allowed.any? { |klass| klass === value }
|
707
707
|
end
|
708
708
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -765,7 +765,7 @@ module Google
|
|
765
765
|
|
766
766
|
config_attr :endpoint, nil, ::String, nil
|
767
767
|
config_attr :credentials, nil do |value|
|
768
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
768
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
769
769
|
allowed.any? { |klass| klass === value }
|
770
770
|
end
|
771
771
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -556,7 +556,7 @@ module Google
|
|
556
556
|
|
557
557
|
config_attr :endpoint, nil, ::String, nil
|
558
558
|
config_attr :credentials, nil do |value|
|
559
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
559
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
560
560
|
allowed.any? { |klass| klass === value }
|
561
561
|
end
|
562
562
|
config_attr :scope, nil, ::String, ::Array, nil
|