google-cloud-discovery_engine-v1beta 0.12.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/discovery_engine/v1beta/completion_service/client.rb +219 -0
  3. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +205 -0
  4. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/operations.rb +14 -0
  5. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/service_stub.rb +136 -0
  6. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +19 -1
  7. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +19 -1
  8. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/client.rb +10 -1
  9. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/client.rb +10 -1
  10. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/operations.rb +14 -0
  11. data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +3 -1
  12. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +3 -1
  13. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/operations.rb +14 -0
  14. data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/operations.rb +14 -0
  15. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/client.rb +824 -0
  16. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/credentials.rb +47 -0
  17. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/operations.rb +809 -0
  18. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/paths.rb +318 -0
  19. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/client.rb +770 -0
  20. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/operations.rb +1106 -0
  21. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/service_stub.rb +306 -0
  22. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest.rb +54 -0
  23. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service.rb +57 -0
  24. data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/operations.rb +14 -0
  25. data/lib/google/cloud/discovery_engine/v1beta/rest.rb +3 -0
  26. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/client.rb +1035 -0
  27. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/credentials.rb +47 -0
  28. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/operations.rb +809 -0
  29. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/paths.rb +73 -0
  30. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/client.rb +967 -0
  31. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/operations.rb +1106 -0
  32. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/service_stub.rb +426 -0
  33. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest.rb +54 -0
  34. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service.rb +57 -0
  35. data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/client.rb +911 -0
  36. data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/credentials.rb +47 -0
  37. data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/paths.rb +69 -0
  38. data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/rest/client.rb +850 -0
  39. data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/rest/service_stub.rb +366 -0
  40. data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/rest.rb +53 -0
  41. data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service.rb +56 -0
  42. data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/operations.rb +14 -0
  43. data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +60 -5
  44. data/lib/google/cloud/discovery_engine/v1beta/search_service/paths.rb +68 -0
  45. data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +60 -5
  46. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/operations.rb +14 -0
  47. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/operations.rb +14 -0
  48. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +139 -0
  49. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +132 -0
  50. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/operations.rb +14 -0
  51. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/service_stub.rb +75 -0
  52. data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
  53. data/lib/google/cloud/discovery_engine/v1beta.rb +3 -0
  54. data/lib/google/cloud/discoveryengine/v1beta/answer_pb.rb +1 -1
  55. data/lib/google/cloud/discoveryengine/v1beta/chunk_pb.rb +50 -0
  56. data/lib/google/cloud/discoveryengine/v1beta/common_pb.rb +1 -1
  57. data/lib/google/cloud/discoveryengine/v1beta/completion_pb.rb +2 -1
  58. data/lib/google/cloud/discoveryengine/v1beta/completion_service_pb.rb +1 -1
  59. data/lib/google/cloud/discoveryengine/v1beta/completion_service_services_pb.rb +8 -0
  60. data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +1 -1
  61. data/lib/google/cloud/discoveryengine/v1beta/custom_tuning_model_pb.rb +1 -1
  62. data/lib/google/cloud/discoveryengine/v1beta/data_store_pb.rb +2 -1
  63. data/lib/google/cloud/discoveryengine/v1beta/data_store_service_pb.rb +1 -1
  64. data/lib/google/cloud/discoveryengine/v1beta/document_processing_config_pb.rb +4 -1
  65. data/lib/google/cloud/discoveryengine/v1beta/evaluation_pb.rb +56 -0
  66. data/lib/google/cloud/discoveryengine/v1beta/evaluation_service_pb.rb +59 -0
  67. data/lib/google/cloud/discoveryengine/v1beta/evaluation_service_services_pb.rb +57 -0
  68. data/lib/google/cloud/discoveryengine/v1beta/import_config_pb.rb +12 -1
  69. data/lib/google/cloud/discoveryengine/v1beta/purge_config_pb.rb +7 -1
  70. data/lib/google/cloud/discoveryengine/v1beta/sample_query_pb.rb +49 -0
  71. data/lib/google/cloud/discoveryengine/v1beta/sample_query_service_pb.rb +59 -0
  72. data/lib/google/cloud/discoveryengine/v1beta/sample_query_service_services_pb.rb +63 -0
  73. data/lib/google/cloud/discoveryengine/v1beta/sample_query_set_pb.rb +47 -0
  74. data/lib/google/cloud/discoveryengine/v1beta/sample_query_set_service_pb.rb +57 -0
  75. data/lib/google/cloud/discoveryengine/v1beta/sample_query_set_service_services_pb.rb +59 -0
  76. data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +20 -1
  77. data/lib/google/cloud/discoveryengine/v1beta/user_event_service_pb.rb +2 -1
  78. data/lib/google/cloud/discoveryengine/v1beta/user_event_service_services_pb.rb +5 -0
  79. data/proto_docs/google/api/client.rb +14 -10
  80. data/proto_docs/google/api/resource.rb +7 -2
  81. data/proto_docs/google/cloud/discoveryengine/v1beta/answer.rb +14 -0
  82. data/proto_docs/google/cloud/discoveryengine/v1beta/chunk.rb +119 -0
  83. data/proto_docs/google/cloud/discoveryengine/v1beta/completion.rb +31 -0
  84. data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +38 -2
  85. data/proto_docs/google/cloud/discoveryengine/v1beta/custom_tuning_model.rb +16 -0
  86. data/proto_docs/google/cloud/discoveryengine/v1beta/data_store.rb +25 -0
  87. data/proto_docs/google/cloud/discoveryengine/v1beta/data_store_service.rb +10 -0
  88. data/proto_docs/google/cloud/discoveryengine/v1beta/document.rb +1 -1
  89. data/proto_docs/google/cloud/discoveryengine/v1beta/document_processing_config.rb +43 -2
  90. data/proto_docs/google/cloud/discoveryengine/v1beta/evaluation.rb +223 -0
  91. data/proto_docs/google/cloud/discoveryengine/v1beta/evaluation_service.rb +194 -0
  92. data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +199 -0
  93. data/proto_docs/google/cloud/discoveryengine/v1beta/purge_config.rb +119 -0
  94. data/proto_docs/google/cloud/discoveryengine/v1beta/sample_query.rb +82 -0
  95. data/proto_docs/google/cloud/discoveryengine/v1beta/sample_query_service.rb +179 -0
  96. data/proto_docs/google/cloud/discoveryengine/v1beta/sample_query_set.rb +57 -0
  97. data/proto_docs/google/cloud/discoveryengine/v1beta/sample_query_set_service.rb +186 -0
  98. data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +401 -8
  99. data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config.rb +11 -5
  100. metadata +44 -2
