google-apis-discoveryengine_v1 0.25.0 → 0.27.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.
@@ -695,12 +695,26 @@ module Google
695
695
  class GoogleCloudDiscoveryengineV1AdvancedSiteSearchConfig
696
696
  include Google::Apis::Core::Hashable
697
697
 
698
+ # If set true, automatic refresh is disabled for the DataStore.
699
+ # Corresponds to the JSON property `disableAutomaticRefresh`
700
+ # @return [Boolean]
701
+ attr_accessor :disable_automatic_refresh
702
+ alias_method :disable_automatic_refresh?, :disable_automatic_refresh
703
+
704
+ # If set true, initial indexing is disabled for the DataStore.
705
+ # Corresponds to the JSON property `disableInitialIndex`
706
+ # @return [Boolean]
707
+ attr_accessor :disable_initial_index
708
+ alias_method :disable_initial_index?, :disable_initial_index
709
+
698
710
  def initialize(**args)
699
711
  update!(**args)
700
712
  end
701
713
 
702
714
  # Update properties of this object
703
715
  def update!(**args)
716
+ @disable_automatic_refresh = args[:disable_automatic_refresh] if args.key?(:disable_automatic_refresh)
717
+ @disable_initial_index = args[:disable_initial_index] if args.key?(:disable_initial_index)
704
718
  end
705
719
  end
706
720
 
@@ -824,6 +838,11 @@ module Google
824
838
  # @return [Array<String>]
825
839
  attr_accessor :related_questions
826
840
 
841
+ # Optional. Safety ratings.
842
+ # Corresponds to the JSON property `safetyRatings`
843
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SafetyRating>]
844
+ attr_accessor :safety_ratings
845
+
827
846
  # The state of the answer generation.
828
847
  # Corresponds to the JSON property `state`
829
848
  # @return [String]
@@ -851,6 +870,7 @@ module Google
851
870
  @query_understanding_info = args[:query_understanding_info] if args.key?(:query_understanding_info)
852
871
  @references = args[:references] if args.key?(:references)
853
872
  @related_questions = args[:related_questions] if args.key?(:related_questions)
873
+ @safety_ratings = args[:safety_ratings] if args.key?(:safety_ratings)
854
874
  @state = args[:state] if args.key?(:state)
855
875
  @steps = args[:steps] if args.key?(:steps)
856
876
  end
@@ -1350,6 +1370,12 @@ module Google
1350
1370
  attr_accessor :enable
1351
1371
  alias_method :enable?, :enable
1352
1372
 
1373
+ # Optional. Safety settings. This settings are effective only when the
1374
+ # safety_spec.enable is true.
1375
+ # Corresponds to the JSON property `safetySettings`
1376
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpecSafetySetting>]
1377
+ attr_accessor :safety_settings
1378
+
1353
1379
  def initialize(**args)
1354
1380
  update!(**args)
1355
1381
  end
@@ -1357,6 +1383,32 @@ module Google
1357
1383
  # Update properties of this object
1358
1384
  def update!(**args)
1359
1385
  @enable = args[:enable] if args.key?(:enable)
1386
+ @safety_settings = args[:safety_settings] if args.key?(:safety_settings)
1387
+ end
1388
+ end
1389
+
1390
+ # Safety settings.
1391
+ class GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpecSafetySetting
1392
+ include Google::Apis::Core::Hashable
1393
+
1394
+ # Required. Harm category.
1395
+ # Corresponds to the JSON property `category`
1396
+ # @return [String]
1397
+ attr_accessor :category
1398
+
1399
+ # Required. The harm block threshold.
1400
+ # Corresponds to the JSON property `threshold`
1401
+ # @return [String]
1402
+ attr_accessor :threshold
1403
+
1404
+ def initialize(**args)
1405
+ update!(**args)
1406
+ end
1407
+
1408
+ # Update properties of this object
1409
+ def update!(**args)
1410
+ @category = args[:category] if args.key?(:category)
1411
+ @threshold = args[:threshold] if args.key?(:threshold)
1360
1412
  end
1361
1413
  end
1362
1414
 
@@ -3018,6 +3070,11 @@ module Google
3018
3070
  # @return [String]
3019
3071
  attr_accessor :name
3020
3072
 
3073
+ # Optional. Single-regional CMEKs that are required for some VAIS features.
3074
+ # Corresponds to the JSON property `singleRegionKeys`
3075
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SingleRegionKey>]
3076
+ attr_accessor :single_region_keys
3077
+
3021
3078
  # Output only. State of the CmekConfig.
3022
3079
  # Corresponds to the JSON property `state`
3023
3080
  # @return [String]
@@ -3034,6 +3091,7 @@ module Google
3034
3091
  @kms_key_version = args[:kms_key_version] if args.key?(:kms_key_version)
3035
3092
  @last_rotation_timestamp_micros = args[:last_rotation_timestamp_micros] if args.key?(:last_rotation_timestamp_micros)
3036
3093
  @name = args[:name] if args.key?(:name)
3094
+ @single_region_keys = args[:single_region_keys] if args.key?(:single_region_keys)
3037
3095
  @state = args[:state] if args.key?(:state)
3038
3096
  end
3039
3097
  end
@@ -3366,8 +3424,8 @@ module Google
3366
3424
  class GoogleCloudDiscoveryengineV1ControlBoostAction
3367
3425
  include Google::Apis::Core::Hashable
3368
3426
 
3369
- # Required. Strength of the boost, which should be in [-1, 1]. Negative boost
3370
- # means demotion. Default is 0.0 (No-op).
3427
+ # Strength of the boost, which should be in [-1, 1]. Negative boost means
3428
+ # demotion. Default is 0.0 (No-op).
3371
3429
  # Corresponds to the JSON property `boost`
3372
3430
  # @return [Float]
3373
3431
  attr_accessor :boost
@@ -3387,6 +3445,12 @@ module Google
3387
3445
  # @return [String]
3388
3446
  attr_accessor :filter
3389
3447
 
3448
+ # Optional. Strength of the boost, which should be in [-1, 1]. Negative boost
3449
+ # means demotion. Default is 0.0 (No-op).
3450
+ # Corresponds to the JSON property `fixedBoost`
3451
+ # @return [Float]
3452
+ attr_accessor :fixed_boost
3453
+
3390
3454
  def initialize(**args)
3391
3455
  update!(**args)
3392
3456
  end
@@ -3396,6 +3460,7 @@ module Google
3396
3460
  @boost = args[:boost] if args.key?(:boost)
3397
3461
  @data_store = args[:data_store] if args.key?(:data_store)
3398
3462
  @filter = args[:filter] if args.key?(:filter)
3463
+ @fixed_boost = args[:fixed_boost] if args.key?(:fixed_boost)
3399
3464
  end
3400
3465
  end
3401
3466
 
@@ -4013,6 +4078,12 @@ module Google
4013
4078
  # @return [String]
4014
4079
  attr_accessor :industry_vertical
4015
4080
 
4081
+ # Optional. If set, this DataStore is an Infobot FAQ DataStore.
4082
+ # Corresponds to the JSON property `isInfobotFaqDataStore`
4083
+ # @return [Boolean]
4084
+ attr_accessor :is_infobot_faq_data_store
4085
+ alias_method :is_infobot_faq_data_store?, :is_infobot_faq_data_store
4086
+
4016
4087
  # Input only. The KMS key to be used to protect this DataStore at creation time.
4017
4088
  # Must be set for requests that need to comply with CMEK Org Policy protections.
4018
4089
  # If this field is set and processed successfully, the DataStore will be
@@ -4067,6 +4138,7 @@ module Google
4067
4138
  @display_name = args[:display_name] if args.key?(:display_name)
4068
4139
  @document_processing_config = args[:document_processing_config] if args.key?(:document_processing_config)
4069
4140
  @industry_vertical = args[:industry_vertical] if args.key?(:industry_vertical)
4141
+ @is_infobot_faq_data_store = args[:is_infobot_faq_data_store] if args.key?(:is_infobot_faq_data_store)
4070
4142
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
4071
4143
  @name = args[:name] if args.key?(:name)
4072
4144
  @serving_config_data_store = args[:serving_config_data_store] if args.key?(:serving_config_data_store)
@@ -4200,6 +4272,34 @@ module Google
4200
4272
  end
4201
4273
  end
4202
4274
 
4275
+ # Metadata related to the progress of the IdentityMappingStoreService.
4276
+ # DeleteIdentityMappingStore operation. This will be returned by the google.
4277
+ # longrunning.Operation.metadata field.
4278
+ class GoogleCloudDiscoveryengineV1DeleteIdentityMappingStoreMetadata
4279
+ include Google::Apis::Core::Hashable
4280
+
4281
+ # Operation create time.
4282
+ # Corresponds to the JSON property `createTime`
4283
+ # @return [String]
4284
+ attr_accessor :create_time
4285
+
4286
+ # Operation last update time. If the operation is done, this is also the finish
4287
+ # time.
4288
+ # Corresponds to the JSON property `updateTime`
4289
+ # @return [String]
4290
+ attr_accessor :update_time
4291
+
4292
+ def initialize(**args)
4293
+ update!(**args)
4294
+ end
4295
+
4296
+ # Update properties of this object
4297
+ def update!(**args)
4298
+ @create_time = args[:create_time] if args.key?(:create_time)
4299
+ @update_time = args[:update_time] if args.key?(:update_time)
4300
+ end
4301
+ end
4302
+
4203
4303
  # Metadata for DeleteSchema LRO.
4204
4304
  class GoogleCloudDiscoveryengineV1DeleteSchemaMetadata
4205
4305
  include Google::Apis::Core::Hashable
@@ -4325,7 +4425,7 @@ module Google
4325
4425
  attr_accessor :derived_struct_data
4326
4426
 
4327
4427
  # Immutable. The identifier of the document. Id should conform to [RFC-1034](
4328
- # https://tools.ietf.org/html/rfc1034) standard with a length limit of 63
4428
+ # https://tools.ietf.org/html/rfc1034) standard with a length limit of 128
4329
4429
  # characters.
4330
4430
  # Corresponds to the JSON property `id`
4331
4431
  # @return [String]
@@ -4454,6 +4554,12 @@ module Google
4454
4554
  # @return [String]
4455
4555
  attr_accessor :index_time
4456
4556
 
4557
+ # Immutable. The message indicates the document index is in progress. If this
4558
+ # field is populated, the document index is pending.
4559
+ # Corresponds to the JSON property `pendingMessage`
4560
+ # @return [String]
4561
+ attr_accessor :pending_message
4562
+
4457
4563
  def initialize(**args)
4458
4564
  update!(**args)
4459
4565
  end
@@ -4462,6 +4568,7 @@ module Google
4462
4568
  def update!(**args)
4463
4569
  @error_samples = args[:error_samples] if args.key?(:error_samples)
4464
4570
  @index_time = args[:index_time] if args.key?(:index_time)
4571
+ @pending_message = args[:pending_message] if args.key?(:pending_message)
4465
4572
  end
4466
4573
  end
4467
4574
 
@@ -5220,21 +5327,94 @@ module Google
5220
5327
  end
5221
5328
  end
5222
5329
 
5223
- # Grounding Fact.
5224
- class GoogleCloudDiscoveryengineV1GroundingFact
5330
+ # Top-level message sent by the client for the `GenerateGroundedContent` method.
5331
+ class GoogleCloudDiscoveryengineV1GenerateGroundedContentRequest
5225
5332
  include Google::Apis::Core::Hashable
5226
5333
 
5227
- # Attributes associated with the fact. Common attributes include `source` (
5228
- # indicating where the fact was sourced from), `author` (indicating the author
5229
- # of the fact), and so on.
5230
- # Corresponds to the JSON property `attributes`
5334
+ # Content of the current conversation with the model. For single-turn queries,
5335
+ # this is a single instance. For multi-turn queries, this is a repeated field
5336
+ # that contains conversation history + latest request.
5337
+ # Corresponds to the JSON property `contents`
5338
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GroundedGenerationContent>]
5339
+ attr_accessor :contents
5340
+
5341
+ # Content generation specification.
5342
+ # Corresponds to the JSON property `generationSpec`
5343
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGenerationSpec]
5344
+ attr_accessor :generation_spec
5345
+
5346
+ # Grounding specification.
5347
+ # Corresponds to the JSON property `groundingSpec`
5348
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSpec]
5349
+ attr_accessor :grounding_spec
5350
+
5351
+ # Base structured datatype containing multi-part content of a message.
5352
+ # Corresponds to the JSON property `systemInstruction`
5353
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GroundedGenerationContent]
5354
+ attr_accessor :system_instruction
5355
+
5356
+ # The user labels applied to a resource must meet the following requirements: *
5357
+ # Each resource can have multiple labels, up to a maximum of 64. * Each label
5358
+ # must be a key-value pair. * Keys have a minimum length of 1 character and a
5359
+ # maximum length of 63 characters and cannot be empty. Values can be empty and
5360
+ # have a maximum length of 63 characters. * Keys and values can contain only
5361
+ # lowercase letters, numeric characters, underscores, and dashes. All characters
5362
+ # must use UTF-8 encoding, and international characters are allowed. * The key
5363
+ # portion of a label must be unique. However, you can use the same key with
5364
+ # multiple resources. * Keys must start with a lowercase letter or international
5365
+ # character. See [Google Cloud Document](https://cloud.google.com/resource-
5366
+ # manager/docs/creating-managing-labels#requirements) for more details.
5367
+ # Corresponds to the JSON property `userLabels`
5231
5368
  # @return [Hash<String,String>]
5232
- attr_accessor :attributes
5369
+ attr_accessor :user_labels
5233
5370
 
5234
- # Text content of the fact. Can be at most 10K characters long.
5235
- # Corresponds to the JSON property `factText`
5371
+ def initialize(**args)
5372
+ update!(**args)
5373
+ end
5374
+
5375
+ # Update properties of this object
5376
+ def update!(**args)
5377
+ @contents = args[:contents] if args.key?(:contents)
5378
+ @generation_spec = args[:generation_spec] if args.key?(:generation_spec)
5379
+ @grounding_spec = args[:grounding_spec] if args.key?(:grounding_spec)
5380
+ @system_instruction = args[:system_instruction] if args.key?(:system_instruction)
5381
+ @user_labels = args[:user_labels] if args.key?(:user_labels)
5382
+ end
5383
+ end
5384
+
5385
+ # Describes the options to customize dynamic retrieval.
5386
+ class GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestDynamicRetrievalConfiguration
5387
+ include Google::Apis::Core::Hashable
5388
+
5389
+ # Describes the predictor settings for dynamic retrieval.
5390
+ # Corresponds to the JSON property `predictor`
5391
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestDynamicRetrievalConfigurationDynamicRetrievalPredictor]
5392
+ attr_accessor :predictor
5393
+
5394
+ def initialize(**args)
5395
+ update!(**args)
5396
+ end
5397
+
5398
+ # Update properties of this object
5399
+ def update!(**args)
5400
+ @predictor = args[:predictor] if args.key?(:predictor)
5401
+ end
5402
+ end
5403
+
5404
+ # Describes the predictor settings for dynamic retrieval.
5405
+ class GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestDynamicRetrievalConfigurationDynamicRetrievalPredictor
5406
+ include Google::Apis::Core::Hashable
5407
+
5408
+ # The value of the threshold. If the predictor will predict a value smaller than
5409
+ # this, it would suppress grounding in the source.
5410
+ # Corresponds to the JSON property `threshold`
5411
+ # @return [Float]
5412
+ attr_accessor :threshold
5413
+
5414
+ # The version of the predictor to be used in dynamic retrieval.
5415
+ # Corresponds to the JSON property `version`
5236
5416
  # @return [String]
5237
- attr_accessor :fact_text
5417
+ attr_accessor :version
5238
5418
 
5239
5419
  def initialize(**args)
5240
5420
  update!(**args)
@@ -5242,36 +5422,60 @@ module Google
5242
5422
 
5243
5423
  # Update properties of this object
