google-apis-discoveryengine_v1 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc80d289f3201e67dacf391a0bed023302b3b78a46383b3d5d4fcd94ec9ae0ed
4
- data.tar.gz: 40445b2616c129ecf30dfc9f23d9b3fbd40171794a35149872ac0a688c17d731
3
+ metadata.gz: 2ea722e7ad2bca973f634e423d590028e1f757387549fd628203daba639b47d8
4
+ data.tar.gz: 6adfb5df504b5f625d28799e55a8d25998a27b5db8ceb58099de5319a8792666
5
5
  SHA512:
6
- metadata.gz: fe3c7bae685fe0d4bef296bde50a92b0591a625cb27eed8ede9ec6e5dcd5eee3c4e119a9360b3c15cb566989fdccf9be1ad37e9f354679cc43abfb474c08a04e
7
- data.tar.gz: 343965d5081f6bd1d87a95f51d40d883e8bf29497347808ee5551ee51ec643f63cfadaccc58bf40eebbc2a35b8543d4cc75ff4543948a8d6d95dd016c92a14ff
6
+ metadata.gz: 9bd464309a07a73e399a9c067c8376c83b793b32ebf0a45da2ff2579f972718a90b1ef6bf6e3045c31a01d6a1576afc273bf4283fa6a60fd783923468cff57ae
7
+ data.tar.gz: 4dc74add2f0ed0bbd608fbfdcdb635551f1f775a7ab9472df4058f9219f70b705523d8493aba2499563ec9ab5dfc09bc421f9caaa05f3882ec1a2bd800572b7f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-discoveryengine_v1
2
2
 
3
+ ### v0.8.0 (2024-06-23)
4
+
5
+ * Regenerated from discovery document revision 20240617
6
+
7
+ ### v0.7.0 (2024-06-16)
8
+
9
+ * Regenerated from discovery document revision 20240612
10
+
3
11
  ### v0.6.0 (2024-06-09)
4
12
 
5
13
  * Regenerated from discovery document revision 20240607
@@ -2288,6 +2288,65 @@ module Google
2288
2288
  end
2289
2289
  end
2290
2290
 
2291
+ # Autocomplete suggestions that are imported from Customer.
2292
+ class GoogleCloudDiscoveryengineV1CompletionSuggestion
2293
+ include Google::Apis::Core::Hashable
2294
+
2295
+ # Alternative matching phrases for this suggestion.
2296
+ # Corresponds to the JSON property `alternativePhrases`
2297
+ # @return [Array<String>]
2298
+ attr_accessor :alternative_phrases
2299
+
2300
+ # Frequency of this suggestion. Will be used to rank suggestions when score is
2301
+ # not available.
2302
+ # Corresponds to the JSON property `frequency`
2303
+ # @return [Fixnum]
2304
+ attr_accessor :frequency
2305
+
2306
+ # Global score of this suggestion. Control how this suggestion would be scored /
2307
+ # ranked.
2308
+ # Corresponds to the JSON property `globalScore`
2309
+ # @return [Float]
2310
+ attr_accessor :global_score
2311
+
2312
+ # If two suggestions have the same groupId, they will not be returned together.
2313
+ # Instead the one ranked higher will be returned. This can be used to
2314
+ # deduplicate semantically identical suggestions.
2315
+ # Corresponds to the JSON property `groupId`
2316
+ # @return [String]
2317
+ attr_accessor :group_id
2318
+
2319
+ # The score of this suggestion within its group.
2320
+ # Corresponds to the JSON property `groupScore`
2321
+ # @return [Float]
2322
+ attr_accessor :group_score
2323
+
2324
+ # BCP-47 language code of this suggestion.
2325
+ # Corresponds to the JSON property `languageCode`
2326
+ # @return [String]
2327
+ attr_accessor :language_code
2328
+
2329
+ # Required. The suggestion text.
2330
+ # Corresponds to the JSON property `suggestion`
2331
+ # @return [String]
2332
+ attr_accessor :suggestion
2333
+
2334
+ def initialize(**args)
2335
+ update!(**args)
2336
+ end
2337
+
2338
+ # Update properties of this object
2339
+ def update!(**args)
2340
+ @alternative_phrases = args[:alternative_phrases] if args.key?(:alternative_phrases)
2341
+ @frequency = args[:frequency] if args.key?(:frequency)
2342
+ @global_score = args[:global_score] if args.key?(:global_score)
2343
+ @group_id = args[:group_id] if args.key?(:group_id)
2344
+ @group_score = args[:group_score] if args.key?(:group_score)
2345
+ @language_code = args[:language_code] if args.key?(:language_code)
2346
+ @suggestion = args[:suggestion] if args.key?(:suggestion)
2347
+ end
2348
+ end
2349
+
2291
2350
  # Defines circumstances to be checked before allowing a behavior
2292
2351
  class GoogleCloudDiscoveryengineV1Condition
2293
2352
  include Google::Apis::Core::Hashable
@@ -3306,7 +3365,7 @@ module Google
3306
3365
 
3307
3366
  # The URI of the content. Only Cloud Storage URIs (e.g. `gs://bucket-name/path/
3308
3367
  # to/file`) are supported. The maximum file size is 2.5 MB for text-based
3309
- # formats, 100 MB for other formats.
3368
+ # formats, 200 MB for other formats.
3310
3369
  # Corresponds to the JSON property `uri`
3311
3370
  # @return [String]
3312
3371
  attr_accessor :uri
@@ -4057,6 +4116,128 @@ module Google
4057
4116
  end
4058
4117
  end
4059
4118
 
