google-apis-discoveryengine_v1beta 0.12.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/discoveryengine_v1beta/classes.rb +609 -56
- data/lib/google/apis/discoveryengine_v1beta/gem_version.rb +2 -2
- data/lib/google/apis/discoveryengine_v1beta/representations.rb +233 -0
- data/lib/google/apis/discoveryengine_v1beta/service.rb +258 -38
- metadata +3 -3
@@ -276,6 +276,293 @@ module Google
|
|
276
276
|
end
|
277
277
|
end
|
278
278
|
|
279
|
+
# Metadata related to the progress of the ImportDocuments operation. This will
|
280
|
+
# be returned by the google.longrunning.Operation.metadata field.
|
281
|
+
class GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
|
282
|
+
include Google::Apis::Core::Hashable
|
283
|
+
|
284
|
+
# Operation create time.
|
285
|
+
# Corresponds to the JSON property `createTime`
|
286
|
+
# @return [String]
|
287
|
+
attr_accessor :create_time
|
288
|
+
|
289
|
+
# Count of entries that encountered errors while processing.
|
290
|
+
# Corresponds to the JSON property `failureCount`
|
291
|
+
# @return [Fixnum]
|
292
|
+
attr_accessor :failure_count
|
293
|
+
|
294
|
+
# Count of entries that were processed successfully.
|
295
|
+
# Corresponds to the JSON property `successCount`
|
296
|
+
# @return [Fixnum]
|
297
|
+
attr_accessor :success_count
|
298
|
+
|
299
|
+
# Operation last update time. If the operation is done, this is also the finish
|
300
|
+
# time.
|
301
|
+
# Corresponds to the JSON property `updateTime`
|
302
|
+
# @return [String]
|
303
|
+
attr_accessor :update_time
|
304
|
+
|
305
|
+
def initialize(**args)
|
306
|
+
update!(**args)
|
307
|
+
end
|
308
|
+
|
309
|
+
# Update properties of this object
|
310
|
+
def update!(**args)
|
311
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
312
|
+
@failure_count = args[:failure_count] if args.key?(:failure_count)
|
313
|
+
@success_count = args[:success_count] if args.key?(:success_count)
|
314
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
315
|
+
end
|
316
|
+
end
|
317
|
+
|
318
|
+
# Response of the ImportDocumentsRequest. If the long running operation is done,
|
319
|
+
# then this message is returned by the google.longrunning.Operations.response
|
320
|
+
# field if the operation was successful.
|
321
|
+
class GoogleCloudDiscoveryengineV1ImportDocumentsResponse
|
322
|
+
include Google::Apis::Core::Hashable
|
323
|
+
|
324
|
+
# Configuration of destination for Import related errors.
|
325
|
+
# Corresponds to the JSON property `errorConfig`
|
326
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1ImportErrorConfig]
|
327
|
+
attr_accessor :error_config
|
328
|
+
|
329
|
+
# A sample of errors encountered while processing the request.
|
330
|
+
# Corresponds to the JSON property `errorSamples`
|
331
|
+
# @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus>]
|
332
|
+
attr_accessor :error_samples
|
333
|
+
|
334
|
+
def initialize(**args)
|
335
|
+
update!(**args)
|
336
|
+
end
|
337
|
+
|
338
|
+
# Update properties of this object
|
339
|
+
def update!(**args)
|
340
|
+
@error_config = args[:error_config] if args.key?(:error_config)
|
341
|
+
@error_samples = args[:error_samples] if args.key?(:error_samples)
|
342
|
+
end
|
343
|
+
end
|
344
|
+
|
345
|
+
# Configuration of destination for Import related errors.
|
346
|
+
class GoogleCloudDiscoveryengineV1ImportErrorConfig
|
347
|
+
include Google::Apis::Core::Hashable
|
348
|
+
|
349
|
+
# Cloud Storage prefix for import errors. This must be an empty, existing Cloud
|
350
|
+
# Storage directory. Import errors will be written to sharded files in this
|
351
|
+
# directory, one per line, as a JSON-encoded `google.rpc.Status` message.
|
352
|
+
# Corresponds to the JSON property `gcsPrefix`
|
353
|
+
# @return [String]
|
354
|
+
attr_accessor :gcs_prefix
|
355
|
+
|
356
|
+
def initialize(**args)
|
357
|
+
update!(**args)
|
358
|
+
end
|
359
|
+
|
360
|
+
# Update properties of this object
|
361
|
+
def update!(**args)
|
362
|
+
@gcs_prefix = args[:gcs_prefix] if args.key?(:gcs_prefix)
|
363
|
+
end
|
364
|
+
end
|
365
|
+
|
366
|
+
# Metadata related to the progress of the Import operation. This will be
|
367
|
+
# returned by the google.longrunning.Operation.metadata field.
|
368
|
+
class GoogleCloudDiscoveryengineV1ImportUserEventsMetadata
|
369
|
+
include Google::Apis::Core::Hashable
|
370
|
+
|
371
|
+
# Operation create time.
|
372
|
+
# Corresponds to the JSON property `createTime`
|
373
|
+
# @return [String]
|
374
|
+
attr_accessor :create_time
|
375
|
+
|
376
|
+
# Count of entries that encountered errors while processing.
|
377
|
+
# Corresponds to the JSON property `failureCount`
|
378
|
+
# @return [Fixnum]
|
379
|
+
attr_accessor :failure_count
|
380
|
+
|
381
|
+
# Count of entries that were processed successfully.
|
382
|
+
# Corresponds to the JSON property `successCount`
|
383
|
+
# @return [Fixnum]
|
384
|
+
attr_accessor :success_count
|
385
|
+
|
386
|
+
# Operation last update time. If the operation is done, this is also the finish
|
387
|
+
# time.
|
388
|
+
# Corresponds to the JSON property `updateTime`
|
389
|
+
# @return [String]
|
390
|
+
attr_accessor :update_time
|
391
|
+
|
392
|
+
def initialize(**args)
|
393
|
+
update!(**args)
|
394
|
+
end
|
395
|
+
|
396
|
+
# Update properties of this object
|
397
|
+
def update!(**args)
|
398
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
399
|
+
@failure_count = args[:failure_count] if args.key?(:failure_count)
|
400
|
+
@success_count = args[:success_count] if args.key?(:success_count)
|
401
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
402
|
+
end
|
403
|
+
end
|
404
|
+
|
405
|
+
# Response of the ImportUserEventsRequest. If the long running operation was
|
406
|
+
# successful, then this message is returned by the google.longrunning.Operations.
|
407
|
+
# response field if the operation was successful.
|
408
|
+
class GoogleCloudDiscoveryengineV1ImportUserEventsResponse
|
409
|
+
include Google::Apis::Core::Hashable
|
410
|
+
|
411
|
+
# Configuration of destination for Import related errors.
|
412
|
+
# Corresponds to the JSON property `errorConfig`
|
413
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1ImportErrorConfig]
|
414
|
+
attr_accessor :error_config
|
415
|
+
|
416
|
+
# A sample of errors encountered while processing the request.
|
417
|
+
# Corresponds to the JSON property `errorSamples`
|
418
|
+
# @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus>]
|
419
|
+
attr_accessor :error_samples
|
420
|
+
|
421
|
+
# Count of user events imported with complete existing Documents.
|
422
|
+
# Corresponds to the JSON property `joinedEventsCount`
|
423
|
+
# @return [Fixnum]
|
424
|
+
attr_accessor :joined_events_count
|
425
|
+
|
426
|
+
# Count of user events imported, but with Document information not found in the
|
427
|
+
# existing Branch.
|
428
|
+
# Corresponds to the JSON property `unjoinedEventsCount`
|
429
|
+
# @return [Fixnum]
|
430
|
+
attr_accessor :unjoined_events_count
|
431
|
+
|
432
|
+
def initialize(**args)
|
433
|
+
update!(**args)
|
434
|
+
end
|
435
|
+
|
436
|
+
# Update properties of this object
|
437
|
+
def update!(**args)
|
438
|
+
@error_config = args[:error_config] if args.key?(:error_config)
|
439
|
+
@error_samples = args[:error_samples] if args.key?(:error_samples)
|
440
|
+
@joined_events_count = args[:joined_events_count] if args.key?(:joined_events_count)
|
441
|
+
@unjoined_events_count = args[:unjoined_events_count] if args.key?(:unjoined_events_count)
|
442
|
+
end
|
443
|
+
end
|
444
|
+
|
445
|
+
# Metadata related to the progress of the PurgeDocuments operation. This will be
|
446
|
+
# returned by the google.longrunning.Operation.metadata field.
|
447
|
+
class GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata
|
448
|
+
include Google::Apis::Core::Hashable
|
449
|
+
|
450
|
+
# Operation create time.
|
451
|
+
# Corresponds to the JSON property `createTime`
|
452
|
+
# @return [String]
|
453
|
+
attr_accessor :create_time
|
454
|
+
|
455
|
+
# Count of entries that encountered errors while processing.
|
456
|
+
# Corresponds to the JSON property `failureCount`
|
457
|
+
# @return [Fixnum]
|
458
|
+
attr_accessor :failure_count
|
459
|
+
|
460
|
+
# Count of entries that were deleted successfully.
|
461
|
+
# Corresponds to the JSON property `successCount`
|
462
|
+
# @return [Fixnum]
|
463
|
+
attr_accessor :success_count
|
464
|
+
|
465
|
+
# Operation last update time. If the operation is done, this is also the finish
|
466
|
+
# time.
|
467
|
+
# Corresponds to the JSON property `updateTime`
|
468
|
+
# @return [String]
|
469
|
+
attr_accessor :update_time
|
470
|
+
|
471
|
+
def initialize(**args)
|
472
|
+
update!(**args)
|
473
|
+
end
|
474
|
+
|
475
|
+
# Update properties of this object
|
476
|
+
def update!(**args)
|
477
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
478
|
+
@failure_count = args[:failure_count] if args.key?(:failure_count)
|
479
|
+
@success_count = args[:success_count] if args.key?(:success_count)
|
480
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
481
|
+
end
|
482
|
+
end
|
483
|
+
|
484
|
+
# Response message for DocumentService.PurgeDocuments method. If the long
|
485
|
+
# running operation is successfully done, then this message is returned by the
|
486
|
+
# google.longrunning.Operations.response field.
|
487
|
+
class GoogleCloudDiscoveryengineV1PurgeDocumentsResponse
|
488
|
+
include Google::Apis::Core::Hashable
|
489
|
+
|
490
|
+
# The total count of documents purged as a result of the operation.
|
491
|
+
# Corresponds to the JSON property `purgeCount`
|
492
|
+
# @return [Fixnum]
|
493
|
+
attr_accessor :purge_count
|
494
|
+
|
495
|
+
# A sample of document names that will be deleted. Only populated if `force` is
|
496
|
+
# set to false. A max of 100 names will be returned and the names are chosen at
|
497
|
+
# random.
|
498
|
+
# Corresponds to the JSON property `purgeSample`
|
499
|
+
# @return [Array<String>]
|
500
|
+
attr_accessor :purge_sample
|
501
|
+
|
502
|
+
def initialize(**args)
|
503
|
+
update!(**args)
|
504
|
+
end
|
505
|
+
|
506
|
+
# Update properties of this object
|
507
|
+
def update!(**args)
|
508
|
+
@purge_count = args[:purge_count] if args.key?(:purge_count)
|
509
|
+
@purge_sample = args[:purge_sample] if args.key?(:purge_sample)
|
510
|
+
end
|
511
|
+
end
|
512
|
+
|
513
|
+
# Defines the structure and layout of a type of document data.
|
514
|
+
class GoogleCloudDiscoveryengineV1Schema
|
515
|
+
include Google::Apis::Core::Hashable
|
516
|
+
|
517
|
+
# The JSON representation of the schema.
|
518
|
+
# Corresponds to the JSON property `jsonSchema`
|
519
|
+
# @return [String]
|
520
|
+
attr_accessor :json_schema
|
521
|
+
|
522
|
+
# Immutable. The full resource name of the schema, in the format of `projects/`
|
523
|
+
# project`/locations/`location`/collections/`collection`/dataStores/`data_store`/
|
524
|
+
# schemas/`schema``. This field must be a UTF-8 encoded string with a length
|
525
|
+
# limit of 1024 characters.
|
526
|
+
# Corresponds to the JSON property `name`
|
527
|
+
# @return [String]
|
528
|
+
attr_accessor :name
|
529
|
+
|
530
|
+
# The structured representation of the schema.
|
531
|
+
# Corresponds to the JSON property `structSchema`
|
532
|
+
# @return [Hash<String,Object>]
|
533
|
+
attr_accessor :struct_schema
|
534
|
+
|
535
|
+
def initialize(**args)
|
536
|
+
update!(**args)
|
537
|
+
end
|
538
|
+
|
539
|
+
# Update properties of this object
|
540
|
+
def update!(**args)
|
541
|
+
@json_schema = args[:json_schema] if args.key?(:json_schema)
|
542
|
+
@name = args[:name] if args.key?(:name)
|
543
|
+
@struct_schema = args[:struct_schema] if args.key?(:struct_schema)
|
544
|
+
end
|
545
|
+
end
|
546
|
+
|
547
|
+
# Response message for SiteSearchEngineService.BatchCreateTargetSites method.
|
548
|
+
class GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse
|
549
|
+
include Google::Apis::Core::Hashable
|
550
|
+
|
551
|
+
# TargetSites created.
|
552
|
+
# Corresponds to the JSON property `targetSites`
|
553
|
+
# @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaTargetSite>]
|
554
|
+
attr_accessor :target_sites
|
555
|
+
|
556
|
+
def initialize(**args)
|
557
|
+
update!(**args)
|
558
|
+
end
|
559
|
+
|
560
|
+
# Update properties of this object
|
561
|
+
def update!(**args)
|
562
|
+
@target_sites = args[:target_sites] if args.key?(:target_sites)
|
563
|
+
end
|
564
|
+
end
|
565
|
+
|
279
566
|
# Metadata related to the progress of the ImportDocuments operation. This will
|
280
567
|
# be returned by the google.longrunning.Operation.metadata field.
|
281
568
|
class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
|
@@ -442,6 +729,74 @@ module Google
|
|
442
729
|
end
|
443
730
|
end
|
444
731
|
|
732
|
+
# Metadata related to the progress of the PurgeDocuments operation. This will be
|
733
|
+
# returned by the google.longrunning.Operation.metadata field.
|
734
|
+
class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
|
735
|
+
include Google::Apis::Core::Hashable
|
736
|
+
|
737
|
+
# Operation create time.
|
738
|
+
# Corresponds to the JSON property `createTime`
|
739
|
+
# @return [String]
|
740
|
+
attr_accessor :create_time
|
741
|
+
|
742
|
+
# Count of entries that encountered errors while processing.
|
743
|
+
# Corresponds to the JSON property `failureCount`
|
744
|
+
# @return [Fixnum]
|
745
|
+
attr_accessor :failure_count
|
746
|
+
|
747
|
+
# Count of entries that were deleted successfully.
|
748
|
+
# Corresponds to the JSON property `successCount`
|
749
|
+
# @return [Fixnum]
|
750
|
+
attr_accessor :success_count
|
751
|
+
|
752
|
+
# Operation last update time. If the operation is done, this is also the finish
|
753
|
+
# time.
|
754
|
+
# Corresponds to the JSON property `updateTime`
|
755
|
+
# @return [String]
|
756
|
+
attr_accessor :update_time
|
757
|
+
|
758
|
+
def initialize(**args)
|
759
|
+
update!(**args)
|
760
|
+
end
|
761
|
+
|
762
|
+
# Update properties of this object
|
763
|
+
def update!(**args)
|
764
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
765
|
+
@failure_count = args[:failure_count] if args.key?(:failure_count)
|
766
|
+
@success_count = args[:success_count] if args.key?(:success_count)
|
767
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
768
|
+
end
|
769
|
+
end
|
770
|
+
|
771
|
+
# Response message for DocumentService.PurgeDocuments method. If the long
|
772
|
+
# running operation is successfully done, then this message is returned by the
|
773
|
+
# google.longrunning.Operations.response field.
|
774
|
+
class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse
|
775
|
+
include Google::Apis::Core::Hashable
|
776
|
+
|
777
|
+
# The total count of documents purged as a result of the operation.
|
778
|
+
# Corresponds to the JSON property `purgeCount`
|
779
|
+
# @return [Fixnum]
|
780
|
+
attr_accessor :purge_count
|
781
|
+
|
782
|
+
# A sample of document names that will be deleted. Only populated if `force` is
|
783
|
+
# set to false. A max of 100 names will be returned and the names are chosen at
|
784
|
+
# random.
|
785
|
+
# Corresponds to the JSON property `purgeSample`
|
786
|
+
# @return [Array<String>]
|
787
|
+
attr_accessor :purge_sample
|
788
|
+
|
789
|
+
def initialize(**args)
|
790
|
+
update!(**args)
|
791
|
+
end
|
792
|
+
|
793
|
+
# Update properties of this object
|
794
|
+
def update!(**args)
|
795
|
+
@purge_count = args[:purge_count] if args.key?(:purge_count)
|
796
|
+
@purge_sample = args[:purge_sample] if args.key?(:purge_sample)
|
797
|
+
end
|
798
|
+
end
|
799
|
+
|
445
800
|
# Defines the structure and layout of a type of document data.
|
446
801
|
class GoogleCloudDiscoveryengineV1alphaSchema
|
447
802
|
include Google::Apis::Core::Hashable
|
@@ -476,6 +831,66 @@ module Google
|
|
476
831
|
end
|
477
832
|
end
|
478
833
|
|
834
|
+
# A target site for the SiteSearchEngine.
|
835
|
+
class GoogleCloudDiscoveryengineV1alphaTargetSite
|
836
|
+
include Google::Apis::Core::Hashable
|
837
|
+
|
838
|
+
# Input only. If set to false, an uri_pattern will be generated to include all
|
839
|
+
# pages whose address contains the provided_uri_pattern. If set to true, an
|
840
|
+
# uri_pattern will be generated to try to be an exact match of the
|
841
|
+
# provided_uri_pattern or just the specific page if the provided_uri_pattern is
|
842
|
+
# a specific one. provided_uri_pattern will always be normalized to generate the
|
843
|
+
# uri pattern to be used by the search engine.
|
844
|
+
# Corresponds to the JSON property `exactMatch`
|
845
|
+
# @return [Boolean]
|
846
|
+
attr_accessor :exact_match
|
847
|
+
alias_method :exact_match?, :exact_match
|
848
|
+
|
849
|
+
# Output only. This is system-generated based on the provided_uri_pattern.
|
850
|
+
# Corresponds to the JSON property `generatedUriPattern`
|
851
|
+
# @return [String]
|
852
|
+
attr_accessor :generated_uri_pattern
|
853
|
+
|
854
|
+
# Output only. The fully qualified resource name of the target site. `projects/`
|
855
|
+
# project`/locations/`location`/collections/`collection`/dataStores/`data_store`/
|
856
|
+
# siteSearchEngine/targetSites/`target_site`` The `target_site_id` is system-
|
857
|
+
# generated.
|
858
|
+
# Corresponds to the JSON property `name`
|
859
|
+
# @return [String]
|
860
|
+
attr_accessor :name
|
861
|
+
|
862
|
+
# Required. Input only. The user provided uri pattern from which the `
|
863
|
+
# generated_uri_pattern` is generated.
|
864
|
+
# Corresponds to the JSON property `providedUriPattern`
|
865
|
+
# @return [String]
|
866
|
+
attr_accessor :provided_uri_pattern
|
867
|
+
|
868
|
+
# The type of the target site, e.g. whether the site is to be included or
|
869
|
+
# excluded.
|
870
|
+
# Corresponds to the JSON property `type`
|
871
|
+
# @return [String]
|
872
|
+
attr_accessor :type
|
873
|
+
|
874
|
+
# Output only. The target site's last updated time.
|
875
|
+
# Corresponds to the JSON property `updateTime`
|
876
|
+
# @return [String]
|
877
|
+
attr_accessor :update_time
|
878
|
+
|
879
|
+
def initialize(**args)
|
880
|
+
update!(**args)
|
881
|
+
end
|
882
|
+
|
883
|
+
# Update properties of this object
|
884
|
+
def update!(**args)
|
885
|
+
@exact_match = args[:exact_match] if args.key?(:exact_match)
|
886
|
+
@generated_uri_pattern = args[:generated_uri_pattern] if args.key?(:generated_uri_pattern)
|
887
|
+
@name = args[:name] if args.key?(:name)
|
888
|
+
@provided_uri_pattern = args[:provided_uri_pattern] if args.key?(:provided_uri_pattern)
|
889
|
+
@type = args[:type] if args.key?(:type)
|
890
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
891
|
+
end
|
892
|
+
end
|
893
|
+
|
479
894
|
# BigQuery source import data from.
|
480
895
|
class GoogleCloudDiscoveryengineV1betaBigQuerySource
|
481
896
|
include Google::Apis::Core::Hashable
|
@@ -577,16 +992,18 @@ module Google
|
|
577
992
|
include Google::Apis::Core::Hashable
|
578
993
|
|
579
994
|
# The numerical values of this custom attribute. For example, `[2.3, 15.4]` when
|
580
|
-
# the key is "lengths_cm". Exactly one of text or
|
581
|
-
# Otherwise, an INVALID_ARGUMENT error
|
995
|
+
# the key is "lengths_cm". Exactly one of CustomAttribute.text or
|
996
|
+
# CustomAttribute.numbers should be set. Otherwise, an `INVALID_ARGUMENT` error
|
997
|
+
# is returned.
|
582
998
|
# Corresponds to the JSON property `numbers`
|
583
999
|
# @return [Array<Float>]
|
584
1000
|
attr_accessor :numbers
|
585
1001
|
|
586
1002
|
# The textual values of this custom attribute. For example, `["yellow", "green"]`
|
587
|
-
# when the key is "color". Empty string is not allowed. Otherwise, an
|
588
|
-
# INVALID_ARGUMENT error is returned. Exactly one of text or
|
589
|
-
# set. Otherwise, an INVALID_ARGUMENT error
|
1003
|
+
# when the key is "color". Empty string is not allowed. Otherwise, an `
|
1004
|
+
# INVALID_ARGUMENT` error is returned. Exactly one of CustomAttribute.text or
|
1005
|
+
# CustomAttribute.numbers should be set. Otherwise, an `INVALID_ARGUMENT` error
|
1006
|
+
# is returned.
|
590
1007
|
# Corresponds to the JSON property `text`
|
591
1008
|
# @return [Array<String>]
|
592
1009
|
attr_accessor :text
|
@@ -615,7 +1032,7 @@ module Google
|
|
615
1032
|
attr_accessor :id
|
616
1033
|
|
617
1034
|
# The JSON string representation of the document. It should conform to the
|
618
|
-
# registered schema or an INVALID_ARGUMENT error is thrown.
|
1035
|
+
# registered Schema.schema or an `INVALID_ARGUMENT` error is thrown.
|
619
1036
|
# Corresponds to the JSON property `jsonData`
|
620
1037
|
# @return [String]
|
621
1038
|
attr_accessor :json_data
|
@@ -641,7 +1058,7 @@ module Google
|
|
641
1058
|
attr_accessor :schema_id
|
642
1059
|
|
643
1060
|
# The structured JSON data for the document. It should conform to the registered
|
644
|
-
# schema or an INVALID_ARGUMENT error is thrown.
|
1061
|
+
# Schema.schema or an `INVALID_ARGUMENT` error is thrown.
|
645
1062
|
# Corresponds to the JSON property `structData`
|
646
1063
|
# @return [Hash<String,Object>]
|
647
1064
|
attr_accessor :struct_data
|
@@ -670,9 +1087,9 @@ module Google
|
|
670
1087
|
# @return [String]
|
671
1088
|
attr_accessor :id
|
672
1089
|
|
673
|
-
# Required. The Document resource full name, of the form: projects/`
|
674
|
-
# locations/`location`/collections/`
|
675
|
-
# branches/`
|
1090
|
+
# Required. The Document resource full name, of the form: `projects/`project_id`/
|
1091
|
+
# locations/`location`/collections/`collection_id`/dataStores/`data_store_id`/
|
1092
|
+
# branches/`branch_id`/documents/`document_id``
|
676
1093
|
# Corresponds to the JSON property `name`
|
677
1094
|
# @return [String]
|
678
1095
|
attr_accessor :name
|
@@ -691,6 +1108,12 @@ module Google
|
|
691
1108
|
# @return [Fixnum]
|
692
1109
|
attr_accessor :quantity
|
693
1110
|
|
1111
|
+
# Required. The Document url - only allowed for DataStores with content_config
|
1112
|
+
# PUBLIC_WEBSITE.
|
1113
|
+
# Corresponds to the JSON property `uri`
|
1114
|
+
# @return [String]
|
1115
|
+
attr_accessor :uri
|
1116
|
+
|
694
1117
|
def initialize(**args)
|
695
1118
|
update!(**args)
|
696
1119
|
end
|
@@ -701,6 +1124,7 @@ module Google
|
|
701
1124
|
@name = args[:name] if args.key?(:name)
|
702
1125
|
@promotion_ids = args[:promotion_ids] if args.key?(:promotion_ids)
|
703
1126
|
@quantity = args[:quantity] if args.key?(:quantity)
|
1127
|
+
@uri = args[:uri] if args.key?(:uri)
|
704
1128
|
end
|
705
1129
|
end
|
706
1130
|
|
@@ -785,6 +1209,20 @@ module Google
|
|
785
1209
|
class GoogleCloudDiscoveryengineV1betaImportDocumentsRequest
|
786
1210
|
include Google::Apis::Core::Hashable
|
787
1211
|
|
1212
|
+
# Whether to automatically generate IDs for the documents if absent. If set to `
|
1213
|
+
# true`, Document.ids are automatically generated based on the hash of the
|
1214
|
+
# payload, where IDs may not be consistent during multiple imports. In which
|
1215
|
+
# case ReconciliationMode.FULL is highly recommended to avoid duplicate contents.
|
1216
|
+
# If unset or set to `false`, Document.ids have to be specified using id_field,
|
1217
|
+
# otherwises, documents without IDs will fail to be imported. Only set this
|
1218
|
+
# field when using GcsSource or BigQuerySource, and when GcsSource.data_schema
|
1219
|
+
# or BigQuerySource.data_schema is `custom`. Otherwise, an INVALID_ARGUMENT
|
1220
|
+
# error is thrown.
|
1221
|
+
# Corresponds to the JSON property `autoGenerateIds`
|
1222
|
+
# @return [Boolean]
|
1223
|
+
attr_accessor :auto_generate_ids
|
1224
|
+
alias_method :auto_generate_ids?, :auto_generate_ids
|
1225
|
+
|
788
1226
|
# BigQuery source import data from.
|
789
1227
|
# Corresponds to the JSON property `bigquerySource`
|
790
1228
|
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaBigQuerySource]
|
@@ -800,6 +1238,23 @@ module Google
|
|
800
1238
|
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGcsSource]
|
801
1239
|
attr_accessor :gcs_source
|
802
1240
|
|
1241
|
+
# The field in the Cloud Storage and BigQuery sources that indicates the unique
|
1242
|
+
# IDs of the documents. For GcsSource it is the key of the JSON field. For
|
1243
|
+
# instance, `my_id` for JSON ``"my_id": "some_uuid"``. For BigQuerySource it is
|
1244
|
+
# the column name of the BigQuery table where the unique ids are stored. The
|
1245
|
+
# values of the JSON field or the BigQuery column will be used as the Document.
|
1246
|
+
# ids. The JSON field or the BigQuery column must be of string type, and the
|
1247
|
+
# values must be set as valid strings conform to [RFC-1034](https://tools.ietf.
|
1248
|
+
# org/html/rfc1034) with 1-63 characters. Otherwise, documents without valid IDs
|
1249
|
+
# will fail to be imported. Only set this field when using GcsSource or
|
1250
|
+
# BigQuerySource, and when GcsSource.data_schema or BigQuerySource.data_schema
|
1251
|
+
# is `custom`. And only set this field when auto_generate_ids is unset or set as
|
1252
|
+
# `false`. Otherwise, an INVALID_ARGUMENT error is thrown. If it is unset, a
|
1253
|
+
# default value `_id` is used when importing from the allowed data sources.
|
1254
|
+
# Corresponds to the JSON property `idField`
|
1255
|
+
# @return [String]
|
1256
|
+
attr_accessor :id_field
|
1257
|
+
|
803
1258
|
# The inline source for the input config for ImportDocuments method.
|
804
1259
|
# Corresponds to the JSON property `inlineSource`
|
805
1260
|
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportDocumentsRequestInlineSource]
|
@@ -817,9 +1272,11 @@ module Google
|
|
817
1272
|
|
818
1273
|
# Update properties of this object
|
819
1274
|
def update!(**args)
|
1275
|
+
@auto_generate_ids = args[:auto_generate_ids] if args.key?(:auto_generate_ids)
|
820
1276
|
@bigquery_source = args[:bigquery_source] if args.key?(:bigquery_source)
|
821
1277
|
@error_config = args[:error_config] if args.key?(:error_config)
|
822
1278
|
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
1279
|
+
@id_field = args[:id_field] if args.key?(:id_field)
|
823
1280
|
@inline_source = args[:inline_source] if args.key?(:inline_source)
|
824
1281
|
@reconciliation_mode = args[:reconciliation_mode] if args.key?(:reconciliation_mode)
|
825
1282
|
end
|
@@ -1066,7 +1523,7 @@ module Google
|
|
1066
1523
|
attr_accessor :media_progress_duration
|
1067
1524
|
|
1068
1525
|
# Media progress should be computed using only the media_progress_duration
|
1069
|
-
# relative to the media total length. This value must be between [0, 1.0]
|
1526
|
+
# relative to the media total length. This value must be between `[0, 1.0]`
|
1070
1527
|
# inclusive. If this is not a playback or the progress cannot be computed (e.g.
|
1071
1528
|
# ongoing livestream), this field should be unset.
|
1072
1529
|
# Corresponds to the JSON property `mediaProgressPercentage`
|
@@ -1178,19 +1635,115 @@ module Google
|
|
1178
1635
|
end
|
1179
1636
|
end
|
1180
1637
|
|
1638
|
+
# Metadata related to the progress of the PurgeDocuments operation. This will be
|
1639
|
+
# returned by the google.longrunning.Operation.metadata field.
|
1640
|
+
class GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata
|
1641
|
+
include Google::Apis::Core::Hashable
|
1642
|
+
|
1643
|
+
# Operation create time.
|
1644
|
+
# Corresponds to the JSON property `createTime`
|
1645
|
+
# @return [String]
|
1646
|
+
attr_accessor :create_time
|
1647
|
+
|
1648
|
+
# Count of entries that encountered errors while processing.
|
1649
|
+
# Corresponds to the JSON property `failureCount`
|
1650
|
+
# @return [Fixnum]
|
1651
|
+
attr_accessor :failure_count
|
1652
|
+
|
1653
|
+
# Count of entries that were deleted successfully.
|
1654
|
+
# Corresponds to the JSON property `successCount`
|
1655
|
+
# @return [Fixnum]
|
1656
|
+
attr_accessor :success_count
|
1657
|
+
|
1658
|
+
# Operation last update time. If the operation is done, this is also the finish
|
1659
|
+
# time.
|
1660
|
+
# Corresponds to the JSON property `updateTime`
|
1661
|
+
# @return [String]
|
1662
|
+
attr_accessor :update_time
|
1663
|
+
|
1664
|
+
def initialize(**args)
|
1665
|
+
update!(**args)
|
1666
|
+
end
|
1667
|
+
|
1668
|
+
# Update properties of this object
|
1669
|
+
def update!(**args)
|
1670
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1671
|
+
@failure_count = args[:failure_count] if args.key?(:failure_count)
|
1672
|
+
@success_count = args[:success_count] if args.key?(:success_count)
|
1673
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
1674
|
+
end
|
1675
|
+
end
|
1676
|
+
|
1677
|
+
# Request message for DocumentService.PurgeDocuments method.
|
1678
|
+
class GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest
|
1679
|
+
include Google::Apis::Core::Hashable
|
1680
|
+
|
1681
|
+
# Required. Filter matching documents to purge. Only currently supported value
|
1682
|
+
# is `*` (all items).
|
1683
|
+
# Corresponds to the JSON property `filter`
|
1684
|
+
# @return [String]
|
1685
|
+
attr_accessor :filter
|
1686
|
+
|
1687
|
+
# Actually performs the purge. If `force` is set to false, return the expected
|
1688
|
+
# purge count without deleting any documents.
|
1689
|
+
# Corresponds to the JSON property `force`
|
1690
|
+
# @return [Boolean]
|
1691
|
+
attr_accessor :force
|
1692
|
+
alias_method :force?, :force
|
1693
|
+
|
1694
|
+
def initialize(**args)
|
1695
|
+
update!(**args)
|
1696
|
+
end
|
1697
|
+
|
1698
|
+
# Update properties of this object
|
1699
|
+
def update!(**args)
|
1700
|
+
@filter = args[:filter] if args.key?(:filter)
|
1701
|
+
@force = args[:force] if args.key?(:force)
|
1702
|
+
end
|
1703
|
+
end
|
1704
|
+
|
1705
|
+
# Response message for DocumentService.PurgeDocuments method. If the long
|
1706
|
+
# running operation is successfully done, then this message is returned by the
|
1707
|
+
# google.longrunning.Operations.response field.
|
1708
|
+
class GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse
|
1709
|
+
include Google::Apis::Core::Hashable
|
1710
|
+
|
1711
|
+
# The total count of documents purged as a result of the operation.
|
1712
|
+
# Corresponds to the JSON property `purgeCount`
|
1713
|
+
# @return [Fixnum]
|
1714
|
+
attr_accessor :purge_count
|
1715
|
+
|
1716
|
+
# A sample of document names that will be deleted. Only populated if `force` is
|
1717
|
+
# set to false. A max of 100 names will be returned and the names are chosen at
|
1718
|
+
# random.
|
1719
|
+
# Corresponds to the JSON property `purgeSample`
|
1720
|
+
# @return [Array<String>]
|
1721
|
+
attr_accessor :purge_sample
|
1722
|
+
|
1723
|
+
def initialize(**args)
|
1724
|
+
update!(**args)
|
1725
|
+
end
|
1726
|
+
|
1727
|
+
# Update properties of this object
|
1728
|
+
def update!(**args)
|
1729
|
+
@purge_count = args[:purge_count] if args.key?(:purge_count)
|
1730
|
+
@purge_sample = args[:purge_sample] if args.key?(:purge_sample)
|
1731
|
+
end
|
1732
|
+
end
|
1733
|
+
|
1181
1734
|
# Request message for Recommend method.
|
1182
1735
|
class GoogleCloudDiscoveryengineV1betaRecommendRequest
|
1183
1736
|
include Google::Apis::Core::Hashable
|
1184
1737
|
|
1185
1738
|
# Filter for restricting recommendation results with a length limit of 5,000
|
1186
1739
|
# characters. Currently, only filter expressions on the `filter_tags` attribute
|
1187
|
-
# is supported. Examples: * (filter_tags: ANY("Red", "Blue") OR filter_tags:
|
1188
|
-
# "Hot", "Cold")) * (filter_tags: ANY("Red", "Blue")) AND NOT (filter_tags:
|
1189
|
-
# Green")) If your filter blocks all results, the API will return generic
|
1190
|
-
# unfiltered) popular Documents. If you only want results strictly matching the
|
1740
|
+
# is supported. Examples: * `(filter_tags: ANY("Red", "Blue") OR filter_tags:
|
1741
|
+
# ANY("Hot", "Cold"))` * `(filter_tags: ANY("Red", "Blue")) AND NOT (filter_tags:
|
1742
|
+
# ANY("Green"))` If your filter blocks all results, the API will return generic
|
1743
|
+
# (unfiltered) popular Documents. If you only want results strictly matching the
|
1191
1744
|
# filters, set `strictFiltering` to True in RecommendRequest.params to receive
|
1192
|
-
# empty results instead. Note that the API will never return Documents with
|
1193
|
-
# storageStatus of
|
1745
|
+
# empty results instead. Note that the API will never return Documents with `
|
1746
|
+
# storageStatus` of `EXPIRED` or `DELETED` regardless of filter choices.
|
1194
1747
|
# Corresponds to the JSON property `filter`
|
1195
1748
|
# @return [String]
|
1196
1749
|
attr_accessor :filter
|
@@ -1205,17 +1758,17 @@ module Google
|
|
1205
1758
|
|
1206
1759
|
# Additional domain specific parameters for the recommendations. Allowed values:
|
1207
1760
|
# * `returnDocument`: Boolean. If set to true, the associated Document object
|
1208
|
-
# will be returned in RecommendResponse.
|
1209
|
-
# Boolean. If set to true, the recommendation 'score'
|
1210
|
-
# returned Document will be set in RecommendResponse.
|
1211
|
-
# 'score' indicates the probability of
|
1212
|
-
# context and history. * `strictFiltering
|
1213
|
-
# false, the service will return generic (
|
1214
|
-
# of empty if your filter blocks all
|
1215
|
-
# String. Default empty. If set to
|
1216
|
-
#
|
1217
|
-
# auto-diversity
|
1218
|
-
# results based on Document category.
|
1761
|
+
# will be returned in RecommendResponse.RecommendationResult.document. * `
|
1762
|
+
# returnScore`: Boolean. If set to true, the recommendation 'score'
|
1763
|
+
# corresponding to each returned Document will be set in RecommendResponse.
|
1764
|
+
# RecommendationResult.metadata. The given 'score' indicates the probability of
|
1765
|
+
# a Document conversion given the user's context and history. * `strictFiltering`
|
1766
|
+
# : Boolean. True by default. If set to false, the service will return generic (
|
1767
|
+
# unfiltered) popular Documents instead of empty if your filter blocks all
|
1768
|
+
# recommendation results. * `diversityLevel`: String. Default empty. If set to
|
1769
|
+
# be non-empty, then it needs to be one of: * `no-diversity` * `low-diversity` *
|
1770
|
+
# `medium-diversity` * `high-diversity` * `auto-diversity` This gives request-
|
1771
|
+
# level control and adjusts recommendation results based on Document category.
|
1219
1772
|
# Corresponds to the JSON property `params`
|
1220
1773
|
# @return [Hash<String,Object>]
|
1221
1774
|
attr_accessor :params
|
@@ -1402,8 +1955,8 @@ module Google
|
|
1402
1955
|
# The user's search query. See SearchRequest.query for definition. The value
|
1403
1956
|
# must be a UTF-8 encoded string with a length limit of 5,000 characters.
|
1404
1957
|
# Otherwise, an INVALID_ARGUMENT error is returned. At least one of search_query
|
1405
|
-
# or
|
1406
|
-
# not set this field. Otherwise, an INVALID_ARGUMENT error is returned.
|
1958
|
+
# or PageInfo.page_category is required for `search` events. Other event types
|
1959
|
+
# should not set this field. Otherwise, an INVALID_ARGUMENT error is returned.
|
1407
1960
|
# Corresponds to the JSON property `searchQuery`
|
1408
1961
|
# @return [String]
|
1409
1962
|
attr_accessor :search_query
|
@@ -1492,33 +2045,33 @@ module Google
|
|
1492
2045
|
# imported events and events provided with prediction requests. This lets the
|
1493
2046
|
# Discovery Engine API use those custom attributes when training models and
|
1494
2047
|
# serving predictions, which helps improve recommendation quality. This field
|
1495
|
-
# needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is
|
2048
|
+
# needs to pass all below criteria, otherwise an `INVALID_ARGUMENT` error is
|
1496
2049
|
# returned: * The key must be a UTF-8 encoded string with a length limit of 5,
|
1497
2050
|
# 000 characters. * For text attributes, at most 400 values are allowed. Empty
|
1498
2051
|
# values are not allowed. Each value must be a UTF-8 encoded string with a
|
1499
2052
|
# length limit of 256 characters. * For number attributes, at most 400 values
|
1500
2053
|
# are allowed. For product recommendations, an example of extra user information
|
1501
|
-
# is traffic_channel
|
1502
|
-
# at the site by coming to the site directly, coming through Google
|
1503
|
-
# in other ways.
|
2054
|
+
# is ` traffic_channel`, which is how a user arrives at the site. Users can
|
2055
|
+
# arrive at the site by coming to the site directly, coming through Google
|
2056
|
+
# search, or in other ways.
|
1504
2057
|
# Corresponds to the JSON property `attributes`
|
1505
2058
|
# @return [Hash<String,Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCustomAttribute>]
|
1506
2059
|
attr_accessor :attributes
|
1507
2060
|
|
1508
2061
|
# Token to attribute an API response to user action(s) to trigger the event.
|
1509
|
-
# Highly recommended for user events that are the result of
|
1510
|
-
#
|
1511
|
-
# performance. The value must be one of: * PredictResponse.
|
1512
|
-
# events that are the result of
|
1513
|
-
# attribution_token for events that are the result
|
1514
|
-
# CompleteQueryResponse.attribution_token for events
|
1515
|
-
#
|
1516
|
-
# page view or conversion completion back to the event
|
1517
|
-
# predict response containing this clicked/purchased product.
|
1518
|
-
# product K in the recommendation results, pass
|
1519
|
-
# attribution_token as a URL parameter to product K's page. When
|
1520
|
-
# events on product K's page, log the PredictResponse.
|
1521
|
-
# field.
|
2062
|
+
# Highly recommended for user events that are the result of
|
2063
|
+
# RecommendationService.Recommend. This field enables accurate attribution of
|
2064
|
+
# recommendation model performance. The value must be one of: * PredictResponse.
|
2065
|
+
# attribution_token for events that are the result of RecommendationService.
|
2066
|
+
# Recommend. * SearchResponse.attribution_token for events that are the result
|
2067
|
+
# of SearchService.Search. * CompleteQueryResponse.attribution_token for events
|
2068
|
+
# that are the result of CompletionService.CompleteQuery. This token enables us
|
2069
|
+
# to accurately attribute page view or conversion completion back to the event
|
2070
|
+
# and the particular predict response containing this clicked/purchased product.
|
2071
|
+
# If user clicks on product K in the recommendation results, pass
|
2072
|
+
# PredictResponse.attribution_token as a URL parameter to product K's page. When
|
2073
|
+
# recording events on product K's page, log the PredictResponse.
|
2074
|
+
# attribution_token to this field.
|
1522
2075
|
# Corresponds to the JSON property `attributionToken`
|
1523
2076
|
# @return [String]
|
1524
2077
|
attr_accessor :attribution_token
|
@@ -1571,11 +2124,11 @@ module Google
|
|
1571
2124
|
|
1572
2125
|
# The filter syntax consists of an expression language for constructing a
|
1573
2126
|
# predicate from one or more fields of the documents being filtered. One example
|
1574
|
-
# is for `search` events, the associated
|
1575
|
-
#
|
1576
|
-
#
|
1577
|
-
#
|
1578
|
-
#
|
2127
|
+
# is for `search` events, the associated SearchRequest may contain a filter
|
2128
|
+
# expression in SearchRequest.filter conforming to https://google.aip.dev/160#
|
2129
|
+
# filtering. Similarly, for `view-item-list` events that are generated from a
|
2130
|
+
# RecommendationService.RecommendRequest, this field may be populated directly
|
2131
|
+
# from RecommendationService.RecommendRequest.filter conforming to https://
|
1579
2132
|
# google.aip.dev/160#filtering. The value must be a UTF-8 encoded string with a
|
1580
2133
|
# length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is
|
1581
2134
|
# returned.
|
@@ -1683,10 +2236,10 @@ module Google
|
|
1683
2236
|
|
1684
2237
|
# User agent as included in the HTTP header. Required for getting SearchResponse.
|
1685
2238
|
# sponsored_results. The field must be a UTF-8 encoded string with a length
|
1686
|
-
# limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
2239
|
+
# limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
|
1687
2240
|
# This should not be set when using the client side event reporting with GTM or
|
1688
|
-
# JavaScript tag in UserEventService.CollectUserEvent or if
|
1689
|
-
# is set.
|
2241
|
+
# JavaScript tag in UserEventService.CollectUserEvent or if UserEvent.
|
2242
|
+
# direct_user_request is set.
|
1690
2243
|
# Corresponds to the JSON property `userAgent`
|
1691
2244
|
# @return [String]
|
1692
2245
|
attr_accessor :user_agent
|
@@ -1696,7 +2249,7 @@ module Google
|
|
1696
2249
|
# for this ID. Don't set the field to the same fixed ID for different users.
|
1697
2250
|
# This mixes the event history of those users together, which results in
|
1698
2251
|
# degraded model quality. The field must be a UTF-8 encoded string with a length
|
1699
|
-
# limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
2252
|
+
# limit of 128 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
|
1700
2253
|
# Corresponds to the JSON property `userId`
|
1701
2254
|
# @return [String]
|
1702
2255
|
attr_accessor :user_id
|