5244
5424
  def update!(**args)
5245
- @attributes = args[:attributes] if args.key?(:attributes)
5246
- @fact_text = args[:fact_text] if args.key?(:fact_text)
5425
+ @threshold = args[:threshold] if args.key?(:threshold)
5426
+ @version = args[:version] if args.key?(:version)
5247
5427
  end
5248
5428
  end
5249
5429
 
5250
- # Metadata related to the progress of the ImportCompletionSuggestions operation.
5251
- # This will be returned by the google.longrunning.Operation.metadata field.
5252
- class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata
5430
+ # Content generation specification.
5431
+ class GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGenerationSpec
5253
5432
  include Google::Apis::Core::Hashable
5254
5433
 
5255
- # Operation create time.
5256
- # Corresponds to the JSON property `createTime`
5434
+ # If specified, custom value for frequency penalty will be used.
5435
+ # Corresponds to the JSON property `frequencyPenalty`
5436
+ # @return [Float]
5437
+ attr_accessor :frequency_penalty
5438
+
5439
+ # Language code for content. Use language tags defined by [BCP47](https://www.
5440
+ # rfc-editor.org/rfc/bcp/bcp47.txt).
5441
+ # Corresponds to the JSON property `languageCode`
5257
5442
  # @return [String]
5258
- attr_accessor :create_time
5443
+ attr_accessor :language_code
5259
5444
 
5260
- # Count of CompletionSuggestions that failed to be imported.
5261
- # Corresponds to the JSON property `failureCount`
5445
+ # If specified, custom value for max output tokens will be used.
5446
+ # Corresponds to the JSON property `maxOutputTokens`
5262
5447
  # @return [Fixnum]
5263
- attr_accessor :failure_count
5448
+ attr_accessor :max_output_tokens
5264
5449
 
5265
- # Count of CompletionSuggestions successfully imported.
5266
- # Corresponds to the JSON property `successCount`
5450
+ # Specifies which Vertex model id to use for generation.
5451
+ # Corresponds to the JSON property `modelId`
5452
+ # @return [String]
5453
+ attr_accessor :model_id
5454
+
5455
+ # If specified, custom value for presence penalty will be used.
5456
+ # Corresponds to the JSON property `presencePenalty`
5457
+ # @return [Float]
5458
+ attr_accessor :presence_penalty
5459
+
5460
+ # If specified, custom value for the seed will be used.
5461
+ # Corresponds to the JSON property `seed`
5267
5462
  # @return [Fixnum]
5268
- attr_accessor :success_count
5463
+ attr_accessor :seed
5269
5464
 
5270
- # Operation last update time. If the operation is done, this is also the finish
5271
- # time.
5272
- # Corresponds to the JSON property `updateTime`
5273
- # @return [String]
5274
- attr_accessor :update_time
5465
+ # If specified, custom value for the temperature will be used.
5466
+ # Corresponds to the JSON property `temperature`
5467
+ # @return [Float]
5468
+ attr_accessor :temperature
5469
+
5470
+ # If specified, custom value for top-k sampling will be used.
5471
+ # Corresponds to the JSON property `topK`
5472
+ # @return [Fixnum]
5473
+ attr_accessor :top_k
5474
+
5475
+ # If specified, custom value for nucleus sampling will be used.
5476
+ # Corresponds to the JSON property `topP`
5477
+ # @return [Float]
5478
+ attr_accessor :top_p
5275
5479
 
5276
5480
  def initialize(**args)
5277
5481
  update!(**args)
@@ -5279,58 +5483,57 @@ module Google
5279
5483
 
5280
5484
  # Update properties of this object
5281
5485
  def update!(**args)
5282
- @create_time = args[:create_time] if args.key?(:create_time)
5283
- @failure_count = args[:failure_count] if args.key?(:failure_count)
5284
- @success_count = args[:success_count] if args.key?(:success_count)
5285
- @update_time = args[:update_time] if args.key?(:update_time)
5486
+ @frequency_penalty = args[:frequency_penalty] if args.key?(:frequency_penalty)
5487
+ @language_code = args[:language_code] if args.key?(:language_code)
5488
+ @max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
5489
+ @model_id = args[:model_id] if args.key?(:model_id)
5490
+ @presence_penalty = args[:presence_penalty] if args.key?(:presence_penalty)
5491
+ @seed = args[:seed] if args.key?(:seed)
5492
+ @temperature = args[:temperature] if args.key?(:temperature)
5493
+ @top_k = args[:top_k] if args.key?(:top_k)
5494
+ @top_p = args[:top_p] if args.key?(:top_p)
5286
5495
  end
5287
5496
  end
5288
5497
 
5289
- # Request message for CompletionService.ImportCompletionSuggestions method.
5290
- class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest
5498
+ # Grounding source.
5499
+ class GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSource
5291
5500
  include Google::Apis::Core::Hashable
5292
5501
 
5293
- # BigQuery source import data from.
5294
- # Corresponds to the JSON property `bigquerySource`
5295
- # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1BigQuerySource]
5296
- attr_accessor :bigquery_source
5297
-
5298
- # Configuration of destination for Import related errors.
5299
- # Corresponds to the JSON property `errorConfig`
5300
- # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportErrorConfig]
5301
- attr_accessor :error_config
5302
-
5303
- # Cloud Storage location for input content.
5304
- # Corresponds to the JSON property `gcsSource`
5305
- # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GcsSource]
5306
- attr_accessor :gcs_source
5502
+ # Google Search config parameters.
5503
+ # Corresponds to the JSON property `googleSearchSource`
5504
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceGoogleSearchSource]
5505
+ attr_accessor :google_search_source
5307
5506
 
5308
- # The inline source for CompletionSuggestions.
5507
+ # Message to be used for grounding based on inline content.
5309
5508
  # Corresponds to the JSON property `inlineSource`
5310
- # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequestInlineSource]
5509
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceInlineSource]
5311
5510
  attr_accessor :inline_source
5312
5511
 
5512
+ # Message to be used for grounding with Vertex AI Search.
5513
+ # Corresponds to the JSON property `searchSource`
5514
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceSearchSource]
5515
+ attr_accessor :search_source
5516
+
5313
5517
  def initialize(**args)
5314
5518
  update!(**args)
5315
5519
  end
5316
5520
 
5317
5521
  # Update properties of this object
5318
5522
  def update!(**args)
5319
- @bigquery_source = args[:bigquery_source] if args.key?(:bigquery_source)
5320
- @error_config = args[:error_config] if args.key?(:error_config)
5321
- @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
5523
+ @google_search_source = args[:google_search_source] if args.key?(:google_search_source)
5322
5524
  @inline_source = args[:inline_source] if args.key?(:inline_source)
5525
+ @search_source = args[:search_source] if args.key?(:search_source)
5323
5526
  end
5324
5527
  end
5325
5528
 
5326
- # The inline source for CompletionSuggestions.
5327
- class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequestInlineSource
5529
+ # Google Search config parameters.
5530
+ class GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceGoogleSearchSource
5328
5531
  include Google::Apis::Core::Hashable
5329
5532
 
5330
- # Required. A list of all denylist entries to import. Max of 1000 items.
5331
- # Corresponds to the JSON property `suggestions`
5332
- # @return [Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1CompletionSuggestion>]
5333
- attr_accessor :suggestions
5533
+ # Describes the options to customize dynamic retrieval.
5534
+ # Corresponds to the JSON property `dynamicRetrievalConfig`
5535
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestDynamicRetrievalConfiguration]
5536
+ attr_accessor :dynamic_retrieval_config
5334
5537
 
5335
5538
  def initialize(**args)
5336
5539
  update!(**args)
@@ -5338,25 +5541,25 @@ module Google
5338
5541
 
5339
5542
  # Update properties of this object
5340
5543
  def update!(**args)
5341
- @suggestions = args[:suggestions] if args.key?(:suggestions)
5544
+ @dynamic_retrieval_config = args[:dynamic_retrieval_config] if args.key?(:dynamic_retrieval_config)
5342
5545
  end
5343
5546
  end
5344
5547
 
5345
- # Response of the CompletionService.ImportCompletionSuggestions method. If the
5346
- # long running operation is done, this message is returned by the google.
5347
- # longrunning.Operations.response field if the operation is successful.
5348
- class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsResponse
5548
+ # Message to be used for grounding based on inline content.
5549
+ class GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceInlineSource
5349
5550
  include Google::Apis::Core::Hashable
5350
5551
 
5351
- # Configuration of destination for Import related errors.
5352
- # Corresponds to the JSON property `errorConfig`
5353
- # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportErrorConfig]
5354
- attr_accessor :error_config
5552
+ # Attributes associated with the content. Common attributes include `source` (
5553
+ # indicating where the content was sourced from) and `author` (indicating the
5554
+ # author of the content).
5555
+ # Corresponds to the JSON property `attributes`
5556
+ # @return [Hash<String,String>]
5557
+ attr_accessor :attributes
5355
5558
 
5356
- # A sample of errors encountered while processing the request.
5357
- # Corresponds to the JSON property `errorSamples`
5358
- # @return [Array<Google::Apis::DiscoveryengineV1::GoogleRpcStatus>]
5359
- attr_accessor :error_samples
5559
+ # List of facts to be used for grounding.
5560
+ # Corresponds to the JSON property `groundingFacts`
5561
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GroundingFact>]
5562
+ attr_accessor :grounding_facts
5360
5563
 
5361
5564
  def initialize(**args)
5362
5565
  update!(**args)
@@ -5364,41 +5567,39 @@ module Google
5364
5567
 
5365
5568
  # Update properties of this object
5366
5569
  def update!(**args)
5367
- @error_config = args[:error_config] if args.key?(:error_config)
5368
- @error_samples = args[:error_samples] if args.key?(:error_samples)
5570
+ @attributes = args[:attributes] if args.key?(:attributes)
5571
+ @grounding_facts = args[:grounding_facts] if args.key?(:grounding_facts)
5369
5572
  end
5370
5573
  end
5371
5574
 
5372
- # Metadata related to the progress of the ImportDocuments operation. This is
5373
- # returned by the google.longrunning.Operation.metadata field.
5374
- class GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
5575
+ # Message to be used for grounding with Vertex AI Search.
5576
+ class GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceSearchSource
5375
5577
  include Google::Apis::Core::Hashable
5376
5578
 
5377
- # Operation create time.
5378
- # Corresponds to the JSON property `createTime`
5579
+ # Filter expression to be applied to the search. The syntax is the same as
5580
+ # SearchRequest.filter.
5581
+ # Corresponds to the JSON property `filter`
5379
5582
  # @return [String]
5380
- attr_accessor :create_time
5381
-
5382
- # Count of entries that encountered errors while processing.
5383
- # Corresponds to the JSON property `failureCount`
5384
- # @return [Fixnum]
5385
- attr_accessor :failure_count
5583
+ attr_accessor :filter
5386
5584
 
5387
- # Count of entries that were processed successfully.
5388
- # Corresponds to the JSON property `successCount`
5585
+ # Number of search results to return. The default value is 10. The maximumm
5586
+ # allowed value is 10.
5587
+ # Corresponds to the JSON property `maxResultCount`
5389
5588
  # @return [Fixnum]
5390
- attr_accessor :success_count
5589
+ attr_accessor :max_result_count
5391
5590
 
5392
- # Total count of entries that were processed.
5393
- # Corresponds to the JSON property `totalCount`
5394
- # @return [Fixnum]
5395
- attr_accessor :total_count
5591
+ # If set, safe search is enabled in Vertex AI Search requests.
5592
+ # Corresponds to the JSON property `safeSearch`
5593
+ # @return [Boolean]
5594
+ attr_accessor :safe_search
5595
+ alias_method :safe_search?, :safe_search
5396
5596
 
5397
- # Operation last update time. If the operation is done, this is also the finish
5398
- # time.
5399
- # Corresponds to the JSON property `updateTime`
5597
+ # The resource name of the Engine to use. Format: `projects/`project`/locations/`
5598
+ # location`/collections/`collection_id`/engines/`engine_id`/servingConfigs/`
5599
+ # serving_config_id``
5600
+ # Corresponds to the JSON property `servingConfig`
5400
5601
  # @return [String]
5401
- attr_accessor :update_time
5602
+ attr_accessor :serving_config
5402
5603
 
5403
5604
  def initialize(**args)
5404
5605
  update!(**args)
@@ -5406,19 +5607,513 @@ module Google
5406
5607
 
5407
5608
  # Update properties of this object
5408
5609
  def update!(**args)
5409
- @create_time = args[:create_time] if args.key?(:create_time)
5410
- @failure_count = args[:failure_count] if args.key?(:failure_count)
5411
- @success_count = args[:success_count] if args.key?(:success_count)
5412
- @total_count = args[:total_count] if args.key?(:total_count)
5413
- @update_time = args[:update_time] if args.key?(:update_time)
5610
+ @filter = args[:filter] if args.key?(:filter)
5611
+ @max_result_count = args[:max_result_count] if args.key?(:max_result_count)
5612
+ @safe_search = args[:safe_search] if args.key?(:safe_search)
5613
+ @serving_config = args[:serving_config] if args.key?(:serving_config)
5414
5614
  end
5415
5615
  end
5416
5616
 
5417
- # Request message for Import methods.
5418
- class GoogleCloudDiscoveryengineV1ImportDocumentsRequest
5617
+ # Grounding specification.
5618
+ class GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSpec
5419
5619
  include Google::Apis::Core::Hashable
5420
5620
 
