google-apis-discoveryengine_v1alpha 0.50.0 → 0.51.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 74ba8b39c4e88bff0e01875179f88d5c655cba6c1c336d9826e6cb27f76fbc09
4
- data.tar.gz: c8f570fd0fd94be036fecc4663a53fc71542396a202453978c0a5d89e8e602a4
3
+ metadata.gz: 4e51b14bcc5fb55f0165f96552c3cb991cbf33990f699df1ce852173e9e53756
4
+ data.tar.gz: ce28aace3c8635278d414ba431a3de5db3a6126c3504e144aef6d8713d2ace1e
5
5
  SHA512:
6
- metadata.gz: ec92768f17e7dbdfe8fd5842da44c542841b72c7627df1b7abe964f931cd471c30397d257744a382cb531febd85dd2bdc11b4a52480f12fe286c74d1adaf9951
7
- data.tar.gz: 5ff17202b43b6472421a041e3c19762453e6ef45c669bb882fb8de7cb5897f661e965650c93737601c4af7637a6755a1086b011cb27e8207b2c8b18cca27384d
6
+ metadata.gz: 225663a57df27c0107c4ddee6a599cee2e0b5a506dd5bffdfe8350a3d1120299b7853c62cedaf3ef443df46d95ab3ffe07e44ac4cf5903378d35f39f38913bed
7
+ data.tar.gz: 7340df5473eb8cdf12578c1c3781cac5e78f0557023842c105eb58b6287a3076dbdf90f350c3bb24d6593bbe69d256f849014cbfd00da6139d178dbfe00e7264
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-discoveryengine_v1alpha
2
2
 
3
+ ### v0.51.0 (2024-06-23)
4
+
5
+ * Regenerated from discovery document revision 20240617
6
+
3
7
  ### v0.50.0 (2024-06-16)
4
8
 
5
9
  * Regenerated from discovery document revision 20240612
@@ -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
- # A Requirement.type specifying the requirement to check.
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 resources to be checked for this requirement.
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
@@ -5794,7 +5983,7 @@ module Google
5794
5983
 
5795
5984
  # The URI of the content. Only Cloud Storage URIs (e.g. `gs://bucket-name/path/
5796
5985
  # to/file`) are supported. The maximum file size is 2.5 MB for text-based
5797
- # formats, 100 MB for other formats.
5986
+ # formats, 200 MB for other formats.
5798
5987
  # Corresponds to the JSON property `uri`
5799
5988
  # @return [String]
5800
5989
  attr_accessor :uri
@@ -7108,6 +7297,128 @@ module Google
7108
7297
  end
7109
7298
  end
7110
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
+
7111
7422
  # Metadata related to the progress of the ImportDocuments operation. This is
7112
7423
  # returned by the google.longrunning.Operation.metadata field.
7113
7424
  class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
@@ -8267,6 +8578,72 @@ module Google
8267
8578
  end
8268
8579
  end
8269
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
+
8270
8647
  # Metadata related to the progress of the PurgeDocuments operation. This will be
8271
8648
  # returned by the google.longrunning.Operation.metadata field.
8272
8649
  class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
@@ -9188,7 +9565,7 @@ module Google
9188
9565
  attr_accessor :threshold_bindings
9189
9566
 
9190
9567
  # The requirement type, used as an identifier. Must be unique. The type should
9191
- # prefix with service name to avoid possible collision. It's encoraged to use
9568
+ # prefix with service name to avoid possible collision. It's encouraged to use
9192
9569
  # natural hierarchical grouping for similar requirements. Examples: * `library.
9193
9570
  # googleapis.com/books/min_available_books` * `discoveryengine.googleapis.com/
9194
9571
  # media_rec/recommended_for_you/conversion_rate`
@@ -9604,12 +9981,24 @@ module Google
9604
9981
  # @return [String]
9605
9982
  attr_accessor :region_code
9606
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
+
9607
9991
  # Whether to turn on safe search. This is only supported for website search.
9608
9992
  # Corresponds to the JSON property `safeSearch`
9609
9993
  # @return [Boolean]
9610
9994
  attr_accessor :safe_search
9611
9995
  alias_method :safe_search?, :safe_search
9612
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
+
9613
10002
  # The specification for query spell correction.
