google-apis-discoveryengine_v1beta 0.47.0 → 0.49.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: 529b8368b5559daf69ddc673fe286e58c67adc8d9080218fff1ac4d75dbd96a4
4
- data.tar.gz: ef7902939c372b9107f16395e98c995a80220cad9aa97c92c0a2a726f3cfaff1
3
+ metadata.gz: 71a4a309bab71beecc7b68f89313d49cdc72f3d54e494d0fa2cd30dde7800404
4
+ data.tar.gz: 054a9f30323bdf7339717070317cb3a294741eae772a7189450966c5075f8baf
5
5
  SHA512:
6
- metadata.gz: b694aeee6e219d01f8d5c744826915bab49734f75fecb646f1fb1ea4831943060ffd22c7e92d4d6b612d416816de8604275813791418f1944274417944d2fe65
7
- data.tar.gz: bdca999495c90834f00ce7a3d1a18bb87ba17607a446ab663a2b7b9f0b30abdc1ccfe865794d04afff5a18b062dfa87b0ee7b2e813f756020d0d98a075229d90
6
+ metadata.gz: d1fd931f96c80d2d75cbf34692c401db12984d8627b9849cf10b5b3bee944cb8eb0fbd30542ca39c7b9fb43915e9cee20177bce69bab653ce02d62ed43aefe20
7
+ data.tar.gz: a9e3b7f80b3fed50f61bf583606b9eb0d212526aa9472d74380f3285a52b713f145a83efc8c9026b77f8c5514ace085c57e3b1a9197cf2cd5dbd1e8e28448fbe
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-discoveryengine_v1beta
2
2
 
3
+ ### v0.49.0 (2024-06-23)
4
+
5
+ * Regenerated from discovery document revision 20240617
6
+
7
+ ### v0.48.0 (2024-06-16)
8
+
9
+ * Regenerated from discovery document revision 20240612
10
+
3
11
  ### v0.47.0 (2024-06-09)
4
12
 
5
13
  * Regenerated from discovery document revision 20240607
@@ -1394,6 +1394,72 @@ module Google
1394
1394
  end
1395
1395
  end
1396
1396
 
1397
+ # Metadata related to the progress of the ImportCompletionSuggestions operation.
1398
+ # This will be returned by the google.longrunning.Operation.metadata field.
1399
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata
1400
+ include Google::Apis::Core::Hashable
1401
+
1402
+ # Operation create time.
1403
+ # Corresponds to the JSON property `createTime`
1404
+ # @return [String]
1405
+ attr_accessor :create_time
1406
+
1407
+ # Count of CompletionSuggestions that failed to be imported.
1408
+ # Corresponds to the JSON property `failureCount`
1409
+ # @return [Fixnum]
1410
+ attr_accessor :failure_count
1411
+
1412
+ # Count of CompletionSuggestions successfully imported.
1413
+ # Corresponds to the JSON property `successCount`
1414
+ # @return [Fixnum]
1415
+ attr_accessor :success_count
1416
+
1417
+ # Operation last update time. If the operation is done, this is also the finish
1418
+ # time.
1419
+ # Corresponds to the JSON property `updateTime`
1420
+ # @return [String]
1421
+ attr_accessor :update_time
1422
+
1423
+ def initialize(**args)
1424
+ update!(**args)
1425
+ end
1426
+
1427
+ # Update properties of this object
1428
+ def update!(**args)
1429
+ @create_time = args[:create_time] if args.key?(:create_time)
1430
+ @failure_count = args[:failure_count] if args.key?(:failure_count)
1431
+ @success_count = args[:success_count] if args.key?(:success_count)
1432
+ @update_time = args[:update_time] if args.key?(:update_time)
1433
+ end
1434
+ end
1435
+
1436
+ # Response of the CompletionService.ImportCompletionSuggestions method. If the
1437
+ # long running operation is done, this message is returned by the google.
1438
+ # longrunning.Operations.response field if the operation is successful.
1439
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsResponse
1440
+ include Google::Apis::Core::Hashable
1441
+
1442
+ # Configuration of destination for Import related errors.
1443
+ # Corresponds to the JSON property `errorConfig`
1444
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1ImportErrorConfig]
1445
+ attr_accessor :error_config
1446
+
1447
+ # A sample of errors encountered while processing the request.
1448
+ # Corresponds to the JSON property `errorSamples`
1449
+ # @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus>]
1450
+ attr_accessor :error_samples
1451
+
1452
+ def initialize(**args)
1453
+ update!(**args)
1454
+ end
1455
+
1456
+ # Update properties of this object
1457
+ def update!(**args)
1458
+ @error_config = args[:error_config] if args.key?(:error_config)
1459
+ @error_samples = args[:error_samples] if args.key?(:error_samples)
1460
+ end
1461
+ end
1462
+
1397
1463
  # Metadata related to the progress of the ImportDocuments operation. This is
1398
1464
  # returned by the google.longrunning.Operation.metadata field.
1399
1465
  class GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
@@ -1726,6 +1792,59 @@ module Google
1726
1792
  end
1727
1793
  end
1728
1794
 
1795
+ # Metadata related to the progress of the PurgeCompletionSuggestions operation.
1796
+ # This is returned by the google.longrunning.Operation.metadata field.
1797
+ class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsMetadata
1798
+ include Google::Apis::Core::Hashable
1799
+
1800
+ # Operation create time.
1801
+ # Corresponds to the JSON property `createTime`
1802
+ # @return [String]
1803
+ attr_accessor :create_time
1804
+
1805
+ # Operation last update time. If the operation is done, this is also the finish
1806
+ # time.
1807
+ # Corresponds to the JSON property `updateTime`
1808
+ # @return [String]
1809
+ attr_accessor :update_time
1810
+
1811
+ def initialize(**args)
1812
+ update!(**args)
1813
+ end
1814
+
1815
+ # Update properties of this object
1816
+ def update!(**args)
1817
+ @create_time = args[:create_time] if args.key?(:create_time)
1818
+ @update_time = args[:update_time] if args.key?(:update_time)
1819
+ end
1820
+ end
1821
+
1822
+ # Response message for CompletionService.PurgeCompletionSuggestions method.
1823
+ class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsResponse
1824
+ include Google::Apis::Core::Hashable
1825
+
1826
+ # A sample of errors encountered while processing the request.
1827
+ # Corresponds to the JSON property `errorSamples`
1828
+ # @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus>]
1829
+ attr_accessor :error_samples
1830
+
1831
+ # Whether the completion suggestions were successfully purged.
1832
+ # Corresponds to the JSON property `purgeSucceeded`
1833
+ # @return [Boolean]
1834
+ attr_accessor :purge_succeeded
1835
+ alias_method :purge_succeeded?, :purge_succeeded
1836
+
1837
+ def initialize(**args)
1838
+ update!(**args)
1839
+ end
1840
+
1841
+ # Update properties of this object
1842
+ def update!(**args)
1843
+ @error_samples = args[:error_samples] if args.key?(:error_samples)
1844
+ @purge_succeeded = args[:purge_succeeded] if args.key?(:purge_succeeded)
1845
+ end
1846
+ end
1847
+
1729
1848
  # Metadata related to the progress of the PurgeDocuments operation. This will be