@@ -339,6 +339,41 @@ module Google
339
339
  extend ::Google::Protobuf::MessageExts::ClassMethods
340
340
  end
341
341
 
342
+ # AlloyDB source import data from.
343
+ # @!attribute [rw] project_id
344
+ # @return [::String]
345
+ # The project ID that the AlloyDB source is in
346
+ # with a length limit of 128 characters. If not specified, inherits the
347
+ # project ID from the parent request.
348
+ # @!attribute [rw] location_id
349
+ # @return [::String]
350
+ # Required. The AlloyDB location to copy the data from with a length limit of
351
+ # 256 characters.
352
+ # @!attribute [rw] cluster_id
353
+ # @return [::String]
354
+ # Required. The AlloyDB cluster to copy the data from with a length limit of
355
+ # 256 characters.
356
+ # @!attribute [rw] database_id
357
+ # @return [::String]
358
+ # Required. The AlloyDB database to copy the data from with a length limit of
359
+ # 256 characters.
360
+ # @!attribute [rw] table_id
361
+ # @return [::String]
362
+ # Required. The AlloyDB table to copy the data from with a length limit of
363
+ # 256 characters.
364
+ # @!attribute [rw] gcs_staging_dir
365
+ # @return [::String]
366
+ # Intermediate Cloud Storage directory used for the import with a length
367
+ # limit of 2,000 characters. Can be specified if one wants to have the
368
+ # AlloyDB export to a specific Cloud Storage directory.
369
+ #
370
+ # Ensure that the AlloyDB service account has the necessary Cloud
371
+ # Storage Admin permissions to access the specified Cloud Storage directory.
372
+ class AlloyDbSource
373
+ include ::Google::Protobuf::MessageExts
374
+ extend ::Google::Protobuf::MessageExts::ClassMethods
375
+ end
376
+
342
377
  # Firestore source import data from.