9614
10003
  # Corresponds to the JSON property `spellCorrectionSpec`
9615
10004
  # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec]
@@ -9673,7 +10062,9 @@ module Google
9673
10062
  @query_expansion_spec = args[:query_expansion_spec] if args.key?(:query_expansion_spec)
9674
10063
  @ranking_expression = args[:ranking_expression] if args.key?(:ranking_expression)
9675
10064
  @region_code = args[:region_code] if args.key?(:region_code)
10065
+ @relevance_threshold = args[:relevance_threshold] if args.key?(:relevance_threshold)
9676
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)
9677
10068
  @spell_correction_spec = args[:spell_correction_spec] if args.key?(:spell_correction_spec)
9678
10069
  @user_info = args[:user_info] if args.key?(:user_info)
9679
10070
  @user_labels = args[:user_labels] if args.key?(:user_labels)
@@ -10267,7 +10658,10 @@ module Google
10267
10658
 
10268
10659
  # Maximum facet values that are returned for this facet. If unspecified,
10269
10660
  # defaults to 20. The maximum allowed value is 300. Values above 300 are coerced
10270
- # to 300. If this field is negative, an `INVALID_ARGUMENT` is returned.
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.
10271
10665
  # Corresponds to the JSON property `limit`
10272
10666
  # @return [Fixnum]
10273
10667
  attr_accessor :limit
@@ -10409,6 +10803,26 @@ module Google
10409
10803
  end
10410
10804
  end
10411
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
+
10412
10826
  # The specification for query spell correction.
10413
10827
  class GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec
10414
10828
  include Google::Apis::Core::Hashable
@@ -13325,6 +13739,72 @@ module Google
13325
13739
  end
13326
13740
  end
13327
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
+
13328
13808
  # Metadata related to the progress of the ImportDocuments operation. This is
13329
13809
  # returned by the google.longrunning.Operation.metadata field.
13330
13810
  class GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata
@@ -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.50.0"
19
+ GEM_VERSION = "0.51.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240612"
25
+ REVISION = "20240617"
26
26
  end
27
27
  end
28
28
  end
@@ -328,6 +328,18 @@ module Google
328
328
  include Google::Apis::Core::JsonObjectSupport
329
329
  end
330
330
 
331
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
337
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsResponse
338
+ class Representation < Google::Apis::Core::JsonRepresentation; end
339
+
340
+ include Google::Apis::Core::JsonObjectSupport
341
+ end
342
+
331
343
  class GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
332
344
  class Representation < Google::Apis::Core::JsonRepresentation; end
333
345
 
@@ -388,6 +400,18 @@ module Google
388
400
  include Google::Apis::Core::JsonObjectSupport
389
401
  end
390
402
 
403
+ class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsMetadata
404
+ class Representation < Google::Apis::Core::JsonRepresentation; end
405
+
406
+ include Google::Apis::Core::JsonObjectSupport
407
+ end
408
+
409
+ class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsResponse
410
+ class Representation < Google::Apis::Core::JsonRepresentation; end
411
+
412
+ include Google::Apis::Core::JsonObjectSupport
413
+ end
414
+
391
415
  class GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata
392
416
  class Representation < Google::Apis::Core::JsonRepresentation; end
393
417
 
@@ -826,6 +850,12 @@ module Google
826
850
  include Google::Apis::Core::JsonObjectSupport
827
851
  end
828
852
 
853
+ class GoogleCloudDiscoveryengineV1alphaCompletionSuggestion
854
+ class Representation < Google::Apis::Core::JsonRepresentation; end
855
+
856
+ include Google::Apis::Core::JsonObjectSupport
857
+ end
858
+
829
859
  class GoogleCloudDiscoveryengineV1alphaCondition
830
860
  class Representation < Google::Apis::Core::JsonRepresentation; end
831
861
 
@@ -1258,6 +1288,30 @@ module Google
1258
1288
  include Google::Apis::Core::JsonObjectSupport
1259
1289
  end
1260
1290
 
