google-apis-discoveryengine_v1alpha 0.49.0 → 0.51.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 +8 -0
- data/lib/google/apis/discoveryengine_v1alpha/classes.rb +598 -6
- data/lib/google/apis/discoveryengine_v1alpha/gem_version.rb +2 -2
- data/lib/google/apis/discoveryengine_v1alpha/representations.rb +273 -0
- data/lib/google/apis/discoveryengine_v1alpha/service.rb +138 -0
- metadata +3 -3
@@ -1748,6 +1748,72 @@ module Google
|
|
1748
1748
|
end
|
1749
1749
|
end
|
1750
1750
|
|
1751
|
+
# Metadata related to the progress of the ImportCompletionSuggestions operation.
|
1752
|
+
# This will be returned by the google.longrunning.Operation.metadata field.
|
1753
|
+
class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata
|
1754
|
+
include Google::Apis::Core::Hashable
|
1755
|
+
|
1756
|
+
# Operation create time.
|
1757
|
+
# Corresponds to the JSON property `createTime`
|
1758
|
+
# @return [String]
|
1759
|
+
attr_accessor :create_time
|
1760
|
+
|
1761
|
+
# Count of CompletionSuggestions that failed to be imported.
|
1762
|
+
# Corresponds to the JSON property `failureCount`
|
1763
|
+
# @return [Fixnum]
|
1764
|
+
attr_accessor :failure_count
|
1765
|
+
|
1766
|
+
# Count of CompletionSuggestions successfully imported.
|
1767
|
+
# Corresponds to the JSON property `successCount`
|
1768
|
+
# @return [Fixnum]
|
1769
|
+
attr_accessor :success_count
|
1770
|
+
|
1771
|
+
# Operation last update time. If the operation is done, this is also the finish
|
1772
|
+
# time.
|
1773
|
+
# Corresponds to the JSON property `updateTime`
|
1774
|
+
# @return [String]
|
1775
|
+
attr_accessor :update_time
|
1776
|
+
|
1777
|
+
def initialize(**args)
|
1778
|
+
update!(**args)
|
1779
|
+
end
|
1780
|
+
|
1781
|
+
# Update properties of this object
|
1782
|
+
def update!(**args)
|
1783
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1784
|
+
@failure_count = args[:failure_count] if args.key?(:failure_count)
|
1785
|
+
@success_count = args[:success_count] if args.key?(:success_count)
|
1786
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
1787
|
+
end
|
1788
|
+
end
|
1789
|
+
|
1790
|
+
# Response of the CompletionService.ImportCompletionSuggestions method. If the
|
1791
|
+
# long running operation is done, this message is returned by the google.
|
1792
|
+
# longrunning.Operations.response field if the operation is successful.
|
1793
|
+
class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsResponse
|
1794
|
+
include Google::Apis::Core::Hashable
|
1795
|
+
|
1796
|
+
# Configuration of destination for Import related errors.
|
1797
|
+
# Corresponds to the JSON property `errorConfig`
|
1798
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1ImportErrorConfig]
|
1799
|
+
attr_accessor :error_config
|
1800
|
+
|
1801
|
+
# A sample of errors encountered while processing the request.
|
1802
|
+
# Corresponds to the JSON property `errorSamples`
|
1803
|
+
# @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus>]
|
1804
|
+
attr_accessor :error_samples
|
1805
|
+
|
1806
|
+
def initialize(**args)
|
1807
|
+
update!(**args)
|
1808
|
+
end
|
1809
|
+
|
1810
|
+
# Update properties of this object
|
1811
|
+
def update!(**args)
|
1812
|
+
@error_config = args[:error_config] if args.key?(:error_config)
|
1813
|
+
@error_samples = args[:error_samples] if args.key?(:error_samples)
|
1814
|
+
end
|
1815
|
+
end
|
1816
|
+
|
1751
1817
|
# Metadata related to the progress of the ImportDocuments operation. This is
|
1752
1818
|
# returned by the google.longrunning.Operation.metadata field.
|
1753
1819
|
class GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
|
@@ -2080,6 +2146,59 @@ module Google
|
|
2080
2146
|
end
|
2081
2147
|
end
|
2082
2148
|
|
2149
|
+
# Metadata related to the progress of the PurgeCompletionSuggestions operation.
|
2150
|
+
# This is returned by the google.longrunning.Operation.metadata field.
|
2151
|
+
class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsMetadata
|
2152
|
+
include Google::Apis::Core::Hashable
|
2153
|
+
|
2154
|
+
# Operation create time.
|
2155
|
+
# Corresponds to the JSON property `createTime`
|
2156
|
+
# @return [String]
|
2157
|
+
attr_accessor :create_time
|
2158
|
+
|
2159
|
+
# Operation last update time. If the operation is done, this is also the finish
|
2160
|
+
# time.
|
2161
|
+
# Corresponds to the JSON property `updateTime`
|
2162
|
+
# @return [String]
|
2163
|
+
attr_accessor :update_time
|
2164
|
+
|
2165
|
+
def initialize(**args)
|
2166
|
+
update!(**args)
|
2167
|
+
end
|
2168
|
+
|
2169
|
+
# Update properties of this object
|
2170
|
+
def update!(**args)
|
2171
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
2172
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
2173
|
+
end
|
2174
|
+
end
|
2175
|
+
|
2176
|
+
# Response message for CompletionService.PurgeCompletionSuggestions method.
|
2177
|
+
class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsResponse
|
2178
|
+
include Google::Apis::Core::Hashable
|
2179
|
+
|
2180
|
+
# A sample of errors encountered while processing the request.
|
2181
|
+
# Corresponds to the JSON property `errorSamples`
|
2182
|
+
# @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus>]
|
2183
|
+
attr_accessor :error_samples
|
2184
|
+
|
2185
|
+
# Whether the completion suggestions were successfully purged.
|
2186
|
+
# Corresponds to the JSON property `purgeSucceeded`
|
2187
|
+
# @return [Boolean]
|
2188
|
+
attr_accessor :purge_succeeded
|
2189
|
+
alias_method :purge_succeeded?, :purge_succeeded
|
2190
|
+
|
2191
|
+
def initialize(**args)
|
2192
|
+
update!(**args)
|
2193
|
+
end
|
2194
|
+
|
2195
|
+
# Update properties of this object
|
2196
|
+
def update!(**args)
|
2197
|
+
@error_samples = args[:error_samples] if args.key?(:error_samples)
|
2198
|
+
@purge_succeeded = args[:purge_succeeded] if args.key?(:purge_succeeded)
|
2199
|
+
end
|
2200
|
+
end
|
2201
|
+
|
2083
2202
|
# Metadata related to the progress of the PurgeDocuments operation. This will be
|
2084
2203
|
# returned by the google.longrunning.Operation.metadata field.
|
2085
2204
|
class GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata
|
@@ -4198,12 +4317,23 @@ module Google
|
|
4198
4317
|
class GoogleCloudDiscoveryengineV1alphaCheckRequirementRequest
|
4199
4318
|
include Google::Apis::Core::Hashable
|
4200
4319
|
|
4201
|
-
#
|
4320
|
+
# The type specifying the requirement to check. The supported types are: * `
|
4321
|
+
# discoveryengine.googleapis.com/media_recs/general/all/warning` * `
|
4322
|
+
# discoveryengine.googleapis.com/media_recs/oyml/cvr/warning` * `discoveryengine.
|
4323
|
+
# googleapis.com/media_recs/rfy/cvr/warning` * `discoveryengine.googleapis.com/
|
4324
|
+
# media_recs/mlt/cvr/warning` * `discoveryengine.googleapis.com/media_recs/mp/
|
4325
|
+
# cvr/warning` * `discoveryengine.googleapis.com/media_recs/oyml/wdps/warning` *
|
4326
|
+
# `discoveryengine.googleapis.com/media_recs/rfy/wdps/warning` * `
|
4327
|
+
# discoveryengine.googleapis.com/media_recs/mlt/wdps/warning`
|
4202
4328
|
# Corresponds to the JSON property `requirementType`
|
4203
4329
|
# @return [String]
|
4204
4330
|
attr_accessor :requirement_type
|
4205
4331
|
|
4206
|
-
# The
|
4332
|
+
# The type needed for the monitored resources: * `discoveryengine.googleapis.com/
|
4333
|
+
# Branch`. * The labels needed for this resource: * `project_number` * `
|
4334
|
+
# location_id` * `collection_id` * `datastore_id` * `branch_id` * `
|
4335
|
+
# discoveryengine.googleapis.com/DataStore` * The labels needed for this
|
4336
|
+
# resource: * `project_number` * `location_id` * `collection_id` * `datastore_id`
|
4207
4337
|
# Corresponds to the JSON property `resources`
|
4208
4338
|
# @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleApiMonitoredResource>]
|
4209
4339
|
attr_accessor :resources
|
@@ -4219,7 +4349,7 @@ module Google
|
|
4219
4349
|
end
|
4220
4350
|
end
|
4221
4351
|
|
4222
|
-
# Response for CheckRequirement method.
|
4352
|
+
# Response for the CheckRequirement method.
|
4223
4353
|
class GoogleCloudDiscoveryengineV1alphaCheckRequirementResponse
|
4224
4354
|
include Google::Apis::Core::Hashable
|
4225
4355
|
|
@@ -4622,6 +4752,65 @@ module Google
|
|
4622
4752
|
end
|
4623
4753
|
end
|
4624
4754
|
|
4755
|
+
# Autocomplete suggestions that are imported from Customer.
|
4756
|
+
class GoogleCloudDiscoveryengineV1alphaCompletionSuggestion
|
4757
|
+
include Google::Apis::Core::Hashable
|
4758
|
+
|
4759
|
+
# Alternative matching phrases for this suggestion.
|
4760
|
+
# Corresponds to the JSON property `alternativePhrases`
|
4761
|
+
# @return [Array<String>]
|
4762
|
+
attr_accessor :alternative_phrases
|
4763
|
+
|
4764
|
+
# Frequency of this suggestion. Will be used to rank suggestions when score is
|
4765
|
+
# not available.
|
4766
|
+
# Corresponds to the JSON property `frequency`
|
4767
|
+
# @return [Fixnum]
|
4768
|
+
attr_accessor :frequency
|
4769
|
+
|
4770
|
+
# Global score of this suggestion. Control how this suggestion would be scored /
|
4771
|
+
# ranked.
|
4772
|
+
# Corresponds to the JSON property `globalScore`
|
4773
|
+
# @return [Float]
|
4774
|
+
attr_accessor :global_score
|
4775
|
+
|
4776
|
+
# If two suggestions have the same groupId, they will not be returned together.
|
4777
|
+
# Instead the one ranked higher will be returned. This can be used to
|
4778
|
+
# deduplicate semantically identical suggestions.
|
4779
|
+
# Corresponds to the JSON property `groupId`
|
4780
|
+
# @return [String]
|
4781
|
+
attr_accessor :group_id
|
4782
|
+
|
4783
|
+
# The score of this suggestion within its group.
|
4784
|
+
# Corresponds to the JSON property `groupScore`
|
4785
|
+
# @return [Float]
|
4786
|
+
attr_accessor :group_score
|
4787
|
+
|
4788
|
+
# BCP-47 language code of this suggestion.
|
4789
|
+
# Corresponds to the JSON property `languageCode`
|
4790
|
+
# @return [String]
|
4791
|
+
attr_accessor :language_code
|
4792
|
+
|
4793
|
+
# Required. The suggestion text.
|
4794
|
+
# Corresponds to the JSON property `suggestion`
|
4795
|
+
# @return [String]
|
4796
|
+
attr_accessor :suggestion
|
4797
|
+
|
4798
|
+
def initialize(**args)
|
4799
|
+
update!(**args)
|
4800
|
+
end
|
4801
|
+
|
4802
|
+
# Update properties of this object
|
4803
|
+
def update!(**args)
|
4804
|
+
@alternative_phrases = args[:alternative_phrases] if args.key?(:alternative_phrases)
|
4805
|
+
@frequency = args[:frequency] if args.key?(:frequency)
|
4806
|
+
@global_score = args[:global_score] if args.key?(:global_score)
|
4807
|
+
@group_id = args[:group_id] if args.key?(:group_id)
|
4808
|
+
@group_score = args[:group_score] if args.key?(:group_score)
|
4809
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
4810
|
+
@suggestion = args[:suggestion] if args.key?(:suggestion)
|
4811
|
+
end
|
4812
|
+
end
|
4813
|
+
|
4625
4814
|
# Defines circumstances to be checked before allowing a behavior
|
4626
4815
|
class GoogleCloudDiscoveryengineV1alphaCondition
|
4627
4816
|
include Google::Apis::Core::Hashable
|
@@ -5425,6 +5614,11 @@ module Google
|
|
5425
5614
|
# @return [String]
|
5426
5615
|
attr_accessor :industry_vertical
|
5427
5616
|
|
5617
|
+
# Language info for DataStore.
|
5618
|
+
# Corresponds to the JSON property `languageInfo`
|
5619
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaLanguageInfo]
|
5620
|
+
attr_accessor :language_info
|
5621
|
+
|
5428
5622
|
# Immutable. The full resource name of the data store. Format: `projects/`
|
5429
5623
|
# project`/locations/`location`/collections/`collection_id`/dataStores/`
|
5430
5624
|
# data_store_id``. This field must be a UTF-8 encoded string with a length limit
|
@@ -5460,6 +5654,7 @@ module Google
|
|
5460
5654
|
@document_processing_config = args[:document_processing_config] if args.key?(:document_processing_config)
|
5461
5655
|
@idp_config = args[:idp_config] if args.key?(:idp_config)
|
5462
5656
|
@industry_vertical = args[:industry_vertical] if args.key?(:industry_vertical)
|
5657
|
+
@language_info = args[:language_info] if args.key?(:language_info)
|
5463
5658
|
@name = args[:name] if args.key?(:name)
|
5464
5659
|
@solution_types = args[:solution_types] if args.key?(:solution_types)
|
5465
5660
|
@starting_schema = args[:starting_schema] if args.key?(:starting_schema)
|
@@ -5788,7 +5983,7 @@ module Google
|
|
5788
5983
|
|
5789
5984
|
# The URI of the content. Only Cloud Storage URIs (e.g. `gs://bucket-name/path/
|
5790
5985
|
# to/file`) are supported. The maximum file size is 2.5 MB for text-based
|
5791
|
-
# formats,
|
5986
|
+
# formats, 200 MB for other formats.
|
5792
5987
|
# Corresponds to the JSON property `uri`
|
5793
5988
|
# @return [String]
|
5794
5989
|
attr_accessor :uri
|
@@ -7102,6 +7297,128 @@ module Google
|
|
7102
7297
|
end
|
7103
7298
|
end
|
7104
7299
|
|
7300
|
+
# Metadata related to the progress of the ImportCompletionSuggestions operation.
|
7301
|
+
# This will be returned by the google.longrunning.Operation.metadata field.
|
7302
|
+
class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsMetadata
|
7303
|
+
include Google::Apis::Core::Hashable
|
7304
|
+
|
7305
|
+
# Operation create time.
|
7306
|
+
# Corresponds to the JSON property `createTime`
|
7307
|
+
# @return [String]
|
7308
|
+
attr_accessor :create_time
|
7309
|
+
|
7310
|
+
# Count of CompletionSuggestions that failed to be imported.
|
7311
|
+
# Corresponds to the JSON property `failureCount`
|
7312
|
+
# @return [Fixnum]
|
7313
|
+
attr_accessor :failure_count
|
7314
|
+
|
7315
|
+
# Count of CompletionSuggestions successfully imported.
|
7316
|
+
# Corresponds to the JSON property `successCount`
|
7317
|
+
# @return [Fixnum]
|
7318
|
+
attr_accessor :success_count
|
7319
|
+
|
7320
|
+
# Operation last update time. If the operation is done, this is also the finish
|
7321
|
+
# time.
|
7322
|
+
# Corresponds to the JSON property `updateTime`
|
7323
|
+
# @return [String]
|
7324
|
+
attr_accessor :update_time
|
7325
|
+
|
7326
|
+
def initialize(**args)
|
7327
|
+
update!(**args)
|
7328
|
+
end
|
7329
|
+
|
7330
|
+
# Update properties of this object
|
7331
|
+
def update!(**args)
|
7332
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
7333
|
+
@failure_count = args[:failure_count] if args.key?(:failure_count)
|
7334
|
+
@success_count = args[:success_count] if args.key?(:success_count)
|
7335
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
7336
|
+
end
|
7337
|
+
end
|
7338
|
+
|
7339
|
+
# Request message for CompletionService.ImportCompletionSuggestions method.
|
7340
|
+
class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsRequest
|
7341
|
+
include Google::Apis::Core::Hashable
|
7342
|
+
|
7343
|
+
# BigQuery source import data from.
|
7344
|
+
# Corresponds to the JSON property `bigquerySource`
|
7345
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaBigQuerySource]
|
7346
|
+
attr_accessor :bigquery_source
|
7347
|
+
|
7348
|
+
# Configuration of destination for Import related errors.
|
7349
|
+
# Corresponds to the JSON property `errorConfig`
|
7350
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportErrorConfig]
|
7351
|
+
attr_accessor :error_config
|
7352
|
+
|
7353
|
+
# Cloud Storage location for input content.
|
7354
|
+
# Corresponds to the JSON property `gcsSource`
|
7355
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGcsSource]
|
7356
|
+
attr_accessor :gcs_source
|
7357
|
+
|
7358
|
+
# The inline source for CompletionSuggestions.
|
7359
|
+
# Corresponds to the JSON property `inlineSource`
|
7360
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsRequestInlineSource]
|
7361
|
+
attr_accessor :inline_source
|
7362
|
+
|
7363
|
+
def initialize(**args)
|
7364
|
+
update!(**args)
|
7365
|
+
end
|
7366
|
+
|
7367
|
+
# Update properties of this object
|
7368
|
+
def update!(**args)
|
7369
|
+
@bigquery_source = args[:bigquery_source] if args.key?(:bigquery_source)
|
7370
|
+
@error_config = args[:error_config] if args.key?(:error_config)
|
7371
|
+
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
7372
|
+
@inline_source = args[:inline_source] if args.key?(:inline_source)
|
7373
|
+
end
|
7374
|
+
end
|
7375
|
+
|
7376
|
+
# The inline source for CompletionSuggestions.
|
7377
|
+
class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsRequestInlineSource
|
7378
|
+
include Google::Apis::Core::Hashable
|
7379
|
+
|
7380
|
+
# Required. A list of all denylist entries to import. Max of 1000 items.
|
7381
|
+
# Corresponds to the JSON property `suggestions`
|
7382
|
+
# @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaCompletionSuggestion>]
|
7383
|
+
attr_accessor :suggestions
|
7384
|
+
|
7385
|
+
def initialize(**args)
|
7386
|
+
update!(**args)
|
7387
|
+
end
|
7388
|
+
|
7389
|
+
# Update properties of this object
|
7390
|
+
def update!(**args)
|
7391
|
+
@suggestions = args[:suggestions] if args.key?(:suggestions)
|
7392
|
+
end
|
7393
|
+
end
|
7394
|
+
|
7395
|
+
# Response of the CompletionService.ImportCompletionSuggestions method. If the
|
7396
|
+
# long running operation is done, this message is returned by the google.
|
7397
|
+
# longrunning.Operations.response field if the operation is successful.
|
7398
|
+
class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse
|
7399
|
+
include Google::Apis::Core::Hashable
|
7400
|
+
|
7401
|
+
# Configuration of destination for Import related errors.
|
7402
|
+
# Corresponds to the JSON property `errorConfig`
|
7403
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportErrorConfig]
|
7404
|
+
attr_accessor :error_config
|
7405
|
+
|
7406
|
+
# A sample of errors encountered while processing the request.
|
7407
|
+
# Corresponds to the JSON property `errorSamples`
|
7408
|
+
# @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus>]
|
7409
|
+
attr_accessor :error_samples
|
7410
|
+
|
7411
|
+
def initialize(**args)
|
7412
|
+
update!(**args)
|
7413
|
+
end
|
7414
|
+
|
7415
|
+
# Update properties of this object
|
7416
|
+
def update!(**args)
|
7417
|
+
@error_config = args[:error_config] if args.key?(:error_config)
|
7418
|
+
@error_samples = args[:error_samples] if args.key?(:error_samples)
|
7419
|
+
end
|
7420
|
+
end
|
7421
|
+
|
7105
7422
|
# Metadata related to the progress of the ImportDocuments operation. This is
|
7106
7423
|
# returned by the google.longrunning.Operation.metadata field.
|
7107
7424
|
class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
|
@@ -7612,6 +7929,47 @@ module Google
|
|
7612
7929
|
end
|
7613
7930
|
end
|
7614
7931
|
|
7932
|
+
# Language info for DataStore.
|
7933
|
+
class GoogleCloudDiscoveryengineV1alphaLanguageInfo
|
7934
|
+
include Google::Apis::Core::Hashable
|
7935
|
+
|
7936
|
+
# Output only. Language part of normalized_language_code. E.g.: `en-US` -> `en`,
|
7937
|
+
# `zh-Hans-HK` -> `zh`, `en` -> `en`.
|
7938
|
+
# Corresponds to the JSON property `language`
|
7939
|
+
# @return [String]
|
7940
|
+
attr_accessor :language
|
7941
|
+
|
7942
|
+
# The language code for the DataStore.
|
7943
|
+
# Corresponds to the JSON property `languageCode`
|
7944
|
+
# @return [String]
|
7945
|
+
attr_accessor :language_code
|
7946
|
+
|
7947
|
+
# Output only. This is the normalized form of language_code. E.g.: language_code
|
7948
|
+
# of `en-GB`, `en_GB`, `en-UK` or `en-gb` will have normalized_language_code of `
|
7949
|
+
# en-GB`.
|
7950
|
+
# Corresponds to the JSON property `normalizedLanguageCode`
|
7951
|
+
# @return [String]
|
7952
|
+
attr_accessor :normalized_language_code
|
7953
|
+
|
7954
|
+
# Output only. Region part of normalized_language_code, if present. E.g.: `en-US`
|
7955
|
+
# -> `US`, `zh-Hans-HK` -> `HK`, `en` -> ``.
|
7956
|
+
# Corresponds to the JSON property `region`
|
7957
|
+
# @return [String]
|
7958
|
+
attr_accessor :region
|
7959
|
+
|
7960
|
+
def initialize(**args)
|
7961
|
+
update!(**args)
|
7962
|
+
end
|
7963
|
+
|
7964
|
+
# Update properties of this object
|
7965
|
+
def update!(**args)
|
7966
|
+
@language = args[:language] if args.key?(:language)
|
7967
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
7968
|
+
@normalized_language_code = args[:normalized_language_code] if args.key?(:normalized_language_code)
|
7969
|
+
@region = args[:region] if args.key?(:region)
|
7970
|
+
end
|
7971
|
+
end
|
7972
|
+
|
7615
7973
|
# Response message for ChunkService.ListChunks method.
|
7616
7974
|
class GoogleCloudDiscoveryengineV1alphaListChunksResponse
|
7617
7975
|
include Google::Apis::Core::Hashable
|
@@ -8220,6 +8578,72 @@ module Google
|
|
8220
8578
|
end
|
8221
8579
|
end
|
8222
8580
|
|
8581
|
+
# Metadata related to the progress of the PurgeCompletionSuggestions operation.
|
8582
|
+
# This is returned by the google.longrunning.Operation.metadata field.
|
8583
|
+
class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsMetadata
|
8584
|
+
include Google::Apis::Core::Hashable
|
8585
|
+
|
8586
|
+
# Operation create time.
|
8587
|
+
# Corresponds to the JSON property `createTime`
|
8588
|
+
# @return [String]
|
8589
|
+
attr_accessor :create_time
|
8590
|
+
|
8591
|
+
# Operation last update time. If the operation is done, this is also the finish
|
8592
|
+
# time.
|
8593
|
+
# Corresponds to the JSON property `updateTime`
|
8594
|
+
# @return [String]
|
8595
|
+
attr_accessor :update_time
|
8596
|
+
|
8597
|
+
def initialize(**args)
|
8598
|
+
update!(**args)
|
8599
|
+
end
|
8600
|
+
|
8601
|
+
# Update properties of this object
|
8602
|
+
def update!(**args)
|
8603
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
8604
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
8605
|
+
end
|
8606
|
+
end
|
8607
|
+
|
8608
|
+
# Request message for CompletionService.PurgeCompletionSuggestions method.
|
8609
|
+
class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsRequest
|
8610
|
+
include Google::Apis::Core::Hashable
|
8611
|
+
|
8612
|
+
def initialize(**args)
|
8613
|
+
update!(**args)
|
8614
|
+
end
|
8615
|
+
|
8616
|
+
# Update properties of this object
|
8617
|
+
def update!(**args)
|
8618
|
+
end
|
8619
|
+
end
|
8620
|
+
|
8621
|
+
# Response message for CompletionService.PurgeCompletionSuggestions method.
|
8622
|
+
class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsResponse
|
8623
|
+
include Google::Apis::Core::Hashable
|
8624
|
+
|
8625
|
+
# A sample of errors encountered while processing the request.
|
8626
|
+
# Corresponds to the JSON property `errorSamples`
|
8627
|
+
# @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus>]
|
8628
|
+
attr_accessor :error_samples
|
8629
|
+
|
8630
|
+
# Whether the completion suggestions were successfully purged.
|
8631
|
+
# Corresponds to the JSON property `purgeSucceeded`
|
8632
|
+
# @return [Boolean]
|
8633
|
+
attr_accessor :purge_succeeded
|
8634
|
+
alias_method :purge_succeeded?, :purge_succeeded
|
8635
|
+
|
8636
|
+
def initialize(**args)
|
8637
|
+
update!(**args)
|
8638
|
+
end
|
8639
|
+
|
8640
|
+
# Update properties of this object
|
8641
|
+
def update!(**args)
|
8642
|
+
@error_samples = args[:error_samples] if args.key?(:error_samples)
|
8643
|
+
@purge_succeeded = args[:purge_succeeded] if args.key?(:purge_succeeded)
|
8644
|
+
end
|
8645
|
+
end
|
8646
|
+
|
8223
8647
|
# Metadata related to the progress of the PurgeDocuments operation. This will be
|
8224
8648
|
# returned by the google.longrunning.Operation.metadata field.
|
8225
8649
|
class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
|
@@ -9141,7 +9565,7 @@ module Google
|
|
9141
9565
|
attr_accessor :threshold_bindings
|
9142
9566
|
|
9143
9567
|
# The requirement type, used as an identifier. Must be unique. The type should
|
9144
|
-
# prefix with service name to avoid possible collision. It's
|
9568
|
+
# prefix with service name to avoid possible collision. It's encouraged to use
|
9145
9569
|
# natural hierarchical grouping for similar requirements. Examples: * `library.
|
9146
9570
|
# googleapis.com/books/min_available_books` * `discoveryengine.googleapis.com/
|
9147
9571
|
# media_rec/recommended_for_you/conversion_rate`
|
@@ -9470,6 +9894,14 @@ module Google
|
|
9470
9894
|
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestImageQuery]
|
9471
9895
|
attr_accessor :image_query
|
9472
9896
|
|
9897
|
+
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
|
9898
|
+
# see [Standard fields](https://cloud.google.com/apis/design/standard_fields).
|
9899
|
+
# This field helps to better interpret the query. If a value isn't specified,
|
9900
|
+
# the query language code is automatically detected, which may not be accurate.
|
9901
|
+
# Corresponds to the JSON property `languageCode`
|
9902
|
+
# @return [String]
|
9903
|
+
attr_accessor :language_code
|
9904
|
+
|
9473
9905
|
# A 0-indexed integer that specifies the current offset (that is, starting
|
9474
9906
|
# result location, amongst the Documents deemed by the API as relevant) in
|
9475
9907
|
# search results. This field is only considered if page_token is unset. If this
|
@@ -9541,12 +9973,32 @@ module Google
|
|
9541
9973
|
# @return [String]
|
9542
9974
|
attr_accessor :ranking_expression
|
9543
9975
|
|
9976
|
+
# The Unicode country/region code (CLDR) of a location, such as "US" and "419".
|
9977
|
+
# For more information, see [Standard fields](https://cloud.google.com/apis/
|
9978
|
+
# design/standard_fields). If set, then results will be boosted based on the
|
9979
|
+
# region_code provided.
|
9980
|
+
# Corresponds to the JSON property `regionCode`
|
9981
|
+
# @return [String]
|
9982
|
+
attr_accessor :region_code
|
9983
|
+
|
9984
|
+
# The relevance threshold of the search results. Default to Google defined
|
9985
|
+
# threshold, leveraging a balance of precision and recall to deliver both highly
|
9986
|
+
# accurate results and comprehensive coverage of relevant information.
|
9987
|
+
# Corresponds to the JSON property `relevanceThreshold`
|
9988
|
+
# @return [String]
|
9989
|
+
attr_accessor :relevance_threshold
|
9990
|
+
|
9544
9991
|
# Whether to turn on safe search. This is only supported for website search.
|
9545
9992
|
# Corresponds to the JSON property `safeSearch`
|
9546
9993
|
# @return [Boolean]
|
9547
9994
|
attr_accessor :safe_search
|
9548
9995
|
alias_method :safe_search?, :safe_search
|
9549
9996
|
|
9997
|
+
# Specification for search as you type in search requests.
|
9998
|
+
# Corresponds to the JSON property `searchAsYouTypeSpec`
|
9999
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpec]
|
10000
|
+
attr_accessor :search_as_you_type_spec
|
10001
|
+
|
9550
10002
|
# The specification for query spell correction.
|
9551
10003
|
# Corresponds to the JSON property `spellCorrectionSpec`
|
9552
10004
|
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec]
|
@@ -9600,6 +10052,7 @@ module Google
|
|
9600
10052
|
@facet_specs = args[:facet_specs] if args.key?(:facet_specs)
|
9601
10053
|
@filter = args[:filter] if args.key?(:filter)
|
9602
10054
|
@image_query = args[:image_query] if args.key?(:image_query)
|
10055
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
9603
10056
|
@offset = args[:offset] if args.key?(:offset)
|
9604
10057
|
@order_by = args[:order_by] if args.key?(:order_by)
|
9605
10058
|
@page_size = args[:page_size] if args.key?(:page_size)
|
@@ -9608,7 +10061,10 @@ module Google
|
|
9608
10061
|
@query = args[:query] if args.key?(:query)
|
9609
10062
|
@query_expansion_spec = args[:query_expansion_spec] if args.key?(:query_expansion_spec)
|
9610
10063
|
@ranking_expression = args[:ranking_expression] if args.key?(:ranking_expression)
|
10064
|
+
@region_code = args[:region_code] if args.key?(:region_code)
|
10065
|
+
@relevance_threshold = args[:relevance_threshold] if args.key?(:relevance_threshold)
|
9611
10066
|
@safe_search = args[:safe_search] if args.key?(:safe_search)
|
10067
|
+
@search_as_you_type_spec = args[:search_as_you_type_spec] if args.key?(:search_as_you_type_spec)
|
9612
10068
|
@spell_correction_spec = args[:spell_correction_spec] if args.key?(:spell_correction_spec)
|
9613
10069
|
@user_info = args[:user_info] if args.key?(:user_info)
|
9614
10070
|
@user_labels = args[:user_labels] if args.key?(:user_labels)
|
@@ -10202,7 +10658,10 @@ module Google
|
|
10202
10658
|
|
10203
10659
|
# Maximum facet values that are returned for this facet. If unspecified,
|
10204
10660
|
# defaults to 20. The maximum allowed value is 300. Values above 300 are coerced
|
10205
|
-
# to 300.
|
10661
|
+
# to 300. For aggregation in healthcare search, when the [FacetKey.key] is "
|
10662
|
+
# healthcare_aggregation_key", the limit will be overridden to 10,000 internally,
|
10663
|
+
# regardless of the value set here. If this field is negative, an `
|
10664
|
+
# INVALID_ARGUMENT` is returned.
|
10206
10665
|
# Corresponds to the JSON property `limit`
|
10207
10666
|
# @return [Fixnum]
|
10208
10667
|
attr_accessor :limit
|
@@ -10344,6 +10803,26 @@ module Google
|
|
10344
10803
|
end
|
10345
10804
|
end
|
10346
10805
|
|
10806
|
+
# Specification for search as you type in search requests.
|
10807
|
+
class GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpec
|
10808
|
+
include Google::Apis::Core::Hashable
|
10809
|
+
|
10810
|
+
# The condition under which search as you type should occur. Default to
|
10811
|
+
# Condition.DISABLED.
|
10812
|
+
# Corresponds to the JSON property `condition`
|
10813
|
+
# @return [String]
|
10814
|
+
attr_accessor :condition
|
10815
|
+
|
10816
|
+
def initialize(**args)
|
10817
|
+
update!(**args)
|
10818
|
+
end
|
10819
|
+
|
10820
|
+
# Update properties of this object
|
10821
|
+
def update!(**args)
|
10822
|
+
@condition = args[:condition] if args.key?(:condition)
|
10823
|
+
end
|
10824
|
+
end
|
10825
|
+
|
10347
10826
|
# The specification for query spell correction.
|
10348
10827
|
class GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec
|
10349
10828
|
include Google::Apis::Core::Hashable
|
@@ -12606,6 +13085,11 @@ module Google
|
|
12606
13085
|
# @return [String]
|
12607
13086
|
attr_accessor :industry_vertical
|
12608
13087
|
|
13088
|
+
# Language info for DataStore.
|
13089
|
+
# Corresponds to the JSON property `languageInfo`
|
13090
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaLanguageInfo]
|
13091
|
+
attr_accessor :language_info
|
13092
|
+
|
12609
13093
|
# Immutable. The full resource name of the data store. Format: `projects/`
|
12610
13094
|
# project`/locations/`location`/collections/`collection_id`/dataStores/`
|
12611
13095
|
# data_store_id``. This field must be a UTF-8 encoded string with a length limit
|
@@ -12639,6 +13123,7 @@ module Google
|
|
12639
13123
|
@display_name = args[:display_name] if args.key?(:display_name)
|
12640
13124
|
@document_processing_config = args[:document_processing_config] if args.key?(:document_processing_config)
|
12641
13125
|
@industry_vertical = args[:industry_vertical] if args.key?(:industry_vertical)
|
13126
|
+
@language_info = args[:language_info] if args.key?(:language_info)
|
12642
13127
|
@name = args[:name] if args.key?(:name)
|
12643
13128
|
@solution_types = args[:solution_types] if args.key?(:solution_types)
|
12644
13129
|
@starting_schema = args[:starting_schema] if args.key?(:starting_schema)
|
@@ -13254,6 +13739,72 @@ module Google
|
|
13254
13739
|
end
|
13255
13740
|
end
|
13256
13741
|
|
13742
|
+
# Metadata related to the progress of the ImportCompletionSuggestions operation.
|
13743
|
+
# This will be returned by the google.longrunning.Operation.metadata field.
|
13744
|
+
class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata
|
13745
|
+
include Google::Apis::Core::Hashable
|
13746
|
+
|
13747
|
+
# Operation create time.
|
13748
|
+
# Corresponds to the JSON property `createTime`
|
13749
|
+
# @return [String]
|
13750
|
+
attr_accessor :create_time
|
13751
|
+
|
13752
|
+
# Count of CompletionSuggestions that failed to be imported.
|
13753
|
+
# Corresponds to the JSON property `failureCount`
|
13754
|
+
# @return [Fixnum]
|
13755
|
+
attr_accessor :failure_count
|
13756
|
+
|
13757
|
+
# Count of CompletionSuggestions successfully imported.
|
13758
|
+
# Corresponds to the JSON property `successCount`
|
13759
|
+
# @return [Fixnum]
|
13760
|
+
attr_accessor :success_count
|
13761
|
+
|
13762
|
+
# Operation last update time. If the operation is done, this is also the finish
|
13763
|
+
# time.
|
13764
|
+
# Corresponds to the JSON property `updateTime`
|
13765
|
+
# @return [String]
|
13766
|
+
attr_accessor :update_time
|
13767
|
+
|
13768
|
+
def initialize(**args)
|
13769
|
+
update!(**args)
|
13770
|
+
end
|
13771
|
+
|
13772
|
+
# Update properties of this object
|
13773
|
+
def update!(**args)
|
13774
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
13775
|
+
@failure_count = args[:failure_count] if args.key?(:failure_count)
|
13776
|
+
@success_count = args[:success_count] if args.key?(:success_count)
|
13777
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
13778
|
+
end
|
13779
|
+
end
|
13780
|
+
|
13781
|
+
# Response of the CompletionService.ImportCompletionSuggestions method. If the
|
13782
|
+
# long running operation is done, this message is returned by the google.
|
13783
|
+
# longrunning.Operations.response field if the operation is successful.
|
13784
|
+
class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsResponse
|
13785
|
+
include Google::Apis::Core::Hashable
|
13786
|
+
|
13787
|
+
# Configuration of destination for Import related errors.
|
13788
|
+
# Corresponds to the JSON property `errorConfig`
|
13789
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaImportErrorConfig]
|
13790
|
+
attr_accessor :error_config
|
13791
|
+
|
13792
|
+
# A sample of errors encountered while processing the request.
|
13793
|
+
# Corresponds to the JSON property `errorSamples`
|
13794
|
+
# @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus>]
|
13795
|
+
attr_accessor :error_samples
|
13796
|
+
|
13797
|
+
def initialize(**args)
|
13798
|
+
update!(**args)
|
13799
|
+
end
|
13800
|
+
|
13801
|
+
# Update properties of this object
|
13802
|
+
def update!(**args)
|
13803
|
+
@error_config = args[:error_config] if args.key?(:error_config)
|
13804
|
+
@error_samples = args[:error_samples] if args.key?(:error_samples)
|
13805
|
+
end
|
13806
|
+
end
|
13807
|
+
|
13257
13808
|
# Metadata related to the progress of the ImportDocuments operation. This is
|
13258
13809
|
# returned by the google.longrunning.Operation.metadata field.
|
13259
13810
|
class GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata
|
@@ -13484,6 +14035,47 @@ module Google
|
|
13484
14035
|
end
|
13485
14036
|
end
|
13486
14037
|
|
14038
|
+
# Language info for DataStore.
|
14039
|
+
class GoogleCloudDiscoveryengineV1betaLanguageInfo
|
14040
|
+
include Google::Apis::Core::Hashable
|
14041
|
+
|
14042
|
+
# Output only. Language part of normalized_language_code. E.g.: `en-US` -> `en`,
|
14043
|
+
# `zh-Hans-HK` -> `zh`, `en` -> `en`.
|
14044
|
+
# Corresponds to the JSON property `language`
|
14045
|
+
# @return [String]
|
14046
|
+
attr_accessor :language
|
14047
|
+
|
14048
|
+
# The language code for the DataStore.
|
14049
|
+
# Corresponds to the JSON property `languageCode`
|
14050
|
+
# @return [String]
|
14051
|
+
attr_accessor :language_code
|
14052
|
+
|
14053
|
+
# Output only. This is the normalized form of language_code. E.g.: language_code
|
14054
|
+
# of `en-GB`, `en_GB`, `en-UK` or `en-gb` will have normalized_language_code of `
|
14055
|
+
# en-GB`.
|
14056
|
+
# Corresponds to the JSON property `normalizedLanguageCode`
|
14057
|
+
# @return [String]
|
14058
|
+
attr_accessor :normalized_language_code
|
14059
|
+
|
14060
|
+
# Output only. Region part of normalized_language_code, if present. E.g.: `en-US`
|
14061
|
+
# -> `US`, `zh-Hans-HK` -> `HK`, `en` -> ``.
|
14062
|
+
# Corresponds to the JSON property `region`
|
14063
|
+
# @return [String]
|
14064
|
+
attr_accessor :region
|
14065
|
+
|
14066
|
+
def initialize(**args)
|
14067
|
+
update!(**args)
|
14068
|
+
end
|
14069
|
+
|
14070
|
+
# Update properties of this object
|
14071
|
+
def update!(**args)
|
14072
|
+
@language = args[:language] if args.key?(:language)
|
14073
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
14074
|
+
@normalized_language_code = args[:normalized_language_code] if args.key?(:normalized_language_code)
|
14075
|
+
@region = args[:region] if args.key?(:region)
|
14076
|
+
end
|
14077
|
+
end
|
14078
|
+
|
13487
14079
|
# Response message for SearchTuningService.ListCustomModels method.
|
13488
14080
|
class GoogleCloudDiscoveryengineV1betaListCustomModelsResponse
|
13489
14081
|
include Google::Apis::Core::Hashable
|