google-apis-discoveryengine_v1alpha 0.40.0 → 0.41.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/discoveryengine_v1alpha/classes.rb +42 -1
- data/lib/google/apis/discoveryengine_v1alpha/gem_version.rb +2 -2
- data/lib/google/apis/discoveryengine_v1alpha/representations.rb +15 -0
- data/lib/google/apis/discoveryengine_v1alpha/service.rb +82 -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: 145fa208491edaeb9d4163fcbd4692d5d3915f0cee5e8b355b9aa5bcfef15586
|
4
|
+
data.tar.gz: c1d2f4ac0565f2d9dc9165a09a4b72eb99303664adab5f41dd580acb63b106e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 881f2063ccc9c5e66ca1d120ffb87658144fba0c07f4821f34617d97f78a461bc39f660ebf7ce01dc147c922a19a0c8344f3b33631ca557f3fafe7d9100ea07c
|
7
|
+
data.tar.gz: 398a1bf7046058dca8be4028e7c397648822cf22c9b9d7f2638f6b18dc71a96b0e02f2ef118a2c9aff5324d95fe4bed362c00c8dc9e64d7046730ee1f40f13dc
|
data/CHANGELOG.md
CHANGED
@@ -4926,6 +4926,33 @@ module Google
|
|
4926
4926
|
end
|
4927
4927
|
end
|
4928
4928
|
|
4929
|
+
# Document captures all raw metadata information of items to be recommended or
|
4930
|
+
# searched.
|
4931
|
+
class GoogleCloudDiscoveryengineV1alphaProcessedDocument
|
4932
|
+
include Google::Apis::Core::Hashable
|
4933
|
+
|
4934
|
+
# Required. Full resource name of the referenced document, in the format `
|
4935
|
+
# projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*`.
|
4936
|
+
# Corresponds to the JSON property `document`
|
4937
|
+
# @return [String]
|
4938
|
+
attr_accessor :document
|
4939
|
+
|
4940
|
+
# The JSON string representation of the processed document.
|
4941
|
+
# Corresponds to the JSON property `jsonData`
|
4942
|
+
# @return [String]
|
4943
|
+
attr_accessor :json_data
|
4944
|
+
|
4945
|
+
def initialize(**args)
|
4946
|
+
update!(**args)
|
4947
|
+
end
|
4948
|
+
|
4949
|
+
# Update properties of this object
|
4950
|
+
def update!(**args)
|
4951
|
+
@document = args[:document] if args.key?(:document)
|
4952
|
+
@json_data = args[:json_data] if args.key?(:json_data)
|
4953
|
+
end
|
4954
|
+
end
|
4955
|
+
|
4929
4956
|
# Metadata related to the progress of the PurgeDocuments operation. This will be
|
4930
4957
|
# returned by the google.longrunning.Operation.metadata field.
|
4931
4958
|
class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
|
@@ -5988,7 +6015,10 @@ module Google
|
|
5988
6015
|
# document a big demotion. However, results that are deeply relevant might still
|
5989
6016
|
# be shown. The document will have an upstream battle to get a fairly high
|
5990
6017
|
# ranking, but it is not blocked out completely. Setting to 0.0 means no boost
|
5991
|
-
# applied. The boosting condition is ignored.
|
6018
|
+
# applied. The boosting condition is ignored. Only one of the (condition, boost)
|
6019
|
+
# combination or the boost_control_spec below are set. If both are set then the
|
6020
|
+
# global boost is ignored and the more fine-grained boost_control_spec is
|
6021
|
+
# applied.
|
5992
6022
|
# Corresponds to the JSON property `boost`
|
5993
6023
|
# @return [Float]
|
5994
6024
|
attr_accessor :boost
|
@@ -6219,6 +6249,16 @@ module Google
|
|
6219
6249
|
# @return [Fixnum]
|
6220
6250
|
attr_accessor :summary_result_count
|
6221
6251
|
|
6252
|
+
# If true, answer will be generated from most relevant chunks from top search
|
6253
|
+
# results. This feature will improve summary quality. Please note that with this
|
6254
|
+
# feature enabled, not all top search results will be referenced and included in
|
6255
|
+
# the reference list, so the citation source index only points to the search
|
6256
|
+
# results listed in the reference list.
|
6257
|
+
# Corresponds to the JSON property `useSemanticChunks`
|
6258
|
+
# @return [Boolean]
|
6259
|
+
attr_accessor :use_semantic_chunks
|
6260
|
+
alias_method :use_semantic_chunks?, :use_semantic_chunks
|
6261
|
+
|
6222
6262
|
def initialize(**args)
|
6223
6263
|
update!(**args)
|
6224
6264
|
end
|
@@ -6232,6 +6272,7 @@ module Google
|
|
6232
6272
|
@model_prompt_spec = args[:model_prompt_spec] if args.key?(:model_prompt_spec)
|
6233
6273
|
@model_spec = args[:model_spec] if args.key?(:model_spec)
|
6234
6274
|
@summary_result_count = args[:summary_result_count] if args.key?(:summary_result_count)
|
6275
|
+
@use_semantic_chunks = args[:use_semantic_chunks] if args.key?(:use_semantic_chunks)
|
6235
6276
|
end
|
6236
6277
|
end
|
6237
6278
|
|
@@ -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.41.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.14.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240318"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -928,6 +928,12 @@ module Google
|
|
928
928
|
include Google::Apis::Core::JsonObjectSupport
|
929
929
|
end
|
930
930
|
|
931
|
+
class GoogleCloudDiscoveryengineV1alphaProcessedDocument
|
932
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
933
|
+
|
934
|
+
include Google::Apis::Core::JsonObjectSupport
|
935
|
+
end
|
936
|
+
|
931
937
|
class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
|
932
938
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
933
939
|
|
@@ -3167,6 +3173,14 @@ module Google
|
|
3167
3173
|
end
|
3168
3174
|
end
|
3169
3175
|
|
3176
|
+
class GoogleCloudDiscoveryengineV1alphaProcessedDocument
|
3177
|
+
# @private
|
3178
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3179
|
+
property :document, as: 'document'
|
3180
|
+
property :json_data, as: 'jsonData'
|
3181
|
+
end
|
3182
|
+
end
|
3183
|
+
|
3170
3184
|
class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
|
3171
3185
|
# @private
|
3172
3186
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3481,6 +3495,7 @@ module Google
|
|
3481
3495
|
property :model_spec, as: 'modelSpec', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec::Representation
|
3482
3496
|
|
3483
3497
|
property :summary_result_count, as: 'summaryResultCount'
|
3498
|
+
property :use_semantic_chunks, as: 'useSemanticChunks'
|
3484
3499
|
end
|
3485
3500
|
end
|
3486
3501
|
|
@@ -890,6 +890,47 @@ module Google
|
|
890
890
|
execute_or_queue_command(command, &block)
|
891
891
|
end
|
892
892
|
|
893
|
+
# Gets the parsed layout information for a Document.
|
894
|
+
# @param [String] name
|
895
|
+
# Required. Full resource name of Document, such as `projects/`project`/
|
896
|
+
# locations/`location`/collections/`collection`/dataStores/`data_store`/branches/
|
897
|
+
# `branch`/documents/`document``. If the caller does not have permission to
|
898
|
+
# access the Document, regardless of whether or not it exists, a `
|
899
|
+
# PERMISSION_DENIED` error is returned. If the requested Document does not exist,
|
900
|
+
# a `NOT_FOUND` error is returned.
|
901
|
+
# @param [String] processed_document_format
|
902
|
+
# What format output should be. If unspecified, defaults to JSON.
|
903
|
+
# @param [String] processed_document_type
|
904
|
+
# Required. What type of processing to return.
|
905
|
+
# @param [String] fields
|
906
|
+
# Selector specifying which fields to include in a partial response.
|
907
|
+
# @param [String] quota_user
|
908
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
909
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
910
|
+
# @param [Google::Apis::RequestOptions] options
|
911
|
+
# Request-specific options
|
912
|
+
#
|
913
|
+
# @yield [result, err] Result & error if block supplied
|
914
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaProcessedDocument] parsed result object
|
915
|
+
# @yieldparam err [StandardError] error object if request failed
|
916
|
+
#
|
917
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaProcessedDocument]
|
918
|
+
#
|
919
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
920
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
921
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
922
|
+
def get_project_location_collection_data_store_branch_document_processed_document(name, processed_document_format: nil, processed_document_type: nil, fields: nil, quota_user: nil, options: nil, &block)
|
923
|
+
command = make_simple_command(:get, 'v1alpha/{+name}:getProcessedDocument', options)
|
924
|
+
command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaProcessedDocument::Representation
|
925
|
+
command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaProcessedDocument
|
926
|
+
command.params['name'] = name unless name.nil?
|
927
|
+
command.query['processedDocumentFormat'] = processed_document_format unless processed_document_format.nil?
|
928
|
+
command.query['processedDocumentType'] = processed_document_type unless processed_document_type.nil?
|
929
|
+
command.query['fields'] = fields unless fields.nil?
|
930
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
931
|
+
execute_or_queue_command(command, &block)
|
932
|
+
end
|
933
|
+
|
893
934
|
# Bulk import of multiple Documents. Request processing may be synchronous. Non-
|
894
935
|
# existing items will be created. Note: It is possible for a subset of the
|
895
936
|
# Documents to be successfully updated.
|
@@ -4143,6 +4184,47 @@ module Google
|
|
4143
4184
|
execute_or_queue_command(command, &block)
|
4144
4185
|
end
|
4145
4186
|
|
4187
|
+
# Gets the parsed layout information for a Document.
|
4188
|
+
# @param [String] name
|
4189
|
+
# Required. Full resource name of Document, such as `projects/`project`/
|
4190
|
+
# locations/`location`/collections/`collection`/dataStores/`data_store`/branches/
|
4191
|
+
# `branch`/documents/`document``. If the caller does not have permission to
|
4192
|
+
# access the Document, regardless of whether or not it exists, a `
|
4193
|
+
# PERMISSION_DENIED` error is returned. If the requested Document does not exist,
|
4194
|
+
# a `NOT_FOUND` error is returned.
|
4195
|
+
# @param [String] processed_document_format
|
4196
|
+
# What format output should be. If unspecified, defaults to JSON.
|
4197
|
+
# @param [String] processed_document_type
|
4198
|
+
# Required. What type of processing to return.
|
4199
|
+
# @param [String] fields
|
4200
|
+
# Selector specifying which fields to include in a partial response.
|
4201
|
+
# @param [String] quota_user
|
4202
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4203
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4204
|
+
# @param [Google::Apis::RequestOptions] options
|
4205
|
+
# Request-specific options
|
4206
|
+
#
|
4207
|
+
# @yield [result, err] Result & error if block supplied
|
4208
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaProcessedDocument] parsed result object
|
4209
|
+
# @yieldparam err [StandardError] error object if request failed
|
4210
|
+
#
|
4211
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaProcessedDocument]
|
4212
|
+
#
|
4213
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4214
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4215
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4216
|
+
def get_project_location_data_store_branch_document_processed_document(name, processed_document_format: nil, processed_document_type: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4217
|
+
command = make_simple_command(:get, 'v1alpha/{+name}:getProcessedDocument', options)
|
4218
|
+
command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaProcessedDocument::Representation
|
4219
|
+
command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaProcessedDocument
|
4220
|
+
command.params['name'] = name unless name.nil?
|
4221
|
+
command.query['processedDocumentFormat'] = processed_document_format unless processed_document_format.nil?
|
4222
|
+
command.query['processedDocumentType'] = processed_document_type unless processed_document_type.nil?
|
4223
|
+
command.query['fields'] = fields unless fields.nil?
|
4224
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4225
|
+
execute_or_queue_command(command, &block)
|
4226
|
+
end
|
4227
|
+
|
4146
4228
|
# Bulk import of multiple Documents. Request processing may be synchronous. Non-
|
4147
4229
|
# existing items will be created. Note: It is possible for a subset of the
|
4148
4230
|
# Documents to be successfully updated.
|
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.41.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: 2024-03-
|
11
|
+
date: 2024-03-24 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.41.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: []
|