1291
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsMetadata
1292
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1293
+
1294
+ include Google::Apis::Core::JsonObjectSupport
1295
+ end
1296
+
1297
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsRequest
1298
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1299
+
1300
+ include Google::Apis::Core::JsonObjectSupport
1301
+ end
1302
+
1303
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsRequestInlineSource
1304
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1305
+
1306
+ include Google::Apis::Core::JsonObjectSupport
1307
+ end
1308
+
1309
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse
1310
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1311
+
1312
+ include Google::Apis::Core::JsonObjectSupport
1313
+ end
1314
+
1261
1315
  class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
1262
1316
  class Representation < Google::Apis::Core::JsonRepresentation; end
1263
1317
 
@@ -1474,6 +1528,24 @@ module Google
1474
1528
  include Google::Apis::Core::JsonObjectSupport
1475
1529
  end
1476
1530
 
1531
+ class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsMetadata
1532
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1533
+
1534
+ include Google::Apis::Core::JsonObjectSupport
1535
+ end
1536
+
1537
+ class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsRequest
1538
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1539
+
1540
+ include Google::Apis::Core::JsonObjectSupport
1541
+ end
1542
+
1543
+ class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsResponse
1544
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1545
+
1546
+ include Google::Apis::Core::JsonObjectSupport
1547
+ end
1548
+
1477
1549
  class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
1478
1550
  class Representation < Google::Apis::Core::JsonRepresentation; end
1479
1551
 
@@ -1780,6 +1852,12 @@ module Google
1780
1852
  include Google::Apis::Core::JsonObjectSupport
1781
1853
  end
1782
1854
 
1855
+ class GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpec
1856
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1857
+
1858
+ include Google::Apis::Core::JsonObjectSupport
1859
+ end
1860
+
1783
1861
  class GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec
1784
1862
  class Representation < Google::Apis::Core::JsonRepresentation; end
1785
1863
 
@@ -2254,6 +2332,18 @@ module Google
2254
2332
  include Google::Apis::Core::JsonObjectSupport
2255
2333
  end
2256
2334
 
2335
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata
2336
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2337
+
2338
+ include Google::Apis::Core::JsonObjectSupport
2339
+ end
2340
+
2341
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsResponse
2342
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2343
+
2344
+ include Google::Apis::Core::JsonObjectSupport
2345
+ end
2346
+
2257
2347
  class GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata
2258
2348
  class Representation < Google::Apis::Core::JsonRepresentation; end
2259
2349
 
@@ -2936,6 +3026,26 @@ module Google
2936
3026
  end
2937
3027
  end
2938
3028
 
3029
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata
3030
+ # @private
3031
+ class Representation < Google::Apis::Core::JsonRepresentation
3032
+ property :create_time, as: 'createTime'
3033
+ property :failure_count, :numeric_string => true, as: 'failureCount'
3034
+ property :success_count, :numeric_string => true, as: 'successCount'
3035
+ property :update_time, as: 'updateTime'
3036
+ end
3037
+ end
3038
+
3039
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsResponse
3040
+ # @private
3041
+ class Representation < Google::Apis::Core::JsonRepresentation
3042
+ property :error_config, as: 'errorConfig', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1ImportErrorConfig, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1ImportErrorConfig::Representation
3043
+
3044
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus::Representation
3045
+
3046
+ end
3047
+ end
3048
+
2939
3049
  class GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
2940
3050
  # @private
2941
3051
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3032,6 +3142,23 @@ module Google
3032
3142
  end
3033
3143
  end
3034
3144
 
3145
+ class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsMetadata
3146
+ # @private
3147
+ class Representation < Google::Apis::Core::JsonRepresentation
3148
+ property :create_time, as: 'createTime'
3149
+ property :update_time, as: 'updateTime'
3150
+ end
3151
+ end
3152
+
3153
+ class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsResponse
3154
+ # @private
3155
+ class Representation < Google::Apis::Core::JsonRepresentation
3156
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus::Representation
3157
+
3158
+ property :purge_succeeded, as: 'purgeSucceeded'
3159
+ end
3160
+ end
3161
+
3035
3162
  class GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata
3036
3163
  # @private
3037
3164
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3760,6 +3887,19 @@ module Google
3760
3887
  end
3761
3888
  end
3762
3889
 