1730
1849
  # returned by the google.longrunning.Operation.metadata field.
1731
1850
  class GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata
@@ -3205,6 +3324,11 @@ module Google
3205
3324
  # @return [String]
3206
3325
  attr_accessor :industry_vertical
3207
3326
 
3327
+ # Language info for DataStore.
3328
+ # Corresponds to the JSON property `languageInfo`
3329
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaLanguageInfo]
3330
+ attr_accessor :language_info
3331
+
3208
3332
  # Immutable. The full resource name of the data store. Format: `projects/`
3209
3333
  # project`/locations/`location`/collections/`collection_id`/dataStores/`
3210
3334
  # data_store_id``. This field must be a UTF-8 encoded string with a length limit
@@ -3240,6 +3364,7 @@ module Google
3240
3364
  @document_processing_config = args[:document_processing_config] if args.key?(:document_processing_config)
3241
3365
  @idp_config = args[:idp_config] if args.key?(:idp_config)
3242
3366
  @industry_vertical = args[:industry_vertical] if args.key?(:industry_vertical)
3367
+ @language_info = args[:language_info] if args.key?(:language_info)
3243
3368
  @name = args[:name] if args.key?(:name)
3244
3369
  @solution_types = args[:solution_types] if args.key?(:solution_types)
3245
3370
  @starting_schema = args[:starting_schema] if args.key?(:starting_schema)
@@ -4238,6 +4363,72 @@ module Google
4238
4363
  end
4239
4364
  end
4240
4365
 
4366
+ # Metadata related to the progress of the ImportCompletionSuggestions operation.
4367
+ # This will be returned by the google.longrunning.Operation.metadata field.
4368
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsMetadata
4369
+ include Google::Apis::Core::Hashable
4370
+
4371
+ # Operation create time.
4372
+ # Corresponds to the JSON property `createTime`
4373
+ # @return [String]
4374
+ attr_accessor :create_time
4375
+
4376
+ # Count of CompletionSuggestions that failed to be imported.
4377
+ # Corresponds to the JSON property `failureCount`
4378
+ # @return [Fixnum]
4379
+ attr_accessor :failure_count
4380
+
4381
+ # Count of CompletionSuggestions successfully imported.
4382
+ # Corresponds to the JSON property `successCount`
4383
+ # @return [Fixnum]
4384
+ attr_accessor :success_count
4385
+
4386
+ # Operation last update time. If the operation is done, this is also the finish
4387
+ # time.
4388
+ # Corresponds to the JSON property `updateTime`
4389
+ # @return [String]
4390
+ attr_accessor :update_time
4391
+
4392
+ def initialize(**args)
4393
+ update!(**args)
4394
+ end
4395
+
4396
+ # Update properties of this object
4397
+ def update!(**args)
4398
+ @create_time = args[:create_time] if args.key?(:create_time)
4399
+ @failure_count = args[:failure_count] if args.key?(:failure_count)
4400
+ @success_count = args[:success_count] if args.key?(:success_count)
4401
+ @update_time = args[:update_time] if args.key?(:update_time)
4402
+ end
4403
+ end
4404
+
4405
+ # Response of the CompletionService.ImportCompletionSuggestions method. If the
4406
+ # long running operation is done, this message is returned by the google.
4407
+ # longrunning.Operations.response field if the operation is successful.
4408
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse
4409
+ include Google::Apis::Core::Hashable
4410
+
4411
+ # Configuration of destination for Import related errors.
4412
+ # Corresponds to the JSON property `errorConfig`
4413
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaImportErrorConfig]
4414
+ attr_accessor :error_config
4415
+
4416
+ # A sample of errors encountered while processing the request.
4417
+ # Corresponds to the JSON property `errorSamples`
4418
+ # @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus>]
4419
+ attr_accessor :error_samples
4420
+
4421
+ def initialize(**args)
4422
+ update!(**args)
4423
+ end
4424
+
4425
+ # Update properties of this object
4426
+ def update!(**args)
4427
+ @error_config = args[:error_config] if args.key?(:error_config)
4428
+ @error_samples = args[:error_samples] if args.key?(:error_samples)
4429
+ end
4430
+ end
4431
+
4241
4432
  # Metadata related to the progress of the ImportDocuments operation. This is
4242
4433
  # returned by the google.longrunning.Operation.metadata field.
4243
4434
  class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
@@ -4468,6 +4659,47 @@ module Google
4468
4659
  end
4469
4660
  end
4470
4661
 
4662
+ # Language info for DataStore.
4663
+ class GoogleCloudDiscoveryengineV1alphaLanguageInfo
4664
+ include Google::Apis::Core::Hashable
4665
+
4666
+ # Output only. Language part of normalized_language_code. E.g.: `en-US` -> `en`,
4667
+ # `zh-Hans-HK` -> `zh`, `en` -> `en`.
4668
+ # Corresponds to the JSON property `language`
4669
+ # @return [String]
4670
+ attr_accessor :language
4671
+
4672
+ # The language code for the DataStore.
4673
+ # Corresponds to the JSON property `languageCode`
4674
+ # @return [String]
4675
+ attr_accessor :language_code
4676
+
4677
+ # Output only. This is the normalized form of language_code. E.g.: language_code
4678
+ # of `en-GB`, `en_GB`, `en-UK` or `en-gb` will have normalized_language_code of `
4679
+ # en-GB`.
4680
+ # Corresponds to the JSON property `normalizedLanguageCode`
4681
+ # @return [String]
4682
+ attr_accessor :normalized_language_code
4683
+
4684
+ # Output only. Region part of normalized_language_code, if present. E.g.: `en-US`
4685
+ # -> `US`, `zh-Hans-HK` -> `HK`, `en` -> ``.
4686
+ # Corresponds to the JSON property `region`
4687
+ # @return [String]
4688
+ attr_accessor :region
4689
+
4690
+ def initialize(**args)
4691
+ update!(**args)
4692
+ end
4693
+
4694
+ # Update properties of this object
4695
+ def update!(**args)
4696
+ @language = args[:language] if args.key?(:language)
4697
+ @language_code = args[:language_code] if args.key?(:language_code)
4698
+ @normalized_language_code = args[:normalized_language_code] if args.key?(:normalized_language_code)
4699
+ @region = args[:region] if args.key?(:region)
4700
+ end
4701
+ end
4702
+
4471
4703
  # Response message for SearchTuningService.ListCustomModels method.
4472
4704
  class GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse
4473
4705
  include Google::Apis::Core::Hashable