343
378
  # @!attribute [rw] project_id
344
379
  # @return [::String]
@@ -497,6 +532,9 @@ module Google
497
532
  # @!attribute [rw] firestore_source
498
533
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::FirestoreSource]
499
534
  # Firestore input source.
535
+ # @!attribute [rw] alloy_db_source
536
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::AlloyDbSource]
537
+ # AlloyDB input source.
500
538
  # @!attribute [rw] bigtable_source
501
539
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::BigtableSource]
502
540
  # Cloud Bigtable input source.
@@ -690,6 +728,167 @@ module Google
690
728
  include ::Google::Protobuf::MessageExts
691
729
  extend ::Google::Protobuf::MessageExts::ClassMethods
692
730
  end
731
+
732
+ # Request message for
733
+ # {::Google::Cloud::DiscoveryEngine::V1beta::CompletionService::Client#import_completion_suggestions CompletionService.ImportCompletionSuggestions}
734
+ # method.
735
+ # @!attribute [rw] inline_source
736
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::ImportCompletionSuggestionsRequest::InlineSource]
737
+ # The Inline source for suggestion entries.
738
+ # @!attribute [rw] gcs_source
739
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::GcsSource]
740
+ # Cloud Storage location for the input content.
741
+ # @!attribute [rw] bigquery_source
742
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource]
743
+ # BigQuery input source.
744
+ # @!attribute [rw] parent
745
+ # @return [::String]
746
+ # Required. The parent data store resource name for which to import customer
747
+ # autocomplete suggestions.
748
+ #
749
+ # Follows pattern `projects/*/locations/*/collections/*/dataStores/*`
750
+ # @!attribute [rw] error_config
751
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::ImportErrorConfig]
752
+ # The desired location of errors incurred during the Import.
753
+ class ImportCompletionSuggestionsRequest
754
+ include ::Google::Protobuf::MessageExts
755
+ extend ::Google::Protobuf::MessageExts::ClassMethods
756
+
757
+ # The inline source for CompletionSuggestions.
758
+ # @!attribute [rw] suggestions
759
+ # @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::CompletionSuggestion>]
760
+ # Required. A list of all denylist entries to import. Max of 1000 items.
761
+ class InlineSource
762
+ include ::Google::Protobuf::MessageExts
763
+ extend ::Google::Protobuf::MessageExts::ClassMethods
764
+ end
765
+ end
766
+
767
+ # Response of the
768
+ # {::Google::Cloud::DiscoveryEngine::V1beta::CompletionService::Client#import_completion_suggestions CompletionService.ImportCompletionSuggestions}
769
+ # method. If the long running operation is done, this message is returned by
770
+ # the google.longrunning.Operations.response field if the operation is
771
+ # successful.
772
+ # @!attribute [rw] error_samples
773
+ # @return [::Array<::Google::Rpc::Status>]
774
+ # A sample of errors encountered while processing the request.
775
+ # @!attribute [rw] error_config
776
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::ImportErrorConfig]
777
+ # The desired location of errors incurred during the Import.
778
+ class ImportCompletionSuggestionsResponse
779
+ include ::Google::Protobuf::MessageExts
780
+ extend ::Google::Protobuf::MessageExts::ClassMethods
781
+ end
782
+
783
+ # Metadata related to the progress of the ImportCompletionSuggestions
784
+ # operation. This will be returned by the google.longrunning.Operation.metadata
785
+ # field.
786
+ # @!attribute [rw] create_time
787
+ # @return [::Google::Protobuf::Timestamp]
788
+ # Operation create time.
789
+ # @!attribute [rw] update_time
790
+ # @return [::Google::Protobuf::Timestamp]
791
+ # Operation last update time. If the operation is done, this is also the
792
+ # finish time.
793
+ # @!attribute [rw] success_count
794
+ # @return [::Integer]
795
+ # Count of
796
+ # {::Google::Cloud::DiscoveryEngine::V1beta::CompletionSuggestion CompletionSuggestion}s
797
+ # successfully imported.
798
+ # @!attribute [rw] failure_count
799
+ # @return [::Integer]
800
+ # Count of
801
+ # {::Google::Cloud::DiscoveryEngine::V1beta::CompletionSuggestion CompletionSuggestion}s
802
+ # that failed to be imported.
803
+ class ImportCompletionSuggestionsMetadata
804
+ include ::Google::Protobuf::MessageExts
805
+ extend ::Google::Protobuf::MessageExts::ClassMethods
806
+ end
807
+
808
+ # Request message for
809
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQueryService::Client#import_sample_queries SampleQueryService.ImportSampleQueries}
810
+ # method.
811
+ # @!attribute [rw] inline_source
812
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::ImportSampleQueriesRequest::InlineSource]
813
+ # The Inline source for sample query entries.
814
+ # @!attribute [rw] gcs_source
815
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::GcsSource]
816
+ # Cloud Storage location for the input content.
817
+ # @!attribute [rw] bigquery_source
818
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource]
819
+ # BigQuery input source.
820
+ # @!attribute [rw] parent
821
+ # @return [::String]
822
+ # Required. The parent sample query set resource name, such as
823
+ # `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
824
+ #
825
+ # If the caller does not have permission to list
826
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery SampleQuery}s under this
827
+ # sample query set, regardless of whether or not this sample query set
828
+ # exists, a `PERMISSION_DENIED` error is returned.
829
+ # @!attribute [rw] error_config
830
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::ImportErrorConfig]
831
+ # The desired location of errors incurred during the Import.
832
+ class ImportSampleQueriesRequest
833
+ include ::Google::Protobuf::MessageExts
834
+ extend ::Google::Protobuf::MessageExts::ClassMethods
835
+
836
+ # The inline source for
837
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery SampleQuery}s.
838
+ # @!attribute [rw] sample_queries
839
+ # @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery>]
840
+ # Required. A list of
841
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery SampleQuery}s to
842
+ # import. Max of 1000 items.
843
+ class InlineSource
844
+ include ::Google::Protobuf::MessageExts
845
+ extend ::Google::Protobuf::MessageExts::ClassMethods
846
+ end
847
+ end
848
+
849
+ # Response of the
850
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQueryService::Client#import_sample_queries SampleQueryService.ImportSampleQueries}
851
+ # method. If the long running operation is done, this message is returned by
852
+ # the google.longrunning.Operations.response field if the operation is
853
+ # successful.
854
+ # @!attribute [rw] error_samples
855
+ # @return [::Array<::Google::Rpc::Status>]
856
+ # A sample of errors encountered while processing the request.
857
+ # @!attribute [rw] error_config
858
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::ImportErrorConfig]
859
+ # The desired location of errors incurred during the Import.
860
+ class ImportSampleQueriesResponse
861
+ include ::Google::Protobuf::MessageExts
862
+ extend ::Google::Protobuf::MessageExts::ClassMethods
863
+ end
864
+
865
+ # Metadata related to the progress of the ImportSampleQueries
866
+ # operation. This will be returned by the google.longrunning.Operation.metadata
867
+ # field.
868
+ # @!attribute [rw] create_time
869
+ # @return [::Google::Protobuf::Timestamp]
870
+ # ImportSampleQueries operation create time.
871
+ # @!attribute [rw] update_time
872
+ # @return [::Google::Protobuf::Timestamp]
873
+ # ImportSampleQueries operation last update time. If the operation is done,
874
+ # this is also the finish time.
875
+ # @!attribute [rw] success_count
876
+ # @return [::Integer]
877
+ # Count of {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery SampleQuery}s
878
+ # successfully imported.
879
+ # @!attribute [rw] failure_count
880
+ # @return [::Integer]
881
+ # Count of {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery SampleQuery}s
882
+ # that failed to be imported.
883
+ # @!attribute [rw] total_count
884
+ # @return [::Integer]
885
+ # Total count of
886
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery SampleQuery}s that were
887
+ # processed.
888
+ class ImportSampleQueriesMetadata
889
+ include ::Google::Protobuf::MessageExts
890
+ extend ::Google::Protobuf::MessageExts::ClassMethods
891
+ end
693
892
  end