3890
+ class GoogleCloudDiscoveryengineV1alphaCompletionSuggestion
3891
+ # @private
3892
+ class Representation < Google::Apis::Core::JsonRepresentation
3893
+ collection :alternative_phrases, as: 'alternativePhrases'
3894
+ property :frequency, :numeric_string => true, as: 'frequency'
3895
+ property :global_score, as: 'globalScore'
3896
+ property :group_id, as: 'groupId'
3897
+ property :group_score, as: 'groupScore'
3898
+ property :language_code, as: 'languageCode'
3899
+ property :suggestion, as: 'suggestion'
3900
+ end
3901
+ end
3902
+
3763
3903
  class GoogleCloudDiscoveryengineV1alphaCondition
3764
3904
  # @private
3765
3905
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4443,6 +4583,48 @@ module Google
4443
4583
  end
4444
4584
  end
4445
4585
 
4586
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsMetadata
4587
+ # @private
4588
+ class Representation < Google::Apis::Core::JsonRepresentation
4589
+ property :create_time, as: 'createTime'
4590
+ property :failure_count, :numeric_string => true, as: 'failureCount'
4591
+ property :success_count, :numeric_string => true, as: 'successCount'
4592
+ property :update_time, as: 'updateTime'
4593
+ end
4594
+ end
4595
+
4596
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsRequest
4597
+ # @private
4598
+ class Representation < Google::Apis::Core::JsonRepresentation
4599
+ property :bigquery_source, as: 'bigquerySource', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaBigQuerySource, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaBigQuerySource::Representation
4600
+
4601
+ property :error_config, as: 'errorConfig', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportErrorConfig, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportErrorConfig::Representation
4602
+
4603
+ property :gcs_source, as: 'gcsSource', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGcsSource, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGcsSource::Representation
4604
+
4605
+ property :inline_source, as: 'inlineSource', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsRequestInlineSource, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsRequestInlineSource::Representation
4606
+
4607
+ end
4608
+ end
4609
+
4610
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsRequestInlineSource
4611
+ # @private
4612
+ class Representation < Google::Apis::Core::JsonRepresentation
4613
+ collection :suggestions, as: 'suggestions', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaCompletionSuggestion, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaCompletionSuggestion::Representation
4614
+
4615
+ end
4616
+ end
4617
+
4618
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse
4619
+ # @private
4620
+ class Representation < Google::Apis::Core::JsonRepresentation
4621
+ property :error_config, as: 'errorConfig', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportErrorConfig, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportErrorConfig::Representation
4622
+
4623
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus::Representation
4624
+
4625
+ end
4626
+ end
4627
+
4446
4628
  class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
4447
4629
  # @private
4448
4630
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4794,6 +4976,29 @@ module Google
4794
4976
  end
4795
4977
  end
4796
4978
 
4979
+ class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsMetadata
4980
+ # @private
4981
+ class Representation < Google::Apis::Core::JsonRepresentation
4982
+ property :create_time, as: 'createTime'
4983
+ property :update_time, as: 'updateTime'
4984
+ end
4985
+ end
4986
+
4987
+ class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsRequest
4988
+ # @private
4989
+ class Representation < Google::Apis::Core::JsonRepresentation
4990
+ end
4991
+ end
4992
+
4993
+ class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsResponse
4994
+ # @private
4995
+ class Representation < Google::Apis::Core::JsonRepresentation
4996
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus::Representation
4997
+
4998
+ property :purge_succeeded, as: 'purgeSucceeded'
4999
+ end
5000
+ end
5001
+
4797
5002
  class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
4798
5003
  # @private
4799
5004
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5133,7 +5338,10 @@ module Google
5133
5338
 
5134
5339
  property :ranking_expression, as: 'rankingExpression'
5135
5340
  property :region_code, as: 'regionCode'
5341
+ property :relevance_threshold, as: 'relevanceThreshold'
5136
5342
  property :safe_search, as: 'safeSearch'
5343
+ property :search_as_you_type_spec, as: 'searchAsYouTypeSpec', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpec, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpec::Representation
5344
+
5137
5345
  property :spell_correction_spec, as: 'spellCorrectionSpec', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec::Representation
5138
5346
 
5139
5347
  property :user_info, as: 'userInfo', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaUserInfo, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaUserInfo::Representation
@@ -5316,6 +5524,13 @@ module Google
5316
5524
  end
5317
5525
  end
5318
5526
 