@@ -4589,6 +4821,59 @@ module Google
4589
4821
  end
4590
4822
  end
4591
4823
 
4824
+ # Metadata related to the progress of the PurgeCompletionSuggestions operation.
4825
+ # This is returned by the google.longrunning.Operation.metadata field.
4826
+ class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsMetadata
4827
+ include Google::Apis::Core::Hashable
4828
+
4829
+ # Operation create time.
4830
+ # Corresponds to the JSON property `createTime`
4831
+ # @return [String]
4832
+ attr_accessor :create_time
4833
+
4834
+ # Operation last update time. If the operation is done, this is also the finish
4835
+ # time.
4836
+ # Corresponds to the JSON property `updateTime`
4837
+ # @return [String]
4838
+ attr_accessor :update_time
4839
+
4840
+ def initialize(**args)
4841
+ update!(**args)
4842
+ end
4843
+
4844
+ # Update properties of this object
4845
+ def update!(**args)
4846
+ @create_time = args[:create_time] if args.key?(:create_time)
4847
+ @update_time = args[:update_time] if args.key?(:update_time)
4848
+ end
4849
+ end
4850
+
4851
+ # Response message for CompletionService.PurgeCompletionSuggestions method.
4852
+ class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsResponse
4853
+ include Google::Apis::Core::Hashable
4854
+
4855
+ # A sample of errors encountered while processing the request.
4856
+ # Corresponds to the JSON property `errorSamples`
4857
+ # @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus>]
4858
+ attr_accessor :error_samples
4859
+
4860
+ # Whether the completion suggestions were successfully purged.
4861
+ # Corresponds to the JSON property `purgeSucceeded`
4862
+ # @return [Boolean]
4863
+ attr_accessor :purge_succeeded
4864
+ alias_method :purge_succeeded?, :purge_succeeded
4865
+
4866
+ def initialize(**args)
4867
+ update!(**args)
4868
+ end
4869
+
4870
+ # Update properties of this object
4871
+ def update!(**args)
4872
+ @error_samples = args[:error_samples] if args.key?(:error_samples)
4873
+ @purge_succeeded = args[:purge_succeeded] if args.key?(:purge_succeeded)
4874
+ end
4875
+ end
4876
+
4592
4877
  # Metadata related to the progress of the PurgeDocuments operation. This will be
4593
4878
  # returned by the google.longrunning.Operation.metadata field.
4594
4879
  class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
@@ -7384,6 +7669,65 @@ module Google
7384
7669
  end
7385
7670
  end
7386
7671
 
7672
+ # Autocomplete suggestions that are imported from Customer.
7673
+ class GoogleCloudDiscoveryengineV1betaCompletionSuggestion
7674
+ include Google::Apis::Core::Hashable
7675
+
7676
+ # Alternative matching phrases for this suggestion.
7677
+ # Corresponds to the JSON property `alternativePhrases`
7678
+ # @return [Array<String>]
7679
+ attr_accessor :alternative_phrases
7680
+
7681
+ # Frequency of this suggestion. Will be used to rank suggestions when score is
7682
+ # not available.
7683
+ # Corresponds to the JSON property `frequency`
7684
+ # @return [Fixnum]
7685
+ attr_accessor :frequency
7686
+
7687
+ # Global score of this suggestion. Control how this suggestion would be scored /
7688
+ # ranked.
7689
+ # Corresponds to the JSON property `globalScore`
7690
+ # @return [Float]
7691
+ attr_accessor :global_score
7692
+
7693
+ # If two suggestions have the same groupId, they will not be returned together.
7694
+ # Instead the one ranked higher will be returned. This can be used to
7695
+ # deduplicate semantically identical suggestions.
7696
+ # Corresponds to the JSON property `groupId`
7697
+ # @return [String]
7698
+ attr_accessor :group_id
7699
+
7700
+ # The score of this suggestion within its group.
7701
+ # Corresponds to the JSON property `groupScore`
7702
+ # @return [Float]
7703
+ attr_accessor :group_score
7704
+
7705
+ # BCP-47 language code of this suggestion.
7706
+ # Corresponds to the JSON property `languageCode`
7707
+ # @return [String]
7708
+ attr_accessor :language_code
7709
+
7710
+ # Required. The suggestion text.
7711
+ # Corresponds to the JSON property `suggestion`
7712
+ # @return [String]
7713
+ attr_accessor :suggestion
7714
+
7715
+ def initialize(**args)
7716
+ update!(**args)
7717
+ end
7718
+
7719
+ # Update properties of this object
7720
+ def update!(**args)
7721
+ @alternative_phrases = args[:alternative_phrases] if args.key?(:alternative_phrases)
7722
+ @frequency = args[:frequency] if args.key?(:frequency)
7723
+ @global_score = args[:global_score] if args.key?(:global_score)
7724
+ @group_id = args[:group_id] if args.key?(:group_id)
7725
+ @group_score = args[:group_score] if args.key?(:group_score)
7726
+ @language_code = args[:language_code] if args.key?(:language_code)
7727
+ @suggestion = args[:suggestion] if args.key?(:suggestion)
7728
+ end
7729
+ end
7730
+
7387
7731
  # Defines circumstances to be checked before allowing a behavior
7388
7732
  class GoogleCloudDiscoveryengineV1betaCondition
7389
7733
  include Google::Apis::Core::Hashable
@@ -8151,6 +8495,11 @@ module Google
8151
8495
  # @return [String]
8152
8496
  attr_accessor :industry_vertical
8153
8497
 
8498
+ # Language info for DataStore.
8499
+ # Corresponds to the JSON property `languageInfo`
8500
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaLanguageInfo]
8501
+ attr_accessor :language_info
8502
+
8154
8503
  # Immutable. The full resource name of the data store. Format: `projects/`
8155
8504
  # project`/locations/`location`/collections/`collection_id`/dataStores/`
8156
8505
  # data_store_id``. This field must be a UTF-8 encoded string with a length limit
@@ -8184,6 +8533,7 @@ module Google
8184
8533
  @display_name = args[:display_name] if args.key?(:display_name)
8185
8534
  @document_processing_config = args[:document_processing_config] if args.key?(:document_processing_config)
8186
8535
  @industry_vertical = args[:industry_vertical] if args.key?(:industry_vertical)
8536
+ @language_info = args[:language_info] if args.key?(:language_info)
8187
8537
  @name = args[:name] if args.key?(:name)
8188
8538
  @solution_types = args[:solution_types] if args.key?(:solution_types)
8189
8539
  @starting_schema = args[:starting_schema] if args.key?(:starting_schema)
@@ -8460,7 +8810,7 @@ module Google
8460
8810
 
8461
8811
  # The URI of the content. Only Cloud Storage URIs (e.g. `gs://bucket-name/path/
8462
8812
  # to/file`) are supported. The maximum file size is 2.5 MB for text-based