694
893
  end
695
894
  end
@@ -21,6 +21,83 @@ module Google
21
21
  module Cloud
22
22
  module DiscoveryEngine
23
23
  module V1beta
24
+ # Request message for PurgeUserEvents method.
25
+ # @!attribute [rw] parent
26
+ # @return [::String]
27
+ # Required. The resource name of the catalog under which the events are
28
+ # created. The format is
29
+ # `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`
30
+ # @!attribute [rw] filter
31
+ # @return [::String]
32
+ # Required. The filter string to specify the events to be deleted with a
33
+ # length limit of 5,000 characters. The eligible fields for filtering are:
34
+ #
35
+ # * `eventType`: Double quoted
36
+ # {::Google::Cloud::DiscoveryEngine::V1beta::UserEvent#event_type UserEvent.event_type}
37
+ # string.
38
+ # * `eventTime`: in ISO 8601 "zulu" format.
39
+ # * `userPseudoId`: Double quoted string. Specifying this will delete all
40
+ # events associated with a visitor.
41
+ # * `userId`: Double quoted string. Specifying this will delete all events
42
+ # associated with a user.
43
+ #
44
+ # Examples:
45
+ #
46
+ # * Deleting all events in a time range:
47
+ # `eventTime > "2012-04-23T18:25:43.511Z"
48
+ # eventTime < "2012-04-23T18:30:43.511Z"`
49
+ # * Deleting specific eventType:
50
+ # `eventType = "search"`
51
+ # * Deleting all events for a specific visitor:
52
+ # `userPseudoId = "visitor1024"`
53
+ # * Deleting all events inside a DataStore:
54
+ # `*`
55
+ #
56
+ # The filtering fields are assumed to have an implicit AND.
57
+ # @!attribute [rw] force
58
+ # @return [::Boolean]
59
+ # The `force` field is currently not supported. Purge user event requests
60
+ # will permanently delete all purgeable events. Once the development is
61
+ # complete:
62
+ # If `force` is set to false, the method will return the expected
63
+ # purge count without deleting any user events. This field will default to
64
+ # false if not included in the request.
65
+ class PurgeUserEventsRequest
66
+ include ::Google::Protobuf::MessageExts
67
+ extend ::Google::Protobuf::MessageExts::ClassMethods
68
+ end
69
+
70
+ # Response of the PurgeUserEventsRequest. If the long running operation is
71
+ # successfully done, then this message is returned by the
72
+ # google.longrunning.Operations.response field.
73
+ # @!attribute [rw] purge_count
74
+ # @return [::Integer]
75
+ # The total count of events purged as a result of the operation.
76
+ class PurgeUserEventsResponse
77
+ include ::Google::Protobuf::MessageExts
78
+ extend ::Google::Protobuf::MessageExts::ClassMethods
79
+ end
80
+
81
+ # Metadata related to the progress of the PurgeUserEvents operation.
82
+ # This will be returned by the google.longrunning.Operation.metadata field.
83
+ # @!attribute [rw] create_time
84
+ # @return [::Google::Protobuf::Timestamp]
85
+ # Operation create time.
86
+ # @!attribute [rw] update_time
87
+ # @return [::Google::Protobuf::Timestamp]
88
+ # Operation last update time. If the operation is done, this is also the
89
+ # finish time.
90
+ # @!attribute [rw] success_count
91
+ # @return [::Integer]
92
+ # Count of entries that were deleted successfully.
93
+ # @!attribute [rw] failure_count
94
+ # @return [::Integer]
95
+ # Count of entries that encountered errors while processing.
96
+ class PurgeUserEventsMetadata
97
+ include ::Google::Protobuf::MessageExts
98
+ extend ::Google::Protobuf::MessageExts::ClassMethods
99
+ end
100
+
24
101
  # Request message for