5421
- # AlloyDB source import data from.
5621
+ # Grounding sources.
5622
+ # Corresponds to the JSON property `groundingSources`
5623
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSource>]
5624
+ attr_accessor :grounding_sources
5625
+
5626
+ def initialize(**args)
5627
+ update!(**args)
5628
+ end
5629
+
5630
+ # Update properties of this object
5631
+ def update!(**args)
5632
+ @grounding_sources = args[:grounding_sources] if args.key?(:grounding_sources)
5633
+ end
5634
+ end
5635
+
5636
+ # Response for the `GenerateGroundedContent` method.
5637
+ class GoogleCloudDiscoveryengineV1GenerateGroundedContentResponse
5638
+ include Google::Apis::Core::Hashable
5639
+
5640
+ # Generated candidates.
5641
+ # Corresponds to the JSON property `candidates`
5642
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidate>]
5643
+ attr_accessor :candidates
5644
+
5645
+ def initialize(**args)
5646
+ update!(**args)
5647
+ end
5648
+
5649
+ # Update properties of this object
5650
+ def update!(**args)
5651
+ @candidates = args[:candidates] if args.key?(:candidates)
5652
+ end
5653
+ end
5654
+
5655
+ # A response candidate generated from the model.
5656
+ class GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidate
5657
+ include Google::Apis::Core::Hashable
5658
+
5659
+ # Base structured datatype containing multi-part content of a message.
5660
+ # Corresponds to the JSON property `content`
5661
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GroundedGenerationContent]
5662
+ attr_accessor :content
5663
+
5664
+ # Citation for the generated content.
5665
+ # Corresponds to the JSON property `groundingMetadata`
5666
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadata]
5667
+ attr_accessor :grounding_metadata
5668
+
5669
+ # The overall grounding score for the candidate, in the range of [0, 1].
5670
+ # Corresponds to the JSON property `groundingScore`
5671
+ # @return [Float]
5672
+ attr_accessor :grounding_score
5673
+
5674
+ # Index of the candidate.
5675
+ # Corresponds to the JSON property `index`
5676
+ # @return [Fixnum]
5677
+ attr_accessor :index
5678
+
5679
+ def initialize(**args)
5680
+ update!(**args)
5681
+ end
5682
+
5683
+ # Update properties of this object
5684
+ def update!(**args)
5685
+ @content = args[:content] if args.key?(:content)
5686
+ @grounding_metadata = args[:grounding_metadata] if args.key?(:grounding_metadata)
5687
+ @grounding_score = args[:grounding_score] if args.key?(:grounding_score)
5688
+ @index = args[:index] if args.key?(:index)
5689
+ end
5690
+ end
5691
+
5692
+ # Citation for the generated content.
5693
+ class GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadata
5694
+ include Google::Apis::Core::Hashable
5695
+
5696
+ # GroundingSupport across all claims in the answer candidate. An support to a
5697
+ # fact indicates that the claim is supported by the fact.
5698
+ # Corresponds to the JSON property `groundingSupport`
5699
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataGroundingSupport>]
5700
+ attr_accessor :grounding_support
5701
+
5702
+ # Retrieval metadata to provide an understanding in the retrieval steps
5703
+ # performed by the model. There can be multiple such messages which can
5704
+ # correspond to different parts of the retrieval. This is a mechanism used to
5705
+ # ensure transparency to our users.
5706
+ # Corresponds to the JSON property `retrievalMetadata`
5707
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataRetrievalMetadata>]
5708
+ attr_accessor :retrieval_metadata
5709
+
5710
+ # Google search entry point.
5711
+ # Corresponds to the JSON property `searchEntryPoint`
5712
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataSearchEntryPoint]
5713
+ attr_accessor :search_entry_point
5714
+
5715
+ # List of chunks to be attributed across all claims in the candidate. These are
5716
+ # derived from the grounding sources supplied in the request.
5717
+ # Corresponds to the JSON property `supportChunks`
5718
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1FactChunk>]
5719
+ attr_accessor :support_chunks
5720
+
5721
+ # Web search queries for the following-up web search.
5722
+ # Corresponds to the JSON property `webSearchQueries`
5723
+ # @return [Array<String>]
5724
+ attr_accessor :web_search_queries
5725
+
5726
+ def initialize(**args)
5727
+ update!(**args)
5728
+ end
5729
+
5730
+ # Update properties of this object
5731
+ def update!(**args)
5732
+ @grounding_support = args[:grounding_support] if args.key?(:grounding_support)
5733
+ @retrieval_metadata = args[:retrieval_metadata] if args.key?(:retrieval_metadata)
5734
+ @search_entry_point = args[:search_entry_point] if args.key?(:search_entry_point)
5735
+ @support_chunks = args[:support_chunks] if args.key?(:support_chunks)
5736
+ @web_search_queries = args[:web_search_queries] if args.key?(:web_search_queries)
5737
+ end
5738
+ end
5739
+
5740
+ # Describes the metadata about dynamic retrieval.
5741
+ class GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalMetadata
5742
+ include Google::Apis::Core::Hashable
5743
+
5744
+ # Describes the metadata about the dynamic retrieval predictor.
5745
+ # Corresponds to the JSON property `predictorMetadata`
5746
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalPredictorMetadata]
5747
+ attr_accessor :predictor_metadata
5748
+
5749
+ def initialize(**args)
5750
+ update!(**args)
5751
+ end
5752
+
5753
+ # Update properties of this object
5754
+ def update!(**args)
5755
+ @predictor_metadata = args[:predictor_metadata] if args.key?(:predictor_metadata)
5756
+ end
5757
+ end
5758
+
5759
+ # Describes the metadata about the dynamic retrieval predictor.
5760
+ class GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalPredictorMetadata
5761
+ include Google::Apis::Core::Hashable
5762
+
5763
+ # The value of the predictor. This should be between [0, 1] where a value of 0
5764
+ # means that the query would not benefit from grounding, while a value of 1.0
5765
+ # means that the query would benefit the most. In between values allow to
5766
+ # differentiate between different usefulness scores for grounding.
5767
+ # Corresponds to the JSON property `prediction`
5768
+ # @return [Float]
5769
+ attr_accessor :prediction
5770
+
5771
+ # The version of the predictor which was used in dynamic retrieval.
5772
+ # Corresponds to the JSON property `version`
5773
+ # @return [String]
5774
+ attr_accessor :version
5775
+
5776
+ def initialize(**args)
5777
+ update!(**args)
5778
+ end
5779
+
5780
+ # Update properties of this object
5781
+ def update!(**args)
5782
+ @prediction = args[:prediction] if args.key?(:prediction)
5783
+ @version = args[:version] if args.key?(:version)
5784
+ end
5785
+ end
5786
+
5787
+ # Grounding info for a claim in the candidate and its support.
5788
+ class GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataGroundingSupport
5789
+ include Google::Apis::Core::Hashable
5790
+
5791
+ # Text for the claim in the candidate. Always provided when a support is found.
5792
+ # Corresponds to the JSON property `claimText`
5793
+ # @return [String]
5794
+ attr_accessor :claim_text
5795
+
5796
+ # A list of indices (into 'support_chunks') specifying the citations associated
5797
+ # with the claim. For instance [1,3,4] means that support_chunks[1],
5798
+ # support_chunks[3], support_chunks[4] are the chunks attributed to the claim.
5799
+ # Corresponds to the JSON property `supportChunkIndices`
5800
+ # @return [Array<Fixnum>]
5801
+ attr_accessor :support_chunk_indices
5802
+
5803
+ # A score in the range of [0, 1] describing how grounded is a specific claim in
5804
+ # the support chunks indicated. Higher value means that the claim is better
5805
+ # supported by the chunks.
5806
+ # Corresponds to the JSON property `supportScore`
5807
+ # @return [Float]
5808
+ attr_accessor :support_score
5809
+
5810
+ def initialize(**args)
5811
+ update!(**args)
5812
+ end
5813
+
5814
+ # Update properties of this object
5815
+ def update!(**args)
5816
+ @claim_text = args[:claim_text] if args.key?(:claim_text)
5817
+ @support_chunk_indices = args[:support_chunk_indices] if args.key?(:support_chunk_indices)
5818
+ @support_score = args[:support_score] if args.key?(:support_score)
5819
+ end
5820
+ end
5821
+
5822
+ # Describes the metadata associated with a retrieval step.
5823
+ class GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataRetrievalMetadata
5824
+ include Google::Apis::Core::Hashable
5825
+
5826
+ # Describes the metadata about dynamic retrieval.
5827
+ # Corresponds to the JSON property `dynamicRetrievalMetadata`
5828
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalMetadata]
5829
+ attr_accessor :dynamic_retrieval_metadata
5830
+
5831
+ # Describes the source to which the metadata is referring to.
5832
+ # Corresponds to the JSON property `source`
5833
+ # @return [String]
5834
+ attr_accessor :source
5835
+
5836
+ def initialize(**args)
5837
+ update!(**args)
5838
+ end
5839
+
5840
+ # Update properties of this object
5841
+ def update!(**args)
5842
+ @dynamic_retrieval_metadata = args[:dynamic_retrieval_metadata] if args.key?(:dynamic_retrieval_metadata)
5843
+ @source = args[:source] if args.key?(:source)
5844
+ end
5845
+ end
5846
+
5847
+ # Google search entry point.
5848
+ class GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataSearchEntryPoint
5849
+ include Google::Apis::Core::Hashable
5850
+
5851
+ # Web content snippet that can be embedded in a web page or an app webview.
5852
+ # Corresponds to the JSON property `renderedContent`
5853
+ # @return [String]
5854
+ attr_accessor :rendered_content
5855
+
5856
+ # Base64 encoded JSON representing array of tuple.
5857
+ # Corresponds to the JSON property `sdkBlob`
5858
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
5859
+ # @return [String]
5860
+ attr_accessor :sdk_blob
5861
+
5862
+ def initialize(**args)
5863
+ update!(**args)
5864
+ end
5865
+
5866
+ # Update properties of this object
5867
+ def update!(**args)
5868
+ @rendered_content = args[:rendered_content] if args.key?(:rendered_content)
5869
+ @sdk_blob = args[:sdk_blob] if args.key?(:sdk_blob)
5870
+ end
5871
+ end
5872
+
5873
+ # Base structured datatype containing multi-part content of a message.
5874
+ class GoogleCloudDiscoveryengineV1GroundedGenerationContent
5875
+ include Google::Apis::Core::Hashable
5876
+
5877
+ # Ordered `Parts` that constitute a single message.
5878
+ # Corresponds to the JSON property `parts`
5879
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GroundedGenerationContentPart>]
5880
+ attr_accessor :parts
5881
+
5882
+ # Producer of the content. Must be either `user` or `model`. Intended to be used
5883
+ # for multi-turn conversations. Otherwise, it can be left unset.
5884
+ # Corresponds to the JSON property `role`
5885
+ # @return [String]
5886
+ attr_accessor :role
5887
+
5888
+ def initialize(**args)
5889
+ update!(**args)
5890
+ end
5891
+
5892
+ # Update properties of this object
5893
+ def update!(**args)
5894
+ @parts = args[:parts] if args.key?(:parts)
5895
+ @role = args[:role] if args.key?(:role)
5896
+ end
5897
+ end
5898
+
5899
+ # Single part of content.
5900
+ class GoogleCloudDiscoveryengineV1GroundedGenerationContentPart
5901
+ include Google::Apis::Core::Hashable
5902
+
5903
+ # Inline text.
5904
+ # Corresponds to the JSON property `text`
5905
+ # @return [String]
5906
+ attr_accessor :text
5907
+
5908
+ def initialize(**args)
5909
+ update!(**args)
5910
+ end
5911
+
5912
+ # Update properties of this object
5913
+ def update!(**args)
5914
+ @text = args[:text] if args.key?(:text)
5915
+ end
5916
+ end
5917
+
5918
+ # Grounding Fact.
5919
+ class GoogleCloudDiscoveryengineV1GroundingFact
5920
+ include Google::Apis::Core::Hashable
5921
+
5922
+ # Attributes associated with the fact. Common attributes include `source` (
5923
+ # indicating where the fact was sourced from), `author` (indicating the author
5924
+ # of the fact), and so on.
5925
+ # Corresponds to the JSON property `attributes`
5926
+ # @return [Hash<String,String>]
5927
+ attr_accessor :attributes
5928
+
5929
+ # Text content of the fact. Can be at most 10K characters long.
5930
+ # Corresponds to the JSON property `factText`
5931
+ # @return [String]
5932
+ attr_accessor :fact_text
5933
+
5934
+ def initialize(**args)
5935
+ update!(**args)
5936
+ end
5937
+
5938
+ # Update properties of this object
5939
+ def update!(**args)
5940
+ @attributes = args[:attributes] if args.key?(:attributes)
5941
+ @fact_text = args[:fact_text] if args.key?(:fact_text)
5942
+ end
5943
+ end
5944
+
5945
+ # Metadata related to the progress of the ImportCompletionSuggestions operation.
5946
+ # This will be returned by the google.longrunning.Operation.metadata field.
5947
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata
5948
+ include Google::Apis::Core::Hashable
5949
+
5950
+ # Operation create time.
5951
+ # Corresponds to the JSON property `createTime`
5952
+ # @return [String]
5953
+ attr_accessor :create_time
5954
+
5955
+ # Count of CompletionSuggestions that failed to be imported.
5956
+ # Corresponds to the JSON property `failureCount`
5957
+ # @return [Fixnum]
5958
+ attr_accessor :failure_count
5959
+
5960
+ # Count of CompletionSuggestions successfully imported.
5961
+ # Corresponds to the JSON property `successCount`
5962
+ # @return [Fixnum]
5963
+ attr_accessor :success_count
5964
+
5965
+ # Operation last update time. If the operation is done, this is also the finish
5966
+ # time.
5967
+ # Corresponds to the JSON property `updateTime`
5968
+ # @return [String]
5969
+ attr_accessor :update_time
5970
+
5971
+ def initialize(**args)
5972
+ update!(**args)
5973
+ end
5974
+
5975
+ # Update properties of this object
5976
+ def update!(**args)
5977
+ @create_time = args[:create_time] if args.key?(:create_time)
5978
+ @failure_count = args[:failure_count] if args.key?(:failure_count)
5979
+ @success_count = args[:success_count] if args.key?(:success_count)
5980
+ @update_time = args[:update_time] if args.key?(:update_time)
5981
+ end
5982
+ end
5983
+
5984
+ # Request message for CompletionService.ImportCompletionSuggestions method.
5985
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest
5986
+ include Google::Apis::Core::Hashable
5987
+
5988
+ # BigQuery source import data from.
5989
+ # Corresponds to the JSON property `bigquerySource`
5990
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1BigQuerySource]
5991
+ attr_accessor :bigquery_source
5992
+
5993
+ # Configuration of destination for Import related errors.
5994
+ # Corresponds to the JSON property `errorConfig`
5995
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportErrorConfig]
5996
+ attr_accessor :error_config
5997
+
5998
+ # Cloud Storage location for input content.
5999
+ # Corresponds to the JSON property `gcsSource`
6000
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GcsSource]
6001
+ attr_accessor :gcs_source
6002
+
6003
+ # The inline source for CompletionSuggestions.
6004
+ # Corresponds to the JSON property `inlineSource`
6005
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequestInlineSource]
6006
+ attr_accessor :inline_source
6007
+
6008
+ def initialize(**args)
6009
+ update!(**args)
6010
+ end
6011
+
6012
+ # Update properties of this object
6013
+ def update!(**args)
6014
+ @bigquery_source = args[:bigquery_source] if args.key?(:bigquery_source)
6015
+ @error_config = args[:error_config] if args.key?(:error_config)
6016
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
6017
+ @inline_source = args[:inline_source] if args.key?(:inline_source)
6018
+ end
6019
+ end
6020
+
6021
+ # The inline source for CompletionSuggestions.
6022
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequestInlineSource
6023
+ include Google::Apis::Core::Hashable
6024
+
6025
+ # Required. A list of all denylist entries to import. Max of 1000 items.
6026
+ # Corresponds to the JSON property `suggestions`
6027
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1CompletionSuggestion>]
6028
+ attr_accessor :suggestions
6029
+
6030
+ def initialize(**args)
6031
+ update!(**args)
6032
+ end
6033
+
6034
+ # Update properties of this object
6035
+ def update!(**args)
6036
+ @suggestions = args[:suggestions] if args.key?(:suggestions)
6037
+ end
6038
+ end
6039
+
6040
+ # Response of the CompletionService.ImportCompletionSuggestions method. If the
6041
+ # long running operation is done, this message is returned by the google.
6042
+ # longrunning.Operations.response field if the operation is successful.
6043
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsResponse
6044
+ include Google::Apis::Core::Hashable
6045
+
6046
+ # Configuration of destination for Import related errors.
6047
+ # Corresponds to the JSON property `errorConfig`
6048
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportErrorConfig]
6049
+ attr_accessor :error_config
6050
+
6051
+ # A sample of errors encountered while processing the request.
6052
+ # Corresponds to the JSON property `errorSamples`
6053
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleRpcStatus>]
6054
+ attr_accessor :error_samples
6055
+
6056
+ def initialize(**args)
6057
+ update!(**args)
6058
+ end
6059
+
6060
+ # Update properties of this object
6061
+ def update!(**args)
6062
+ @error_config = args[:error_config] if args.key?(:error_config)
6063
+ @error_samples = args[:error_samples] if args.key?(:error_samples)
6064
+ end
6065
+ end
6066
+
6067
+ # Metadata related to the progress of the ImportDocuments operation. This is
6068
+ # returned by the google.longrunning.Operation.metadata field.
6069
+ class GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
6070
+ include Google::Apis::Core::Hashable
6071
+
6072
+ # Operation create time.
6073
+ # Corresponds to the JSON property `createTime`
6074
+ # @return [String]
6075
+ attr_accessor :create_time
6076
+
6077
+ # Count of entries that encountered errors while processing.
6078
+ # Corresponds to the JSON property `failureCount`
6079
+ # @return [Fixnum]
6080
+ attr_accessor :failure_count
6081
+
6082
+ # Count of entries that were processed successfully.
6083
+ # Corresponds to the JSON property `successCount`
6084
+ # @return [Fixnum]
6085
+ attr_accessor :success_count
6086
+
6087
+ # Total count of entries that were processed.
6088
+ # Corresponds to the JSON property `totalCount`
6089
+ # @return [Fixnum]
6090
+ attr_accessor :total_count
6091
+
6092
+ # Operation last update time. If the operation is done, this is also the finish
6093
+ # time.
6094
+ # Corresponds to the JSON property `updateTime`
6095
+ # @return [String]
6096
+ attr_accessor :update_time
6097
+
6098
+ def initialize(**args)
6099
+ update!(**args)
6100
+ end
6101
+
6102
+ # Update properties of this object
6103
+ def update!(**args)
6104
+ @create_time = args[:create_time] if args.key?(:create_time)
6105
+ @failure_count = args[:failure_count] if args.key?(:failure_count)
6106
+ @success_count = args[:success_count] if args.key?(:success_count)
6107
+ @total_count = args[:total_count] if args.key?(:total_count)
6108
+ @update_time = args[:update_time] if args.key?(:update_time)
6109
+ end
6110
+ end
6111
+
6112
+ # Request message for Import methods.
6113
+ class GoogleCloudDiscoveryengineV1ImportDocumentsRequest
6114
+ include Google::Apis::Core::Hashable
6115
+
6116
+ # AlloyDB source import data from.
5422
6117
  # Corresponds to the JSON property `alloyDbSource`