4119
+ # Metadata related to the progress of the ImportCompletionSuggestions operation.
4120
+ # This will be returned by the google.longrunning.Operation.metadata field.
4121
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata
4122
+ include Google::Apis::Core::Hashable
4123
+
4124
+ # Operation create time.
4125
+ # Corresponds to the JSON property `createTime`
4126
+ # @return [String]
4127
+ attr_accessor :create_time
4128
+
4129
+ # Count of CompletionSuggestions that failed to be imported.
4130
+ # Corresponds to the JSON property `failureCount`
4131
+ # @return [Fixnum]
4132
+ attr_accessor :failure_count
4133
+
4134
+ # Count of CompletionSuggestions successfully imported.
4135
+ # Corresponds to the JSON property `successCount`
4136
+ # @return [Fixnum]
4137
+ attr_accessor :success_count
4138
+
4139
+ # Operation last update time. If the operation is done, this is also the finish
4140
+ # time.
4141
+ # Corresponds to the JSON property `updateTime`
4142
+ # @return [String]
4143
+ attr_accessor :update_time
4144
+
4145
+ def initialize(**args)
4146
+ update!(**args)
4147
+ end
4148
+
4149
+ # Update properties of this object
4150
+ def update!(**args)
4151
+ @create_time = args[:create_time] if args.key?(:create_time)
4152
+ @failure_count = args[:failure_count] if args.key?(:failure_count)
4153
+ @success_count = args[:success_count] if args.key?(:success_count)
4154
+ @update_time = args[:update_time] if args.key?(:update_time)
4155
+ end
4156
+ end
4157
+
4158
+ # Request message for CompletionService.ImportCompletionSuggestions method.
4159
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest
4160
+ include Google::Apis::Core::Hashable
4161
+
4162
+ # BigQuery source import data from.
4163
+ # Corresponds to the JSON property `bigquerySource`
4164
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1BigQuerySource]
4165
+ attr_accessor :bigquery_source
4166
+
4167
+ # Configuration of destination for Import related errors.
4168
+ # Corresponds to the JSON property `errorConfig`
4169
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportErrorConfig]
4170
+ attr_accessor :error_config
4171
+
4172
+ # Cloud Storage location for input content.
4173
+ # Corresponds to the JSON property `gcsSource`
4174
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GcsSource]
4175
+ attr_accessor :gcs_source
4176
+
4177
+ # The inline source for CompletionSuggestions.
4178
+ # Corresponds to the JSON property `inlineSource`
4179
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequestInlineSource]
4180
+ attr_accessor :inline_source
4181
+
4182
+ def initialize(**args)
4183
+ update!(**args)
4184
+ end
4185
+
4186
+ # Update properties of this object
4187
+ def update!(**args)
4188
+ @bigquery_source = args[:bigquery_source] if args.key?(:bigquery_source)
4189
+ @error_config = args[:error_config] if args.key?(:error_config)
4190
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
4191
+ @inline_source = args[:inline_source] if args.key?(:inline_source)
4192
+ end
4193
+ end
4194
+
4195
+ # The inline source for CompletionSuggestions.
4196
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequestInlineSource
4197
+ include Google::Apis::Core::Hashable
4198
+
4199
+ # Required. A list of all denylist entries to import. Max of 1000 items.
4200
+ # Corresponds to the JSON property `suggestions`
4201
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1CompletionSuggestion>]
4202
+ attr_accessor :suggestions
4203
+
4204
+ def initialize(**args)
4205
+ update!(**args)
4206
+ end
4207
+
4208
+ # Update properties of this object
4209
+ def update!(**args)
4210
+ @suggestions = args[:suggestions] if args.key?(:suggestions)
4211
+ end
4212
+ end
4213
+
4214
+ # Response of the CompletionService.ImportCompletionSuggestions method. If the
4215
+ # long running operation is done, this message is returned by the google.
4216
+ # longrunning.Operations.response field if the operation is successful.
4217
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsResponse
4218
+ include Google::Apis::Core::Hashable
4219
+
4220
+ # Configuration of destination for Import related errors.
4221
+ # Corresponds to the JSON property `errorConfig`
4222
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportErrorConfig]
4223
+ attr_accessor :error_config
4224
+
4225
+ # A sample of errors encountered while processing the request.
4226
+ # Corresponds to the JSON property `errorSamples`
4227
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleRpcStatus>]
4228
+ attr_accessor :error_samples
4229
+
4230
+ def initialize(**args)
4231
+ update!(**args)
4232
+ end
4233
+
4234
+ # Update properties of this object
4235
+ def update!(**args)
4236
+ @error_config = args[:error_config] if args.key?(:error_config)
4237
+ @error_samples = args[:error_samples] if args.key?(:error_samples)
4238
+ end
4239
+ end
4240
+
4060
4241
  # Metadata related to the progress of the ImportDocuments operation. This is
4061
4242
  # returned by the google.longrunning.Operation.metadata field.
4062
4243
  class GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
@@ -5034,6 +5215,72 @@ module Google
5034
5215
  end
5035
5216
  end
5036
5217
 
5218
+ # Metadata related to the progress of the PurgeCompletionSuggestions operation.
5219
+ # This is returned by the google.longrunning.Operation.metadata field.
5220
+ class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsMetadata
5221
+ include Google::Apis::Core::Hashable
5222
+
5223
+ # Operation create time.
5224
+ # Corresponds to the JSON property `createTime`
5225
+ # @return [String]
5226
+ attr_accessor :create_time
5227
+
5228
+ # Operation last update time. If the operation is done, this is also the finish
5229
+ # time.
5230
+ # Corresponds to the JSON property `updateTime`
5231
+ # @return [String]
5232
+ attr_accessor :update_time
5233
+
5234
+ def initialize(**args)
5235
+ update!(**args)
5236
+ end
5237
+
5238
+ # Update properties of this object
5239
+ def update!(**args)
5240
+ @create_time = args[:create_time] if args.key?(:create_time)
5241
+ @update_time = args[:update_time] if args.key?(:update_time)
5242
+ end
5243
+ end
5244
+
5245
+ # Request message for CompletionService.PurgeCompletionSuggestions method.
5246
+ class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest
5247
+ include Google::Apis::Core::Hashable
5248
+
5249
+ def initialize(**args)
5250
+ update!(**args)
5251
+ end
5252
+
5253
+ # Update properties of this object
5254
+ def update!(**args)
5255
+ end
5256
+ end
5257
+
5258
+ # Response message for CompletionService.PurgeCompletionSuggestions method.
5259
+ class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsResponse
5260
+ include Google::Apis::Core::Hashable
5261
+
5262
+ # A sample of errors encountered while processing the request.
5263
+ # Corresponds to the JSON property `errorSamples`
5264
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleRpcStatus>]
5265
+ attr_accessor :error_samples
5266
+
5267
+ # Whether the completion suggestions were successfully purged.
5268
+ # Corresponds to the JSON property `purgeSucceeded`
5269
+ # @return [Boolean]
5270
+ attr_accessor :purge_succeeded
5271
+ alias_method :purge_succeeded?, :purge_succeeded
5272
+
5273
+ def initialize(**args)
5274
+ update!(**args)
5275
+ end
5276
+
5277
+ # Update properties of this object
5278
+ def update!(**args)
5279
+ @error_samples = args[:error_samples] if args.key?(:error_samples)
5280
+ @purge_succeeded = args[:purge_succeeded] if args.key?(:purge_succeeded)
5281
+ end
5282
+ end
5283
+
5037
5284
  # Metadata related to the progress of the PurgeDocuments operation. This will be