25
102
  # {::Google::Cloud::DiscoveryEngine::V1beta::DocumentService::Client#purge_documents DocumentService.PurgeDocuments}
26
103
  # method.
@@ -122,6 +199,48 @@ module Google
122
199
  include ::Google::Protobuf::MessageExts
123
200
  extend ::Google::Protobuf::MessageExts::ClassMethods
124
201
  end
202
+
203
+ # Request message for
204
+ # {::Google::Cloud::DiscoveryEngine::V1beta::CompletionService::Client#purge_completion_suggestions CompletionService.PurgeCompletionSuggestions}
205
+ # method.
206
+ # @!attribute [rw] parent
207
+ # @return [::String]
208
+ # Required. The parent data store resource name for which to purge completion
209
+ # suggestions. Follows pattern
210
+ # projects/*/locations/*/collections/*/dataStores/*.
211
+ class PurgeCompletionSuggestionsRequest
212
+ include ::Google::Protobuf::MessageExts
213
+ extend ::Google::Protobuf::MessageExts::ClassMethods
214
+ end
215
+
216
+ # Response message for
217
+ # {::Google::Cloud::DiscoveryEngine::V1beta::CompletionService::Client#purge_completion_suggestions CompletionService.PurgeCompletionSuggestions}
218
+ # method.
219
+ # @!attribute [rw] purge_succeeded
220
+ # @return [::Boolean]
221
+ # Whether the completion suggestions were successfully purged.
222
+ # @!attribute [rw] error_samples
223
+ # @return [::Array<::Google::Rpc::Status>]
224
+ # A sample of errors encountered while processing the request.
225
+ class PurgeCompletionSuggestionsResponse
226
+ include ::Google::Protobuf::MessageExts
227
+ extend ::Google::Protobuf::MessageExts::ClassMethods
228
+ end
229
+
230
+ # Metadata related to the progress of the PurgeCompletionSuggestions
231
+ # operation. This is returned by the google.longrunning.Operation.metadata
232
+ # field.
233
+ # @!attribute [rw] create_time
234
+ # @return [::Google::Protobuf::Timestamp]
235
+ # Operation create time.
236
+ # @!attribute [rw] update_time
237
+ # @return [::Google::Protobuf::Timestamp]
238
+ # Operation last update time. If the operation is done, this is also the
239
+ # finish time.
240
+ class PurgeCompletionSuggestionsMetadata
241
+ include ::Google::Protobuf::MessageExts
242
+ extend ::Google::Protobuf::MessageExts::ClassMethods
243
+ end
125
244
  end