5423
6118
  # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AlloyDbSource]
5424
6119
  attr_accessor :alloy_db_source
@@ -7031,7 +7726,7 @@ module Google
7031
7726
  class GoogleCloudDiscoveryengineV1RecrawlUrisRequest
7032
7727
  include Google::Apis::Core::Hashable
7033
7728
 
7034
- # Optional. Full resource name of the SiteCredential, such as `projects/*/
7729
+ # Optional. Full resource name of the `SiteCredential`, such as `projects/*/
7035
7730
  # locations/*/collections/*/dataStores/*/siteSearchEngine/siteCredentials/*`.
7036
7731
  # Only set to crawl private URIs.
7037
7732
  # Corresponds to the JSON property `siteCredential`
@@ -7075,6 +7770,57 @@ module Google
7075
7770
  end
7076
7771
  end
7077
7772
 
7773
+ # Safety rating corresponding to the generated content.
7774
+ class GoogleCloudDiscoveryengineV1SafetyRating
7775
+ include Google::Apis::Core::Hashable
7776
+
7777
+ # Output only. Indicates whether the content was filtered out because of this
7778
+ # rating.
7779
+ # Corresponds to the JSON property `blocked`
7780
+ # @return [Boolean]
7781
+ attr_accessor :blocked
7782
+ alias_method :blocked?, :blocked
7783
+
7784
+ # Output only. Harm category.
7785
+ # Corresponds to the JSON property `category`
7786
+ # @return [String]
7787
+ attr_accessor :category
7788
+
7789
+ # Output only. Harm probability levels in the content.
7790
+ # Corresponds to the JSON property `probability`
7791
+ # @return [String]
7792
+ attr_accessor :probability
7793
+
7794
+ # Output only. Harm probability score.
7795
+ # Corresponds to the JSON property `probabilityScore`
7796
+ # @return [Float]
7797
+ attr_accessor :probability_score
7798
+
7799
+ # Output only. Harm severity levels in the content.
7800
+ # Corresponds to the JSON property `severity`
7801
+ # @return [String]
7802
+ attr_accessor :severity
7803
+
7804
+ # Output only. Harm severity score.
7805
+ # Corresponds to the JSON property `severityScore`
7806
+ # @return [Float]
7807
+ attr_accessor :severity_score
7808
+
7809
+ def initialize(**args)
7810
+ update!(**args)
7811
+ end
7812
+
7813
+ # Update properties of this object
7814
+ def update!(**args)
7815
+ @blocked = args[:blocked] if args.key?(:blocked)
7816
+ @category = args[:category] if args.key?(:category)
7817
+ @probability = args[:probability] if args.key?(:probability)
7818
+ @probability_score = args[:probability_score] if args.key?(:probability_score)
7819
+ @severity = args[:severity] if args.key?(:severity)
7820
+ @severity_score = args[:severity_score] if args.key?(:severity_score)
7821
+ end
7822
+ end
7823
+
7078
7824
  # Defines the structure and layout of a type of document data.
7079
7825
  class GoogleCloudDiscoveryengineV1Schema
7080
7826
  include Google::Apis::Core::Hashable
@@ -8837,7 +9583,7 @@ module Google
8837
9583
  # The ranking expression controls the customized ranking on retrieval documents.
8838
9584
  # To leverage this, document embedding is required. The ranking expression
8839
9585
  # setting in ServingConfig applies to all search requests served by the serving
8840
- # config. However, if SearchRequest.ranking_expression is specified, it
9586
+ # config. However, if `SearchRequest.ranking_expression` is specified, it
8841
9587
  # overrides the ServingConfig ranking expression. The ranking expression is a
8842
9588
  # single function or multiple functions that are joined by "+". *
8843
9589
  # ranking_expression = function, ` " + ", function `; Supported functions: *
@@ -9091,6 +9837,27 @@ module Google
9091
9837
  end
9092
9838
  end
9093
9839
 
9840
+ # Metadata for single-regional CMEKs.
9841
+ class GoogleCloudDiscoveryengineV1SingleRegionKey
9842
+ include Google::Apis::Core::Hashable
9843
+
9844
+ # Required. Single-regional kms key resource name which will be used to encrypt
9845
+ # resources `projects/`project`/locations/`location`/keyRings/`keyRing`/
9846
+ # cryptoKeys/`keyId``.
9847
+ # Corresponds to the JSON property `kmsKey`
9848
+ # @return [String]
9849
+ attr_accessor :kms_key
9850
+
9851
+ def initialize(**args)
9852
+ update!(**args)
9853
+ end
9854
+
9855
+ # Update properties of this object
9856
+ def update!(**args)
9857
+ @kms_key = args[:kms_key] if args.key?(:kms_key)
9858
+ end
9859
+ end
9860
+
9094
9861
  # SiteSearchEngine captures DataStore level site search persisting
9095
9862
  # configurations. It is a singleton value per data store.
9096
9863
  class GoogleCloudDiscoveryengineV1SiteSearchEngine
@@ -9216,7 +9983,7 @@ module Google
9216
9983
  class GoogleCloudDiscoveryengineV1TargetSite
9217
9984
  include Google::Apis::Core::Hashable
9218
9985
 
9219
- # Input only. If set to false, a uri_pattern is generated to include all pages
9986
+ # Immutable. If set to false, a uri_pattern is generated to include all pages
9220
9987
  # whose address contains the provided_uri_pattern. If set to true, an
9221
9988
  # uri_pattern is generated to try to be an exact match of the
9222
9989
  # provided_uri_pattern or just the specific page if the provided_uri_pattern is
@@ -10000,6 +10767,38 @@ module Google
10000
10767
  end
10001
10768
  end
10002
10769
 
10770
+ # Informations to support actions on the connector.
10771
+ class GoogleCloudDiscoveryengineV1alphaActionConfig
10772
+ include Google::Apis::Core::Hashable
10773
+
10774
+ # Required. Params needed to support actions in the format of (Key, Value) pairs.
10775
+ # Required parameters for sources that support OAUTH, i.e. `gmail`, `
10776
+ # google_calendar`, `jira`, `workday`, `salesforce`, `confluence`: * Key: `
10777
+ # client_id` * Value: type STRING. The client id for the service provider to
10778
+ # identify your application. * Key: `client_secret` * Value:type STRING. The
10779
+ # client secret generated by the application's authorization server.
10780
+ # Corresponds to the JSON property `actionParams`
10781
+ # @return [Hash<String,Object>]
10782
+ attr_accessor :action_params
10783
+
10784
+ # Output only. The connector contains the necessary parameters and is configured
10785
+ # to support actions.
10786
+ # Corresponds to the JSON property `isActionConfigured`
10787
+ # @return [Boolean]
10788
+ attr_accessor :is_action_configured
10789
+ alias_method :is_action_configured?, :is_action_configured
10790
+
10791
+ def initialize(**args)
10792
+ update!(**args)
10793
+ end
10794
+
10795
+ # Update properties of this object
10796
+ def update!(**args)
10797
+ @action_params = args[:action_params] if args.key?(:action_params)
10798
+ @is_action_configured = args[:is_action_configured] if args.key?(:is_action_configured)
10799
+ end
10800
+ end
10801
+
10003
10802
  # Configuration data for advance site search.
10004
10803
  class GoogleCloudDiscoveryengineV1alphaAdvancedSiteSearchConfig
10005
10804
  include Google::Apis::Core::Hashable
@@ -10089,6 +10888,11 @@ module Google
10089
10888
  # @return [Array<String>]
10090
10889
  attr_accessor :related_questions
10091
10890
 
10891
+ # Optional. Safety ratings.
10892
+ # Corresponds to the JSON property `safetyRatings`
10893
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSafetyRating>]
10894
+ attr_accessor :safety_ratings
10895
+
10092
10896
  # The state of the answer generation.
10093
10897
  # Corresponds to the JSON property `state`
10094
10898
  # @return [String]
@@ -10116,6 +10920,7 @@ module Google
10116
10920
  @query_understanding_info = args[:query_understanding_info] if args.key?(:query_understanding_info)
10117
10921
  @references = args[:references] if args.key?(:references)
10118
10922
  @related_questions = args[:related_questions] if args.key?(:related_questions)
10923
+ @safety_ratings = args[:safety_ratings] if args.key?(:safety_ratings)
10119
10924
  @state = args[:state] if args.key?(:state)
10120
10925
  @steps = args[:steps] if args.key?(:steps)
10121
10926
  end
@@ -10776,6 +11581,11 @@ module Google
10776
11581
  # @return [String]
10777
11582
  attr_accessor :name
10778
11583
 
11584
+ # Optional. Single-regional CMEKs that are required for some VAIS features.
11585
+ # Corresponds to the JSON property `singleRegionKeys`
11586
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSingleRegionKey>]
11587
+ attr_accessor :single_region_keys
11588
+
10779
11589
  # Output only. State of the CmekConfig.
10780
11590
  # Corresponds to the JSON property `state`
10781
11591
  # @return [String]
@@ -10792,10 +11602,57 @@ module Google
10792
11602
  @kms_key_version = args[:kms_key_version] if args.key?(:kms_key_version)
10793
11603
  @last_rotation_timestamp_micros = args[:last_rotation_timestamp_micros] if args.key?(:last_rotation_timestamp_micros)
10794
11604
  @name = args[:name] if args.key?(:name)
11605
+ @single_region_keys = args[:single_region_keys] if args.key?(:single_region_keys)
10795
11606
  @state = args[:state] if args.key?(:state)
10796
11607
  end
10797
11608
  end
10798
11609
 
11610
+ # Collection is a container for configuring resources and access to a set of
11611
+ # DataStores.
11612
+ class GoogleCloudDiscoveryengineV1alphaCollection
11613
+ include Google::Apis::Core::Hashable
11614
+
11615
+ # Output only. Timestamp the Collection was created at.
11616
+ # Corresponds to the JSON property `createTime`
11617
+ # @return [String]
11618
+ attr_accessor :create_time
11619
+
11620
+ # Manages the connection to external data sources for all data stores grouped
11621
+ # under a Collection. It's a singleton resource of Collection. The
11622
+ # initialization is only supported through DataConnectorService.
11623
+ # SetUpDataConnector method, which will create a new Collection and initialize
11624
+ # its DataConnector.
11625
+ # Corresponds to the JSON property `dataConnector`
11626
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaDataConnector]
11627
+ attr_accessor :data_connector
11628
+
11629
+ # Required. The Collection display name. This field must be a UTF-8 encoded
11630
+ # string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT
11631
+ # error is returned.
11632
+ # Corresponds to the JSON property `displayName`
11633
+ # @return [String]
11634
+ attr_accessor :display_name
11635
+
11636
+ # Immutable. The full resource name of the Collection. Format: `projects/`
11637
+ # project`/locations/`location`/collections/`collection_id``. This field must be
11638
+ # a UTF-8 encoded string with a length limit of 1024 characters.
11639
+ # Corresponds to the JSON property `name`
11640
+ # @return [String]
11641
+ attr_accessor :name
11642
+
11643
+ def initialize(**args)
11644
+ update!(**args)
11645
+ end
11646
+
11647
+ # Update properties of this object
11648
+ def update!(**args)
11649
+ @create_time = args[:create_time] if args.key?(:create_time)
11650
+ @data_connector = args[:data_connector] if args.key?(:data_connector)
11651
+ @display_name = args[:display_name] if args.key?(:display_name)
11652
+ @name = args[:name] if args.key?(:name)
11653
+ end
11654
+ end
11655
+
10799
11656
  # Defines circumstances to be checked before allowing a behavior
10800
11657
  class GoogleCloudDiscoveryengineV1alphaCondition
10801
11658
  include Google::Apis::Core::Hashable
@@ -10883,6 +11740,158 @@ module Google
10883
11740
  end
10884
11741
  end
10885
11742
 