5527
+ class GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpec
5528
+ # @private
5529
+ class Representation < Google::Apis::Core::JsonRepresentation
5530
+ property :condition, as: 'condition'
5531
+ end
5532
+ end
5533
+
5319
5534
  class GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec
5320
5535
  # @private
5321
5536
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6109,6 +6324,26 @@ module Google
6109
6324
  end
6110
6325
  end
6111
6326
 
6327
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata
6328
+ # @private
6329
+ class Representation < Google::Apis::Core::JsonRepresentation
6330
+ property :create_time, as: 'createTime'
6331
+ property :failure_count, :numeric_string => true, as: 'failureCount'
6332
+ property :success_count, :numeric_string => true, as: 'successCount'
6333
+ property :update_time, as: 'updateTime'
6334
+ end
6335
+ end
6336
+
6337
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsResponse
6338
+ # @private
6339
+ class Representation < Google::Apis::Core::JsonRepresentation
6340
+ property :error_config, as: 'errorConfig', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaImportErrorConfig, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaImportErrorConfig::Representation
6341
+
6342
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus::Representation
6343
+
6344
+ end
6345
+ end
6346
+
6112
6347
  class GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata
6113
6348
  # @private
6114
6349
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1252,6 +1252,75 @@ module Google
1252
1252
  execute_or_queue_command(command, &block)
1253
1253
  end
1254
1254
 
