google-apis-discoveryengine_v1alpha 0.22.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/discoveryengine_v1alpha/classes.rb +47 -0
- data/lib/google/apis/discoveryengine_v1alpha/gem_version.rb +2 -2
- data/lib/google/apis/discoveryengine_v1alpha/representations.rb +18 -0
- data/lib/google/apis/discoveryengine_v1alpha/service.rb +72 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8491e62c4d2ba6efede0bd3af9f48fa11e0449b1419558a5f5f77e874b4dc92
|
4
|
+
data.tar.gz: 2c4abb841cfc3214d3f951abbfe53857b11d222f20fafa9e24d4a98795bb0b72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01f2da54e8a0351473587e41d5a80d7fd149a8b117555e265186ecef2d83f8960b5099c67ae7ba73f67f9052225ad36fbc5d263b63c336ab7ea48809e1a8db28
|
7
|
+
data.tar.gz: 2aacb8f70bc7926c229192a2e5fb328af26783bdc3323c64f4cdb1042bf7f0d319415de9fa4322c2a9b06b4771289554cc3a37b6f6c177cf1fc2c80b0d278c5b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-discoveryengine_v1alpha
|
2
2
|
|
3
|
+
### v0.24.0 (2023-10-15)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20231003
|
6
|
+
|
7
|
+
### v0.23.0 (2023-10-08)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230928
|
10
|
+
|
3
11
|
### v0.22.0 (2023-10-01)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230925
|
@@ -3521,6 +3521,11 @@ module Google
|
|
3521
3521
|
# @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseFacet>]
|
3522
3522
|
attr_accessor :facets
|
3523
3523
|
|
3524
|
+
#
|
3525
|
+
# Corresponds to the JSON property `geoSearchDebugInfo`
|
3526
|
+
# @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseGeoSearchDebugInfo>]
|
3527
|
+
attr_accessor :geo_search_debug_info
|
3528
|
+
|
3524
3529
|
# Guided search result. The guided search helps user to refine the search
|
3525
3530
|
# results and narrow down to the real needs from a broaded search results.
|
3526
3531
|
# Corresponds to the JSON property `guidedSearchResult`
|
@@ -3573,6 +3578,7 @@ module Google
|
|
3573
3578
|
@attribution_token = args[:attribution_token] if args.key?(:attribution_token)
|
3574
3579
|
@corrected_query = args[:corrected_query] if args.key?(:corrected_query)
|
3575
3580
|
@facets = args[:facets] if args.key?(:facets)
|
3581
|
+
@geo_search_debug_info = args[:geo_search_debug_info] if args.key?(:geo_search_debug_info)
|
3576
3582
|
@guided_search_result = args[:guided_search_result] if args.key?(:guided_search_result)
|
3577
3583
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
3578
3584
|
@query_expansion_info = args[:query_expansion_info] if args.key?(:query_expansion_info)
|
@@ -3647,6 +3653,32 @@ module Google
|
|
3647
3653
|
end
|
3648
3654
|
end
|
3649
3655
|
|
3656
|
+
# Debug information specifically related to forward geocoding issues arising
|
3657
|
+
# from Geolocation Search.
|
3658
|
+
class GoogleCloudDiscoveryengineV1alphaSearchResponseGeoSearchDebugInfo
|
3659
|
+
include Google::Apis::Core::Hashable
|
3660
|
+
|
3661
|
+
# The error produced.
|
3662
|
+
# Corresponds to the JSON property `errorMessage`
|
3663
|
+
# @return [String]
|
3664
|
+
attr_accessor :error_message
|
3665
|
+
|
3666
|
+
# The address from which forward geocoding ingestion produced issues.
|
3667
|
+
# Corresponds to the JSON property `originalAddressQuery`
|
3668
|
+
# @return [String]
|
3669
|
+
attr_accessor :original_address_query
|
3670
|
+
|
3671
|
+
def initialize(**args)
|
3672
|
+
update!(**args)
|
3673
|
+
end
|
3674
|
+
|
3675
|
+
# Update properties of this object
|
3676
|
+
def update!(**args)
|
3677
|
+
@error_message = args[:error_message] if args.key?(:error_message)
|
3678
|
+
@original_address_query = args[:original_address_query] if args.key?(:original_address_query)
|
3679
|
+
end
|
3680
|
+
end
|
3681
|
+
|
3650
3682
|
# Guided search result. The guided search helps user to refine the search
|
3651
3683
|
# results and narrow down to the real needs from a broaded search results.
|
3652
3684
|
class GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResult
|
@@ -4478,6 +4510,12 @@ module Google
|
|
4478
4510
|
attr_accessor :llm_enabled
|
4479
4511
|
alias_method :llm_enabled?, :llm_enabled
|
4480
4512
|
|
4513
|
+
# Output only. Whether the customer accepted data use terms.
|
4514
|
+
# Corresponds to the JSON property `minimumDataTermAccepted`
|
4515
|
+
# @return [Boolean]
|
4516
|
+
attr_accessor :minimum_data_term_accepted
|
4517
|
+
alias_method :minimum_data_term_accepted?, :minimum_data_term_accepted
|
4518
|
+
|
4481
4519
|
# Immutable. The full resource name of the widget config. Format: `projects/`
|
4482
4520
|
# project`/locations/`location`/collections/`collection_id`/dataStores/`
|
4483
4521
|
# data_store_id`/widgetConfigs/`widget_config_id``. This field must be a UTF-8
|
@@ -4486,6 +4524,13 @@ module Google
|
|
4486
4524
|
# @return [String]
|
4487
4525
|
attr_accessor :name
|
4488
4526
|
|
4527
|
+
# The type of snippet to display in UCS widget. -
|
4528
|
+
# RESULT_DISPLAY_TYPE_UNSPECIFIED for existing users. - SNIPPET for new non-
|
4529
|
+
# enterprise search users. - EXTRACTIVE_ANSWER for new enterprise search users.
|
4530
|
+
# Corresponds to the JSON property `resultDisplayType`
|
4531
|
+
# @return [String]
|
4532
|
+
attr_accessor :result_display_type
|
4533
|
+
|
4489
4534
|
# Required. Immutable. Specifies the solution type that this WidgetConfig can be
|
4490
4535
|
# used for.
|
4491
4536
|
# Corresponds to the JSON property `solutionType`
|
@@ -4520,7 +4565,9 @@ module Google
|
|
4520
4565
|
@facet_field = args[:facet_field] if args.key?(:facet_field)
|
4521
4566
|
@fields_ui_components_map = args[:fields_ui_components_map] if args.key?(:fields_ui_components_map)
|
4522
4567
|
@llm_enabled = args[:llm_enabled] if args.key?(:llm_enabled)
|
4568
|
+
@minimum_data_term_accepted = args[:minimum_data_term_accepted] if args.key?(:minimum_data_term_accepted)
|
4523
4569
|
@name = args[:name] if args.key?(:name)
|
4570
|
+
@result_display_type = args[:result_display_type] if args.key?(:result_display_type)
|
4524
4571
|
@solution_type = args[:solution_type] if args.key?(:solution_type)
|
4525
4572
|
@update_time = args[:update_time] if args.key?(:update_time)
|
4526
4573
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DiscoveryengineV1alpha
|
18
18
|
# Version of the google-apis-discoveryengine_v1alpha gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.24.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20231003"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -574,6 +574,12 @@ module Google
|
|
574
574
|
include Google::Apis::Core::JsonObjectSupport
|
575
575
|
end
|
576
576
|
|
577
|
+
class GoogleCloudDiscoveryengineV1alphaSearchResponseGeoSearchDebugInfo
|
578
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
579
|
+
|
580
|
+
include Google::Apis::Core::JsonObjectSupport
|
581
|
+
end
|
582
|
+
|
577
583
|
class GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResult
|
578
584
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
579
585
|
|
@@ -1714,6 +1720,8 @@ module Google
|
|
1714
1720
|
property :corrected_query, as: 'correctedQuery'
|
1715
1721
|
collection :facets, as: 'facets', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseFacet, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseFacet::Representation
|
1716
1722
|
|
1723
|
+
collection :geo_search_debug_info, as: 'geoSearchDebugInfo', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseGeoSearchDebugInfo, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseGeoSearchDebugInfo::Representation
|
1724
|
+
|
1717
1725
|
property :guided_search_result, as: 'guidedSearchResult', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResult, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResult::Representation
|
1718
1726
|
|
1719
1727
|
property :next_page_token, as: 'nextPageToken'
|
@@ -1748,6 +1756,14 @@ module Google
|
|
1748
1756
|
end
|
1749
1757
|
end
|
1750
1758
|
|
1759
|
+
class GoogleCloudDiscoveryengineV1alphaSearchResponseGeoSearchDebugInfo
|
1760
|
+
# @private
|
1761
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1762
|
+
property :error_message, as: 'errorMessage'
|
1763
|
+
property :original_address_query, as: 'originalAddressQuery'
|
1764
|
+
end
|
1765
|
+
end
|
1766
|
+
|
1751
1767
|
class GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResult
|
1752
1768
|
# @private
|
1753
1769
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1961,7 +1977,9 @@ module Google
|
|
1961
1977
|
hash :fields_ui_components_map, as: 'fieldsUiComponentsMap', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaWidgetConfigUiComponentField, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaWidgetConfigUiComponentField::Representation
|
1962
1978
|
|
1963
1979
|
property :llm_enabled, as: 'llmEnabled'
|
1980
|
+
property :minimum_data_term_accepted, as: 'minimumDataTermAccepted'
|
1964
1981
|
property :name, as: 'name'
|
1982
|
+
property :result_display_type, as: 'resultDisplayType'
|
1965
1983
|
property :solution_type, as: 'solutionType'
|
1966
1984
|
property :update_time, as: 'updateTime'
|
1967
1985
|
end
|
@@ -1703,6 +1703,78 @@ module Google
|
|
1703
1703
|
execute_or_queue_command(command, &block)
|
1704
1704
|
end
|
1705
1705
|
|
1706
|
+
# Makes a recommendation, which requires a contextual user event.
|
1707
|
+
# @param [String] serving_config
|
1708
|
+
# Required. Full resource name of the format: `projects/*/locations/global/
|
1709
|
+
# collections/*/dataStores/*/servingConfigs/*` Before you can request
|
1710
|
+
# recommendations from your model, you must create at least one serving config
|
1711
|
+
# for it.
|
1712
|
+
# @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRecommendRequest] google_cloud_discoveryengine_v1alpha_recommend_request_object
|
1713
|
+
# @param [String] fields
|
1714
|
+
# Selector specifying which fields to include in a partial response.
|
1715
|
+
# @param [String] quota_user
|
1716
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1717
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1718
|
+
# @param [Google::Apis::RequestOptions] options
|
1719
|
+
# Request-specific options
|
1720
|
+
#
|
1721
|
+
# @yield [result, err] Result & error if block supplied
|
1722
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRecommendResponse] parsed result object
|
1723
|
+
# @yieldparam err [StandardError] error object if request failed
|
1724
|
+
#
|
1725
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRecommendResponse]
|
1726
|
+
#
|
1727
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1728
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1729
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1730
|
+
def recommend_project_location_collection_engine_serving_config(serving_config, google_cloud_discoveryengine_v1alpha_recommend_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1731
|
+
command = make_simple_command(:post, 'v1alpha/{+servingConfig}:recommend', options)
|
1732
|
+
command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRecommendRequest::Representation
|
1733
|
+
command.request_object = google_cloud_discoveryengine_v1alpha_recommend_request_object
|
1734
|
+
command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRecommendResponse::Representation
|
1735
|
+
command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRecommendResponse
|
1736
|
+
command.params['servingConfig'] = serving_config unless serving_config.nil?
|
1737
|
+
command.query['fields'] = fields unless fields.nil?
|
1738
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1739
|
+
execute_or_queue_command(command, &block)
|
1740
|
+
end
|
1741
|
+
|
1742
|
+
# Performs a search.
|
1743
|
+
# @param [String] serving_config
|
1744
|
+
# Required. The resource name of the Search serving config, such as `projects/*/
|
1745
|
+
# locations/global/collections/default_collection/dataStores/default_data_store/
|
1746
|
+
# servingConfigs/default_serving_config`. This field is used to identify the
|
1747
|
+
# serving configuration name, set of models used to make the search.
|
1748
|
+
# @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequest] google_cloud_discoveryengine_v1alpha_search_request_object
|
1749
|
+
# @param [String] fields
|
1750
|
+
# Selector specifying which fields to include in a partial response.
|
1751
|
+
# @param [String] quota_user
|
1752
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1753
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1754
|
+
# @param [Google::Apis::RequestOptions] options
|
1755
|
+
# Request-specific options
|
1756
|
+
#
|
1757
|
+
# @yield [result, err] Result & error if block supplied
|
1758
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponse] parsed result object
|
1759
|
+
# @yieldparam err [StandardError] error object if request failed
|
1760
|
+
#
|
1761
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponse]
|
1762
|
+
#
|
1763
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1764
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1765
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1766
|
+
def search_project_location_collection_engine_serving_configs(serving_config, google_cloud_discoveryengine_v1alpha_search_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1767
|
+
command = make_simple_command(:post, 'v1alpha/{+servingConfig}:search', options)
|
1768
|
+
command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequest::Representation
|
1769
|
+
command.request_object = google_cloud_discoveryengine_v1alpha_search_request_object
|
1770
|
+
command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponse::Representation
|
1771
|
+
command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponse
|
1772
|
+
command.params['servingConfig'] = serving_config unless serving_config.nil?
|
1773
|
+
command.query['fields'] = fields unless fields.nil?
|
1774
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1775
|
+
execute_or_queue_command(command, &block)
|
1776
|
+
end
|
1777
|
+
|
1706
1778
|
# Gets the latest state of a long-running operation. Clients can use this method
|
1707
1779
|
# to poll the operation result at intervals as recommended by the API service.
|
1708
1780
|
# @param [String] name
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-discoveryengine_v1alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1alpha/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1alpha/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1alpha/v0.24.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1alpha
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|