8463
- # formats, 100 MB for other formats.
8813
+ # formats, 200 MB for other formats.
8464
8814
  # Corresponds to the JSON property `uri`
8465
8815
  # @return [String]
8466
8816
  attr_accessor :uri
@@ -9249,6 +9599,128 @@ module Google
9249
9599
  end
9250
9600
  end
9251
9601
 
9602
+ # Metadata related to the progress of the ImportCompletionSuggestions operation.
9603
+ # This will be returned by the google.longrunning.Operation.metadata field.
9604
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata
9605
+ include Google::Apis::Core::Hashable
9606
+
9607
+ # Operation create time.
9608
+ # Corresponds to the JSON property `createTime`
9609
+ # @return [String]
9610
+ attr_accessor :create_time
9611
+
9612
+ # Count of CompletionSuggestions that failed to be imported.
9613
+ # Corresponds to the JSON property `failureCount`
9614
+ # @return [Fixnum]
9615
+ attr_accessor :failure_count
9616
+
9617
+ # Count of CompletionSuggestions successfully imported.
9618
+ # Corresponds to the JSON property `successCount`
9619
+ # @return [Fixnum]
9620
+ attr_accessor :success_count
9621
+
9622
+ # Operation last update time. If the operation is done, this is also the finish
9623
+ # time.
9624
+ # Corresponds to the JSON property `updateTime`
9625
+ # @return [String]
9626
+ attr_accessor :update_time
9627
+
9628
+ def initialize(**args)
9629
+ update!(**args)
9630
+ end
9631
+
9632
+ # Update properties of this object
9633
+ def update!(**args)
9634
+ @create_time = args[:create_time] if args.key?(:create_time)
9635
+ @failure_count = args[:failure_count] if args.key?(:failure_count)
9636
+ @success_count = args[:success_count] if args.key?(:success_count)
9637
+ @update_time = args[:update_time] if args.key?(:update_time)
9638
+ end
9639
+ end
9640
+
9641
+ # Request message for CompletionService.ImportCompletionSuggestions method.
9642
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequest
9643
+ include Google::Apis::Core::Hashable
9644
+
9645
+ # BigQuery source import data from.
9646
+ # Corresponds to the JSON property `bigquerySource`
9647
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaBigQuerySource]
9648
+ attr_accessor :bigquery_source
9649
+
9650
+ # Configuration of destination for Import related errors.
9651
+ # Corresponds to the JSON property `errorConfig`
9652
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportErrorConfig]
9653
+ attr_accessor :error_config
9654
+
9655
+ # Cloud Storage location for input content.
9656
+ # Corresponds to the JSON property `gcsSource`
9657
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGcsSource]
9658
+ attr_accessor :gcs_source
9659
+
9660
+ # The inline source for CompletionSuggestions.
9661
+ # Corresponds to the JSON property `inlineSource`
9662
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequestInlineSource]
9663
+ attr_accessor :inline_source
9664
+
9665
+ def initialize(**args)
9666
+ update!(**args)
9667
+ end
9668
+
9669
+ # Update properties of this object
9670
+ def update!(**args)
9671
+ @bigquery_source = args[:bigquery_source] if args.key?(:bigquery_source)
9672
+ @error_config = args[:error_config] if args.key?(:error_config)
9673
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
9674
+ @inline_source = args[:inline_source] if args.key?(:inline_source)
9675
+ end
9676
+ end
9677
+
9678
+ # The inline source for CompletionSuggestions.
9679
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequestInlineSource
9680
+ include Google::Apis::Core::Hashable
9681
+
9682
+ # Required. A list of all denylist entries to import. Max of 1000 items.
9683
+ # Corresponds to the JSON property `suggestions`
9684
+ # @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCompletionSuggestion>]
9685
+ attr_accessor :suggestions
9686
+
9687
+ def initialize(**args)
9688
+ update!(**args)
9689
+ end
9690
+
9691
+ # Update properties of this object
9692
+ def update!(**args)
9693
+ @suggestions = args[:suggestions] if args.key?(:suggestions)
9694
+ end
9695
+ end
9696
+
9697
+ # Response of the CompletionService.ImportCompletionSuggestions method. If the
9698
+ # long running operation is done, this message is returned by the google.
9699
+ # longrunning.Operations.response field if the operation is successful.
9700
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsResponse
9701
+ include Google::Apis::Core::Hashable
9702
+
9703
+ # Configuration of destination for Import related errors.
9704
+ # Corresponds to the JSON property `errorConfig`
9705
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportErrorConfig]
9706
+ attr_accessor :error_config
9707
+
9708
+ # A sample of errors encountered while processing the request.
9709
+ # Corresponds to the JSON property `errorSamples`
9710
+ # @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus>]
9711
+ attr_accessor :error_samples
9712
+
9713
+ def initialize(**args)
9714
+ update!(**args)
9715
+ end
9716
+
9717
+ # Update properties of this object
9718
+ def update!(**args)
9719
+ @error_config = args[:error_config] if args.key?(:error_config)
9720
+ @error_samples = args[:error_samples] if args.key?(:error_samples)
9721
+ end
9722
+ end
9723
+
9252
9724
  # Metadata related to the progress of the ImportDocuments operation. This is
9253
9725
  # returned by the google.longrunning.Operation.metadata field.
9254
9726
  class GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata
@@ -9759,6 +10231,47 @@ module Google
9759
10231
  end
9760
10232
  end
9761
10233
 
10234
+ # Language info for DataStore.
10235
+ class GoogleCloudDiscoveryengineV1betaLanguageInfo
10236
+ include Google::Apis::Core::Hashable
10237
+
10238
+ # Output only. Language part of normalized_language_code. E.g.: `en-US` -> `en`,
10239
+ # `zh-Hans-HK` -> `zh`, `en` -> `en`.
10240
+ # Corresponds to the JSON property `language`
10241
+ # @return [String]
10242
+ attr_accessor :language
10243
+
10244
+ # The language code for the DataStore.
10245
+ # Corresponds to the JSON property `languageCode`
10246
+ # @return [String]
10247
+ attr_accessor :language_code
10248
+
10249
+ # Output only. This is the normalized form of language_code. E.g.: language_code
10250
+ # of `en-GB`, `en_GB`, `en-UK` or `en-gb` will have normalized_language_code of `
10251
+ # en-GB`.
10252
+ # Corresponds to the JSON property `normalizedLanguageCode`
10253
+ # @return [String]
10254
+ attr_accessor :normalized_language_code
10255
+
10256
+ # Output only. Region part of normalized_language_code, if present. E.g.: `en-US`
10257
+ # -> `US`, `zh-Hans-HK` -> `HK`, `en` -> ``.
10258
+ # Corresponds to the JSON property `region`
10259
+ # @return [String]
10260
+ attr_accessor :region
10261
+
10262
+ def initialize(**args)
10263
+ update!(**args)
10264
+ end
10265
+
10266
+ # Update properties of this object
10267
+ def update!(**args)
10268
+ @language = args[:language] if args.key?(:language)
10269
+ @language_code = args[:language_code] if args.key?(:language_code)
10270
+ @normalized_language_code = args[:normalized_language_code] if args.key?(:normalized_language_code)
10271
+ @region = args[:region] if args.key?(:region)
10272
+ end
10273
+ end
10274
+
9762
10275
  # Response for ListControls method.