126
245
  end
127
246
  end
@@ -0,0 +1,82 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module DiscoveryEngine
23
+ module V1beta
24
+ # Sample Query captures metadata to be used for evaluation.
25
+ # @!attribute [rw] query_entry
26
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery::QueryEntry]
27
+ # The query entry.
28
+ # @!attribute [rw] name
29
+ # @return [::String]
30
+ # Identifier. The full resource name of the sample query, in the format of
31
+ # `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
32
+ #
33
+ # This field must be a UTF-8 encoded string with a length limit of 1024
34
+ # characters.
35
+ # @!attribute [r] create_time
36
+ # @return [::Google::Protobuf::Timestamp]
37
+ # Output only. Timestamp the
38
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery SampleQuery} was created
39
+ # at.
40
+ class SampleQuery
41
+ include ::Google::Protobuf::MessageExts
42
+ extend ::Google::Protobuf::MessageExts::ClassMethods
43
+
44
+ # Query Entry captures metadata to be used for search evaluation.
45
+ # @!attribute [rw] query
46
+ # @return [::String]
47
+ # Required. The query.
48
+ # @!attribute [rw] targets
49
+ # @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery::QueryEntry::Target>]
50
+ # List of targets for the query.
51
+ class QueryEntry
52
+ include ::Google::Protobuf::MessageExts
53
+ extend ::Google::Protobuf::MessageExts::ClassMethods
54
+
55
+ # Defines the parameters of the query's expected outcome.
56
+ # @!attribute [rw] uri
57
+ # @return [::String]
58
+ # Expected uri of the target.
59
+ #
60
+ # This field must be a UTF-8 encoded string with a length limit of 2048
61
+ # characters.
62
+ #
63
+ # Example of valid uris: `https://example.com/abc`,
64
+ # `gcs://example/example.pdf`.
65
+ # @!attribute [rw] page_numbers
66
+ # @return [::Array<::Integer>]
67
+ # Expected page numbers of the target.
68
+ #
69
+ # Each page number must be non negative.
70
+ # @!attribute [rw] score
71
+ # @return [::Float]
72
+ # Relevance score of the target.
73
+ class Target
74
+ include ::Google::Protobuf::MessageExts
75
+ extend ::Google::Protobuf::MessageExts::ClassMethods
76
+ end
77
+ end
78
+ end
79
+ end
80
+ end
81
+ end
82
+ end
@@ -0,0 +1,179 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module DiscoveryEngine
23
+ module V1beta
24
+ # Request message for
25
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQueryService::Client#get_sample_query SampleQueryService.GetSampleQuery}
26
+ # method.
27
+ # @!attribute [rw] name
28
+ # @return [::String]
29
+ # Required. Full resource name of
30
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery SampleQuery}, such as
31
+ # `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
32
+ #
33
+ # If the caller does not have permission to access the
34
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery SampleQuery}, regardless
35
+ # of whether or not it exists, a PERMISSION_DENIED error is returned.
36
+ #
37
+ # If the requested
38
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery SampleQuery} does not
39
+ # exist, a NOT_FOUND error is returned.
40
+ class GetSampleQueryRequest
41
+ include ::Google::Protobuf::MessageExts
42
+ extend ::Google::Protobuf::MessageExts::ClassMethods
43
+ end
44
+
45
+ # Request message for
46
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQueryService::Client#list_sample_queries SampleQueryService.ListSampleQueries}
47
+ # method.
48
+ # @!attribute [rw] parent
49
+ # @return [::String]
50
+ # Required. The parent sample query set resource name, such as
51
+ # `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
52
+ #
53
+ # If the caller does not have permission to list
54
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery SampleQuery}s under this
55
+ # sample query set, regardless of whether or not this sample query set
56
+ # exists, a `PERMISSION_DENIED` error is returned.
57
+ # @!attribute [rw] page_size
58
+ # @return [::Integer]
59
+ # Maximum number of
60
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery SampleQuery}s to return.
61
+ # If unspecified, defaults to 100. The maximum allowed value is 1000. Values
62
+ # above 1000 will be coerced to 1000.
63
+ #
64
+ # If this field is negative, an `INVALID_ARGUMENT` error is returned.
65
+ # @!attribute [rw] page_token
66
+ # @return [::String]
67
+ # A page token
68
+ # {::Google::Cloud::DiscoveryEngine::V1beta::ListSampleQueriesResponse#next_page_token ListSampleQueriesResponse.next_page_token},
69
+ # received from a previous
70
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQueryService::Client#list_sample_queries SampleQueryService.ListSampleQueries}
71
+ # call. Provide this to retrieve the subsequent page.
72
+ #
73
+ # When paginating, all other parameters provided to
74
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQueryService::Client#list_sample_queries SampleQueryService.ListSampleQueries}
75
+ # must match the call that provided the page token. Otherwise, an
76
+ # `INVALID_ARGUMENT` error is returned.
77
+ class ListSampleQueriesRequest
78
+ include ::Google::Protobuf::MessageExts
79
+ extend ::Google::Protobuf::MessageExts::ClassMethods
80
+ end
81
+
82
+ # Response message for
83
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQueryService::Client#list_sample_queries SampleQueryService.ListSampleQueries}
84
+ # method.
85
+ # @!attribute [rw] sample_queries
86
+ # @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery>]
87
+ # The {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery SampleQuery}s.
88
+ # @!attribute [rw] next_page_token
89
+ # @return [::String]
90
+ # A token that can be sent as
91
+ # {::Google::Cloud::DiscoveryEngine::V1beta::ListSampleQueriesRequest#page_token ListSampleQueriesRequest.page_token}
92
+ # to retrieve the next page. If this field is omitted, there are no
93
+ # subsequent pages.
94
+ class ListSampleQueriesResponse
95
+ include ::Google::Protobuf::MessageExts
96
+ extend ::Google::Protobuf::MessageExts::ClassMethods
97
+ end
98
+
99
+ # Request message for
100
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQueryService::Client#create_sample_query SampleQueryService.CreateSampleQuery}
101
+ # method.
102
+ # @!attribute [rw] parent
103
+ # @return [::String]
104
+ # Required. The parent resource name, such as
105
+ # `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
106
+ # @!attribute [rw] sample_query
107
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery]
108
+ # Required. The
109
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery SampleQuery} to create.
110
+ # @!attribute [rw] sample_query_id
111
+ # @return [::String]
112
+ # Required. The ID to use for the
113
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery SampleQuery}, which will
114
+ # become the final component of the
115
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery#name SampleQuery.name}.
116
+ #
117
+ # If the caller does not have permission to create the
118
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery SampleQuery}, regardless
119
+ # of whether or not it exists, a `PERMISSION_DENIED` error is returned.
120
+ #
121
+ # This field must be unique among all
122
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery SampleQuery}s with the
123
+ # same
124
+ # {::Google::Cloud::DiscoveryEngine::V1beta::CreateSampleQueryRequest#parent parent}.
125
+ # Otherwise, an `ALREADY_EXISTS` error is returned.
126
+ #
127
+ # This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
128
+ # standard with a length limit of 63 characters. Otherwise, an
129
+ # `INVALID_ARGUMENT` error is returned.
130
+ class CreateSampleQueryRequest
131
+ include ::Google::Protobuf::MessageExts
132
+ extend ::Google::Protobuf::MessageExts::ClassMethods
133
+ end
134
+
135
+ # Request message for
136
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQueryService::Client#update_sample_query SampleQueryService.UpdateSampleQuery}
137
+ # method.
138
+ # @!attribute [rw] sample_query
139
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery]
140
+ # Required. The simple query to update.
141
+ #
142
+ # If the caller does not have permission to update the
143
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery SampleQuery}, regardless
144
+ # of whether or not it exists, a `PERMISSION_DENIED` error is returned.
145
+ #
146
+ # If the {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery SampleQuery} to
147
+ # update does not exist a `NOT_FOUND` error is returned.
148
+ # @!attribute [rw] update_mask
149
+ # @return [::Google::Protobuf::FieldMask]
150
+ # Indicates which fields in the provided imported 'simple query' to update.
151
+ # If not set, will by default update all fields.
152
+ class UpdateSampleQueryRequest
153
+ include ::Google::Protobuf::MessageExts
154
+ extend ::Google::Protobuf::MessageExts::ClassMethods
155
+ end
156
+
157
+ # Request message for
158
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQueryService::Client#delete_sample_query SampleQueryService.DeleteSampleQuery}
159
+ # method.
160
+ # @!attribute [rw] name
161
+ # @return [::String]
162
+ # Required. Full resource name of
163
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery SampleQuery}, such as
164
+ # `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
165
+ #
166
+ # If the caller does not have permission to delete the
167
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery SampleQuery}, regardless
168
+ # of whether or not it exists, a `PERMISSION_DENIED` error is returned.
169
+ #
170
+ # If the {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuery SampleQuery} to
171
+ # delete does not exist, a `NOT_FOUND` error is returned.
172
+ class DeleteSampleQueryRequest
173
+ include ::Google::Protobuf::MessageExts
174
+ extend ::Google::Protobuf::MessageExts::ClassMethods
175
+ end
176
+ end
177
+ end
178
+ end
179
+ end
@@ -0,0 +1,57 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module DiscoveryEngine
23
+ module V1beta
24
+ # A SampleQuerySet is the parent resource of SampleQuery, and contains the
25
+ # configurations shared by all SampleQuery under it.
26
+ # @!attribute [rw] name
27
+ # @return [::String]
28
+ # Identifier. The full resource name of the
29
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySet SampleQuerySet}, in
30
+ # the format of
31
+ # `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
32
+ #
33
+ # This field must be a UTF-8 encoded string with a length limit of 1024
34
+ # characters.
35
+ # @!attribute [rw] display_name
36
+ # @return [::String]
37
+ # Required. The sample query set display name.
38
+ #
39
+ # This field must be a UTF-8 encoded string with a length limit of 128
40
+ # characters.
41
+ # @!attribute [r] create_time
42
+ # @return [::Google::Protobuf::Timestamp]
43
+ # Output only. Timestamp the
44
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySet SampleQuerySet} was
45
+ # created at.
46
+ # @!attribute [rw] description
47
+ # @return [::String]
48
+ # The description of the
49
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySet SampleQuerySet}.
50
+ class SampleQuerySet
51
+ include ::Google::Protobuf::MessageExts
52
+ extend ::Google::Protobuf::MessageExts::ClassMethods
53
+ end
54
+ end
55
+ end
56
+ end
57
+ end