11743
+ # A data sync run of DataConnector. After DataConnector is successfully
11744
+ # initialized, data syncs are scheduled at DataConnector.refresh_interval. A
11745
+ # ConnectorRun represents a data sync either in the past or onging that the
11746
+ # moment. //
11747
+ class GoogleCloudDiscoveryengineV1alphaConnectorRun
11748
+ include Google::Apis::Core::Hashable
11749
+
11750
+ # Output only. The time when the connector run ended.
11751
+ # Corresponds to the JSON property `endTime`
11752
+ # @return [String]
11753
+ attr_accessor :end_time
11754
+
11755
+ # Output only. The details of the entities synced at the ConnectorRun. Each
11756
+ # ConnectorRun consists of syncing one or more entities.
11757
+ # Corresponds to the JSON property `entityRuns`
11758
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRun>]
11759
+ attr_accessor :entity_runs
11760
+
11761
+ # Contains info about errors incurred during the sync. Only exist if running
11762
+ # into an error state. Contains error code and error message. Use with the `
11763
+ # state` field.
11764
+ # Corresponds to the JSON property `errors`
11765
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleRpcStatus>]
11766
+ attr_accessor :errors
11767
+
11768
+ # Output only. The time when the connector run was most recently paused.
11769
+ # Corresponds to the JSON property `latestPauseTime`
11770
+ # @return [String]
11771
+ attr_accessor :latest_pause_time
11772
+
11773
+ # Output only. The full resource name of the Connector Run. Format: `projects/*/
11774
+ # locations/*/collections/*/dataConnector/connectorRuns/*`. The `
11775
+ # connector_run_id` is system-generated.
11776
+ # Corresponds to the JSON property `name`
11777
+ # @return [String]
11778
+ attr_accessor :name
11779
+
11780
+ # Output only. The time when the connector run started.
11781
+ # Corresponds to the JSON property `startTime`
11782
+ # @return [String]
11783
+ attr_accessor :start_time
11784
+
11785
+ # Output only. The state of the sync run.
11786
+ # Corresponds to the JSON property `state`
11787
+ # @return [String]
11788
+ attr_accessor :state
11789
+
11790
+ # Timestamp at which the connector run sync state was last updated.
11791
+ # Corresponds to the JSON property `stateUpdateTime`
11792
+ # @return [String]
11793
+ attr_accessor :state_update_time
11794
+
11795
+ # Output only. The trigger for this ConnectorRun.
11796
+ # Corresponds to the JSON property `trigger`
11797
+ # @return [String]
11798
+ attr_accessor :trigger
11799
+
11800
+ def initialize(**args)
11801
+ update!(**args)
11802
+ end
11803
+
11804
+ # Update properties of this object
11805
+ def update!(**args)
11806
+ @end_time = args[:end_time] if args.key?(:end_time)
11807
+ @entity_runs = args[:entity_runs] if args.key?(:entity_runs)
11808
+ @errors = args[:errors] if args.key?(:errors)
11809
+ @latest_pause_time = args[:latest_pause_time] if args.key?(:latest_pause_time)
11810
+ @name = args[:name] if args.key?(:name)
11811
+ @start_time = args[:start_time] if args.key?(:start_time)
11812
+ @state = args[:state] if args.key?(:state)
11813
+ @state_update_time = args[:state_update_time] if args.key?(:state_update_time)
11814
+ @trigger = args[:trigger] if args.key?(:trigger)
11815
+ end
11816
+ end
11817
+
11818
+ # Represents an entity that was synced in this ConnectorRun.
11819
+ class GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRun
11820
+ include Google::Apis::Core::Hashable
11821
+
11822
+ # The name of the source entity.
11823
+ # Corresponds to the JSON property `entityName`
11824
+ # @return [String]
11825
+ attr_accessor :entity_name
11826
+
11827
+ # The total number of documents failed at sync at any stage (extraction,
11828
+ # indexing, etc).
11829
+ # Corresponds to the JSON property `errorRecordCount`
11830
+ # @return [Fixnum]
11831
+ attr_accessor :error_record_count
11832
+
11833
+ # The errors from the entity's sync run. Only exist if running into an error
11834
+ # state. Contains error code and error message.
11835
+ # Corresponds to the JSON property `errors`
11836
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleRpcStatus>]
11837
+ attr_accessor :errors
11838
+
11839
+ # The number of documents extracted from connector source, ready to be ingested
11840
+ # to UCS.
11841
+ # Corresponds to the JSON property `extractedRecordCount`
11842
+ # @return [Fixnum]
11843
+ attr_accessor :extracted_record_count
11844
+
11845
+ # The number of documents indexed.
11846
+ # Corresponds to the JSON property `indexedRecordCount`
11847
+ # @return [Fixnum]
11848
+ attr_accessor :indexed_record_count
11849
+
11850
+ # The number of requests sent to 3p API.
11851
+ # Corresponds to the JSON property `sourceApiRequestCount`
11852
+ # @return [Fixnum]
11853
+ attr_accessor :source_api_request_count
11854
+
11855
+ # The state of the entity's sync run.
11856
+ # Corresponds to the JSON property `state`
11857
+ # @return [String]
11858
+ attr_accessor :state
11859
+
11860
+ # Timestamp at which the entity sync state was last updated.
11861
+ # Corresponds to the JSON property `stateUpdateTime`
11862
+ # @return [String]
11863
+ attr_accessor :state_update_time
11864
+
11865
+ # The timestamp for either extracted_documents_count, indexed_documents_count
11866
+ # and error_documents_count was last updated.
11867
+ # Corresponds to the JSON property `statsUpdateTime`
11868
+ # @return [String]
11869
+ attr_accessor :stats_update_time
11870
+
11871
+ # Sync type of this run.
11872
+ # Corresponds to the JSON property `syncType`
11873
+ # @return [String]
11874
+ attr_accessor :sync_type
11875
+
11876
+ def initialize(**args)
11877
+ update!(**args)
11878
+ end
11879
+
11880
+ # Update properties of this object
11881
+ def update!(**args)
11882
+ @entity_name = args[:entity_name] if args.key?(:entity_name)
11883
+ @error_record_count = args[:error_record_count] if args.key?(:error_record_count)
11884
+ @errors = args[:errors] if args.key?(:errors)
11885
+ @extracted_record_count = args[:extracted_record_count] if args.key?(:extracted_record_count)
11886
+ @indexed_record_count = args[:indexed_record_count] if args.key?(:indexed_record_count)
11887
+ @source_api_request_count = args[:source_api_request_count] if args.key?(:source_api_request_count)
11888
+ @state = args[:state] if args.key?(:state)
11889
+ @state_update_time = args[:state_update_time] if args.key?(:state_update_time)
11890
+ @stats_update_time = args[:stats_update_time] if args.key?(:stats_update_time)
11891
+ @sync_type = args[:sync_type] if args.key?(:sync_type)
11892
+ end
11893
+ end
11894
+
10886
11895
  # Defines a conditioned behavior to employ during serving. Must be attached to a
10887
11896
  # ServingConfig to be considered at serving time. Permitted actions dependent on
10888
11897
  # `SolutionType`.
@@ -10982,8 +11991,8 @@ module Google
10982
11991
  class GoogleCloudDiscoveryengineV1alphaControlBoostAction
10983
11992
  include Google::Apis::Core::Hashable
10984
11993
 
10985
- # Required. Strength of the boost, which should be in [-1, 1]. Negative boost
10986
- # means demotion. Default is 0.0 (No-op).
11994
+ # Strength of the boost, which should be in [-1, 1]. Negative boost means
11995
+ # demotion. Default is 0.0 (No-op).
10987
11996
  # Corresponds to the JSON property `boost`
10988
11997
  # @return [Float]
10989
11998
  attr_accessor :boost
@@ -11003,6 +12012,12 @@ module Google
11003
12012
  # @return [String]
11004
12013
  attr_accessor :filter
11005
12014
 
12015
+ # Optional. Strength of the boost, which should be in [-1, 1]. Negative boost
12016
+ # means demotion. Default is 0.0 (No-op).
12017
+ # Corresponds to the JSON property `fixedBoost`
12018
+ # @return [Float]
12019
+ attr_accessor :fixed_boost
12020
+
11006
12021
  def initialize(**args)
11007
12022
  update!(**args)
11008
12023
  end
@@ -11012,6 +12027,7 @@ module Google
11012
12027
  @boost = args[:boost] if args.key?(:boost)
11013
12028
  @data_store = args[:data_store] if args.key?(:data_store)
11014
12029
  @filter = args[:filter] if args.key?(:filter)
12030
+ @fixed_boost = args[:fixed_boost] if args.key?(:fixed_boost)
11015
12031
  end
11016
12032
  end
11017
12033
 
@@ -11212,38 +12228,275 @@ module Google
11212
12228
  # Operation create time.
11213
12229
  # Corresponds to the JSON property `createTime`
11214
12230
  # @return [String]
11215
- attr_accessor :create_time
12231
+ attr_accessor :create_time
12232
+
12233
+ # Operation last update time. If the operation is done, this is also the finish
12234
+ # time.
12235
+ # Corresponds to the JSON property `updateTime`
12236
+ # @return [String]
12237
+ attr_accessor :update_time
12238
+
12239
+ def initialize(**args)
12240
+ update!(**args)
12241
+ end
12242
+
12243
+ # Update properties of this object
12244
+ def update!(**args)
12245
+ @create_time = args[:create_time] if args.key?(:create_time)
12246
+ @update_time = args[:update_time] if args.key?(:update_time)
12247
+ end
12248
+ end
12249
+
12250
+ # Metadata related to the progress of the SiteSearchEngineService.CreateSitemap
12251
+ # operation. This will be returned by the google.longrunning.Operation.metadata
12252
+ # field.
12253
+ class GoogleCloudDiscoveryengineV1alphaCreateSitemapMetadata
12254
+ include Google::Apis::Core::Hashable
12255
+
12256
+ # Operation create time.
12257
+ # Corresponds to the JSON property `createTime`
12258
+ # @return [String]
12259
+ attr_accessor :create_time
12260
+
12261
+ # Operation last update time. If the operation is done, this is also the finish
12262
+ # time.
12263
+ # Corresponds to the JSON property `updateTime`
12264
+ # @return [String]
12265
+ attr_accessor :update_time
12266
+
12267
+ def initialize(**args)
12268
+ update!(**args)
12269
+ end
12270
+
12271
+ # Update properties of this object
12272
+ def update!(**args)
12273
+ @create_time = args[:create_time] if args.key?(:create_time)
12274
+ @update_time = args[:update_time] if args.key?(:update_time)
12275
+ end
12276
+ end
12277
+
12278
+ # Metadata related to the progress of the SiteSearchEngineService.
12279
+ # CreateTargetSite operation. This will be returned by the google.longrunning.
12280
+ # Operation.metadata field.
12281
+ class GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata
12282
+ include Google::Apis::Core::Hashable
12283
+
12284
+ # Operation create time.
12285
+ # Corresponds to the JSON property `createTime`
12286
+ # @return [String]
12287
+ attr_accessor :create_time
12288
+
12289
+ # Operation last update time. If the operation is done, this is also the finish
12290
+ # time.
12291
+ # Corresponds to the JSON property `updateTime`
12292
+ # @return [String]
12293
+ attr_accessor :update_time
12294
+
12295
+ def initialize(**args)
12296
+ update!(**args)
12297
+ end
12298
+
12299
+ # Update properties of this object
12300
+ def update!(**args)
12301
+ @create_time = args[:create_time] if args.key?(:create_time)
12302
+ @update_time = args[:update_time] if args.key?(:update_time)
12303
+ end
12304
+ end
12305
+
12306
+ # Defines custom fine tuning spec.
12307
+ class GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec
12308
+ include Google::Apis::Core::Hashable
12309
+
12310
+ # Whether or not to enable and include custom fine tuned search adaptor model.
12311
+ # Corresponds to the JSON property `enableSearchAdaptor`
12312
+ # @return [Boolean]
12313
+ attr_accessor :enable_search_adaptor
12314
+ alias_method :enable_search_adaptor?, :enable_search_adaptor
12315
+
12316
+ def initialize(**args)
12317
+ update!(**args)
12318
+ end
12319
+
12320
+ # Update properties of this object
12321
+ def update!(**args)
12322
+ @enable_search_adaptor = args[:enable_search_adaptor] if args.key?(:enable_search_adaptor)
12323
+ end
12324
+ end
12325
+
12326
+ # Manages the connection to external data sources for all data stores grouped
12327
+ # under a Collection. It's a singleton resource of Collection. The
12328
+ # initialization is only supported through DataConnectorService.
12329
+ # SetUpDataConnector method, which will create a new Collection and initialize
12330
+ # its DataConnector.
12331
+ class GoogleCloudDiscoveryengineV1alphaDataConnector
12332
+ include Google::Apis::Core::Hashable
12333
+
12334
+ # Informations to support actions on the connector.
12335
+ # Corresponds to the JSON property `actionConfig`
12336
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaActionConfig]
12337
+ attr_accessor :action_config
12338
+
12339
+ # Indicates whether the connector is disabled for auto run. It can be used to
12340
+ # pause periodical and real time sync.
12341
+ # Corresponds to the JSON property `autoRunDisabled`
12342
+ # @return [Boolean]
12343
+ attr_accessor :auto_run_disabled
12344
+ alias_method :auto_run_disabled?, :auto_run_disabled
12345
+
12346
+ # Output only. User actions that must be completed before the connector can
12347
+ # start syncing data.
12348
+ # Corresponds to the JSON property `blockingReasons`
12349
+ # @return [Array<String>]
12350
+ attr_accessor :blocking_reasons
12351
+
12352
+ # Output only. Timestamp the DataConnector was created at.
12353
+ # Corresponds to the JSON property `createTime`
12354
+ # @return [String]
12355
+ attr_accessor :create_time
12356
+
12357
+ # Required. The name of the data source. Supported values: `salesforce`, `jira`,
12358
+ # `confluence`, `bigquery`.
12359
+ # Corresponds to the JSON property `dataSource`
12360
+ # @return [String]
12361
+ attr_accessor :data_source
12362
+
12363
+ # Optional. Any target destinations used to connect to third-party services.
12364
+ # Corresponds to the JSON property `destinationConfigs`
12365
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaDestinationConfig>]
12366
+ attr_accessor :destination_configs
12367
+
12368
+ # List of entities from the connected data source to ingest.
12369
+ # Corresponds to the JSON property `entities`
12370
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaDataConnectorSourceEntity>]
12371
+ attr_accessor :entities
12372
+
12373
+ # Output only. The errors from initialization or from the latest connector run.
12374
+ # Corresponds to the JSON property `errors`
12375
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleRpcStatus>]
12376
+ attr_accessor :errors
12377
+
12378
+ # The refresh interval to sync the Access Control List information for the
12379
+ # documents ingested by this connector. If not set, the access control list will
12380
+ # be refreshed at the default interval of 30 minutes. The identity refresh
12381
+ # interval can be at least 30 minutes and at most 7 days.
12382
+ # Corresponds to the JSON property `identityRefreshInterval`
12383
+ # @return [String]
12384
+ attr_accessor :identity_refresh_interval
12385
+
12386
+ # The configuration for the identity data synchronization runs.
12387
+ # Corresponds to the JSON property `identityScheduleConfig`
12388
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaIdentityScheduleConfig]
12389
+ attr_accessor :identity_schedule_config
12390
+
12391
+ # Input only. The KMS key to be used to protect the DataStores managed by this
12392
+ # connector. Must be set for requests that need to comply with CMEK Org Policy
12393
+ # protections. If this field is set and processed successfully, the DataStores
12394
+ # created by this connector will be protected by the KMS key.
12395
+ # Corresponds to the JSON property `kmsKeyName`
12396
+ # @return [String]
12397
+ attr_accessor :kms_key_name
12398
+
12399
+ # Output only. For periodic connectors only, the last time a data sync was
12400
+ # completed.
12401
+ # Corresponds to the JSON property `lastSyncTime`
12402
+ # @return [String]
12403
+ attr_accessor :last_sync_time
12404
+
12405
+ # Output only. The most recent timestamp when this DataConnector was paused,
12406
+ # affecting all functionalities such as data synchronization. Pausing a
12407
+ # connector has the following effects: - All functionalities, including data
12408
+ # synchronization, are halted. - Any ongoing data synchronization job will be
12409
+ # canceled. - No future data synchronization runs will be scheduled nor can be
12410
+ # triggered.
12411
+ # Corresponds to the JSON property `latestPauseTime`
12412
+ # @return [String]
12413
+ attr_accessor :latest_pause_time
12414
+
12415
+ # Output only. The full resource name of the Data Connector. Format: `projects/*/
12416
+ # locations/*/collections/*/dataConnector`.
12417
+ # Corresponds to the JSON property `name`
12418
+ # @return [String]
12419
+ attr_accessor :name
12420
+
12421
+ # Represents civil time (or occasionally physical time). This type can represent
12422
+ # a civil time in one of a few possible ways: * When utc_offset is set and
12423
+ # time_zone is unset: a civil time on a calendar day with a particular offset
12424
+ # from UTC. * When time_zone is set and utc_offset is unset: a civil time on a
12425
+ # calendar day in a particular time zone. * When neither time_zone nor
12426
+ # utc_offset is set: a civil time on a calendar day in local time. The date is
12427
+ # relative to the Proleptic Gregorian Calendar. If year, month, or day are 0,
12428
+ # the DateTime is considered not to have a specific year, month, or day
12429
+ # respectively. This type may also be used to represent a physical time if all
12430
+ # the date and time fields are set and either case of the `time_offset` oneof is
12431
+ # set. Consider using `Timestamp` message for physical time instead. If your use
12432
+ # case also would like to store the user's timezone, that can be done in another
12433
+ # field. This type is more flexible than some applications may want. Make sure
12434
+ # to document and validate your application's limitations.
12435
+ # Corresponds to the JSON property `nextSyncTime`
12436
+ # @return [Google::Apis::DiscoveryengineV1::GoogleTypeDateTime]
12437
+ attr_accessor :next_sync_time
12438
+
12439
+ # Required. Params needed to access the source in the format of (Key, Value)
12440
+ # pairs. Required parameters for all data sources: * Key: `instance_uri` * Value:
12441
+ # type STRING. The uri to access the data source. Required parameters for
12442
+ # sources that support OAUTH, i.e. `salesforce`: * Key: `client_id` * Value:
12443
+ # type STRING. The client id for the third party service provider to identify
12444
+ # your application. * Key: `client_secret` * Value:type STRING. The client
12445
+ # secret generated by the third party authorization server. * Key: `access_token`
12446
+ # * Value: type STRING. OAuth token for UCS to access to the protected resource.
12447
+ # * Key: `refresh_token` * Value: type STRING. OAuth refresh token for UCS to
12448
+ # obtain a new access token without user interaction. Required parameters for
12449
+ # sources that support basic API token auth, i.e. `jira`, `confluence`: * Key: `
12450
+ # user_account` * Value: type STRING. The username or email with the source. *
12451
+ # Key: `api_token` * Value: type STRING. The API token generated for the source
12452
+ # account, that is used for authenticating anywhere where you would have used a
12453
+ # password. Example: ```json ` "instance_uri": "https://xxx.atlassian.net", "
12454
+ # user_account": "xxxx.xxx@xxx.com", "api_token": "test-token" ` ``` Optional
12455
+ # parameter to specify the authorization type to use for multiple authorization
12456
+ # types support: * Key: `auth_type` * Value: type STRING. The authorization type
12457
+ # for the data source. Supported values: `BASIC_AUTH`, `OAUTH`, `
12458
+ # OAUTH_ACCESS_TOKEN`, `OAUTH_TWO_LEGGED`, `OAUTH_JWT_BEARER`, `
12459
+ # OAUTH_PASSWORD_GRANT`, `JWT`, `API_TOKEN`, `FEDERATED_CREDENTIAL`.
12460
+ # Corresponds to the JSON property `params`
12461
+ # @return [Hash<String,Object>]
12462
+ attr_accessor :params
12463
+
12464
+ # Output only. The tenant project ID associated with private connectivity
12465
+ # connectors. This project must be allowlisted by in order for the connector to
12466
+ # function.
12467
+ # Corresponds to the JSON property `privateConnectivityProjectId`
12468
+ # @return [String]
12469
+ attr_accessor :private_connectivity_project_id
11216
12470
 