9763
10276
  class GoogleCloudDiscoveryengineV1betaListControlsResponse
9764
10277
  include Google::Apis::Core::Hashable
@@ -10283,6 +10796,19 @@ module Google
10283
10796
  end
10284
10797
  end
10285
10798
 
10799
+ # Request message for CompletionService.PurgeCompletionSuggestions method.
10800
+ class GoogleCloudDiscoveryengineV1betaPurgeCompletionSuggestionsRequest
10801
+ include Google::Apis::Core::Hashable
10802
+
10803
+ def initialize(**args)
10804
+ update!(**args)
10805
+ end
10806
+
10807
+ # Update properties of this object
10808
+ def update!(**args)
10809
+ end
10810
+ end
10811
+
10286
10812
  # Metadata related to the progress of the PurgeDocuments operation. This will be
10287
10813
  # returned by the google.longrunning.Operation.metadata field.
10288
10814
  class GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata
@@ -11022,6 +11548,14 @@ module Google
11022
11548
  # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestImageQuery]
11023
11549
  attr_accessor :image_query
11024
11550
 
11551
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
11552
+ # see [Standard fields](https://cloud.google.com/apis/design/standard_fields).
11553
+ # This field helps to better interpret the query. If a value isn't specified,
11554
+ # the query language code is automatically detected, which may not be accurate.
11555
+ # Corresponds to the JSON property `languageCode`
11556
+ # @return [String]
11557
+ attr_accessor :language_code
11558
+
11025
11559
  # A 0-indexed integer that specifies the current offset (that is, starting
11026
11560
  # result location, amongst the Documents deemed by the API as relevant) in
11027
11561
  # search results. This field is only considered if page_token is unset. If this
@@ -11093,6 +11627,14 @@ module Google
11093
11627
  # @return [String]
11094
11628
  attr_accessor :ranking_expression
11095
11629
 
11630
+ # The Unicode country/region code (CLDR) of a location, such as "US" and "419".
11631
+ # For more information, see [Standard fields](https://cloud.google.com/apis/
11632
+ # design/standard_fields). If set, then results will be boosted based on the
11633
+ # region_code provided.
11634
+ # Corresponds to the JSON property `regionCode`
11635
+ # @return [String]
11636
+ attr_accessor :region_code
11637
+
11096
11638
  # Whether to turn on safe search. This is only supported for website search.
11097
11639
  # Corresponds to the JSON property `safeSearch`
11098
11640
  # @return [Boolean]
@@ -11151,6 +11693,7 @@ module Google
11151
11693
  @facet_specs = args[:facet_specs] if args.key?(:facet_specs)
11152
11694
  @filter = args[:filter] if args.key?(:filter)
11153
11695
  @image_query = args[:image_query] if args.key?(:image_query)
11696
+ @language_code = args[:language_code] if args.key?(:language_code)
11154
11697
  @offset = args[:offset] if args.key?(:offset)
11155
11698
  @order_by = args[:order_by] if args.key?(:order_by)
11156
11699
  @page_size = args[:page_size] if args.key?(:page_size)
@@ -11159,6 +11702,7 @@ module Google
11159
11702
  @query = args[:query] if args.key?(:query)
11160
11703
  @query_expansion_spec = args[:query_expansion_spec] if args.key?(:query_expansion_spec)
11161
11704
  @ranking_expression = args[:ranking_expression] if args.key?(:ranking_expression)
11705
+ @region_code = args[:region_code] if args.key?(:region_code)
11162
11706
  @safe_search = args[:safe_search] if args.key?(:safe_search)
11163
11707
  @spell_correction_spec = args[:spell_correction_spec] if args.key?(:spell_correction_spec)
11164
11708
  @user_info = args[:user_info] if args.key?(:user_info)
@@ -11753,7 +12297,10 @@ module Google
11753
12297
 
11754
12298
  # Maximum facet values that are returned for this facet. If unspecified,
11755
12299
  # defaults to 20. The maximum allowed value is 300. Values above 300 are coerced
11756
- # to 300. If this field is negative, an `INVALID_ARGUMENT` is returned.
12300
+ # to 300. For aggregation in healthcare search, when the [FacetKey.key] is "
12301
+ # healthcare_aggregation_key", the limit will be overridden to 10,000 internally,
12302
+ # regardless of the value set here. If this field is negative, an `
12303
+ # INVALID_ARGUMENT` is returned.
11757
12304
  # Corresponds to the JSON property `limit`
11758
12305
  # @return [Fixnum]
11759
12306
  attr_accessor :limit
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DiscoveryengineV1beta
18
18
  # Version of the google-apis-discoveryengine_v1beta gem
19
- GEM_VERSION = "0.47.0"
19
+ GEM_VERSION = "0.49.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 = "20240607"
25
+ REVISION = "20240617"
26
26
  end
27
27
  end
28
28
  end
@@ -280,6 +280,18 @@ module Google
280
280
  include Google::Apis::Core::JsonObjectSupport
281
281
  end
282
282
 
283
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
289
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsResponse
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
283
295
  class GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
284
296
  class Representation < Google::Apis::Core::JsonRepresentation; end
285
297
 
@@ -340,6 +352,18 @@ module Google
340
352
  include Google::Apis::Core::JsonObjectSupport
341
353
  end
342
354
 
355
+ class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsMetadata
356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
357
+
358
+ include Google::Apis::Core::JsonObjectSupport
359
+ end
360
+
361
+ class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsResponse
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
343
367
  class GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata
344
368
  class Representation < Google::Apis::Core::JsonRepresentation; end
345
369
 
@@ -790,6 +814,18 @@ module Google
790
814
  include Google::Apis::Core::JsonObjectSupport
791
815
  end
792
816
 
817
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsMetadata
818
+ class Representation < Google::Apis::Core::JsonRepresentation; end
819
+
820
+ include Google::Apis::Core::JsonObjectSupport
821
+ end
822
+
823
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse
824
+ class Representation < Google::Apis::Core::JsonRepresentation; end
825
+
826
+ include Google::Apis::Core::JsonObjectSupport
827
+ end
828
+
793
829
  class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
794
830
  class Representation < Google::Apis::Core::JsonRepresentation; end
795
831
 
@@ -832,6 +868,12 @@ module Google
832
868
  include Google::Apis::Core::JsonObjectSupport
833
869
  end
834
870
 