5038
5285
  # returned by the google.longrunning.Operation.metadata field.
5039
5286
  class GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata
@@ -5705,6 +5952,14 @@ module Google
5705
5952
  # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SearchRequestImageQuery]
5706
5953
  attr_accessor :image_query
5707
5954
 
5955
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
5956
+ # see [Standard fields](https://cloud.google.com/apis/design/standard_fields).
5957
+ # This field helps to better interpret the query. If a value isn't specified,
5958
+ # the query language code is automatically detected, which may not be accurate.
5959
+ # Corresponds to the JSON property `languageCode`
5960
+ # @return [String]
5961
+ attr_accessor :language_code
5962
+
5708
5963
  # A 0-indexed integer that specifies the current offset (that is, starting
5709
5964
  # result location, amongst the Documents deemed by the API as relevant) in
5710
5965
  # search results. This field is only considered if page_token is unset. If this
@@ -5818,6 +6073,7 @@ module Google
5818
6073
  @facet_specs = args[:facet_specs] if args.key?(:facet_specs)
5819
6074
  @filter = args[:filter] if args.key?(:filter)
5820
6075
  @image_query = args[:image_query] if args.key?(:image_query)
6076
+ @language_code = args[:language_code] if args.key?(:language_code)
5821
6077
  @offset = args[:offset] if args.key?(:offset)
5822
6078
  @order_by = args[:order_by] if args.key?(:order_by)
5823
6079
  @page_size = args[:page_size] if args.key?(:page_size)
@@ -6289,7 +6545,10 @@ module Google
6289
6545
 
6290
6546
  # Maximum facet values that are returned for this facet. If unspecified,
6291
6547
  # defaults to 20. The maximum allowed value is 300. Values above 300 are coerced
6292
- # to 300. If this field is negative, an `INVALID_ARGUMENT` is returned.
6548
+ # to 300. For aggregation in healthcare search, when the [FacetKey.key] is "
6549
+ # healthcare_aggregation_key", the limit will be overridden to 10,000 internally,
6550
+ # regardless of the value set here. If this field is negative, an `
6551
+ # INVALID_ARGUMENT` is returned.
6293
6552
  # Corresponds to the JSON property `limit`
6294
6553
  # @return [Fixnum]
6295
6554
  attr_accessor :limit
@@ -8707,6 +8966,11 @@ module Google
8707
8966
  # @return [String]
8708
8967
  attr_accessor :industry_vertical
8709
8968
 
8969
+ # Language info for DataStore.
8970
+ # Corresponds to the JSON property `languageInfo`
8971
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaLanguageInfo]
8972
+ attr_accessor :language_info
8973
+
8710
8974
  # Immutable. The full resource name of the data store. Format: `projects/`
8711
8975
  # project`/locations/`location`/collections/`collection_id`/dataStores/`
8712
8976
  # data_store_id``. This field must be a UTF-8 encoded string with a length limit
@@ -8742,6 +9006,7 @@ module Google
8742
9006
  @document_processing_config = args[:document_processing_config] if args.key?(:document_processing_config)
8743
9007
  @idp_config = args[:idp_config] if args.key?(:idp_config)
8744
9008
  @industry_vertical = args[:industry_vertical] if args.key?(:industry_vertical)
9009
+ @language_info = args[:language_info] if args.key?(:language_info)
8745
9010
  @name = args[:name] if args.key?(:name)
8746
9011
  @solution_types = args[:solution_types] if args.key?(:solution_types)
8747
9012
  @starting_schema = args[:starting_schema] if args.key?(:starting_schema)
@@ -9740,6 +10005,72 @@ module Google
9740
10005
  end
9741
10006
  end
9742
10007
 
10008
+ # Metadata related to the progress of the ImportCompletionSuggestions operation.
10009
+ # This will be returned by the google.longrunning.Operation.metadata field.
10010
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsMetadata
10011
+ include Google::Apis::Core::Hashable
10012
+
10013
+ # Operation create time.
10014
+ # Corresponds to the JSON property `createTime`
10015
+ # @return [String]
10016
+ attr_accessor :create_time
10017
+
10018
+ # Count of CompletionSuggestions that failed to be imported.
10019
+ # Corresponds to the JSON property `failureCount`
10020
+ # @return [Fixnum]
10021
+ attr_accessor :failure_count
10022
+
10023
+ # Count of CompletionSuggestions successfully imported.
10024
+ # Corresponds to the JSON property `successCount`
10025
+ # @return [Fixnum]
10026
+ attr_accessor :success_count
10027
+
10028
+ # Operation last update time. If the operation is done, this is also the finish
10029
+ # time.
10030
+ # Corresponds to the JSON property `updateTime`
10031
+ # @return [String]
10032
+ attr_accessor :update_time
10033
+
10034
+ def initialize(**args)
10035
+ update!(**args)
10036
+ end
10037
+
10038
+ # Update properties of this object
10039
+ def update!(**args)
10040
+ @create_time = args[:create_time] if args.key?(:create_time)
10041
+ @failure_count = args[:failure_count] if args.key?(:failure_count)
10042
+ @success_count = args[:success_count] if args.key?(:success_count)
10043
+ @update_time = args[:update_time] if args.key?(:update_time)
10044
+ end
10045
+ end
10046
+
10047
+ # Response of the CompletionService.ImportCompletionSuggestions method. If the
10048
+ # long running operation is done, this message is returned by the google.
10049
+ # longrunning.Operations.response field if the operation is successful.
10050
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse
10051
+ include Google::Apis::Core::Hashable
10052
+
10053
+ # Configuration of destination for Import related errors.
10054
+ # Corresponds to the JSON property `errorConfig`
10055
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaImportErrorConfig]
10056
+ attr_accessor :error_config
10057
+
10058
+ # A sample of errors encountered while processing the request.
10059
+ # Corresponds to the JSON property `errorSamples`
10060
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleRpcStatus>]
10061
+ attr_accessor :error_samples
10062
+
10063
+ def initialize(**args)
10064
+ update!(**args)
10065
+ end
10066
+
10067
+ # Update properties of this object
10068
+ def update!(**args)
10069
+ @error_config = args[:error_config] if args.key?(:error_config)
10070
+ @error_samples = args[:error_samples] if args.key?(:error_samples)
10071
+ end
10072
+ end
10073
+
9743
10074
  # Metadata related to the progress of the ImportDocuments operation. This is
9744
10075
  # returned by the google.longrunning.Operation.metadata field.
9745
10076
  class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
@@ -9970,6 +10301,47 @@ module Google
9970
10301
  end
9971
10302
  end
9972
10303
 
