google-cloud-discovery_engine-v1beta 0.14.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/client.rb +155 -0
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/paths.rb +62 -0
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +148 -0
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/service_stub.rb +76 -0
- data/lib/google/cloud/discovery_engine/v1beta/control_service/client.rb +6 -6
- data/lib/google/cloud/discovery_engine/v1beta/control_service/rest/client.rb +6 -6
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +18 -13
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +18 -13
- data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +109 -1
- data/lib/google/cloud/discovery_engine/v1beta/document_service/paths.rb +25 -0
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +102 -1
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/service_stub.rb +66 -0
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/client.rb +3 -3
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/client.rb +3 -3
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/client.rb +218 -4
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/paths.rb +85 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/client.rb +125 -4
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/service_stub.rb +60 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/client.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest/client.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +410 -4
- data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +402 -4
- data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/service_stub.rb +76 -0
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/client.rb +2 -2
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest/client.rb +2 -2
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/client.rb +324 -1
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/paths.rb +49 -0
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/client.rb +303 -1
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/service_stub.rb +193 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/answer_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1beta/common_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/completion_service_pb.rb +18 -1
- data/lib/google/cloud/discoveryengine/v1beta/completion_service_services_pb.rb +2 -0
- data/lib/google/cloud/discoveryengine/v1beta/control_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +4 -1
- data/lib/google/cloud/discoveryengine/v1beta/custom_tuning_model_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/data_store_pb.rb +7 -1
- data/lib/google/cloud/discoveryengine/v1beta/document_pb.rb +4 -1
- data/lib/google/cloud/discoveryengine/v1beta/document_service_pb.rb +11 -1
- data/lib/google/cloud/discoveryengine/v1beta/document_service_services_pb.rb +4 -0
- data/lib/google/cloud/discoveryengine/v1beta/engine_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_pb.rb +24 -1
- data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_services_pb.rb +4 -0
- data/lib/google/cloud/discoveryengine/v1beta/grounding_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1beta/import_config_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/purge_config_pb.rb +5 -1
- data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +6 -1
- data/lib/google/cloud/discoveryengine/v1beta/search_service_services_pb.rb +14 -0
- data/lib/google/cloud/discoveryengine/v1beta/serving_config_pb.rb +2 -2
- data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_service_pb.rb +10 -1
- data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_service_services_pb.rb +7 -0
- data/lib/google/cloud/discoveryengine/v1beta/user_event_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +20 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/answer.rb +68 -8
- data/proto_docs/google/cloud/discoveryengine/v1beta/completion_service.rb +268 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/control.rb +10 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/control_service.rb +6 -6
- data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +98 -15
- data/proto_docs/google/cloud/discoveryengine/v1beta/custom_tuning_model.rb +11 -3
- data/proto_docs/google/cloud/discoveryengine/v1beta/data_store.rb +131 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/document.rb +22 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/document_processing_config.rb +9 -5
- data/proto_docs/google/cloud/discoveryengine/v1beta/document_service.rb +123 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/engine.rb +5 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/engine_service.rb +4 -4
- data/proto_docs/google/cloud/discoveryengine/v1beta/grounded_generation_service.rb +398 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/grounding.rb +10 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +13 -7
- data/proto_docs/google/cloud/discoveryengine/v1beta/project.rb +1 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/purge_config.rb +39 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/rank_service.rb +1 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +175 -6
- data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config.rb +16 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config_service.rb +2 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/site_search_engine.rb +17 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/site_search_engine_service.rb +147 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb +13 -1
- metadata +3 -3
@@ -840,6 +840,283 @@ module Google
|
|
840
840
|
raise ::Google::Cloud::Error.from_error(e)
|
841
841
|
end
|
842
842
|
|
843
|
+
##
|
844
|
+
# Creates a {::Google::Cloud::DiscoveryEngine::V1beta::Sitemap Sitemap}.
|
845
|
+
#
|
846
|
+
# @overload create_sitemap(request, options = nil)
|
847
|
+
# Pass arguments to `create_sitemap` via a request object, either of type
|
848
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::CreateSitemapRequest} or an equivalent Hash.
|
849
|
+
#
|
850
|
+
# @param request [::Google::Cloud::DiscoveryEngine::V1beta::CreateSitemapRequest, ::Hash]
|
851
|
+
# A request object representing the call parameters. Required. To specify no
|
852
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
853
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
854
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
855
|
+
#
|
856
|
+
# @overload create_sitemap(parent: nil, sitemap: nil)
|
857
|
+
# Pass arguments to `create_sitemap` via keyword arguments. Note that at
|
858
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
859
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
860
|
+
#
|
861
|
+
# @param parent [::String]
|
862
|
+
# Required. Parent resource name of the
|
863
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::SiteSearchEngine SiteSearchEngine},
|
864
|
+
# such as
|
865
|
+
# `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.
|
866
|
+
# @param sitemap [::Google::Cloud::DiscoveryEngine::V1beta::Sitemap, ::Hash]
|
867
|
+
# Required. The {::Google::Cloud::DiscoveryEngine::V1beta::Sitemap Sitemap} to
|
868
|
+
# create.
|
869
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
870
|
+
# @yieldparam result [::Gapic::Operation]
|
871
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
872
|
+
#
|
873
|
+
# @return [::Gapic::Operation]
|
874
|
+
#
|
875
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
876
|
+
#
|
877
|
+
# @example Basic example
|
878
|
+
# require "google/cloud/discovery_engine/v1beta"
|
879
|
+
#
|
880
|
+
# # Create a client object. The client can be reused for multiple calls.
|
881
|
+
# client = Google::Cloud::DiscoveryEngine::V1beta::SiteSearchEngineService::Rest::Client.new
|
882
|
+
#
|
883
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
884
|
+
# request = Google::Cloud::DiscoveryEngine::V1beta::CreateSitemapRequest.new
|
885
|
+
#
|
886
|
+
# # Call the create_sitemap method.
|
887
|
+
# result = client.create_sitemap request
|
888
|
+
#
|
889
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
890
|
+
# # check the status of an operation, cancel it, or wait for results.
|
891
|
+
# # Here is how to wait for a response.
|
892
|
+
# result.wait_until_done! timeout: 60
|
893
|
+
# if result.response?
|
894
|
+
# p result.response
|
895
|
+
# else
|
896
|
+
# puts "No response received."
|
897
|
+
# end
|
898
|
+
#
|
899
|
+
def create_sitemap request, options = nil
|
900
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
901
|
+
|
902
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::CreateSitemapRequest
|
903
|
+
|
904
|
+
# Converts hash and nil to an options object
|
905
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
906
|
+
|
907
|
+
# Customize the options with defaults
|
908
|
+
call_metadata = @config.rpcs.create_sitemap.metadata.to_h
|
909
|
+
|
910
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
911
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
912
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
913
|
+
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
914
|
+
transports_version_send: [:rest]
|
915
|
+
|
916
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
917
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
918
|
+
|
919
|
+
options.apply_defaults timeout: @config.rpcs.create_sitemap.timeout,
|
920
|
+
metadata: call_metadata,
|
921
|
+
retry_policy: @config.rpcs.create_sitemap.retry_policy
|
922
|
+
|
923
|
+
options.apply_defaults timeout: @config.timeout,
|
924
|
+
metadata: @config.metadata,
|
925
|
+
retry_policy: @config.retry_policy
|
926
|
+
|
927
|
+
@site_search_engine_service_stub.create_sitemap request, options do |result, operation|
|
928
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
929
|
+
yield result, operation if block_given?
|
930
|
+
return result
|
931
|
+
end
|
932
|
+
rescue ::Gapic::Rest::Error => e
|
933
|
+
raise ::Google::Cloud::Error.from_error(e)
|
934
|
+
end
|
935
|
+
|
936
|
+
##
|
937
|
+
# Deletes a {::Google::Cloud::DiscoveryEngine::V1beta::Sitemap Sitemap}.
|
938
|
+
#
|
939
|
+
# @overload delete_sitemap(request, options = nil)
|
940
|
+
# Pass arguments to `delete_sitemap` via a request object, either of type
|
941
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::DeleteSitemapRequest} or an equivalent Hash.
|
942
|
+
#
|
943
|
+
# @param request [::Google::Cloud::DiscoveryEngine::V1beta::DeleteSitemapRequest, ::Hash]
|
944
|
+
# A request object representing the call parameters. Required. To specify no
|
945
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
946
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
947
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
948
|
+
#
|
949
|
+
# @overload delete_sitemap(name: nil)
|
950
|
+
# Pass arguments to `delete_sitemap` via keyword arguments. Note that at
|
951
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
952
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
953
|
+
#
|
954
|
+
# @param name [::String]
|
955
|
+
# Required. Full resource name of
|
956
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::Sitemap Sitemap}, such as
|
957
|
+
# `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}`.
|
958
|
+
#
|
959
|
+
# If the caller does not have permission to access the
|
960
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::Sitemap Sitemap}, regardless of
|
961
|
+
# whether or not it exists, a PERMISSION_DENIED error is returned.
|
962
|
+
#
|
963
|
+
# If the requested {::Google::Cloud::DiscoveryEngine::V1beta::Sitemap Sitemap}
|
964
|
+
# does not exist, a NOT_FOUND error is returned.
|
965
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
966
|
+
# @yieldparam result [::Gapic::Operation]
|
967
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
968
|
+
#
|
969
|
+
# @return [::Gapic::Operation]
|
970
|
+
#
|
971
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
972
|
+
#
|
973
|
+
# @example Basic example
|
974
|
+
# require "google/cloud/discovery_engine/v1beta"
|
975
|
+
#
|
976
|
+
# # Create a client object. The client can be reused for multiple calls.
|
977
|
+
# client = Google::Cloud::DiscoveryEngine::V1beta::SiteSearchEngineService::Rest::Client.new
|
978
|
+
#
|
979
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
980
|
+
# request = Google::Cloud::DiscoveryEngine::V1beta::DeleteSitemapRequest.new
|
981
|
+
#
|
982
|
+
# # Call the delete_sitemap method.
|
983
|
+
# result = client.delete_sitemap request
|
984
|
+
#
|
985
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
986
|
+
# # check the status of an operation, cancel it, or wait for results.
|
987
|
+
# # Here is how to wait for a response.
|
988
|
+
# result.wait_until_done! timeout: 60
|
989
|
+
# if result.response?
|
990
|
+
# p result.response
|
991
|
+
# else
|
992
|
+
# puts "No response received."
|
993
|
+
# end
|
994
|
+
#
|
995
|
+
def delete_sitemap request, options = nil
|
996
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
997
|
+
|
998
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::DeleteSitemapRequest
|
999
|
+
|
1000
|
+
# Converts hash and nil to an options object
|
1001
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1002
|
+
|
1003
|
+
# Customize the options with defaults
|
1004
|
+
call_metadata = @config.rpcs.delete_sitemap.metadata.to_h
|
1005
|
+
|
1006
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1007
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1008
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1009
|
+
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
1010
|
+
transports_version_send: [:rest]
|
1011
|
+
|
1012
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1013
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1014
|
+
|
1015
|
+
options.apply_defaults timeout: @config.rpcs.delete_sitemap.timeout,
|
1016
|
+
metadata: call_metadata,
|
1017
|
+
retry_policy: @config.rpcs.delete_sitemap.retry_policy
|
1018
|
+
|
1019
|
+
options.apply_defaults timeout: @config.timeout,
|
1020
|
+
metadata: @config.metadata,
|
1021
|
+
retry_policy: @config.retry_policy
|
1022
|
+
|
1023
|
+
@site_search_engine_service_stub.delete_sitemap request, options do |result, operation|
|
1024
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1025
|
+
yield result, operation if block_given?
|
1026
|
+
return result
|
1027
|
+
end
|
1028
|
+
rescue ::Gapic::Rest::Error => e
|
1029
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1030
|
+
end
|
1031
|
+
|
1032
|
+
##
|
1033
|
+
# Fetch {::Google::Cloud::DiscoveryEngine::V1beta::Sitemap Sitemap}s in a
|
1034
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::DataStore DataStore}.
|
1035
|
+
#
|
1036
|
+
# @overload fetch_sitemaps(request, options = nil)
|
1037
|
+
# Pass arguments to `fetch_sitemaps` via a request object, either of type
|
1038
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::FetchSitemapsRequest} or an equivalent Hash.
|
1039
|
+
#
|
1040
|
+
# @param request [::Google::Cloud::DiscoveryEngine::V1beta::FetchSitemapsRequest, ::Hash]
|
1041
|
+
# A request object representing the call parameters. Required. To specify no
|
1042
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1043
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1044
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1045
|
+
#
|
1046
|
+
# @overload fetch_sitemaps(parent: nil, matcher: nil)
|
1047
|
+
# Pass arguments to `fetch_sitemaps` via keyword arguments. Note that at
|
1048
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1049
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1050
|
+
#
|
1051
|
+
# @param parent [::String]
|
1052
|
+
# Required. Parent resource name of the
|
1053
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::SiteSearchEngine SiteSearchEngine},
|
1054
|
+
# such as
|
1055
|
+
# `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.
|
1056
|
+
# @param matcher [::Google::Cloud::DiscoveryEngine::V1beta::FetchSitemapsRequest::Matcher, ::Hash]
|
1057
|
+
# Optional. If specified, fetches the matching
|
1058
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::Sitemap Sitemap}s. If not specified,
|
1059
|
+
# fetches all {::Google::Cloud::DiscoveryEngine::V1beta::Sitemap Sitemap}s in the
|
1060
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::DataStore DataStore}.
|
1061
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1062
|
+
# @yieldparam result [::Google::Cloud::DiscoveryEngine::V1beta::FetchSitemapsResponse]
|
1063
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1064
|
+
#
|
1065
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::FetchSitemapsResponse]
|
1066
|
+
#
|
1067
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1068
|
+
#
|
1069
|
+
# @example Basic example
|
1070
|
+
# require "google/cloud/discovery_engine/v1beta"
|
1071
|
+
#
|
1072
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1073
|
+
# client = Google::Cloud::DiscoveryEngine::V1beta::SiteSearchEngineService::Rest::Client.new
|
1074
|
+
#
|
1075
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1076
|
+
# request = Google::Cloud::DiscoveryEngine::V1beta::FetchSitemapsRequest.new
|
1077
|
+
#
|
1078
|
+
# # Call the fetch_sitemaps method.
|
1079
|
+
# result = client.fetch_sitemaps request
|
1080
|
+
#
|
1081
|
+
# # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::FetchSitemapsResponse.
|
1082
|
+
# p result
|
1083
|
+
#
|
1084
|
+
def fetch_sitemaps request, options = nil
|
1085
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1086
|
+
|
1087
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::FetchSitemapsRequest
|
1088
|
+
|
1089
|
+
# Converts hash and nil to an options object
|
1090
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1091
|
+
|
1092
|
+
# Customize the options with defaults
|
1093
|
+
call_metadata = @config.rpcs.fetch_sitemaps.metadata.to_h
|
1094
|
+
|
1095
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1096
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1097
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1098
|
+
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
1099
|
+
transports_version_send: [:rest]
|
1100
|
+
|
1101
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1102
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1103
|
+
|
1104
|
+
options.apply_defaults timeout: @config.rpcs.fetch_sitemaps.timeout,
|
1105
|
+
metadata: call_metadata,
|
1106
|
+
retry_policy: @config.rpcs.fetch_sitemaps.retry_policy
|
1107
|
+
|
1108
|
+
options.apply_defaults timeout: @config.timeout,
|
1109
|
+
metadata: @config.metadata,
|
1110
|
+
retry_policy: @config.retry_policy
|
1111
|
+
|
1112
|
+
@site_search_engine_service_stub.fetch_sitemaps request, options do |result, operation|
|
1113
|
+
yield result, operation if block_given?
|
1114
|
+
return result
|
1115
|
+
end
|
1116
|
+
rescue ::Gapic::Rest::Error => e
|
1117
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1118
|
+
end
|
1119
|
+
|
843
1120
|
##
|
844
1121
|
# Upgrade from basic site search to advanced site search.
|
845
1122
|
#
|
@@ -1033,7 +1310,7 @@ module Google
|
|
1033
1310
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1034
1311
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1035
1312
|
#
|
1036
|
-
# @overload recrawl_uris(site_search_engine: nil, uris: nil)
|
1313
|
+
# @overload recrawl_uris(site_search_engine: nil, uris: nil, site_credential: nil)
|
1037
1314
|
# Pass arguments to `recrawl_uris` via keyword arguments. Note that at
|
1038
1315
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1039
1316
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -1048,6 +1325,10 @@ module Google
|
|
1048
1325
|
# an INVALID_ARGUMENT error is thrown. Each URI should match at least one
|
1049
1326
|
# {::Google::Cloud::DiscoveryEngine::V1beta::TargetSite TargetSite} in
|
1050
1327
|
# `site_search_engine`.
|
1328
|
+
# @param site_credential [::String]
|
1329
|
+
# Optional. Full resource name of the [SiteCredential][], such as
|
1330
|
+
# `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/siteCredentials/*`.
|
1331
|
+
# Only set to crawl private URIs.
|
1051
1332
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1052
1333
|
# @yieldparam result [::Gapic::Operation]
|
1053
1334
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -1475,6 +1756,21 @@ module Google
|
|
1475
1756
|
#
|
1476
1757
|
attr_reader :list_target_sites
|
1477
1758
|
##
|
1759
|
+
# RPC-specific configuration for `create_sitemap`
|
1760
|
+
# @return [::Gapic::Config::Method]
|
1761
|
+
#
|
1762
|
+
attr_reader :create_sitemap
|
1763
|
+
##
|
1764
|
+
# RPC-specific configuration for `delete_sitemap`
|
1765
|
+
# @return [::Gapic::Config::Method]
|
1766
|
+
#
|
1767
|
+
attr_reader :delete_sitemap
|
1768
|
+
##
|
1769
|
+
# RPC-specific configuration for `fetch_sitemaps`
|
1770
|
+
# @return [::Gapic::Config::Method]
|
1771
|
+
#
|
1772
|
+
attr_reader :fetch_sitemaps
|
1773
|
+
##
|
1478
1774
|
# RPC-specific configuration for `enable_advanced_site_search`
|
1479
1775
|
# @return [::Gapic::Config::Method]
|
1480
1776
|
#
|
@@ -1516,6 +1812,12 @@ module Google
|
|
1516
1812
|
@delete_target_site = ::Gapic::Config::Method.new delete_target_site_config
|
1517
1813
|
list_target_sites_config = parent_rpcs.list_target_sites if parent_rpcs.respond_to? :list_target_sites
|
1518
1814
|
@list_target_sites = ::Gapic::Config::Method.new list_target_sites_config
|
1815
|
+
create_sitemap_config = parent_rpcs.create_sitemap if parent_rpcs.respond_to? :create_sitemap
|
1816
|
+
@create_sitemap = ::Gapic::Config::Method.new create_sitemap_config
|
1817
|
+
delete_sitemap_config = parent_rpcs.delete_sitemap if parent_rpcs.respond_to? :delete_sitemap
|
1818
|
+
@delete_sitemap = ::Gapic::Config::Method.new delete_sitemap_config
|
1819
|
+
fetch_sitemaps_config = parent_rpcs.fetch_sitemaps if parent_rpcs.respond_to? :fetch_sitemaps
|
1820
|
+
@fetch_sitemaps = ::Gapic::Config::Method.new fetch_sitemaps_config
|
1519
1821
|
enable_advanced_site_search_config = parent_rpcs.enable_advanced_site_search if parent_rpcs.respond_to? :enable_advanced_site_search
|
1520
1822
|
@enable_advanced_site_search = ::Gapic::Config::Method.new enable_advanced_site_search_config
|
1521
1823
|
disable_advanced_site_search_config = parent_rpcs.disable_advanced_site_search if parent_rpcs.respond_to? :disable_advanced_site_search
|
data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/service_stub.rb
CHANGED
@@ -327,6 +327,120 @@ module Google
|
|
327
327
|
result
|
328
328
|
end
|
329
329
|
|
330
|
+
##
|
331
|
+
# Baseline implementation for the create_sitemap REST call
|
332
|
+
#
|
333
|
+
# @param request_pb [::Google::Cloud::DiscoveryEngine::V1beta::CreateSitemapRequest]
|
334
|
+
# A request object representing the call parameters. Required.
|
335
|
+
# @param options [::Gapic::CallOptions]
|
336
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
337
|
+
#
|
338
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
339
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
340
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
341
|
+
#
|
342
|
+
# @return [::Google::Longrunning::Operation]
|
343
|
+
# A result object deserialized from the server's reply
|
344
|
+
def create_sitemap request_pb, options = nil
|
345
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
346
|
+
|
347
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_sitemap_request request_pb
|
348
|
+
query_string_params = if query_string_params.any?
|
349
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
350
|
+
else
|
351
|
+
{}
|
352
|
+
end
|
353
|
+
|
354
|
+
response = @client_stub.make_http_request(
|
355
|
+
verb,
|
356
|
+
uri: uri,
|
357
|
+
body: body || "",
|
358
|
+
params: query_string_params,
|
359
|
+
options: options
|
360
|
+
)
|
361
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
362
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
363
|
+
|
364
|
+
yield result, operation if block_given?
|
365
|
+
result
|
366
|
+
end
|
367
|
+
|
368
|
+
##
|
369
|
+
# Baseline implementation for the delete_sitemap REST call
|
370
|
+
#
|
371
|
+
# @param request_pb [::Google::Cloud::DiscoveryEngine::V1beta::DeleteSitemapRequest]
|
372
|
+
# A request object representing the call parameters. Required.
|
373
|
+
# @param options [::Gapic::CallOptions]
|
374
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
375
|
+
#
|
376
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
377
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
378
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
379
|
+
#
|
380
|
+
# @return [::Google::Longrunning::Operation]
|
381
|
+
# A result object deserialized from the server's reply
|
382
|
+
def delete_sitemap request_pb, options = nil
|
383
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
384
|
+
|
385
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_sitemap_request request_pb
|
386
|
+
query_string_params = if query_string_params.any?
|
387
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
388
|
+
else
|
389
|
+
{}
|
390
|
+
end
|
391
|
+
|
392
|
+
response = @client_stub.make_http_request(
|
393
|
+
verb,
|
394
|
+
uri: uri,
|
395
|
+
body: body || "",
|
396
|
+
params: query_string_params,
|
397
|
+
options: options
|
398
|
+
)
|
399
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
400
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
401
|
+
|
402
|
+
yield result, operation if block_given?
|
403
|
+
result
|
404
|
+
end
|
405
|
+
|
406
|
+
##
|
407
|
+
# Baseline implementation for the fetch_sitemaps REST call
|
408
|
+
#
|
409
|
+
# @param request_pb [::Google::Cloud::DiscoveryEngine::V1beta::FetchSitemapsRequest]
|
410
|
+
# A request object representing the call parameters. Required.
|
411
|
+
# @param options [::Gapic::CallOptions]
|
412
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
413
|
+
#
|
414
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
415
|
+
# @yieldparam result [::Google::Cloud::DiscoveryEngine::V1beta::FetchSitemapsResponse]
|
416
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
417
|
+
#
|
418
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::FetchSitemapsResponse]
|
419
|
+
# A result object deserialized from the server's reply
|
420
|
+
def fetch_sitemaps request_pb, options = nil
|
421
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
422
|
+
|
423
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_fetch_sitemaps_request request_pb
|
424
|
+
query_string_params = if query_string_params.any?
|
425
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
426
|
+
else
|
427
|
+
{}
|
428
|
+
end
|
429
|
+
|
430
|
+
response = @client_stub.make_http_request(
|
431
|
+
verb,
|
432
|
+
uri: uri,
|
433
|
+
body: body || "",
|
434
|
+
params: query_string_params,
|
435
|
+
options: options
|
436
|
+
)
|
437
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
438
|
+
result = ::Google::Cloud::DiscoveryEngine::V1beta::FetchSitemapsResponse.decode_json response.body, ignore_unknown_fields: true
|
439
|
+
|
440
|
+
yield result, operation if block_given?
|
441
|
+
result
|
442
|
+
end
|
443
|
+
|
330
444
|
##
|
331
445
|
# Baseline implementation for the enable_advanced_site_search REST call
|
332
446
|
#
|
@@ -719,6 +833,85 @@ module Google
|
|
719
833
|
transcoder.transcode request_pb
|
720
834
|
end
|
721
835
|
|
836
|
+
##
|
837
|
+
# @private
|
838
|
+
#
|
839
|
+
# GRPC transcoding helper method for the create_sitemap REST call
|
840
|
+
#
|
841
|
+
# @param request_pb [::Google::Cloud::DiscoveryEngine::V1beta::CreateSitemapRequest]
|
842
|
+
# A request object representing the call parameters. Required.
|
843
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
844
|
+
# Uri, Body, Query string parameters
|
845
|
+
def self.transcode_create_sitemap_request request_pb
|
846
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
847
|
+
.with_bindings(
|
848
|
+
uri_method: :post,
|
849
|
+
uri_template: "/v1beta/{parent}/sitemaps",
|
850
|
+
body: "sitemap",
|
851
|
+
matches: [
|
852
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/siteSearchEngine/?$}, false]
|
853
|
+
]
|
854
|
+
)
|
855
|
+
.with_bindings(
|
856
|
+
uri_method: :post,
|
857
|
+
uri_template: "/v1beta/{parent}/sitemaps",
|
858
|
+
body: "sitemap",
|
859
|
+
matches: [
|
860
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/?$}, false]
|
861
|
+
]
|
862
|
+
)
|
863
|
+
transcoder.transcode request_pb
|
864
|
+
end
|
865
|
+
|
866
|
+
##
|
867
|
+
# @private
|
868
|
+
#
|
869
|
+
# GRPC transcoding helper method for the delete_sitemap REST call
|
870
|
+
#
|
871
|
+
# @param request_pb [::Google::Cloud::DiscoveryEngine::V1beta::DeleteSitemapRequest]
|
872
|
+
# A request object representing the call parameters. Required.
|
873
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
874
|
+
# Uri, Body, Query string parameters
|
875
|
+
def self.transcode_delete_sitemap_request request_pb
|
876
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
877
|
+
.with_bindings(
|
878
|
+
uri_method: :delete,
|
879
|
+
uri_template: "/v1beta/{name}",
|
880
|
+
matches: [
|
881
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/siteSearchEngine/sitemaps/[^/]+/?$}, false]
|
882
|
+
]
|
883
|
+
)
|
884
|
+
.with_bindings(
|
885
|
+
uri_method: :delete,
|
886
|
+
uri_template: "/v1beta/{name}",
|
887
|
+
matches: [
|
888
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/sitemaps/[^/]+/?$}, false]
|
889
|
+
]
|
890
|
+
)
|
891
|
+
transcoder.transcode request_pb
|
892
|
+
end
|
893
|
+
|
894
|
+
##
|
895
|
+
# @private
|
896
|
+
#
|
897
|
+
# GRPC transcoding helper method for the fetch_sitemaps REST call
|
898
|
+
#
|
899
|
+
# @param request_pb [::Google::Cloud::DiscoveryEngine::V1beta::FetchSitemapsRequest]
|
900
|
+
# A request object representing the call parameters. Required.
|
901
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
902
|
+
# Uri, Body, Query string parameters
|
903
|
+
def self.transcode_fetch_sitemaps_request request_pb
|
904
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
905
|
+
.with_bindings(
|
906
|
+
uri_method: :get,
|
907
|
+
uri_template: "/v1beta/{parent}/sitemaps:fetch",
|
908
|
+
matches: [
|
909
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/siteSearchEngine/?$}, false]
|
910
|
+
]
|
911
|
+
)
|
912
|
+
transcoder.transcode request_pb
|
913
|
+
end
|
914
|
+
|
722
915
|
##
|
723
916
|
# @private
|
724
917
|
#
|
@@ -429,7 +429,7 @@ module Google
|
|
429
429
|
# @param parent [::String]
|
430
430
|
# Required. The resource name of the catalog under which the events are
|
431
431
|
# created. The format is
|
432
|
-
# `projects
|
432
|
+
# `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}`.
|
433
433
|
# @param filter [::String]
|
434
434
|
# Required. The filter string to specify the events to be deleted with a
|
435
435
|
# length limit of 5,000 characters. The eligible fields for filtering are:
|
@@ -408,7 +408,7 @@ module Google
|
|
408
408
|
# @param parent [::String]
|
409
409
|
# Required. The resource name of the catalog under which the events are
|
410
410
|
# created. The format is
|
411
|
-
# `projects
|
411
|
+
# `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}`.
|
412
412
|
# @param filter [::String]
|
413
413
|
# Required. The filter string to specify the events to be deleted with a
|
414
414
|
# length limit of 5,000 characters. The eligible fields for filtering are:
|
@@ -10,7 +10,7 @@ require 'google/protobuf/struct_pb'
|
|
10
10
|
require 'google/protobuf/timestamp_pb'
|
11
11
|
|
12
12
|
|
13
|
-
descriptor_data = "\n0google/cloud/discoveryengine/v1beta/answer.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
13
|
+
descriptor_data = "\n0google/cloud/discoveryengine/v1beta/answer.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xad#\n\x06\x41nswer\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12@\n\x05state\x18\x02 \x01(\x0e\x32\x31.google.cloud.discoveryengine.v1beta.Answer.State\x12\x13\n\x0b\x61nswer_text\x18\x03 \x01(\t\x12G\n\tcitations\x18\x04 \x03(\x0b\x32\x34.google.cloud.discoveryengine.v1beta.Answer.Citation\x12I\n\nreferences\x18\x05 \x03(\x0b\x32\x35.google.cloud.discoveryengine.v1beta.Answer.Reference\x12\x19\n\x11related_questions\x18\x06 \x03(\t\x12?\n\x05steps\x18\x07 \x03(\x0b\x32\x30.google.cloud.discoveryengine.v1beta.Answer.Step\x12\x64\n\x18query_understanding_info\x18\n \x01(\x0b\x32\x42.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo\x12_\n\x16\x61nswer_skipped_reasons\x18\x0b \x03(\x0e\x32?.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason\x12\x34\n\x0b\x63reate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x36\n\rcomplete_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a\x7f\n\x08\x43itation\x12\x13\n\x0bstart_index\x18\x01 \x01(\x03\x12\x11\n\tend_index\x18\x02 \x01(\x03\x12K\n\x07sources\x18\x03 \x03(\x0b\x32:.google.cloud.discoveryengine.v1beta.Answer.CitationSource\x1a&\n\x0e\x43itationSource\x12\x14\n\x0creference_id\x18\x01 \x01(\t\x1a\x96\n\n\tReference\x12t\n\x1aunstructured_document_info\x18\x01 \x01(\x0b\x32N.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfoH\x00\x12U\n\nchunk_info\x18\x02 \x01(\x0b\x32?.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfoH\x00\x12p\n\x18structured_document_info\x18\x03 \x01(\x0b\x32L.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfoH\x00\x1a\x85\x03\n\x18UnstructuredDocumentInfo\x12>\n\x08\x64ocument\x18\x01 \x01(\tB,\xfa\x41)\n\'discoveryengine.googleapis.com/Document\x12\x0b\n\x03uri\x18\x02 \x01(\t\x12\r\n\x05title\x18\x03 \x01(\t\x12s\n\x0e\x63hunk_contents\x18\x04 \x03(\x0b\x32[.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent\x12,\n\x0bstruct_data\x18\x05 \x01(\x0b\x32\x17.google.protobuf.Struct\x1aj\n\x0c\x43hunkContent\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x17\n\x0fpage_identifier\x18\x02 \x01(\t\x12\x1c\n\x0frelevance_score\x18\x03 \x01(\x02H\x00\x88\x01\x01\x42\x12\n\x10_relevance_score\x1a\xad\x03\n\tChunkInfo\x12\x38\n\x05\x63hunk\x18\x01 \x01(\tB)\xfa\x41&\n$discoveryengine.googleapis.com/Chunk\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\x12\x1c\n\x0frelevance_score\x18\x03 \x01(\x02H\x00\x88\x01\x01\x12k\n\x11\x64ocument_metadata\x18\x04 \x01(\x0b\x32P.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata\x1a\xb5\x01\n\x10\x44ocumentMetadata\x12>\n\x08\x64ocument\x18\x01 \x01(\tB,\xfa\x41)\n\'discoveryengine.googleapis.com/Document\x12\x0b\n\x03uri\x18\x02 \x01(\t\x12\r\n\x05title\x18\x03 \x01(\t\x12\x17\n\x0fpage_identifier\x18\x04 \x01(\t\x12,\n\x0bstruct_data\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructB\x12\n\x10_relevance_score\x1a\x86\x01\n\x16StructuredDocumentInfo\x12>\n\x08\x64ocument\x18\x01 \x01(\tB,\xfa\x41)\n\'discoveryengine.googleapis.com/Document\x12,\n\x0bstruct_data\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\t\n\x07\x63ontent\x1a\xd8\x08\n\x04Step\x12\x45\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.discoveryengine.v1beta.Answer.Step.State\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0f\n\x07thought\x18\x03 \x01(\t\x12H\n\x07\x61\x63tions\x18\x04 \x03(\x0b\x32\x37.google.cloud.discoveryengine.v1beta.Answer.Step.Action\x1a\xcc\x06\n\x06\x41\x63tion\x12]\n\rsearch_action\x18\x02 \x01(\x0b\x32\x44.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchActionH\x00\x12X\n\x0bobservation\x18\x03 \x01(\x0b\x32\x43.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation\x1a\x1d\n\x0cSearchAction\x12\r\n\x05query\x18\x01 \x01(\t\x1a\xdf\x04\n\x0bObservation\x12h\n\x0esearch_results\x18\x02 \x03(\x0b\x32P.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult\x1a\xe5\x03\n\x0cSearchResult\x12\x10\n\x08\x64ocument\x18\x01 \x01(\t\x12\x0b\n\x03uri\x18\x02 \x01(\t\x12\r\n\x05title\x18\x03 \x01(\t\x12r\n\x0csnippet_info\x18\x04 \x03(\x0b\x32\\.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo\x12n\n\nchunk_info\x18\x05 \x03(\x0b\x32Z.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo\x12,\n\x0bstruct_data\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\x1a\x36\n\x0bSnippetInfo\x12\x0f\n\x07snippet\x18\x01 \x01(\t\x12\x16\n\x0esnippet_status\x18\x02 \x01(\t\x1a]\n\tChunkInfo\x12\r\n\x05\x63hunk\x18\x01 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\x12\x1c\n\x0frelevance_score\x18\x03 \x01(\x02H\x00\x88\x01\x01\x42\x12\n\x10_relevance_scoreB\x08\n\x06\x61\x63tion\"J\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIN_PROGRESS\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x1a\xc2\x03\n\x16QueryUnderstandingInfo\x12}\n\x19query_classification_info\x18\x01 \x03(\x0b\x32Z.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo\x1a\xa8\x02\n\x17QueryClassificationInfo\x12m\n\x04type\x18\x01 \x01(\x0e\x32_.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type\x12\x10\n\x08positive\x18\x02 \x01(\x08\"\x8b\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x41\x44VERSARIAL_QUERY\x10\x01\x12\x1c\n\x18NON_ANSWER_SEEKING_QUERY\x10\x02\x12\x17\n\x13JAIL_BREAKING_QUERY\x10\x03\x12\x1f\n\x1bNON_ANSWER_SEEKING_QUERY_V2\x10\x04\"J\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIN_PROGRESS\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\"\xdd\x02\n\x13\x41nswerSkippedReason\x12%\n!ANSWER_SKIPPED_REASON_UNSPECIFIED\x10\x00\x12\x1d\n\x19\x41\x44VERSARIAL_QUERY_IGNORED\x10\x01\x12$\n NON_ANSWER_SEEKING_QUERY_IGNORED\x10\x02\x12\x1f\n\x1bOUT_OF_DOMAIN_QUERY_IGNORED\x10\x03\x12\x1e\n\x1aPOTENTIAL_POLICY_VIOLATION\x10\x04\x12\x17\n\x13NO_RELEVANT_CONTENT\x10\x05\x12\x1f\n\x1bJAIL_BREAKING_QUERY_IGNORED\x10\x06\x12\x1d\n\x19\x43USTOMER_POLICY_VIOLATION\x10\x07\x12\'\n#NON_ANSWER_SEEKING_QUERY_IGNORED_V2\x10\x08\x12\x17\n\x13LOW_GROUNDED_ANSWER\x10\t:\x85\x03\xea\x41\x81\x03\n%discoveryengine.googleapis.com/Answer\x12\x63projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}\x12|projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}\x12uprojects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}B\x92\x02\n\'com.google.cloud.discoveryengine.v1betaB\x0b\x41nswerProtoP\x01ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb\xa2\x02\x0f\x44ISCOVERYENGINE\xaa\x02#Google.Cloud.DiscoveryEngine.V1Beta\xca\x02#Google\\Cloud\\DiscoveryEngine\\V1beta\xea\x02&Google::Cloud::DiscoveryEngine::V1betab\x06proto3"
|
14
14
|
|
15
15
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
16
|
|
@@ -50,6 +50,7 @@ module Google
|
|
50
50
|
Answer::Reference::UnstructuredDocumentInfo::ChunkContent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent").msgclass
|
51
51
|
Answer::Reference::ChunkInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo").msgclass
|
52
52
|
Answer::Reference::ChunkInfo::DocumentMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata").msgclass
|
53
|
+
Answer::Reference::StructuredDocumentInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo").msgclass
|
53
54
|
Answer::Step = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.Answer.Step").msgclass
|
54
55
|
Answer::Step::Action = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.Answer.Step.Action").msgclass
|
55
56
|
Answer::Step::Action::SearchAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction").msgclass
|
@@ -7,7 +7,7 @@ require 'google/protobuf'
|
|
7
7
|
require 'google/api/resource_pb'
|
8
8
|
|
9
9
|
|
10
|
-
descriptor_data = "\n0google/cloud/discoveryengine/v1beta/common.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x19google/api/resource.proto\"x\n\x08Interval\x12\x11\n\x07minimum\x18\x01 \x01(\x01H\x00\x12\x1b\n\x11\x65xclusive_minimum\x18\x02 \x01(\x01H\x00\x12\x11\n\x07maximum\x18\x03 \x01(\x01H\x01\x12\x1b\n\x11\x65xclusive_maximum\x18\x04 \x01(\x01H\x01\x42\x05\n\x03minB\x05\n\x03max\"0\n\x0f\x43ustomAttribute\x12\x0c\n\x04text\x18\x01 \x03(\t\x12\x0f\n\x07numbers\x18\x02 \x03(\x01\"/\n\x08UserInfo\x12\x0f\n\x07user_id\x18\x01 \x01(\t\x12\x12\n\nuser_agent\x18\x02 \x01(\t\"%\n\x0f\x45mbeddingConfig\x12\x12\n\nfield_path\x18\x01 \x01(\t\"\x1c\n\nDoubleList\x12\x0e\n\x06values\x18\x01 \x03(\x01*b\n\x10IndustryVertical\x12!\n\x1dINDUSTRY_VERTICAL_UNSPECIFIED\x10\x00\x12\x0b\n\x07GENERIC\x10\x01\x12\t\n\x05MEDIA\x10\x02\x12\x13\n\x0fHEALTHCARE_FHIR\x10\x07*\xa4\x01\n\x0cSolutionType\x12\x1d\n\x19SOLUTION_TYPE_UNSPECIFIED\x10\x00\x12 \n\x1cSOLUTION_TYPE_RECOMMENDATION\x10\x01\x12\x18\n\x14SOLUTION_TYPE_SEARCH\x10\x02\x12\x16\n\x12SOLUTION_TYPE_CHAT\x10\x03\x12!\n\x1dSOLUTION_TYPE_GENERATIVE_CHAT\x10\x04*h\n\rSearchUseCase\x12\x1f\n\x1bSEARCH_USE_CASE_UNSPECIFIED\x10\x00\x12\x1a\n\x16SEARCH_USE_CASE_SEARCH\x10\x01\x12\x1a\n\x16SEARCH_USE_CASE_BROWSE\x10\x02*_\n\nSearchTier\x12\x1b\n\x17SEARCH_TIER_UNSPECIFIED\x10\x00\x12\x18\n\x14SEARCH_TIER_STANDARD\x10\x01\x12\x1a\n\x16SEARCH_TIER_ENTERPRISE\x10\x02*C\n\x0bSearchAddOn\x12\x1d\n\x19SEARCH_ADD_ON_UNSPECIFIED\x10\x00\x12\x15\n\x11SEARCH_ADD_ON_LLM\x10\x01\x42\
|
10
|
+
descriptor_data = "\n0google/cloud/discoveryengine/v1beta/common.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x19google/api/resource.proto\"x\n\x08Interval\x12\x11\n\x07minimum\x18\x01 \x01(\x01H\x00\x12\x1b\n\x11\x65xclusive_minimum\x18\x02 \x01(\x01H\x00\x12\x11\n\x07maximum\x18\x03 \x01(\x01H\x01\x12\x1b\n\x11\x65xclusive_maximum\x18\x04 \x01(\x01H\x01\x42\x05\n\x03minB\x05\n\x03max\"0\n\x0f\x43ustomAttribute\x12\x0c\n\x04text\x18\x01 \x03(\t\x12\x0f\n\x07numbers\x18\x02 \x03(\x01\"/\n\x08UserInfo\x12\x0f\n\x07user_id\x18\x01 \x01(\t\x12\x12\n\nuser_agent\x18\x02 \x01(\t\"%\n\x0f\x45mbeddingConfig\x12\x12\n\nfield_path\x18\x01 \x01(\t\"\x1c\n\nDoubleList\x12\x0e\n\x06values\x18\x01 \x03(\x01*b\n\x10IndustryVertical\x12!\n\x1dINDUSTRY_VERTICAL_UNSPECIFIED\x10\x00\x12\x0b\n\x07GENERIC\x10\x01\x12\t\n\x05MEDIA\x10\x02\x12\x13\n\x0fHEALTHCARE_FHIR\x10\x07*\xa4\x01\n\x0cSolutionType\x12\x1d\n\x19SOLUTION_TYPE_UNSPECIFIED\x10\x00\x12 \n\x1cSOLUTION_TYPE_RECOMMENDATION\x10\x01\x12\x18\n\x14SOLUTION_TYPE_SEARCH\x10\x02\x12\x16\n\x12SOLUTION_TYPE_CHAT\x10\x03\x12!\n\x1dSOLUTION_TYPE_GENERATIVE_CHAT\x10\x04*h\n\rSearchUseCase\x12\x1f\n\x1bSEARCH_USE_CASE_UNSPECIFIED\x10\x00\x12\x1a\n\x16SEARCH_USE_CASE_SEARCH\x10\x01\x12\x1a\n\x16SEARCH_USE_CASE_BROWSE\x10\x02*_\n\nSearchTier\x12\x1b\n\x17SEARCH_TIER_UNSPECIFIED\x10\x00\x12\x18\n\x14SEARCH_TIER_STANDARD\x10\x01\x12\x1a\n\x16SEARCH_TIER_ENTERPRISE\x10\x02*C\n\x0bSearchAddOn\x12\x1d\n\x19SEARCH_ADD_ON_UNSPECIFIED\x10\x00\x12\x15\n\x11SEARCH_ADD_ON_LLM\x10\x01\x42\xb5\x0b\n\'com.google.cloud.discoveryengine.v1betaB\x0b\x43ommonProtoP\x01ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb\xa2\x02\x0f\x44ISCOVERYENGINE\xaa\x02#Google.Cloud.DiscoveryEngine.V1Beta\xca\x02#Google\\Cloud\\DiscoveryEngine\\V1beta\xea\x02&Google::Cloud::DiscoveryEngine::V1beta\xea\x41\xe6\x01\n%discoveryengine.googleapis.com/Branch\x12Qprojects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}\x12jprojects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}\xea\x41m\n)discoveryengine.googleapis.com/Collection\x12@projects/{project}/locations/{location}/collections/{collection}\xea\x41R\n\'discoveryengine.googleapis.com/Location\x12\'projects/{project}/locations/{location}\xea\x41w\n,discoveryengine.googleapis.com/RankingConfig\x12Gprojects/{project}/locations/{location}/rankingConfigs/{ranking_config}\xea\x41\xd2\x02\n/discoveryengine.googleapis.com/CompletionConfig\x12Pprojects/{project}/locations/{location}/dataStores/{data_store}/completionConfig\x12iprojects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/completionConfig\x12\x62projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/completionConfig\xea\x41y\n#healthcare.googleapis.com/FhirStore\x12Rprojects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}\xea\x41\xa4\x01\n&healthcare.googleapis.com/FhirResource\x12zprojects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}b\x06proto3"
|
11
11
|
|
12
12
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
13
|
|