871
+ class GoogleCloudDiscoveryengineV1alphaLanguageInfo
872
+ class Representation < Google::Apis::Core::JsonRepresentation; end
873
+
874
+ include Google::Apis::Core::JsonObjectSupport
875
+ end
876
+
835
877
  class GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse
836
878
  class Representation < Google::Apis::Core::JsonRepresentation; end
837
879
 
@@ -856,6 +898,18 @@ module Google
856
898
  include Google::Apis::Core::JsonObjectSupport
857
899
  end
858
900
 
901
+ class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsMetadata
902
+ class Representation < Google::Apis::Core::JsonRepresentation; end
903
+
904
+ include Google::Apis::Core::JsonObjectSupport
905
+ end
906
+
907
+ class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsResponse
908
+ class Representation < Google::Apis::Core::JsonRepresentation; end
909
+
910
+ include Google::Apis::Core::JsonObjectSupport
911
+ end
912
+
859
913
  class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
860
914
  class Representation < Google::Apis::Core::JsonRepresentation; end
861
915
 
@@ -1348,6 +1402,12 @@ module Google
1348
1402
  include Google::Apis::Core::JsonObjectSupport
1349
1403
  end
1350
1404
 
1405
+ class GoogleCloudDiscoveryengineV1betaCompletionSuggestion
1406
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1407
+
1408
+ include Google::Apis::Core::JsonObjectSupport
1409
+ end
1410
+
1351
1411
  class GoogleCloudDiscoveryengineV1betaCondition
1352
1412
  class Representation < Google::Apis::Core::JsonRepresentation; end
1353
1413
 
@@ -1678,6 +1738,30 @@ module Google
1678
1738
  include Google::Apis::Core::JsonObjectSupport
1679
1739
  end
1680
1740
 
1741
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata
1742
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1743
+
1744
+ include Google::Apis::Core::JsonObjectSupport
1745
+ end
1746
+
1747
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequest
1748
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1749
+
1750
+ include Google::Apis::Core::JsonObjectSupport
1751
+ end
1752
+
1753
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequestInlineSource
1754
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1755
+
1756
+ include Google::Apis::Core::JsonObjectSupport
1757
+ end
1758
+
1759
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsResponse
1760
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1761
+
1762
+ include Google::Apis::Core::JsonObjectSupport
1763
+ end
1764
+
1681
1765
  class GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata
1682
1766
  class Representation < Google::Apis::Core::JsonRepresentation; end
1683
1767
 
@@ -1762,6 +1846,12 @@ module Google
1762
1846
  include Google::Apis::Core::JsonObjectSupport
1763
1847
  end
1764
1848
 
1849
+ class GoogleCloudDiscoveryengineV1betaLanguageInfo
1850
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1851
+
1852
+ include Google::Apis::Core::JsonObjectSupport
1853
+ end
1854
+
1765
1855
  class GoogleCloudDiscoveryengineV1betaListControlsResponse
1766
1856
  class Representation < Google::Apis::Core::JsonRepresentation; end
1767
1857
 
@@ -1870,6 +1960,12 @@ module Google
1870
1960
  include Google::Apis::Core::JsonObjectSupport
1871
1961
  end
1872
1962
 
1963
+ class GoogleCloudDiscoveryengineV1betaPurgeCompletionSuggestionsRequest
1964
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1965
+
1966
+ include Google::Apis::Core::JsonObjectSupport
1967
+ end
1968
+
1873
1969
  class GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata
1874
1970
  class Representation < Google::Apis::Core::JsonRepresentation; end
1875
1971
 
@@ -2780,6 +2876,26 @@ module Google
2780
2876
  end
2781
2877
  end
2782
2878
 
2879
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata
2880
+ # @private
2881
+ class Representation < Google::Apis::Core::JsonRepresentation
2882
+ property :create_time, as: 'createTime'
2883
+ property :failure_count, :numeric_string => true, as: 'failureCount'
2884
+ property :success_count, :numeric_string => true, as: 'successCount'
2885
+ property :update_time, as: 'updateTime'
2886
+ end
2887
+ end
2888
+
2889
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsResponse
2890
+ # @private
2891
+ class Representation < Google::Apis::Core::JsonRepresentation
2892
+ property :error_config, as: 'errorConfig', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1ImportErrorConfig, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1ImportErrorConfig::Representation
2893
+
2894
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus::Representation
2895
+
2896
+ end
2897
+ end
2898
+
2783
2899
  class GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
2784
2900
  # @private
2785
2901
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2876,6 +2992,23 @@ module Google
2876
2992
  end
2877
2993
  end
2878
2994
 
2995
+ class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsMetadata
2996
+ # @private
2997
+ class Representation < Google::Apis::Core::JsonRepresentation
2998
+ property :create_time, as: 'createTime'
2999
+ property :update_time, as: 'updateTime'
3000
+ end
3001
+ end
3002
+
3003
+ class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsResponse
3004
+ # @private
3005
+ class Representation < Google::Apis::Core::JsonRepresentation
3006
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus::Representation
3007
+
3008
+ property :purge_succeeded, as: 'purgeSucceeded'
3009
+ end
3010
+ end
3011
+
2879
3012
  class GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata
2880
3013
  # @private
2881
3014
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3310,6 +3443,8 @@ module Google
3310
3443
  property :idp_config, as: 'idpConfig', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaIdpConfig, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaIdpConfig::Representation
3311
3444
 
3312
3445
  property :industry_vertical, as: 'industryVertical'
3446
+ property :language_info, as: 'languageInfo', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaLanguageInfo, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaLanguageInfo::Representation
3447
+
3313
3448
  property :name, as: 'name'
3314
3449
  collection :solution_types, as: 'solutionTypes'
3315
3450
  property :starting_schema, as: 'startingSchema', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSchema, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSchema::Representation
@@ -3589,6 +3724,26 @@ module Google
3589
3724
  end
3590
3725
  end
3591
3726
 
3727
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsMetadata
3728
+ # @private
3729
+ class Representation < Google::Apis::Core::JsonRepresentation
3730
+ property :create_time, as: 'createTime'
3731
+ property :failure_count, :numeric_string => true, as: 'failureCount'
3732
+ property :success_count, :numeric_string => true, as: 'successCount'
3733
+ property :update_time, as: 'updateTime'
3734
+ end
3735
+ end
3736
+
3737
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse
3738
+ # @private
3739
+ class Representation < Google::Apis::Core::JsonRepresentation
3740
+ property :error_config, as: 'errorConfig', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaImportErrorConfig, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaImportErrorConfig::Representation
3741
+
3742
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus::Representation
3743
+
3744
+ end
3745
+ end
3746
+
3592
3747
  class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
3593
3748
  # @private
3594
3749
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3657,6 +3812,16 @@ module Google
3657
3812
  end
3658
3813
  end
3659
3814
 