11217
- # Operation last update time. If the operation is done, this is also the finish
11218
- # time.
11219
- # Corresponds to the JSON property `updateTime`
12471
+ # Required. The refresh interval for data sync. If duration is set to 0, the
12472
+ # data will be synced in real time. The streaming feature is not supported yet.
12473
+ # The minimum is 30 minutes and maximum is 7 days.
12474
+ # Corresponds to the JSON property `refreshInterval`
11220
12475
  # @return [String]
11221
- attr_accessor :update_time
12476
+ attr_accessor :refresh_interval
11222
12477
 
11223
- def initialize(**args)
11224
- update!(**args)
11225
- end
12478
+ # Output only. State of the connector.
12479
+ # Corresponds to the JSON property `state`
12480
+ # @return [String]
12481
+ attr_accessor :state
11226
12482
 
11227
- # Update properties of this object
11228
- def update!(**args)
11229
- @create_time = args[:create_time] if args.key?(:create_time)
11230
- @update_time = args[:update_time] if args.key?(:update_time)
11231
- end
11232
- end
12483
+ # Output only. The static IP addresses used by this connector.
12484
+ # Corresponds to the JSON property `staticIpAddresses`
12485
+ # @return [Array<String>]
12486
+ attr_accessor :static_ip_addresses
11233
12487
 
11234
- # Metadata related to the progress of the SiteSearchEngineService.CreateSitemap
11235
- # operation. This will be returned by the google.longrunning.Operation.metadata
11236
- # field.
11237
- class GoogleCloudDiscoveryengineV1alphaCreateSitemapMetadata
11238
- include Google::Apis::Core::Hashable
12488
+ # Optional. Whether customer has enabled static IP addresses for this connector.
12489
+ # Corresponds to the JSON property `staticIpEnabled`
12490
+ # @return [Boolean]
12491
+ attr_accessor :static_ip_enabled
12492
+ alias_method :static_ip_enabled?, :static_ip_enabled
11239
12493
 
11240
- # Operation create time.
11241
- # Corresponds to the JSON property `createTime`
12494
+ # The data synchronization mode supported by the data connector.
12495
+ # Corresponds to the JSON property `syncMode`
11242
12496
  # @return [String]
11243
- attr_accessor :create_time
12497
+ attr_accessor :sync_mode
11244
12498
 
11245
- # Operation last update time. If the operation is done, this is also the finish
11246
- # time.
12499
+ # Output only. Timestamp the DataConnector was last updated.
11247
12500
  # Corresponds to the JSON property `updateTime`
11248
12501
  # @return [String]
11249
12502
  attr_accessor :update_time
@@ -11254,48 +12507,68 @@ module Google
11254
12507
 
11255
12508
  # Update properties of this object
11256
12509
  def update!(**args)
12510
+ @action_config = args[:action_config] if args.key?(:action_config)
12511
+ @auto_run_disabled = args[:auto_run_disabled] if args.key?(:auto_run_disabled)
12512
+ @blocking_reasons = args[:blocking_reasons] if args.key?(:blocking_reasons)
11257
12513
  @create_time = args[:create_time] if args.key?(:create_time)
12514
+ @data_source = args[:data_source] if args.key?(:data_source)
12515
+ @destination_configs = args[:destination_configs] if args.key?(:destination_configs)
12516
+ @entities = args[:entities] if args.key?(:entities)
12517
+ @errors = args[:errors] if args.key?(:errors)
12518
+ @identity_refresh_interval = args[:identity_refresh_interval] if args.key?(:identity_refresh_interval)
12519
+ @identity_schedule_config = args[:identity_schedule_config] if args.key?(:identity_schedule_config)
12520
+ @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
12521
+ @last_sync_time = args[:last_sync_time] if args.key?(:last_sync_time)
12522
+ @latest_pause_time = args[:latest_pause_time] if args.key?(:latest_pause_time)
12523
+ @name = args[:name] if args.key?(:name)
12524
+ @next_sync_time = args[:next_sync_time] if args.key?(:next_sync_time)
12525
+ @params = args[:params] if args.key?(:params)
12526
+ @private_connectivity_project_id = args[:private_connectivity_project_id] if args.key?(:private_connectivity_project_id)
12527
+ @refresh_interval = args[:refresh_interval] if args.key?(:refresh_interval)
12528
+ @state = args[:state] if args.key?(:state)
12529
+ @static_ip_addresses = args[:static_ip_addresses] if args.key?(:static_ip_addresses)
12530
+ @static_ip_enabled = args[:static_ip_enabled] if args.key?(:static_ip_enabled)
12531
+ @sync_mode = args[:sync_mode] if args.key?(:sync_mode)
11258
12532
  @update_time = args[:update_time] if args.key?(:update_time)
11259
12533
  end
11260
12534
  end
11261
12535
 
11262
- # Metadata related to the progress of the SiteSearchEngineService.
11263
- # CreateTargetSite operation. This will be returned by the google.longrunning.
11264
- # Operation.metadata field.
11265
- class GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata
12536
+ # Represents an entity in the data source. For example, the `Account` object in
12537
+ # Salesforce.
12538
+ class GoogleCloudDiscoveryengineV1alphaDataConnectorSourceEntity
11266
12539
  include Google::Apis::Core::Hashable
11267
12540
 
11268
- # Operation create time.
11269
- # Corresponds to the JSON property `createTime`
12541
+ # Output only. The full resource name of the associated data store for the
12542
+ # source entity. Format: `projects/*/locations/*/collections/*/dataStores/*`.
12543
+ # When the connector is initialized by the DataConnectorService.
12544
+ # SetUpDataConnector method, a DataStore is automatically created for each
12545
+ # source entity.
12546
+ # Corresponds to the JSON property `dataStore`
11270
12547
  # @return [String]
11271
- attr_accessor :create_time
12548
+ attr_accessor :data_store
11272
12549
 
11273
- # Operation last update time. If the operation is done, this is also the finish
11274
- # time.
11275
- # Corresponds to the JSON property `updateTime`
12550
+ # The name of the entity. Supported values by data source: * Salesforce: `Lead`,
12551
+ # `Opportunity`, `Contact`, `Account`, `Case`, `Contract`, `Campaign` * Jira: `
12552
+ # Issue` * Confluence: `Content`, `Space`
12553
+ # Corresponds to the JSON property `entityName`
11276
12554
  # @return [String]
11277
- attr_accessor :update_time
11278
-
11279
- def initialize(**args)
11280
- update!(**args)
11281
- end
11282
-
11283
- # Update properties of this object
11284
- def update!(**args)
11285
- @create_time = args[:create_time] if args.key?(:create_time)
11286
- @update_time = args[:update_time] if args.key?(:update_time)
11287
- end
11288
- end
12555
+ attr_accessor :entity_name
11289
12556
 
11290
- # Defines custom fine tuning spec.
11291
- class GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec
11292
- include Google::Apis::Core::Hashable
12557
+ # Attributes for indexing. Key: Field name. Value: The key property to map a
12558
+ # field to, such as `title`, and `description`. Supported key properties: * `
12559
+ # title`: The title for data record. This would be displayed on search results. *
12560
+ # `description`: The description for data record. This would be displayed on
12561
+ # search results.
12562
+ # Corresponds to the JSON property `keyPropertyMappings`
12563
+ # @return [Hash<String,String>]
12564
+ attr_accessor :key_property_mappings
11293
12565
 
11294
- # Whether or not to enable and include custom fine tuned search adaptor model.
11295
- # Corresponds to the JSON property `enableSearchAdaptor`
11296
- # @return [Boolean]
11297
- attr_accessor :enable_search_adaptor
11298
- alias_method :enable_search_adaptor?, :enable_search_adaptor
12566
+ # The parameters for the entity to facilitate data ingestion. E.g. for BQ
12567
+ # connectors: * Key: `document_id_column` * Value: type STRING. The value of the
12568
+ # column id.
12569
+ # Corresponds to the JSON property `params`
12570
+ # @return [Hash<String,Object>]
12571
+ attr_accessor :params
11299
12572
 
11300
12573
  def initialize(**args)
11301
12574
  update!(**args)
@@ -11303,7 +12576,10 @@ module Google
11303
12576
 
11304
12577
  # Update properties of this object
11305
12578
  def update!(**args)
11306
- @enable_search_adaptor = args[:enable_search_adaptor] if args.key?(:enable_search_adaptor)
12579
+ @data_store = args[:data_store] if args.key?(:data_store)
12580
+ @entity_name = args[:entity_name] if args.key?(:entity_name)
12581
+ @key_property_mappings = args[:key_property_mappings] if args.key?(:key_property_mappings)
12582
+ @params = args[:params] if args.key?(:params)
11307
12583
  end
11308
12584
  end
11309
12585
 
@@ -11377,6 +12653,12 @@ module Google
11377
12653
  # @return [String]
11378
12654
  attr_accessor :industry_vertical
11379
12655
 
12656
+ # Optional. If set, this DataStore is an Infobot FAQ DataStore.
12657
+ # Corresponds to the JSON property `isInfobotFaqDataStore`
12658
+ # @return [Boolean]
12659
+ attr_accessor :is_infobot_faq_data_store
12660
+ alias_method :is_infobot_faq_data_store?, :is_infobot_faq_data_store
12661
+
11380
12662
  # Input only. The KMS key to be used to protect this DataStore at creation time.
11381
12663
  # Must be set for requests that need to comply with CMEK Org Policy protections.
11382
12664
  # If this field is set and processed successfully, the DataStore will be
@@ -11443,6 +12725,7 @@ module Google
11443
12725
  @document_processing_config = args[:document_processing_config] if args.key?(:document_processing_config)
11444
12726
  @idp_config = args[:idp_config] if args.key?(:idp_config)
11445
12727
  @industry_vertical = args[:industry_vertical] if args.key?(:industry_vertical)
12728
+ @is_infobot_faq_data_store = args[:is_infobot_faq_data_store] if args.key?(:is_infobot_faq_data_store)
11446
12729
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
11447
12730
  @language_info = args[:language_info] if args.key?(:language_info)
11448
12731
  @name = args[:name] if args.key?(:name)
@@ -11550,6 +12833,34 @@ module Google
11550
12833
  end
11551
12834
  end
11552
12835
 
12836
+ # Metadata related to the progress of the CollectionService.UpdateCollection
12837
+ # operation. This will be returned by the google.longrunning.Operation.metadata
12838
+ # field.
12839
+ class GoogleCloudDiscoveryengineV1alphaDeleteCollectionMetadata
12840
+ include Google::Apis::Core::Hashable
12841
+
12842
+ # Operation create time.
12843
+ # Corresponds to the JSON property `createTime`
12844
+ # @return [String]
12845
+ attr_accessor :create_time
12846
+
12847
+ # Operation last update time. If the operation is done, this is also the finish
12848
+ # time.
12849
+ # Corresponds to the JSON property `updateTime`
12850
+ # @return [String]
12851
+ attr_accessor :update_time
12852
+
12853
+ def initialize(**args)
12854
+ update!(**args)
12855
+ end
12856
+
12857
+ # Update properties of this object
12858
+ def update!(**args)
12859
+ @create_time = args[:create_time] if args.key?(:create_time)
12860
+ @update_time = args[:update_time] if args.key?(:update_time)
12861
+ end
12862
+ end
12863
+
11553
12864
  # Metadata related to the progress of the DataStoreService.DeleteDataStore
11554
12865
  # operation. This will be returned by the google.longrunning.Operation.metadata
11555
12866
  # field.
@@ -11605,6 +12916,34 @@ module Google
11605
12916
  end
11606
12917
  end
11607
12918
 
12919
+ # Metadata related to the progress of the IdentityMappingStoreService.
12920
+ # DeleteIdentityMappingStore operation. This will be returned by the google.
12921
+ # longrunning.Operation.metadata field.
12922
+ class GoogleCloudDiscoveryengineV1alphaDeleteIdentityMappingStoreMetadata
12923
+ include Google::Apis::Core::Hashable
12924
+
12925
+ # Operation create time.
12926
+ # Corresponds to the JSON property `createTime`
12927
+ # @return [String]
12928
+ attr_accessor :create_time
12929
+
12930
+ # Operation last update time. If the operation is done, this is also the finish
12931
+ # time.
12932
+ # Corresponds to the JSON property `updateTime`
12933
+ # @return [String]
12934
+ attr_accessor :update_time
12935
+
12936
+ def initialize(**args)
12937
+ update!(**args)
12938
+ end
12939
+
12940
+ # Update properties of this object
12941
+ def update!(**args)
12942
+ @create_time = args[:create_time] if args.key?(:create_time)
12943
+ @update_time = args[:update_time] if args.key?(:update_time)
12944
+ end
12945
+ end
12946
+
11608
12947
  # Metadata for DeleteSchema LRO.
11609
12948
  class GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata
11610
12949
  include Google::Apis::Core::Hashable
@@ -11708,6 +13047,62 @@ module Google
11708
13047
  end
11709
13048
  end
11710
13049
 
13050
+ # Defines target endpoints used to connect to third-party sources.
13051
+ class GoogleCloudDiscoveryengineV1alphaDestinationConfig
13052
+ include Google::Apis::Core::Hashable
13053
+
13054
+ # Optional. The destinations for the corresponding key.
13055
+ # Corresponds to the JSON property `destinations`
13056
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaDestinationConfigDestination>]
13057
+ attr_accessor :destinations
13058
+
13059
+ # Optional. Unique destination identifier that is supported by the connector.
13060
+ # Corresponds to the JSON property `key`
13061
+ # @return [String]
13062
+ attr_accessor :key
13063
+
13064
+ # Optional. Additional parameters for this destination config.
13065
+ # Corresponds to the JSON property `params`
13066
+ # @return [Hash<String,Object>]
13067
+ attr_accessor :params
13068
+
13069
+ def initialize(**args)
13070
+ update!(**args)
13071
+ end
13072
+
13073
+ # Update properties of this object
13074
+ def update!(**args)
13075
+ @destinations = args[:destinations] if args.key?(:destinations)
13076
+ @key = args[:key] if args.key?(:key)
13077
+ @params = args[:params] if args.key?(:params)
13078
+ end
13079
+ end
13080
+
13081
+ # Defines a target endpoint
13082
+ class GoogleCloudDiscoveryengineV1alphaDestinationConfigDestination
13083
+ include Google::Apis::Core::Hashable
13084
+
13085
+ # Publicly routable host.
13086
+ # Corresponds to the JSON property `host`
13087
+ # @return [String]
13088
+ attr_accessor :host
13089
+
13090
+ # Optional. Target port number accepted by the destination.
13091
+ # Corresponds to the JSON property `port`
13092
+ # @return [Fixnum]
13093
+ attr_accessor :port
13094
+
13095
+ def initialize(**args)
13096
+ update!(**args)
13097
+ end
13098
+
13099
+ # Update properties of this object
13100
+ def update!(**args)
13101
+ @host = args[:host] if args.key?(:host)
13102
+ @port = args[:port] if args.key?(:port)
13103
+ end
13104
+ end
13105
+
11711
13106
  # Metadata related to the progress of the SiteSearchEngineService.