1255
+ # Imports CompletionSuggestions for a DataStore.
1256
+ # @param [String] parent
1257
+ # Required. The parent data store resource name for which to import customer
1258
+ # autocomplete suggestions. Follows pattern `projects/*/locations/*/collections/*
1259
+ # /dataStores/*`
1260
+ # @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsRequest] google_cloud_discoveryengine_v1alpha_import_completion_suggestions_request_object
1261
+ # @param [String] fields
1262
+ # Selector specifying which fields to include in a partial response.
1263
+ # @param [String] quota_user
1264
+ # Available to use for quota purposes for server-side applications. Can be any
1265
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1266
+ # @param [Google::Apis::RequestOptions] options
1267
+ # Request-specific options
1268
+ #
1269
+ # @yield [result, err] Result & error if block supplied
1270
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation] parsed result object
1271
+ # @yieldparam err [StandardError] error object if request failed
1272
+ #
1273
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation]
1274
+ #
1275
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1276
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1277
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1278
+ def import_project_location_collection_data_store_completion_suggestion(parent, google_cloud_discoveryengine_v1alpha_import_completion_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1279
+ command = make_simple_command(:post, 'v1alpha/{+parent}/completionSuggestions:import', options)
1280
+ command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsRequest::Representation
1281
+ command.request_object = google_cloud_discoveryengine_v1alpha_import_completion_suggestions_request_object
1282
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation::Representation
1283
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation
1284
+ command.params['parent'] = parent unless parent.nil?
1285
+ command.query['fields'] = fields unless fields.nil?
1286
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1287
+ execute_or_queue_command(command, &block)
1288
+ end
1289
+
1290
+ # Permanently deletes all CompletionSuggestions for a DataStore.
1291
+ # @param [String] parent
1292
+ # Required. The parent data store resource name for which to purge completion
1293
+ # suggestions. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
1294
+ # @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsRequest] google_cloud_discoveryengine_v1alpha_purge_completion_suggestions_request_object
1295
+ # @param [String] fields
1296
+ # Selector specifying which fields to include in a partial response.
1297
+ # @param [String] quota_user
1298
+ # Available to use for quota purposes for server-side applications. Can be any
1299
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1300
+ # @param [Google::Apis::RequestOptions] options
1301
+ # Request-specific options
1302
+ #
1303
+ # @yield [result, err] Result & error if block supplied
1304
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation] parsed result object
1305
+ # @yieldparam err [StandardError] error object if request failed
1306
+ #
1307
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation]
1308
+ #
1309
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1310
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1311
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1312
+ def purge_project_location_collection_data_store_completion_suggestion(parent, google_cloud_discoveryengine_v1alpha_purge_completion_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1313
+ command = make_simple_command(:post, 'v1alpha/{+parent}/completionSuggestions:purge', options)
1314
+ command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsRequest::Representation
1315
+ command.request_object = google_cloud_discoveryengine_v1alpha_purge_completion_suggestions_request_object
1316
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation::Representation
1317
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation
1318
+ command.params['parent'] = parent unless parent.nil?
1319
+ command.query['fields'] = fields unless fields.nil?
1320
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1321
+ execute_or_queue_command(command, &block)
1322
+ end
1323
+
1255
1324
  # Creates a Control. By default 1000 controls are allowed for a data store. A
1256
1325
  # request can be submitted to adjust this limit. If the Control to create
1257
1326
  # already exists, an ALREADY_EXISTS error is returned.
@@ -5532,6 +5601,75 @@ module Google
5532
5601
  execute_or_queue_command(command, &block)
5533
5602
  end
5534
5603
 
5604
+ # Imports CompletionSuggestions for a DataStore.
5605
+ # @param [String] parent
5606
+ # Required. The parent data store resource name for which to import customer
5607
+ # autocomplete suggestions. Follows pattern `projects/*/locations/*/collections/*
5608
+ # /dataStores/*`
5609
+ # @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsRequest] google_cloud_discoveryengine_v1alpha_import_completion_suggestions_request_object
5610
+ # @param [String] fields
5611
+ # Selector specifying which fields to include in a partial response.
5612
+ # @param [String] quota_user
5613
+ # Available to use for quota purposes for server-side applications. Can be any
5614
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5615
+ # @param [Google::Apis::RequestOptions] options
5616
+ # Request-specific options
5617
+ #
5618
+ # @yield [result, err] Result & error if block supplied
5619
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation] parsed result object
5620
+ # @yieldparam err [StandardError] error object if request failed
5621
+ #
5622
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation]
5623
+ #
5624
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5625
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5626
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5627
+ def import_project_location_data_store_completion_suggestion(parent, google_cloud_discoveryengine_v1alpha_import_completion_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5628
+ command = make_simple_command(:post, 'v1alpha/{+parent}/completionSuggestions:import', options)
5629
+ command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsRequest::Representation
5630
+ command.request_object = google_cloud_discoveryengine_v1alpha_import_completion_suggestions_request_object
5631
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation::Representation
5632
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation
5633
+ command.params['parent'] = parent unless parent.nil?
5634
+ command.query['fields'] = fields unless fields.nil?
5635
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5636
+ execute_or_queue_command(command, &block)
5637
+ end
5638
+
5639
+ # Permanently deletes all CompletionSuggestions for a DataStore.
5640
+ # @param [String] parent
5641
+ # Required. The parent data store resource name for which to purge completion
5642
+ # suggestions. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
5643
+ # @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsRequest] google_cloud_discoveryengine_v1alpha_purge_completion_suggestions_request_object
5644
+ # @param [String] fields
5645
+ # Selector specifying which fields to include in a partial response.
5646
+ # @param [String] quota_user
5647
+ # Available to use for quota purposes for server-side applications. Can be any
5648
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5649
+ # @param [Google::Apis::RequestOptions] options
5650
+ # Request-specific options
5651
+ #
5652
+ # @yield [result, err] Result & error if block supplied
5653
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation] parsed result object
5654
+ # @yieldparam err [StandardError] error object if request failed
5655
+ #
5656
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation]
5657
+ #
5658
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5659
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5660
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5661
+ def purge_project_location_data_store_completion_suggestion(parent, google_cloud_discoveryengine_v1alpha_purge_completion_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5662
+ command = make_simple_command(:post, 'v1alpha/{+parent}/completionSuggestions:purge', options)
5663
+ command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsRequest::Representation
5664
+ command.request_object = google_cloud_discoveryengine_v1alpha_purge_completion_suggestions_request_object
5665
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation::Representation
5666
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation
5667
+ command.params['parent'] = parent unless parent.nil?
5668
+ command.query['fields'] = fields unless fields.nil?
5669
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5670
+ execute_or_queue_command(command, &block)
5671
+ end
5672
+
5535
5673
  # Creates a Control. By default 1000 controls are allowed for a data store. A
5536
5674
  # request can be submitted to adjust this limit. If the Control to create
5537
5675
  # already exists, an ALREADY_EXISTS error is returned.
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.50.0
4
+ version: 0.51.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-06-16 00:00:00.000000000 Z
11
+ date: 2024-06-23 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.50.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1alpha/v0.51.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: []