3815
+ class GoogleCloudDiscoveryengineV1alphaLanguageInfo
3816
+ # @private
3817
+ class Representation < Google::Apis::Core::JsonRepresentation
3818
+ property :language, as: 'language'
3819
+ property :language_code, as: 'languageCode'
3820
+ property :normalized_language_code, as: 'normalizedLanguageCode'
3821
+ property :region, as: 'region'
3822
+ end
3823
+ end
3824
+
3660
3825
  class GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse
3661
3826
  # @private
3662
3827
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3693,6 +3858,23 @@ module Google
3693
3858
  end
3694
3859
  end
3695
3860
 
3861
+ class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsMetadata
3862
+ # @private
3863
+ class Representation < Google::Apis::Core::JsonRepresentation
3864
+ property :create_time, as: 'createTime'
3865
+ property :update_time, as: 'updateTime'
3866
+ end
3867
+ end
3868
+
3869
+ class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsResponse
3870
+ # @private
3871
+ class Representation < Google::Apis::Core::JsonRepresentation
3872
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus::Representation
3873
+
3874
+ property :purge_succeeded, as: 'purgeSucceeded'
3875
+ end
3876
+ end
3877
+
3696
3878
  class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
3697
3879
  # @private
3698
3880
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4497,6 +4679,19 @@ module Google
4497
4679
  end
4498
4680
  end
4499
4681
 
4682
+ class GoogleCloudDiscoveryengineV1betaCompletionSuggestion
4683
+ # @private
4684
+ class Representation < Google::Apis::Core::JsonRepresentation
4685
+ collection :alternative_phrases, as: 'alternativePhrases'
4686
+ property :frequency, :numeric_string => true, as: 'frequency'
4687
+ property :global_score, as: 'globalScore'
4688
+ property :group_id, as: 'groupId'
4689
+ property :group_score, as: 'groupScore'
4690
+ property :language_code, as: 'languageCode'
4691
+ property :suggestion, as: 'suggestion'
4692
+ end
4693
+ end
4694
+
4500
4695
  class GoogleCloudDiscoveryengineV1betaCondition
4501
4696
  # @private
4502
4697
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4709,6 +4904,8 @@ module Google
4709
4904
  property :document_processing_config, as: 'documentProcessingConfig', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig::Representation
4710
4905
 
4711
4906
  property :industry_vertical, as: 'industryVertical'
4907
+ property :language_info, as: 'languageInfo', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaLanguageInfo, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaLanguageInfo::Representation
4908
+
4712
4909
  property :name, as: 'name'
4713
4910
  collection :solution_types, as: 'solutionTypes'
4714
4911
  property :starting_schema, as: 'startingSchema', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSchema, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSchema::Representation
@@ -5015,6 +5212,48 @@ module Google
5015
5212
  end
5016
5213
  end
5017
5214
 
5215
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata
5216
+ # @private
5217
+ class Representation < Google::Apis::Core::JsonRepresentation
5218
+ property :create_time, as: 'createTime'
5219
+ property :failure_count, :numeric_string => true, as: 'failureCount'
5220
+ property :success_count, :numeric_string => true, as: 'successCount'
5221
+ property :update_time, as: 'updateTime'
5222
+ end
5223
+ end
5224
+
5225
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequest
5226
+ # @private
5227
+ class Representation < Google::Apis::Core::JsonRepresentation
5228
+ property :bigquery_source, as: 'bigquerySource', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaBigQuerySource, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaBigQuerySource::Representation
5229
+
5230
+ property :error_config, as: 'errorConfig', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportErrorConfig, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportErrorConfig::Representation
5231
+
5232
+ property :gcs_source, as: 'gcsSource', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGcsSource, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGcsSource::Representation
5233
+
5234
+ property :inline_source, as: 'inlineSource', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequestInlineSource, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequestInlineSource::Representation
5235
+
5236
+ end
5237
+ end
5238
+
5239
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequestInlineSource
5240
+ # @private
5241
+ class Representation < Google::Apis::Core::JsonRepresentation
5242
+ collection :suggestions, as: 'suggestions', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCompletionSuggestion, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCompletionSuggestion::Representation
5243
+
5244
+ end
5245
+ end
5246
+
5247
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsResponse
5248
+ # @private
5249
+ class Representation < Google::Apis::Core::JsonRepresentation
5250
+ property :error_config, as: 'errorConfig', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportErrorConfig, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportErrorConfig::Representation
5251
+
5252
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus::Representation
5253
+
5254
+ end
5255
+ end
5256
+
5018
5257
  class GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata
5019
5258
  # @private
5020
5259
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5171,6 +5410,16 @@ module Google
5171
5410
  end
5172
5411
  end
5173
5412
 
5413
+ class GoogleCloudDiscoveryengineV1betaLanguageInfo
5414
+ # @private
5415
+ class Representation < Google::Apis::Core::JsonRepresentation
5416
+ property :language, as: 'language'
5417
+ property :language_code, as: 'languageCode'
5418
+ property :normalized_language_code, as: 'normalizedLanguageCode'
5419
+ property :region, as: 'region'
5420
+ end
5421
+ end
5422
+
5174
5423
  class GoogleCloudDiscoveryengineV1betaListControlsResponse
5175
5424
  # @private
5176
5425
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5331,6 +5580,12 @@ module Google
5331
5580
  end
5332
5581
  end
5333
5582
 
5583
+ class GoogleCloudDiscoveryengineV1betaPurgeCompletionSuggestionsRequest
5584
+ # @private
5585
+ class Representation < Google::Apis::Core::JsonRepresentation
5586
+ end
5587
+ end
5588
+
5334
5589
  class GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata
5335
5590
  # @private
5336
5591
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5524,6 +5779,7 @@ module Google
5524
5779
  property :filter, as: 'filter'
5525
5780
  property :image_query, as: 'imageQuery', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestImageQuery, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestImageQuery::Representation
5526
5781
 
5782
+ property :language_code, as: 'languageCode'
5527
5783
  property :offset, as: 'offset'
5528
5784
  property :order_by, as: 'orderBy'
5529
5785
  property :page_size, as: 'pageSize'
@@ -5533,6 +5789,7 @@ module Google
5533
5789
  property :query_expansion_spec, as: 'queryExpansionSpec', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec::Representation
5534
5790
 
5535
5791
  property :ranking_expression, as: 'rankingExpression'
5792
+ property :region_code, as: 'regionCode'
5536
5793
  property :safe_search, as: 'safeSearch'
5537
5794
  property :spell_correction_spec, as: 'spellCorrectionSpec', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestSpellCorrectionSpec, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestSpellCorrectionSpec::Representation
5538
5795
 
@@ -887,6 +887,75 @@ module Google
887
887
  execute_or_queue_command(command, &block)
888
888
  end
889
889
 