11712
13107
  # DisableAdvancedSiteSearch operation. This will be returned by the google.
11713
13108
  # longrunning.Operation.metadata field.
@@ -12770,6 +14165,47 @@ module Google
12770
14165
  end
12771
14166
  end
12772
14167
 
14168
+ # The configuration for the identity data synchronization runs.
14169
+ class GoogleCloudDiscoveryengineV1alphaIdentityScheduleConfig
14170
+ include Google::Apis::Core::Hashable
14171
+
14172
+ # Represents civil time (or occasionally physical time). This type can represent
14173
+ # a civil time in one of a few possible ways: * When utc_offset is set and
14174
+ # time_zone is unset: a civil time on a calendar day with a particular offset
14175
+ # from UTC. * When time_zone is set and utc_offset is unset: a civil time on a
14176
+ # calendar day in a particular time zone. * When neither time_zone nor
14177
+ # utc_offset is set: a civil time on a calendar day in local time. The date is
14178
+ # relative to the Proleptic Gregorian Calendar. If year, month, or day are 0,
14179
+ # the DateTime is considered not to have a specific year, month, or day
14180
+ # respectively. This type may also be used to represent a physical time if all
14181
+ # the date and time fields are set and either case of the `time_offset` oneof is
14182
+ # set. Consider using `Timestamp` message for physical time instead. If your use
14183
+ # case also would like to store the user's timezone, that can be done in another
14184
+ # field. This type is more flexible than some applications may want. Make sure
14185
+ # to document and validate your application's limitations.
14186
+ # Corresponds to the JSON property `nextSyncTime`
14187
+ # @return [Google::Apis::DiscoveryengineV1::GoogleTypeDateTime]
14188
+ attr_accessor :next_sync_time
14189
+
14190
+ # Optional. The refresh interval to sync the Access Control List information for
14191
+ # the documents ingested by this connector. If not set, the access control list
14192
+ # will be refreshed at the default interval of 30 minutes. The identity refresh
14193
+ # interval can be at least 30 minutes and at most 7 days.
14194
+ # Corresponds to the JSON property `refreshInterval`
14195
+ # @return [String]
14196
+ attr_accessor :refresh_interval
14197
+
14198
+ def initialize(**args)
14199
+ update!(**args)
14200
+ end
14201
+
14202
+ # Update properties of this object
14203
+ def update!(**args)
14204
+ @next_sync_time = args[:next_sync_time] if args.key?(:next_sync_time)
14205
+ @refresh_interval = args[:refresh_interval] if args.key?(:refresh_interval)
14206
+ end
14207
+ end
14208
+
12773
14209
  # Identity Provider Config.
12774
14210
  class GoogleCloudDiscoveryengineV1alphaIdpConfig
12775
14211
  include Google::Apis::Core::Hashable
@@ -13995,7 +15431,93 @@ module Google
13995
15431
  # URI that failed to be crawled.
13996
15432
  # Corresponds to the JSON property `uri`
13997
15433
  # @return [String]
13998
- attr_accessor :uri
15434
+ attr_accessor :uri
15435
+
15436
+ def initialize(**args)
15437
+ update!(**args)
15438
+ end
15439
+
15440
+ # Update properties of this object
15441
+ def update!(**args)
15442
+ @failure_reasons = args[:failure_reasons] if args.key?(:failure_reasons)
15443
+ @uri = args[:uri] if args.key?(:uri)
15444
+ end
15445
+ end
15446
+
15447
+ # Details about why crawling failed for a particular CorpusType, e.g., DESKTOP
15448
+ # and MOBILE crawling may fail for different reasons.
15449
+ class GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason
15450
+ include Google::Apis::Core::Hashable
15451
+
15452
+ # DESKTOP, MOBILE, or CORPUS_TYPE_UNSPECIFIED.
15453
+ # Corresponds to the JSON property `corpusType`
15454
+ # @return [String]
15455
+ attr_accessor :corpus_type
15456
+
15457
+ # Reason why the URI was not crawled.
15458
+ # Corresponds to the JSON property `errorMessage`
15459
+ # @return [String]
15460
+ attr_accessor :error_message
15461
+
15462
+ def initialize(**args)
15463
+ update!(**args)
15464
+ end
15465
+
15466
+ # Update properties of this object
15467
+ def update!(**args)
15468
+ @corpus_type = args[:corpus_type] if args.key?(:corpus_type)
15469
+ @error_message = args[:error_message] if args.key?(:error_message)
15470
+ end
15471
+ end
15472
+
15473
+ # Metadata related to the progress of the CrawlRateManagementService.
15474
+ # RemoveDedicatedCrawlRate operation. This will be returned by the google.
15475
+ # longrunning.Operation.metadata field.
15476
+ class GoogleCloudDiscoveryengineV1alphaRemoveDedicatedCrawlRateMetadata
15477
+ include Google::Apis::Core::Hashable
15478
+
15479
+ # Operation create time.
15480
+ # Corresponds to the JSON property `createTime`
15481
+ # @return [String]
15482
+ attr_accessor :create_time
15483
+
15484
+ # Operation last update time. If the operation is done, this is also the finish
15485
+ # time.
15486
+ # Corresponds to the JSON property `updateTime`
15487
+ # @return [String]
15488
+ attr_accessor :update_time
15489
+
15490
+ def initialize(**args)
15491
+ update!(**args)
15492
+ end
15493
+
15494
+ # Update properties of this object
15495
+ def update!(**args)
15496
+ @create_time = args[:create_time] if args.key?(:create_time)
15497
+ @update_time = args[:update_time] if args.key?(:update_time)
15498
+ end
15499
+ end
15500
+
15501
+ # Response message for CrawlRateManagementService.RemoveDedicatedCrawlRate
15502
+ # method. It simply returns the state of the response, and an error message if
15503
+ # the state is FAILED.
15504
+ class GoogleCloudDiscoveryengineV1alphaRemoveDedicatedCrawlRateResponse
15505
+ include Google::Apis::Core::Hashable
15506
+
15507
+ # The `Status` type defines a logical error model that is suitable for different
15508
+ # programming environments, including REST APIs and RPC APIs. It is used by [
15509
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
15510
+ # data: error code, error message, and error details. You can find out more
15511
+ # about this error model and how to work with it in the [API Design Guide](https:
15512
+ # //cloud.google.com/apis/design/errors).
15513
+ # Corresponds to the JSON property `error`
15514
+ # @return [Google::Apis::DiscoveryengineV1::GoogleRpcStatus]
15515
+ attr_accessor :error
15516
+
15517
+ # Output only. The state of the response.
15518
+ # Corresponds to the JSON property `state`
15519
+ # @return [String]
15520
+ attr_accessor :state
13999
15521
 
14000
15522
  def initialize(**args)
14001
15523
  update!(**args)
@@ -14003,25 +15525,46 @@ module Google
14003
15525
 
14004
15526
  # Update properties of this object
14005
15527
  def update!(**args)
14006
- @failure_reasons = args[:failure_reasons] if args.key?(:failure_reasons)
14007
- @uri = args[:uri] if args.key?(:uri)
15528
+ @error = args[:error] if args.key?(:error)
15529
+ @state = args[:state] if args.key?(:state)
14008
15530
  end
14009
15531
  end
14010
15532
 
14011
- # Details about why crawling failed for a particular CorpusType, e.g., DESKTOP
14012
- # and MOBILE crawling may fail for different reasons.
14013
- class GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason
15533
+ # Safety rating corresponding to the generated content.
15534
+ class GoogleCloudDiscoveryengineV1alphaSafetyRating
14014
15535
  include Google::Apis::Core::Hashable
14015
15536
 
14016
- # DESKTOP, MOBILE, or CORPUS_TYPE_UNSPECIFIED.
14017
- # Corresponds to the JSON property `corpusType`
15537
+ # Output only. Indicates whether the content was filtered out because of this
15538
+ # rating.
15539
+ # Corresponds to the JSON property `blocked`
15540
+ # @return [Boolean]
15541
+ attr_accessor :blocked
15542
+ alias_method :blocked?, :blocked
15543
+
15544
+ # Output only. Harm category.
15545
+ # Corresponds to the JSON property `category`
14018
15546
  # @return [String]
14019
- attr_accessor :corpus_type
15547
+ attr_accessor :category
14020
15548
 
14021
- # Reason why the URI was not crawled.
14022
- # Corresponds to the JSON property `errorMessage`
15549
+ # Output only. Harm probability levels in the content.
15550
+ # Corresponds to the JSON property `probability`
14023
15551
  # @return [String]
14024
- attr_accessor :error_message
15552
+ attr_accessor :probability
15553
+
15554
+ # Output only. Harm probability score.
15555
+ # Corresponds to the JSON property `probabilityScore`
15556
+ # @return [Float]
15557
+ attr_accessor :probability_score
15558
+
15559
+ # Output only. Harm severity levels in the content.
15560
+ # Corresponds to the JSON property `severity`
15561
+ # @return [String]
15562
+ attr_accessor :severity
15563
+
15564
+ # Output only. Harm severity score.
15565
+ # Corresponds to the JSON property `severityScore`
15566
+ # @return [Float]
15567
+ attr_accessor :severity_score
14025
15568
 
14026
15569
  def initialize(**args)
14027
15570
  update!(**args)
@@ -14029,8 +15572,12 @@ module Google
14029
15572
 
14030
15573
  # Update properties of this object
14031
15574
  def update!(**args)
14032
- @corpus_type = args[:corpus_type] if args.key?(:corpus_type)
14033
- @error_message = args[:error_message] if args.key?(:error_message)
15575
+ @blocked = args[:blocked] if args.key?(:blocked)
15576
+ @category = args[:category] if args.key?(:category)
15577
+ @probability = args[:probability] if args.key?(:probability)
15578
+ @probability_score = args[:probability_score] if args.key?(:probability_score)
15579
+ @severity = args[:severity] if args.key?(:severity)
15580
+ @severity_score = args[:severity_score] if args.key?(:severity_score)
14034
15581
  end
14035
15582
  end
14036
15583
 
@@ -15187,8 +16734,8 @@ module Google
15187
16734
  class GoogleCloudDiscoveryengineV1alphaSearchRequestNaturalLanguageQueryUnderstandingSpec
15188
16735
  include Google::Apis::Core::Hashable
15189
16736
 
15190
- # The condition under which filter extraction should occur. Default to Condition.
15191
- # DISABLED.
16737
+ # The condition under which filter extraction should occur. Server behavior
16738
+ # defaults to `DISABLED`.
15192
16739
  # Corresponds to the JSON property `filterExtractionCondition`
15193
16740
  # @return [String]
15194
16741
  attr_accessor :filter_extraction_condition
@@ -15439,6 +16986,79 @@ module Google
15439
16986
  end
15440
16987
  end
15441
16988
 
16989
+ # Metadata related to the progress of the CrawlRateManagementService.
16990
+ # SetDedicatedCrawlRate operation. This will be returned by the google.
16991
+ # longrunning.Operation.metadata field.
16992
+ class GoogleCloudDiscoveryengineV1alphaSetDedicatedCrawlRateMetadata
16993
+ include Google::Apis::Core::Hashable
16994
+
16995
+ # Operation create time.
16996
+ # Corresponds to the JSON property `createTime`
16997
+ # @return [String]
16998
+ attr_accessor :create_time
16999
+
17000
+ # Operation last update time. If the operation is done, this is also the finish
17001
+ # time.
17002
+ # Corresponds to the JSON property `updateTime`
17003
+ # @return [String]
17004
+ attr_accessor :update_time
17005
+
17006
+ def initialize(**args)
17007
+ update!(**args)
17008
+ end
17009
+
17010
+ # Update properties of this object
17011
+ def update!(**args)
17012
+ @create_time = args[:create_time] if args.key?(:create_time)
17013
+ @update_time = args[:update_time] if args.key?(:update_time)
17014
+ end
17015
+ end
17016
+
17017
+ # Response message for CrawlRateManagementService.SetDedicatedCrawlRate method.
17018
+ # It simply returns the state of the response, and an error message if the state
17019
+ # is FAILED.
17020
+ class GoogleCloudDiscoveryengineV1alphaSetDedicatedCrawlRateResponse
17021
+ include Google::Apis::Core::Hashable
17022
+
17023
+ # The `Status` type defines a logical error model that is suitable for different
17024
+ # programming environments, including REST APIs and RPC APIs. It is used by [
17025
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
17026
+ # data: error code, error message, and error details. You can find out more
17027
+ # about this error model and how to work with it in the [API Design Guide](https:
17028
+ # //cloud.google.com/apis/design/errors).
17029
+ # Corresponds to the JSON property `error`
17030
+ # @return [Google::Apis::DiscoveryengineV1::GoogleRpcStatus]
17031
+ attr_accessor :error
17032
+
17033
+ # Output only. The state of the response.
17034
+ # Corresponds to the JSON property `state`
17035
+ # @return [String]
17036
+ attr_accessor :state
17037
+
17038
+ def initialize(**args)
17039
+ update!(**args)
17040
+ end
17041
+
17042
+ # Update properties of this object
17043
+ def update!(**args)
17044
+ @error = args[:error] if args.key?(:error)
17045
+ @state = args[:state] if args.key?(:state)
17046
+ end
17047
+ end
17048
+
17049
+ # Metadata for DataConnectorService.SetUpDataConnector method.
17050
+ class GoogleCloudDiscoveryengineV1alphaSetUpDataConnectorMetadata
17051
+ include Google::Apis::Core::Hashable
17052
+
17053
+ def initialize(**args)
17054
+ update!(**args)
17055
+ end
17056
+
17057
+ # Update properties of this object
17058
+ def update!(**args)
17059
+ end
17060
+ end
17061
+
15442
17062
  # Metadata related to the progress of the SiteSearchEngineService.
15443
17063
  # SetUriPatternDocumentData operation. This will be returned by the google.
15444
17064
  # longrunning.Operation.metadata field.
@@ -15480,6 +17100,27 @@ module Google
15480
17100
  end
15481
17101
  end
15482
17102
 
17103
+ # Metadata for single-regional CMEKs.
17104
+ class GoogleCloudDiscoveryengineV1alphaSingleRegionKey
17105
+ include Google::Apis::Core::Hashable
17106
+
17107
+ # Required. Single-regional kms key resource name which will be used to encrypt
17108
+ # resources `projects/`project`/locations/`location`/keyRings/`keyRing`/
17109
+ # cryptoKeys/`keyId``.
17110
+ # Corresponds to the JSON property `kmsKey`
17111
+ # @return [String]
17112
+ attr_accessor :kms_key
17113
+
17114
+ def initialize(**args)
17115
+ update!(**args)
17116
+ end
17117
+
17118
+ # Update properties of this object
17119
+ def update!(**args)
17120
+ @kms_key = args[:kms_key] if args.key?(:kms_key)
17121
+ end
17122
+ end
17123
+
15483
17124
  # Verification information for target sites in advanced site search.
15484
17125
  class GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo
15485
17126
  include Google::Apis::Core::Hashable
@@ -15542,7 +17183,7 @@ module Google
15542
17183
  class GoogleCloudDiscoveryengineV1alphaTargetSite
15543
17184
  include Google::Apis::Core::Hashable
15544
17185
 
15545
- # Input only. If set to false, a uri_pattern is generated to include all pages
17186
+ # Immutable. If set to false, a uri_pattern is generated to include all pages
15546
17187
  # whose address contains the provided_uri_pattern. If set to true, an