10304
+ # Language info for DataStore.
10305
+ class GoogleCloudDiscoveryengineV1alphaLanguageInfo
10306
+ include Google::Apis::Core::Hashable
10307
+
10308
+ # Output only. Language part of normalized_language_code. E.g.: `en-US` -> `en`,
10309
+ # `zh-Hans-HK` -> `zh`, `en` -> `en`.
10310
+ # Corresponds to the JSON property `language`
10311
+ # @return [String]
10312
+ attr_accessor :language
10313
+
10314
+ # The language code for the DataStore.
10315
+ # Corresponds to the JSON property `languageCode`
10316
+ # @return [String]
10317
+ attr_accessor :language_code
10318
+
10319
+ # Output only. This is the normalized form of language_code. E.g.: language_code
10320
+ # of `en-GB`, `en_GB`, `en-UK` or `en-gb` will have normalized_language_code of `
10321
+ # en-GB`.
10322
+ # Corresponds to the JSON property `normalizedLanguageCode`
10323
+ # @return [String]
10324
+ attr_accessor :normalized_language_code
10325
+
10326
+ # Output only. Region part of normalized_language_code, if present. E.g.: `en-US`
10327
+ # -> `US`, `zh-Hans-HK` -> `HK`, `en` -> ``.
10328
+ # Corresponds to the JSON property `region`
10329
+ # @return [String]
10330
+ attr_accessor :region
10331
+
10332
+ def initialize(**args)
10333
+ update!(**args)
10334
+ end
10335
+
10336
+ # Update properties of this object
10337
+ def update!(**args)
10338
+ @language = args[:language] if args.key?(:language)
10339
+ @language_code = args[:language_code] if args.key?(:language_code)
10340
+ @normalized_language_code = args[:normalized_language_code] if args.key?(:normalized_language_code)
10341
+ @region = args[:region] if args.key?(:region)
10342
+ end
10343
+ end
10344
+
9973
10345
  # Response message for SearchTuningService.ListCustomModels method.
9974
10346
  class GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse
9975
10347
  include Google::Apis::Core::Hashable
@@ -10091,6 +10463,59 @@ module Google
10091
10463
  end
10092
10464
  end
10093
10465
 
10466
+ # Metadata related to the progress of the PurgeCompletionSuggestions operation.
10467
+ # This is returned by the google.longrunning.Operation.metadata field.
10468
+ class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsMetadata
10469
+ include Google::Apis::Core::Hashable
10470
+
10471
+ # Operation create time.
10472
+ # Corresponds to the JSON property `createTime`
10473
+ # @return [String]
10474
+ attr_accessor :create_time
10475
+
10476
+ # Operation last update time. If the operation is done, this is also the finish
10477
+ # time.
10478
+ # Corresponds to the JSON property `updateTime`
10479
+ # @return [String]
10480
+ attr_accessor :update_time
10481
+
10482
+ def initialize(**args)
10483
+ update!(**args)
10484
+ end
10485
+
10486
+ # Update properties of this object
10487
+ def update!(**args)
10488
+ @create_time = args[:create_time] if args.key?(:create_time)
10489
+ @update_time = args[:update_time] if args.key?(:update_time)
10490
+ end
10491
+ end
10492
+
10493
+ # Response message for CompletionService.PurgeCompletionSuggestions method.
10494
+ class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsResponse
10495
+ include Google::Apis::Core::Hashable
10496
+
10497
+ # A sample of errors encountered while processing the request.
10498
+ # Corresponds to the JSON property `errorSamples`
10499
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleRpcStatus>]
10500
+ attr_accessor :error_samples
10501
+
10502
+ # Whether the completion suggestions were successfully purged.
10503
+ # Corresponds to the JSON property `purgeSucceeded`
10504
+ # @return [Boolean]
10505
+ attr_accessor :purge_succeeded
10506
+ alias_method :purge_succeeded?, :purge_succeeded
10507
+
10508
+ def initialize(**args)
10509
+ update!(**args)
10510
+ end
10511
+
10512
+ # Update properties of this object
10513
+ def update!(**args)
10514
+ @error_samples = args[:error_samples] if args.key?(:error_samples)
10515
+ @purge_succeeded = args[:purge_succeeded] if args.key?(:purge_succeeded)
10516
+ end
10517
+ end
10518
+
10094
10519
  # Metadata related to the progress of the PurgeDocuments operation. This will be
10095
10520
  # returned by the google.longrunning.Operation.metadata field.
10096
10521
  class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
@@ -11389,6 +11814,11 @@ module Google
11389
11814
  # @return [String]
11390
11815
  attr_accessor :industry_vertical
11391
11816
 
11817
+ # Language info for DataStore.
11818
+ # Corresponds to the JSON property `languageInfo`
11819
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaLanguageInfo]
11820
+ attr_accessor :language_info
11821
+
11392
11822
  # Immutable. The full resource name of the data store. Format: `projects/`
11393
11823
  # project`/locations/`location`/collections/`collection_id`/dataStores/`
11394
11824
  # data_store_id``. This field must be a UTF-8 encoded string with a length limit
@@ -11422,6 +11852,7 @@ module Google
11422
11852
  @display_name = args[:display_name] if args.key?(:display_name)
11423
11853
  @document_processing_config = args[:document_processing_config] if args.key?(:document_processing_config)
11424
11854
  @industry_vertical = args[:industry_vertical] if args.key?(:industry_vertical)
11855
+ @language_info = args[:language_info] if args.key?(:language_info)
11425
11856
  @name = args[:name] if args.key?(:name)
11426
11857
  @solution_types = args[:solution_types] if args.key?(:solution_types)
11427
11858
  @starting_schema = args[:starting_schema] if args.key?(:starting_schema)
@@ -12037,6 +12468,72 @@ module Google
12037
12468
  end
12038
12469
  end
12039
12470
 