890
+ # Imports CompletionSuggestions for a DataStore.
891
+ # @param [String] parent
892
+ # Required. The parent data store resource name for which to import customer
893
+ # autocomplete suggestions. Follows pattern `projects/*/locations/*/collections/*
894
+ # /dataStores/*`
895
+ # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequest] google_cloud_discoveryengine_v1beta_import_completion_suggestions_request_object
896
+ # @param [String] fields
897
+ # Selector specifying which fields to include in a partial response.
898
+ # @param [String] quota_user
899
+ # Available to use for quota purposes for server-side applications. Can be any
900
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
901
+ # @param [Google::Apis::RequestOptions] options
902
+ # Request-specific options
903
+ #
904
+ # @yield [result, err] Result & error if block supplied
905
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation] parsed result object
906
+ # @yieldparam err [StandardError] error object if request failed
907
+ #
908
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation]
909
+ #
910
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
911
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
912
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
913
+ def import_project_location_collection_data_store_completion_suggestion(parent, google_cloud_discoveryengine_v1beta_import_completion_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
914
+ command = make_simple_command(:post, 'v1beta/{+parent}/completionSuggestions:import', options)
915
+ command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequest::Representation
916
+ command.request_object = google_cloud_discoveryengine_v1beta_import_completion_suggestions_request_object
917
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation::Representation
918
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation
919
+ command.params['parent'] = parent unless parent.nil?
920
+ command.query['fields'] = fields unless fields.nil?
921
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
922
+ execute_or_queue_command(command, &block)
923
+ end
924
+
925
+ # Permanently deletes all CompletionSuggestions for a DataStore.
926
+ # @param [String] parent
927
+ # Required. The parent data store resource name for which to purge completion
928
+ # suggestions. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
929
+ # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaPurgeCompletionSuggestionsRequest] google_cloud_discoveryengine_v1beta_purge_completion_suggestions_request_object
930
+ # @param [String] fields
931
+ # Selector specifying which fields to include in a partial response.
932
+ # @param [String] quota_user
933
+ # Available to use for quota purposes for server-side applications. Can be any
934
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
935
+ # @param [Google::Apis::RequestOptions] options
936
+ # Request-specific options
937
+ #
938
+ # @yield [result, err] Result & error if block supplied
939
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation] parsed result object
940
+ # @yieldparam err [StandardError] error object if request failed
941
+ #
942
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation]
943
+ #
944
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
945
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
946
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
947
+ def purge_project_location_collection_data_store_completion_suggestion(parent, google_cloud_discoveryengine_v1beta_purge_completion_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
948
+ command = make_simple_command(:post, 'v1beta/{+parent}/completionSuggestions:purge', options)
949
+ command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaPurgeCompletionSuggestionsRequest::Representation
950
+ command.request_object = google_cloud_discoveryengine_v1beta_purge_completion_suggestions_request_object
951
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation::Representation
952
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation
953
+ command.params['parent'] = parent unless parent.nil?
954
+ command.query['fields'] = fields unless fields.nil?
955
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
956
+ execute_or_queue_command(command, &block)
957
+ end
958
+
890
959
  # Creates a Control. By default 1000 controls are allowed for a data store. A
891
960
  # request can be submitted to adjust this limit. If the Control to create
892
961
  # already exists, an ALREADY_EXISTS error is returned.
@@ -4934,6 +5003,75 @@ module Google
4934
5003
  execute_or_queue_command(command, &block)
4935
5004
  end
4936
5005
 
5006
+ # Imports CompletionSuggestions for a DataStore.
5007
+ # @param [String] parent
5008
+ # Required. The parent data store resource name for which to import customer
5009
+ # autocomplete suggestions. Follows pattern `projects/*/locations/*/collections/*
5010
+ # /dataStores/*`
5011
+ # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequest] google_cloud_discoveryengine_v1beta_import_completion_suggestions_request_object
5012
+ # @param [String] fields
5013
+ # Selector specifying which fields to include in a partial response.
5014
+ # @param [String] quota_user
5015
+ # Available to use for quota purposes for server-side applications. Can be any
5016
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5017
+ # @param [Google::Apis::RequestOptions] options
5018
+ # Request-specific options
5019
+ #
5020
+ # @yield [result, err] Result & error if block supplied
5021
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation] parsed result object
5022
+ # @yieldparam err [StandardError] error object if request failed
5023
+ #
5024
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation]
5025
+ #
5026
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5027
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5028
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5029
+ def import_project_location_data_store_completion_suggestion(parent, google_cloud_discoveryengine_v1beta_import_completion_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5030
+ command = make_simple_command(:post, 'v1beta/{+parent}/completionSuggestions:import', options)
5031
+ command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequest::Representation
5032
+ command.request_object = google_cloud_discoveryengine_v1beta_import_completion_suggestions_request_object
5033
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation::Representation
5034
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation
5035
+ command.params['parent'] = parent unless parent.nil?
5036
+ command.query['fields'] = fields unless fields.nil?
5037
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5038
+ execute_or_queue_command(command, &block)
5039
+ end
5040
+
5041
+ # Permanently deletes all CompletionSuggestions for a DataStore.
5042
+ # @param [String] parent
5043
+ # Required. The parent data store resource name for which to purge completion
5044
+ # suggestions. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
5045
+ # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaPurgeCompletionSuggestionsRequest] google_cloud_discoveryengine_v1beta_purge_completion_suggestions_request_object
5046
+ # @param [String] fields
5047
+ # Selector specifying which fields to include in a partial response.
5048
+ # @param [String] quota_user
5049
+ # Available to use for quota purposes for server-side applications. Can be any
5050
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5051
+ # @param [Google::Apis::RequestOptions] options
5052
+ # Request-specific options
5053
+ #
5054
+ # @yield [result, err] Result & error if block supplied
5055
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation] parsed result object
5056
+ # @yieldparam err [StandardError] error object if request failed
5057
+ #
5058
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation]
5059
+ #
5060
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5061
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5062
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5063
+ def purge_project_location_data_store_completion_suggestion(parent, google_cloud_discoveryengine_v1beta_purge_completion_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5064
+ command = make_simple_command(:post, 'v1beta/{+parent}/completionSuggestions:purge', options)
5065
+ command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaPurgeCompletionSuggestionsRequest::Representation
5066
+ command.request_object = google_cloud_discoveryengine_v1beta_purge_completion_suggestions_request_object
5067
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation::Representation
5068
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation
5069
+ command.params['parent'] = parent unless parent.nil?
5070
+ command.query['fields'] = fields unless fields.nil?
5071
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5072
+ execute_or_queue_command(command, &block)
5073
+ end
5074
+
4937
5075
  # Creates a Control. By default 1000 controls are allowed for a data store. A
4938
5076
  # request can be submitted to adjust this limit. If the Control to create
4939
5077
  # 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_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.47.0
4
+ version: 0.49.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-09 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_v1beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1beta/v0.47.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1beta/v0.49.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1beta
63
63
  post_install_message:
64
64
  rdoc_options: []