15547
17188
  # uri_pattern is generated to try to be an exact match of the
15548
17189
  # provided_uri_pattern or just the specific page if the provided_uri_pattern is
@@ -15799,6 +17440,34 @@ module Google
15799
17440
  end
15800
17441
  end
15801
17442
 
17443
+ # Metadata related to the progress of the CollectionService.UpdateCollection
17444
+ # operation. This will be returned by the google.longrunning.Operation.metadata
17445
+ # field.
17446
+ class GoogleCloudDiscoveryengineV1alphaUpdateCollectionMetadata
17447
+ include Google::Apis::Core::Hashable
17448
+
17449
+ # Operation create time.
17450
+ # Corresponds to the JSON property `createTime`
17451
+ # @return [String]
17452
+ attr_accessor :create_time
17453
+
17454
+ # Operation last update time. If the operation is done, this is also the finish
17455
+ # time.
17456
+ # Corresponds to the JSON property `updateTime`
17457
+ # @return [String]
17458
+ attr_accessor :update_time
17459
+
17460
+ def initialize(**args)
17461
+ update!(**args)
17462
+ end
17463
+
17464
+ # Update properties of this object
17465
+ def update!(**args)
17466
+ @create_time = args[:create_time] if args.key?(:create_time)
17467
+ @update_time = args[:update_time] if args.key?(:update_time)
17468
+ end
17469
+ end
17470
+
15802
17471
  # Metadata for UpdateSchema LRO.
15803
17472
  class GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata
15804
17473
  include Google::Apis::Core::Hashable
@@ -15959,12 +17628,26 @@ module Google
15959
17628
  class GoogleCloudDiscoveryengineV1betaAdvancedSiteSearchConfig
15960
17629
  include Google::Apis::Core::Hashable
15961
17630
 
17631
+ # If set true, automatic refresh is disabled for the DataStore.
17632
+ # Corresponds to the JSON property `disableAutomaticRefresh`
17633
+ # @return [Boolean]
17634
+ attr_accessor :disable_automatic_refresh
17635
+ alias_method :disable_automatic_refresh?, :disable_automatic_refresh
17636
+
17637
+ # If set true, initial indexing is disabled for the DataStore.
17638
+ # Corresponds to the JSON property `disableInitialIndex`
17639
+ # @return [Boolean]
17640
+ attr_accessor :disable_initial_index
17641
+ alias_method :disable_initial_index?, :disable_initial_index
17642
+
15962
17643
  def initialize(**args)
15963
17644
  update!(**args)
15964
17645
  end
15965
17646
 
15966
17647
  # Update properties of this object
15967
17648
  def update!(**args)
17649
+ @disable_automatic_refresh = args[:disable_automatic_refresh] if args.key?(:disable_automatic_refresh)
17650
+ @disable_initial_index = args[:disable_initial_index] if args.key?(:disable_initial_index)
15968
17651
  end
15969
17652
  end
15970
17653
 
@@ -16049,6 +17732,11 @@ module Google
16049
17732
  # @return [String]
16050
17733
  attr_accessor :name
16051
17734
 
17735
+ # Optional. Single-regional CMEKs that are required for some VAIS features.
17736
+ # Corresponds to the JSON property `singleRegionKeys`
17737
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSingleRegionKey>]
17738
+ attr_accessor :single_region_keys
17739
+
16052
17740
  # Output only. State of the CmekConfig.
16053
17741
  # Corresponds to the JSON property `state`
16054
17742
  # @return [String]
@@ -16065,6 +17753,7 @@ module Google
16065
17753
  @kms_key_version = args[:kms_key_version] if args.key?(:kms_key_version)
16066
17754
  @last_rotation_timestamp_micros = args[:last_rotation_timestamp_micros] if args.key?(:last_rotation_timestamp_micros)
16067
17755
  @name = args[:name] if args.key?(:name)
17756
+ @single_region_keys = args[:single_region_keys] if args.key?(:single_region_keys)
16068
17757
  @state = args[:state] if args.key?(:state)
16069
17758
  end
16070
17759
  end
@@ -16255,8 +17944,8 @@ module Google
16255
17944
  class GoogleCloudDiscoveryengineV1betaControlBoostAction
16256
17945
  include Google::Apis::Core::Hashable
16257
17946
 
16258
- # Required. Strength of the boost, which should be in [-1, 1]. Negative boost
16259
- # means demotion. Default is 0.0 (No-op).
17947
+ # Strength of the boost, which should be in [-1, 1]. Negative boost means
17948
+ # demotion. Default is 0.0 (No-op).
16260
17949
  # Corresponds to the JSON property `boost`
16261
17950
  # @return [Float]
16262
17951
  attr_accessor :boost
@@ -16276,6 +17965,12 @@ module Google
16276
17965
  # @return [String]
16277
17966
  attr_accessor :filter
16278
17967
 
17968
+ # Optional. Strength of the boost, which should be in [-1, 1]. Negative boost
17969
+ # means demotion. Default is 0.0 (No-op).
17970
+ # Corresponds to the JSON property `fixedBoost`
17971
+ # @return [Float]
17972
+ attr_accessor :fixed_boost
17973
+
16279
17974
  def initialize(**args)
16280
17975
  update!(**args)
16281
17976
  end
@@ -16285,6 +17980,7 @@ module Google
16285
17980
  @boost = args[:boost] if args.key?(:boost)
16286
17981
  @data_store = args[:data_store] if args.key?(:data_store)
16287
17982
  @filter = args[:filter] if args.key?(:filter)
17983
+ @fixed_boost = args[:fixed_boost] if args.key?(:fixed_boost)
16288
17984
  end
16289
17985
  end
16290
17986
 
@@ -16592,6 +18288,12 @@ module Google
16592
18288
  # @return [String]
16593
18289
  attr_accessor :industry_vertical
16594
18290
 
18291
+ # Optional. If set, this DataStore is an Infobot FAQ DataStore.
18292
+ # Corresponds to the JSON property `isInfobotFaqDataStore`
18293
+ # @return [Boolean]
18294
+ attr_accessor :is_infobot_faq_data_store
18295
+ alias_method :is_infobot_faq_data_store?, :is_infobot_faq_data_store
18296
+
16595
18297
  # Input only. The KMS key to be used to protect this DataStore at creation time.
16596
18298
  # Must be set for requests that need to comply with CMEK Org Policy protections.
16597
18299
  # If this field is set and processed successfully, the DataStore will be
@@ -16656,6 +18358,7 @@ module Google
16656
18358
  @display_name = args[:display_name] if args.key?(:display_name)
16657
18359
  @document_processing_config = args[:document_processing_config] if args.key?(:document_processing_config)
16658
18360
  @industry_vertical = args[:industry_vertical] if args.key?(:industry_vertical)
18361
+ @is_infobot_faq_data_store = args[:is_infobot_faq_data_store] if args.key?(:is_infobot_faq_data_store)
16659
18362
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
16660
18363
  @language_info = args[:language_info] if args.key?(:language_info)
16661
18364
  @name = args[:name] if args.key?(:name)
@@ -16791,6 +18494,34 @@ module Google
16791
18494
  end
16792
18495
  end
16793
18496
 
18497
+ # Metadata related to the progress of the IdentityMappingStoreService.
18498
+ # DeleteIdentityMappingStore operation. This will be returned by the google.
18499
+ # longrunning.Operation.metadata field.
18500
+ class GoogleCloudDiscoveryengineV1betaDeleteIdentityMappingStoreMetadata
18501
+ include Google::Apis::Core::Hashable
18502
+
18503
+ # Operation create time.
18504
+ # Corresponds to the JSON property `createTime`
18505
+ # @return [String]
18506
+ attr_accessor :create_time
18507
+
18508
+ # Operation last update time. If the operation is done, this is also the finish
18509
+ # time.
18510
+ # Corresponds to the JSON property `updateTime`
18511
+ # @return [String]
18512
+ attr_accessor :update_time
18513
+
18514
+ def initialize(**args)
18515
+ update!(**args)
18516
+ end
18517
+
18518
+ # Update properties of this object
18519
+ def update!(**args)
18520
+ @create_time = args[:create_time] if args.key?(:create_time)
18521
+ @update_time = args[:update_time] if args.key?(:update_time)
18522
+ end
18523
+ end
18524
+
16794
18525
  # Metadata for DeleteSchema LRO.
16795
18526
  class GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata
16796
18527
  include Google::Apis::Core::Hashable
@@ -19452,8 +21183,8 @@ module Google
19452
21183
  class GoogleCloudDiscoveryengineV1betaSearchRequestNaturalLanguageQueryUnderstandingSpec
19453
21184
  include Google::Apis::Core::Hashable
19454
21185
 
19455
- # The condition under which filter extraction should occur. Default to Condition.
19456
- # DISABLED.
21186
+ # The condition under which filter extraction should occur. Server behavior
21187
+ # defaults to `DISABLED`.
19457
21188
  # Corresponds to the JSON property `filterExtractionCondition`
19458
21189
  # @return [String]
19459
21190
  attr_accessor :filter_extraction_condition
@@ -19606,6 +21337,27 @@ module Google
19606
21337
  end
19607
21338
  end
19608
21339
 
21340
+ # Metadata for single-regional CMEKs.
21341
+ class GoogleCloudDiscoveryengineV1betaSingleRegionKey
21342
+ include Google::Apis::Core::Hashable
21343
+
21344
+ # Required. Single-regional kms key resource name which will be used to encrypt
21345
+ # resources `projects/`project`/locations/`location`/keyRings/`keyRing`/
21346
+ # cryptoKeys/`keyId``.
21347
+ # Corresponds to the JSON property `kmsKey`
21348
+ # @return [String]
21349
+ attr_accessor :kms_key
21350
+
21351
+ def initialize(**args)
21352
+ update!(**args)
21353
+ end
21354
+
21355
+ # Update properties of this object
21356
+ def update!(**args)
21357
+ @kms_key = args[:kms_key] if args.key?(:kms_key)
21358
+ end
21359
+ end
21360
+
19609
21361
  # Verification information for target sites in advanced site search.
19610
21362
  class GoogleCloudDiscoveryengineV1betaSiteVerificationInfo
19611
21363
  include Google::Apis::Core::Hashable
@@ -19668,7 +21420,7 @@ module Google
19668
21420
  class GoogleCloudDiscoveryengineV1betaTargetSite
19669
21421
  include Google::Apis::Core::Hashable
19670
21422
 
19671
- # Input only. If set to false, a uri_pattern is generated to include all pages
21423
+ # Immutable. If set to false, a uri_pattern is generated to include all pages
19672
21424
  # whose address contains the provided_uri_pattern. If set to true, an
19673
21425
  # uri_pattern is generated to try to be an exact match of the
19674
21426
  # provided_uri_pattern or just the specific page if the provided_uri_pattern is
@@ -20429,6 +22181,121 @@ module Google
20429
22181
  @year = args[:year] if args.key?(:year)
20430
22182
  end
20431
22183
  end
22184
+
22185
+ # Represents civil time (or occasionally physical time). This type can represent
22186
+ # a civil time in one of a few possible ways: * When utc_offset is set and
22187
+ # time_zone is unset: a civil time on a calendar day with a particular offset
22188
+ # from UTC. * When time_zone is set and utc_offset is unset: a civil time on a
22189
+ # calendar day in a particular time zone. * When neither time_zone nor
22190
+ # utc_offset is set: a civil time on a calendar day in local time. The date is
22191
+ # relative to the Proleptic Gregorian Calendar. If year, month, or day are 0,
22192
+ # the DateTime is considered not to have a specific year, month, or day
22193
+ # respectively. This type may also be used to represent a physical time if all
22194
+ # the date and time fields are set and either case of the `time_offset` oneof is
22195
+ # set. Consider using `Timestamp` message for physical time instead. If your use
22196
+ # case also would like to store the user's timezone, that can be done in another
22197
+ # field. This type is more flexible than some applications may want. Make sure
22198
+ # to document and validate your application's limitations.
22199
+ class GoogleTypeDateTime
22200
+ include Google::Apis::Core::Hashable
22201
+
22202
+ # Optional. Day of month. Must be from 1 to 31 and valid for the year and month,
22203
+ # or 0 if specifying a datetime without a day.
22204
+ # Corresponds to the JSON property `day`
22205
+ # @return [Fixnum]
22206
+ attr_accessor :day
22207
+
22208
+ # Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to
22209
+ # 0 (midnight). An API may choose to allow the value "24:00:00" for scenarios
22210
+ # like business closing time.
22211
+ # Corresponds to the JSON property `hours`
22212
+ # @return [Fixnum]
22213
+ attr_accessor :hours
22214
+
22215
+ # Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.
22216
+ # Corresponds to the JSON property `minutes`
22217
+ # @return [Fixnum]
22218
+ attr_accessor :minutes
22219
+
22220
+ # Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime
22221
+ # without a month.
22222
+ # Corresponds to the JSON property `month`
22223
+ # @return [Fixnum]
22224
+ attr_accessor :month
22225
+
22226
+ # Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999,
22227
+ # defaults to 0.
22228
+ # Corresponds to the JSON property `nanos`
22229
+ # @return [Fixnum]
22230
+ attr_accessor :nanos
22231
+
22232
+ # Optional. Seconds of minutes of the time. Must normally be from 0 to 59,
22233
+ # defaults to 0. An API may allow the value 60 if it allows leap-seconds.
22234
+ # Corresponds to the JSON property `seconds`
22235
+ # @return [Fixnum]
22236
+ attr_accessor :seconds
22237
+
22238
+ # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/
22239
+ # time-zones).
22240
+ # Corresponds to the JSON property `timeZone`
22241
+ # @return [Google::Apis::DiscoveryengineV1::GoogleTypeTimeZone]
22242
+ attr_accessor :time_zone
22243
+
22244
+ # UTC offset. Must be whole seconds, between -18 hours and +18 hours. For
22245
+ # example, a UTC offset of -4:00 would be represented as ` seconds: -14400 `.
22246
+ # Corresponds to the JSON property `utcOffset`
22247
+ # @return [String]
22248
+ attr_accessor :utc_offset
22249
+
22250
+ # Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime
22251
+ # without a year.
22252
+ # Corresponds to the JSON property `year`
22253
+ # @return [Fixnum]
22254
+ attr_accessor :year
22255
+
22256
+ def initialize(**args)
22257
+ update!(**args)
22258
+ end
22259
+
22260
+ # Update properties of this object
22261
+ def update!(**args)
22262
+ @day = args[:day] if args.key?(:day)
22263
+ @hours = args[:hours] if args.key?(:hours)
22264
+ @minutes = args[:minutes] if args.key?(:minutes)
22265
+ @month = args[:month] if args.key?(:month)
22266
+ @nanos = args[:nanos] if args.key?(:nanos)
22267
+ @seconds = args[:seconds] if args.key?(:seconds)
22268
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
22269
+ @utc_offset = args[:utc_offset] if args.key?(:utc_offset)
22270
+ @year = args[:year] if args.key?(:year)
22271
+ end
22272
+ end
22273
+
22274
+ # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/
22275
+ # time-zones).
22276
+ class GoogleTypeTimeZone
22277
+ include Google::Apis::Core::Hashable
22278
+
22279
+ # IANA Time Zone Database time zone. For example "America/New_York".
22280
+ # Corresponds to the JSON property `id`
22281
+ # @return [String]
22282
+ attr_accessor :id
22283
+
22284
+ # Optional. IANA Time Zone Database version number. For example "2019a".
22285
+ # Corresponds to the JSON property `version`
22286
+ # @return [String]
22287
+ attr_accessor :version
22288
+
22289
+ def initialize(**args)
22290
+ update!(**args)
22291
+ end
22292
+
22293
+ # Update properties of this object
22294
+ def update!(**args)
22295
+ @id = args[:id] if args.key?(:id)
22296
+ @version = args[:version] if args.key?(:version)
22297
+ end
22298
+ end
20432
22299
  end
20433
22300
  end
20434
22301
  end