12471
+ # Metadata related to the progress of the ImportCompletionSuggestions operation.
12472
+ # This will be returned by the google.longrunning.Operation.metadata field.
12473
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata
12474
+ include Google::Apis::Core::Hashable
12475
+
12476
+ # Operation create time.
12477
+ # Corresponds to the JSON property `createTime`
12478
+ # @return [String]
12479
+ attr_accessor :create_time
12480
+
12481
+ # Count of CompletionSuggestions that failed to be imported.
12482
+ # Corresponds to the JSON property `failureCount`
12483
+ # @return [Fixnum]
12484
+ attr_accessor :failure_count
12485
+
12486
+ # Count of CompletionSuggestions successfully imported.
12487
+ # Corresponds to the JSON property `successCount`
12488
+ # @return [Fixnum]
12489
+ attr_accessor :success_count
12490
+
12491
+ # Operation last update time. If the operation is done, this is also the finish
12492
+ # time.
12493
+ # Corresponds to the JSON property `updateTime`
12494
+ # @return [String]
12495
+ attr_accessor :update_time
12496
+
12497
+ def initialize(**args)
12498
+ update!(**args)
12499
+ end
12500
+
12501
+ # Update properties of this object
12502
+ def update!(**args)
12503
+ @create_time = args[:create_time] if args.key?(:create_time)
12504
+ @failure_count = args[:failure_count] if args.key?(:failure_count)
12505
+ @success_count = args[:success_count] if args.key?(:success_count)
12506
+ @update_time = args[:update_time] if args.key?(:update_time)
12507
+ end
12508
+ end
12509
+
12510
+ # Response of the CompletionService.ImportCompletionSuggestions method. If the
12511
+ # long running operation is done, this message is returned by the google.
12512
+ # longrunning.Operations.response field if the operation is successful.
12513
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsResponse
12514
+ include Google::Apis::Core::Hashable
12515
+
12516
+ # Configuration of destination for Import related errors.
12517
+ # Corresponds to the JSON property `errorConfig`
12518
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaImportErrorConfig]
12519
+ attr_accessor :error_config
12520
+
12521
+ # A sample of errors encountered while processing the request.
12522
+ # Corresponds to the JSON property `errorSamples`
12523
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleRpcStatus>]
12524
+ attr_accessor :error_samples
12525
+
12526
+ def initialize(**args)
12527
+ update!(**args)
12528
+ end
12529
+
12530
+ # Update properties of this object
12531
+ def update!(**args)
12532
+ @error_config = args[:error_config] if args.key?(:error_config)
12533
+ @error_samples = args[:error_samples] if args.key?(:error_samples)
12534
+ end
12535
+ end
12536
+
12040
12537
  # Metadata related to the progress of the ImportDocuments operation. This is
12041
12538
  # returned by the google.longrunning.Operation.metadata field.
12042
12539
  class GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata
@@ -12267,6 +12764,47 @@ module Google
12267
12764
  end
12268
12765
  end
12269
12766
 
12767
+ # Language info for DataStore.
12768
+ class GoogleCloudDiscoveryengineV1betaLanguageInfo
12769
+ include Google::Apis::Core::Hashable
12770
+
12771
+ # Output only. Language part of normalized_language_code. E.g.: `en-US` -> `en`,
12772
+ # `zh-Hans-HK` -> `zh`, `en` -> `en`.
12773
+ # Corresponds to the JSON property `language`
12774
+ # @return [String]
12775
+ attr_accessor :language
12776
+
12777
+ # The language code for the DataStore.
12778
+ # Corresponds to the JSON property `languageCode`
12779
+ # @return [String]
12780
+ attr_accessor :language_code
12781
+
12782
+ # Output only. This is the normalized form of language_code. E.g.: language_code
12783
+ # of `en-GB`, `en_GB`, `en-UK` or `en-gb` will have normalized_language_code of `
12784
+ # en-GB`.
12785
+ # Corresponds to the JSON property `normalizedLanguageCode`
12786
+ # @return [String]
12787
+ attr_accessor :normalized_language_code
12788
+
12789
+ # Output only. Region part of normalized_language_code, if present. E.g.: `en-US`
12790
+ # -> `US`, `zh-Hans-HK` -> `HK`, `en` -> ``.
12791
+ # Corresponds to the JSON property `region`
12792
+ # @return [String]
12793
+ attr_accessor :region
12794
+
12795
+ def initialize(**args)
12796
+ update!(**args)
12797
+ end
12798
+
12799
+ # Update properties of this object
12800
+ def update!(**args)
12801
+ @language = args[:language] if args.key?(:language)
12802
+ @language_code = args[:language_code] if args.key?(:language_code)
12803
+ @normalized_language_code = args[:normalized_language_code] if args.key?(:normalized_language_code)
12804
+ @region = args[:region] if args.key?(:region)
12805
+ end
12806
+ end
12807
+
12270
12808
  # Response message for SearchTuningService.ListCustomModels method.
12271
12809
  class GoogleCloudDiscoveryengineV1betaListCustomModelsResponse
12272
12810
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DiscoveryengineV1
18
18
  # Version of the google-apis-discoveryengine_v1 gem
19
- GEM_VERSION = "0.6.0"
19
+ GEM_VERSION = "0.8.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
@@ -412,6 +412,12 @@ module Google
412
412
  include Google::Apis::Core::JsonObjectSupport
413
413
  end
414
414
 
415
+ class GoogleCloudDiscoveryengineV1CompletionSuggestion
416
+ class Representation < Google::Apis::Core::JsonRepresentation; end
417
+
418
+ include Google::Apis::Core::JsonObjectSupport
419
+ end
420
+
415
421
  class GoogleCloudDiscoveryengineV1Condition
416
422
  class Representation < Google::Apis::Core::JsonRepresentation; end
417
423
 
@@ -724,6 +730,30 @@ module Google
724
730
  include Google::Apis::Core::JsonObjectSupport
725
731
  end
726
732
 
733
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata
734
+ class Representation < Google::Apis::Core::JsonRepresentation; end
735
+
736
+ include Google::Apis::Core::JsonObjectSupport
737
+ end
738
+
739
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest
740
+ class Representation < Google::Apis::Core::JsonRepresentation; end
741
+
742
+ include Google::Apis::Core::JsonObjectSupport
743
+ end
744
+
745
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequestInlineSource
746
+ class Representation < Google::Apis::Core::JsonRepresentation; end
747
+
748
+ include Google::Apis::Core::JsonObjectSupport
749
+ end
750
+
751
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsResponse
752
+ class Representation < Google::Apis::Core::JsonRepresentation; end
753
+
754
+ include Google::Apis::Core::JsonObjectSupport
755
+ end
756
+
727
757
  class GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
728
758
  class Representation < Google::Apis::Core::JsonRepresentation; end
729
759
 
@@ -898,6 +928,24 @@ module Google
898
928
  include Google::Apis::Core::JsonObjectSupport
899
929
  end
900
930
 
931
+ class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsMetadata
932
+ class Representation < Google::Apis::Core::JsonRepresentation; end
933
+
934
+ include Google::Apis::Core::JsonObjectSupport
935
+ end
936
+
937
+ class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest
938
+ class Representation < Google::Apis::Core::JsonRepresentation; end
939
+
940
+ include Google::Apis::Core::JsonObjectSupport
941
+ end
942
+
943
+ class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsResponse
944
+ class Representation < Google::Apis::Core::JsonRepresentation; end
945
+
946
+ include Google::Apis::Core::JsonObjectSupport
947
+ end
948
+
901
949
  class GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata
902
950
  class Representation < Google::Apis::Core::JsonRepresentation; end
903
951
 
@@ -1648,6 +1696,18 @@ module Google
1648
1696
  include Google::Apis::Core::JsonObjectSupport
1649
1697
  end
1650
1698
 
1699
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsMetadata
1700
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1701
+
1702
+ include Google::Apis::Core::JsonObjectSupport
1703
+ end
1704
+
1705
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse
1706
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1707
+
1708
+ include Google::Apis::Core::JsonObjectSupport
1709
+ end
1710
+
1651
1711
  class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
1652
1712
  class Representation < Google::Apis::Core::JsonRepresentation; end
1653
1713
 
@@ -1690,6 +1750,12 @@ module Google
1690
1750
  include Google::Apis::Core::JsonObjectSupport
1691
1751
  end
1692
1752
 
1753
+ class GoogleCloudDiscoveryengineV1alphaLanguageInfo
1754
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1755
+
1756
+ include Google::Apis::Core::JsonObjectSupport
1757
+ end
1758
+
1693
1759
  class GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse
1694
1760
  class Representation < Google::Apis::Core::JsonRepresentation; end
1695
1761
 
@@ -1714,6 +1780,18 @@ module Google
1714
1780
  include Google::Apis::Core::JsonObjectSupport
1715
1781
  end
1716
1782
 
1783
+ class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsMetadata
1784
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1785
+
1786
+ include Google::Apis::Core::JsonObjectSupport
1787
+ end
1788
+
1789
+ class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsResponse
1790
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1791
+
1792
+ include Google::Apis::Core::JsonObjectSupport
1793
+ end
1794
+
1717
1795
  class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
1718
1796
  class Representation < Google::Apis::Core::JsonRepresentation; end
1719
1797
 
@@ -2080,6 +2158,18 @@ module Google
2080
2158
  include Google::Apis::Core::JsonObjectSupport
2081
2159
  end
2082
2160
 
2161
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata
2162
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2163
+
2164
+ include Google::Apis::Core::JsonObjectSupport
2165
+ end
2166
+
2167
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsResponse
2168
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2169
+
2170
+ include Google::Apis::Core::JsonObjectSupport
2171
+ end
2172
+
2083
2173
  class GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata
2084
2174
  class Representation < Google::Apis::Core::JsonRepresentation; end
2085
2175
 
@@ -2122,6 +2212,12 @@ module Google
2122
2212
  include Google::Apis::Core::JsonObjectSupport
2123
2213
  end
2124
2214
 
2215
+ class GoogleCloudDiscoveryengineV1betaLanguageInfo
2216
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2217
+
2218
+ include Google::Apis::Core::JsonObjectSupport
2219
+ end
2220
+
2125
2221
  class GoogleCloudDiscoveryengineV1betaListCustomModelsResponse
2126
2222
  class Representation < Google::Apis::Core::JsonRepresentation; end
2127
2223
 
@@ -2919,6 +3015,19 @@ module Google
2919
3015
  end
2920
3016
  end
2921
3017
 
3018
+ class GoogleCloudDiscoveryengineV1CompletionSuggestion
3019
+ # @private
3020
+ class Representation < Google::Apis::Core::JsonRepresentation
3021
+ collection :alternative_phrases, as: 'alternativePhrases'
3022
+ property :frequency, :numeric_string => true, as: 'frequency'
3023
+ property :global_score, as: 'globalScore'
3024
+ property :group_id, as: 'groupId'
3025
+ property :group_score, as: 'groupScore'
3026
+ property :language_code, as: 'languageCode'
3027
+ property :suggestion, as: 'suggestion'
3028
+ end
3029
+ end
3030
+
2922
3031
  class GoogleCloudDiscoveryengineV1Condition
2923
3032
  # @private
2924
3033
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3410,6 +3519,48 @@ module Google
3410
3519
  end
3411
3520
  end
3412
3521
 
3522
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata
3523
+ # @private
3524
+ class Representation < Google::Apis::Core::JsonRepresentation
3525
+ property :create_time, as: 'createTime'
3526
+ property :failure_count, :numeric_string => true, as: 'failureCount'
3527
+ property :success_count, :numeric_string => true, as: 'successCount'
3528
+ property :update_time, as: 'updateTime'
3529
+ end
3530
+ end
3531
+
3532
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest
3533
+ # @private
3534
+ class Representation < Google::Apis::Core::JsonRepresentation
3535
+ property :bigquery_source, as: 'bigquerySource', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1BigQuerySource, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1BigQuerySource::Representation
3536
+
3537
+ property :error_config, as: 'errorConfig', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportErrorConfig, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportErrorConfig::Representation
3538
+
3539
+ property :gcs_source, as: 'gcsSource', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GcsSource, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GcsSource::Representation
3540
+
3541
+ property :inline_source, as: 'inlineSource', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequestInlineSource, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequestInlineSource::Representation
3542
+
3543
+ end
3544
+ end
3545
+
3546
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequestInlineSource
3547
+ # @private
3548
+ class Representation < Google::Apis::Core::JsonRepresentation
3549
+ collection :suggestions, as: 'suggestions', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1CompletionSuggestion, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1CompletionSuggestion::Representation
3550
+
3551
+ end
3552
+ end
3553
+
3554
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsResponse
3555
+ # @private
3556
+ class Representation < Google::Apis::Core::JsonRepresentation
3557
+ property :error_config, as: 'errorConfig', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportErrorConfig, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportErrorConfig::Representation
3558
+
3559
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1::GoogleRpcStatus::Representation
3560
+
3561
+ end
3562
+ end
3563
+
3413
3564
  class GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
3414
3565
  # @private
3415
3566
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3703,6 +3854,29 @@ module Google
3703
3854
  end
3704
3855
  end
3705
3856
 
3857
+ class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsMetadata
3858
+ # @private
3859
+ class Representation < Google::Apis::Core::JsonRepresentation
3860
+ property :create_time, as: 'createTime'
3861
+ property :update_time, as: 'updateTime'
3862
+ end
3863
+ end
3864
+
3865
+ class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest
3866
+ # @private
3867
+ class Representation < Google::Apis::Core::JsonRepresentation
3868
+ end
3869
+ end
3870
+
3871
+ class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsResponse
3872
+ # @private
3873
+ class Representation < Google::Apis::Core::JsonRepresentation
3874
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1::GoogleRpcStatus::Representation
3875
+
3876
+ property :purge_succeeded, as: 'purgeSucceeded'
3877
+ end
3878
+ end
3879
+
3706
3880
  class GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata
3707
3881
  # @private
3708
3882
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3875,6 +4049,7 @@ module Google
3875
4049
  property :filter, as: 'filter'
3876
4050
  property :image_query, as: 'imageQuery', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SearchRequestImageQuery, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SearchRequestImageQuery::Representation
3877
4051
 
4052
+ property :language_code, as: 'languageCode'
3878
4053
  property :offset, as: 'offset'
3879
4054
  property :order_by, as: 'orderBy'
3880
4055
  property :page_size, as: 'pageSize'
@@ -4670,6 +4845,8 @@ module Google
4670
4845
  property :idp_config, as: 'idpConfig', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaIdpConfig, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaIdpConfig::Representation
4671
4846
 
4672
4847
  property :industry_vertical, as: 'industryVertical'
4848
+ property :language_info, as: 'languageInfo', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaLanguageInfo, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaLanguageInfo::Representation
4849
+
4673
4850
  property :name, as: 'name'
4674
4851
  collection :solution_types, as: 'solutionTypes'
4675
4852
  property :starting_schema, as: 'startingSchema', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSchema, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSchema::Representation
@@ -4949,6 +5126,26 @@ module Google
4949
5126
  end
4950
5127
  end
4951
5128
 
5129
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsMetadata
5130
+ # @private
5131
+ class Representation < Google::Apis::Core::JsonRepresentation
5132
+ property :create_time, as: 'createTime'
5133
+ property :failure_count, :numeric_string => true, as: 'failureCount'
5134
+ property :success_count, :numeric_string => true, as: 'successCount'
5135
+ property :update_time, as: 'updateTime'
5136
+ end
5137
+ end
5138
+
5139
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse
5140
+ # @private
5141
+ class Representation < Google::Apis::Core::JsonRepresentation
5142
+ property :error_config, as: 'errorConfig', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaImportErrorConfig, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaImportErrorConfig::Representation
5143
+
5144
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1::GoogleRpcStatus::Representation
5145
+
5146
+ end
5147
+ end
5148
+
4952
5149
  class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
4953
5150
  # @private
4954
5151
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5017,6 +5214,16 @@ module Google
5017
5214
  end
5018
5215
  end
5019
5216
 
5217
+ class GoogleCloudDiscoveryengineV1alphaLanguageInfo
5218
+ # @private
5219
+ class Representation < Google::Apis::Core::JsonRepresentation
5220
+ property :language, as: 'language'
5221
+ property :language_code, as: 'languageCode'
5222
+ property :normalized_language_code, as: 'normalizedLanguageCode'
5223
+ property :region, as: 'region'
5224
+ end
5225
+ end
5226
+
5020
5227
  class GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse
5021
5228
  # @private
5022
5229
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5053,6 +5260,23 @@ module Google
5053
5260
  end
5054
5261
  end
5055
5262
 
5263
+ class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsMetadata
5264
+ # @private
5265
+ class Representation < Google::Apis::Core::JsonRepresentation
5266
+ property :create_time, as: 'createTime'
5267
+ property :update_time, as: 'updateTime'
5268
+ end
5269
+ end
5270
+
5271
+ class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsResponse
5272
+ # @private
5273
+ class Representation < Google::Apis::Core::JsonRepresentation
5274
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1::GoogleRpcStatus::Representation
5275
+
5276
+ property :purge_succeeded, as: 'purgeSucceeded'
5277
+ end
5278
+ end
5279
+
5056
5280
  class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
5057
5281
  # @private
5058
5282
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5425,6 +5649,8 @@ module Google
5425
5649
  property :document_processing_config, as: 'documentProcessingConfig', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig::Representation
5426
5650
 
5427
5651
  property :industry_vertical, as: 'industryVertical'
5652
+ property :language_info, as: 'languageInfo', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaLanguageInfo, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaLanguageInfo::Representation
5653
+
5428
5654
  property :name, as: 'name'
5429
5655
  collection :solution_types, as: 'solutionTypes'
5430
5656
  property :starting_schema, as: 'startingSchema', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSchema, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSchema::Representation
@@ -5615,6 +5841,26 @@ module Google
5615
5841
  end
5616
5842
  end
5617
5843
 
5844
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata
5845
+ # @private
5846
+ class Representation < Google::Apis::Core::JsonRepresentation
5847
+ property :create_time, as: 'createTime'
5848
+ property :failure_count, :numeric_string => true, as: 'failureCount'
5849
+ property :success_count, :numeric_string => true, as: 'successCount'
5850
+ property :update_time, as: 'updateTime'
5851
+ end
5852
+ end
5853
+
5854
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsResponse
5855
+ # @private
5856
+ class Representation < Google::Apis::Core::JsonRepresentation
5857
+ property :error_config, as: 'errorConfig', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaImportErrorConfig, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaImportErrorConfig::Representation
5858
+
5859
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1::GoogleRpcStatus::Representation
5860
+
5861
+ end
5862
+ end
5863
+
5618
5864
  class GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata
5619
5865
  # @private
5620
5866
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5683,6 +5929,16 @@ module Google
5683
5929
  end
5684
5930
  end
5685
5931
 
5932
+ class GoogleCloudDiscoveryengineV1betaLanguageInfo
5933
+ # @private
5934
+ class Representation < Google::Apis::Core::JsonRepresentation
5935
+ property :language, as: 'language'
5936
+ property :language_code, as: 'languageCode'
5937
+ property :normalized_language_code, as: 'normalizedLanguageCode'
5938
+ property :region, as: 'region'
5939
+ end
5940
+ end
5941
+
5686
5942
  class GoogleCloudDiscoveryengineV1betaListCustomModelsResponse
5687
5943
  # @private
5688
5944
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -852,6 +852,75 @@ module Google
852
852
  execute_or_queue_command(command, &block)
853
853
  end
854
854
 
855
+ # Imports CompletionSuggestions for a DataStore.
856
+ # @param [String] parent
857
+ # Required. The parent data store resource name for which to import customer
858
+ # autocomplete suggestions. Follows pattern `projects/*/locations/*/collections/*
859
+ # /dataStores/*`
860
+ # @param [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest] google_cloud_discoveryengine_v1_import_completion_suggestions_request_object
861
+ # @param [String] fields
862
+ # Selector specifying which fields to include in a partial response.
863
+ # @param [String] quota_user
864
+ # Available to use for quota purposes for server-side applications. Can be any
865
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
866
+ # @param [Google::Apis::RequestOptions] options
867
+ # Request-specific options
868
+ #
869
+ # @yield [result, err] Result & error if block supplied
870
+ # @yieldparam result [Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation] parsed result object
871
+ # @yieldparam err [StandardError] error object if request failed
872
+ #
873
+ # @return [Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation]
874
+ #
875
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
876
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
877
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
878
+ def import_project_location_collection_data_store_completion_suggestion(parent, google_cloud_discoveryengine_v1_import_completion_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
879
+ command = make_simple_command(:post, 'v1/{+parent}/completionSuggestions:import', options)
880
+ command.request_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest::Representation
881
+ command.request_object = google_cloud_discoveryengine_v1_import_completion_suggestions_request_object
882
+ command.response_representation = Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation::Representation
883
+ command.response_class = Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation
884
+ command.params['parent'] = parent unless parent.nil?
885
+ command.query['fields'] = fields unless fields.nil?
886
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
887
+ execute_or_queue_command(command, &block)
888
+ end
889
+
890
+ # Permanently deletes all CompletionSuggestions for a DataStore.
891
+ # @param [String] parent
892
+ # Required. The parent data store resource name for which to purge completion
893
+ # suggestions. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
894
+ # @param [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest] google_cloud_discoveryengine_v1_purge_completion_suggestions_request_object
895
+ # @param [String] fields
896
+ # Selector specifying which fields to include in a partial response.
897
+ # @param [String] quota_user
898
+ # Available to use for quota purposes for server-side applications. Can be any
899
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
900
+ # @param [Google::Apis::RequestOptions] options
901
+ # Request-specific options
902
+ #
903
+ # @yield [result, err] Result & error if block supplied
904
+ # @yieldparam result [Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation] parsed result object
905
+ # @yieldparam err [StandardError] error object if request failed
906
+ #
907
+ # @return [Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation]
908
+ #
909
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
910
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
911
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
912
+ def purge_project_location_collection_data_store_completion_suggestion(parent, google_cloud_discoveryengine_v1_purge_completion_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
913
+ command = make_simple_command(:post, 'v1/{+parent}/completionSuggestions:purge', options)
914
+ command.request_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest::Representation
915
+ command.request_object = google_cloud_discoveryengine_v1_purge_completion_suggestions_request_object
916
+ command.response_representation = Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation::Representation
917
+ command.response_class = Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation
918
+ command.params['parent'] = parent unless parent.nil?
919
+ command.query['fields'] = fields unless fields.nil?
920
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
921
+ execute_or_queue_command(command, &block)
922
+ end
923
+
855
924
  # Creates a Control. By default 1000 controls are allowed for a data store. A
856
925
  # request can be submitted to adjust this limit. If the Control to create
857
926
  # already exists, an ALREADY_EXISTS error is returned.
@@ -4535,6 +4604,75 @@ module Google
4535
4604
  execute_or_queue_command(command, &block)
4536
4605
  end
4537
4606
 
4607
+ # Imports CompletionSuggestions for a DataStore.
4608
+ # @param [String] parent
4609
+ # Required. The parent data store resource name for which to import customer
4610
+ # autocomplete suggestions. Follows pattern `projects/*/locations/*/collections/*
4611
+ # /dataStores/*`
4612
+ # @param [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest] google_cloud_discoveryengine_v1_import_completion_suggestions_request_object
4613
+ # @param [String] fields
4614
+ # Selector specifying which fields to include in a partial response.
4615
+ # @param [String] quota_user
4616
+ # Available to use for quota purposes for server-side applications. Can be any
4617
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4618
+ # @param [Google::Apis::RequestOptions] options
4619
+ # Request-specific options
4620
+ #
4621
+ # @yield [result, err] Result & error if block supplied
4622
+ # @yieldparam result [Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation] parsed result object
4623
+ # @yieldparam err [StandardError] error object if request failed
4624
+ #
4625
+ # @return [Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation]
4626
+ #
4627
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4628
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4629
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4630
+ def import_project_location_data_store_completion_suggestion(parent, google_cloud_discoveryengine_v1_import_completion_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4631
+ command = make_simple_command(:post, 'v1/{+parent}/completionSuggestions:import', options)
4632
+ command.request_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest::Representation
4633
+ command.request_object = google_cloud_discoveryengine_v1_import_completion_suggestions_request_object
4634
+ command.response_representation = Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation::Representation
4635
+ command.response_class = Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation
4636
+ command.params['parent'] = parent unless parent.nil?
4637
+ command.query['fields'] = fields unless fields.nil?
4638
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4639
+ execute_or_queue_command(command, &block)
4640
+ end
4641
+
4642
+ # Permanently deletes all CompletionSuggestions for a DataStore.
4643
+ # @param [String] parent
4644
+ # Required. The parent data store resource name for which to purge completion
4645
+ # suggestions. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
4646
+ # @param [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest] google_cloud_discoveryengine_v1_purge_completion_suggestions_request_object
4647
+ # @param [String] fields
4648
+ # Selector specifying which fields to include in a partial response.
4649
+ # @param [String] quota_user
4650
+ # Available to use for quota purposes for server-side applications. Can be any
4651
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4652
+ # @param [Google::Apis::RequestOptions] options
4653
+ # Request-specific options
4654
+ #
4655
+ # @yield [result, err] Result & error if block supplied
4656
+ # @yieldparam result [Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation] parsed result object
4657
+ # @yieldparam err [StandardError] error object if request failed
4658
+ #
4659
+ # @return [Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation]
4660
+ #
4661
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4662
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4663
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4664
+ def purge_project_location_data_store_completion_suggestion(parent, google_cloud_discoveryengine_v1_purge_completion_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4665
+ command = make_simple_command(:post, 'v1/{+parent}/completionSuggestions:purge', options)
4666
+ command.request_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest::Representation
4667
+ command.request_object = google_cloud_discoveryengine_v1_purge_completion_suggestions_request_object
4668
+ command.response_representation = Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation::Representation
4669
+ command.response_class = Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation
4670
+ command.params['parent'] = parent unless parent.nil?
4671
+ command.query['fields'] = fields unless fields.nil?
4672
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4673
+ execute_or_queue_command(command, &block)
4674
+ end
4675
+
4538
4676
  # Creates a Control. By default 1000 controls are allowed for a data store. A
4539
4677
  # request can be submitted to adjust this limit. If the Control to create
4540
4678
  # 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_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.8.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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1/v0.6.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1/v0.8.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1
63
63
  post_install_message:
64
64
  rdoc_options: []