google-cloud-discovery_engine-v1 0.4.2 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/discovery_engine/v1/completion_service/client.rb +235 -4
  3. data/lib/google/cloud/discovery_engine/v1/completion_service/operations.rb +801 -0
  4. data/lib/google/cloud/discovery_engine/v1/completion_service/rest/client.rb +221 -4
  5. data/lib/google/cloud/discovery_engine/v1/completion_service/rest/operations.rb +1091 -0
  6. data/lib/google/cloud/discovery_engine/v1/completion_service/rest/service_stub.rb +136 -0
  7. data/lib/google/cloud/discovery_engine/v1/completion_service/rest.rb +1 -0
  8. data/lib/google/cloud/discovery_engine/v1/completion_service.rb +1 -0
  9. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/client.rb +20 -3
  10. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/paths.rb +91 -0
  11. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/client.rb +20 -3
  12. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/service_stub.rb +45 -0
  13. data/lib/google/cloud/discovery_engine/v1/data_store_service/client.rb +924 -0
  14. data/lib/google/cloud/discovery_engine/v1/data_store_service/credentials.rb +47 -0
  15. data/lib/google/cloud/discovery_engine/v1/data_store_service/operations.rb +801 -0
  16. data/lib/google/cloud/discovery_engine/v1/data_store_service/paths.rb +97 -0
  17. data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/client.rb +863 -0
  18. data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/operations.rb +1091 -0
  19. data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/service_stub.rb +403 -0
  20. data/lib/google/cloud/discovery_engine/v1/data_store_service/rest.rb +54 -0
  21. data/lib/google/cloud/discovery_engine/v1/data_store_service.rb +57 -0
  22. data/lib/google/cloud/discovery_engine/v1/document_service/rest/operations.rb +14 -0
  23. data/lib/google/cloud/discovery_engine/v1/engine_service/client.rb +885 -0
  24. data/lib/google/cloud/discovery_engine/v1/engine_service/credentials.rb +47 -0
  25. data/lib/google/cloud/discovery_engine/v1/engine_service/operations.rb +801 -0
  26. data/lib/google/cloud/discovery_engine/v1/engine_service/paths.rb +73 -0
  27. data/lib/google/cloud/discovery_engine/v1/engine_service/rest/client.rb +824 -0
  28. data/lib/google/cloud/discovery_engine/v1/engine_service/rest/operations.rb +1091 -0
  29. data/lib/google/cloud/discovery_engine/v1/engine_service/rest/service_stub.rb +366 -0
  30. data/lib/google/cloud/discovery_engine/v1/engine_service/rest.rb +54 -0
  31. data/lib/google/cloud/discovery_engine/v1/engine_service.rb +57 -0
  32. data/lib/google/cloud/discovery_engine/v1/rest.rb +3 -0
  33. data/lib/google/cloud/discovery_engine/v1/schema_service/rest/operations.rb +14 -0
  34. data/lib/google/cloud/discovery_engine/v1/search_service/client.rb +40 -4
  35. data/lib/google/cloud/discovery_engine/v1/search_service/paths.rb +19 -0
  36. data/lib/google/cloud/discovery_engine/v1/search_service/rest/client.rb +40 -4
  37. data/lib/google/cloud/discovery_engine/v1/search_service/rest/service_stub.rb +8 -0
  38. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/client.rb +1631 -0
  39. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/credentials.rb +47 -0
  40. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/operations.rb +801 -0
  41. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/paths.rb +127 -0
  42. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/client.rb +1521 -0
  43. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/operations.rb +1091 -0
  44. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/service_stub.rb +860 -0
  45. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest.rb +53 -0
  46. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service.rb +56 -0
  47. data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/operations.rb +14 -0
  48. data/lib/google/cloud/discovery_engine/v1/version.rb +1 -1
  49. data/lib/google/cloud/discovery_engine/v1.rb +3 -0
  50. data/lib/google/cloud/discoveryengine/v1/common_pb.rb +5 -1
  51. data/lib/google/cloud/discoveryengine/v1/completion_pb.rb +45 -0
  52. data/lib/google/cloud/discoveryengine/v1/completion_service_pb.rb +4 -1
  53. data/lib/google/cloud/discoveryengine/v1/completion_service_services_pb.rb +8 -0
  54. data/lib/google/cloud/discoveryengine/v1/conversation_pb.rb +1 -1
  55. data/lib/google/cloud/discoveryengine/v1/conversational_search_service_pb.rb +1 -1
  56. data/lib/google/cloud/discoveryengine/v1/data_store_pb.rb +49 -0
  57. data/lib/google/cloud/discoveryengine/v1/data_store_service_pb.rb +62 -0
  58. data/lib/google/cloud/discoveryengine/v1/data_store_service_services_pb.rb +61 -0
  59. data/lib/google/cloud/discoveryengine/v1/document_pb.rb +1 -1
  60. data/lib/google/cloud/discoveryengine/v1/document_service_pb.rb +1 -1
  61. data/lib/google/cloud/discoveryengine/v1/engine_pb.rb +53 -0
  62. data/lib/google/cloud/discoveryengine/v1/engine_service_pb.rb +62 -0
  63. data/lib/google/cloud/discoveryengine/v1/engine_service_services_pb.rb +55 -0
  64. data/lib/google/cloud/discoveryengine/v1/import_config_pb.rb +7 -1
  65. data/lib/google/cloud/discoveryengine/v1/purge_config_pb.rb +6 -1
  66. data/lib/google/cloud/discoveryengine/v1/schema_pb.rb +1 -1
  67. data/lib/google/cloud/discoveryengine/v1/schema_service_pb.rb +1 -1
  68. data/lib/google/cloud/discoveryengine/v1/search_service_pb.rb +8 -1
  69. data/lib/google/cloud/discoveryengine/v1/site_search_engine_pb.rb +54 -0
  70. data/lib/google/cloud/discoveryengine/v1/site_search_engine_service_pb.rb +82 -0
  71. data/lib/google/cloud/discoveryengine/v1/site_search_engine_service_services_pb.rb +73 -0
  72. data/lib/google/cloud/discoveryengine/v1/user_event_pb.rb +1 -1
  73. data/lib/google/cloud/discoveryengine/v1/user_event_service_pb.rb +1 -1
  74. data/proto_docs/google/cloud/discoveryengine/v1/common.rb +51 -0
  75. data/proto_docs/google/cloud/discoveryengine/v1/completion.rb +53 -0
  76. data/proto_docs/google/cloud/discoveryengine/v1/completion_service.rb +10 -4
  77. data/proto_docs/google/cloud/discoveryengine/v1/conversation.rb +2 -0
  78. data/proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb +19 -1
  79. data/proto_docs/google/cloud/discoveryengine/v1/data_store.rb +88 -0
  80. data/proto_docs/google/cloud/discoveryengine/v1/data_store_service.rb +214 -0
  81. data/proto_docs/google/cloud/discoveryengine/v1/document.rb +1 -1
  82. data/proto_docs/google/cloud/discoveryengine/v1/engine.rb +214 -0
  83. data/proto_docs/google/cloud/discoveryengine/v1/engine_service.rb +177 -0
  84. data/proto_docs/google/cloud/discoveryengine/v1/import_config.rb +66 -0
  85. data/proto_docs/google/cloud/discoveryengine/v1/purge_config.rb +41 -0
  86. data/proto_docs/google/cloud/discoveryengine/v1/search_service.rb +149 -4
  87. data/proto_docs/google/cloud/discoveryengine/v1/site_search_engine.rb +160 -0
  88. data/proto_docs/google/cloud/discoveryengine/v1/site_search_engine_service.rb +525 -0
  89. data/proto_docs/google/cloud/discoveryengine/v1/user_event.rb +3 -3
  90. metadata +48 -2
@@ -0,0 +1,73 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/discoveryengine/v1/site_search_engine_service.proto for package 'Google.Cloud.DiscoveryEngine.V1'
3
+ # Original file comments:
4
+ # Copyright 2022 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/discoveryengine/v1/site_search_engine_service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module DiscoveryEngine
25
+ module V1
26
+ module SiteSearchEngineService
27
+ # Service for managing site search related resources.
28
+ class Service
29
+
30
+ include ::GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'google.cloud.discoveryengine.v1.SiteSearchEngineService'
35
+
36
+ # Gets the
37
+ # [SiteSearchEngine][google.cloud.discoveryengine.v1.SiteSearchEngine].
38
+ rpc :GetSiteSearchEngine, ::Google::Cloud::DiscoveryEngine::V1::GetSiteSearchEngineRequest, ::Google::Cloud::DiscoveryEngine::V1::SiteSearchEngine
39
+ # Creates a [TargetSite][google.cloud.discoveryengine.v1.TargetSite].
40
+ rpc :CreateTargetSite, ::Google::Cloud::DiscoveryEngine::V1::CreateTargetSiteRequest, ::Google::Longrunning::Operation
41
+ # Creates [TargetSite][google.cloud.discoveryengine.v1.TargetSite] in a
42
+ # batch.
43
+ rpc :BatchCreateTargetSites, ::Google::Cloud::DiscoveryEngine::V1::BatchCreateTargetSitesRequest, ::Google::Longrunning::Operation
44
+ # Gets a [TargetSite][google.cloud.discoveryengine.v1.TargetSite].
45
+ rpc :GetTargetSite, ::Google::Cloud::DiscoveryEngine::V1::GetTargetSiteRequest, ::Google::Cloud::DiscoveryEngine::V1::TargetSite
46
+ # Updates a [TargetSite][google.cloud.discoveryengine.v1.TargetSite].
47
+ rpc :UpdateTargetSite, ::Google::Cloud::DiscoveryEngine::V1::UpdateTargetSiteRequest, ::Google::Longrunning::Operation
48
+ # Deletes a [TargetSite][google.cloud.discoveryengine.v1.TargetSite].
49
+ rpc :DeleteTargetSite, ::Google::Cloud::DiscoveryEngine::V1::DeleteTargetSiteRequest, ::Google::Longrunning::Operation
50
+ # Gets a list of [TargetSite][google.cloud.discoveryengine.v1.TargetSite]s.
51
+ rpc :ListTargetSites, ::Google::Cloud::DiscoveryEngine::V1::ListTargetSitesRequest, ::Google::Cloud::DiscoveryEngine::V1::ListTargetSitesResponse
52
+ # Upgrade from basic site search to advanced site search.
53
+ rpc :EnableAdvancedSiteSearch, ::Google::Cloud::DiscoveryEngine::V1::EnableAdvancedSiteSearchRequest, ::Google::Longrunning::Operation
54
+ # Downgrade from advanced site search to basic site search.
55
+ rpc :DisableAdvancedSiteSearch, ::Google::Cloud::DiscoveryEngine::V1::DisableAdvancedSiteSearchRequest, ::Google::Longrunning::Operation
56
+ # Request on-demand recrawl for a list of URIs.
57
+ rpc :RecrawlUris, ::Google::Cloud::DiscoveryEngine::V1::RecrawlUrisRequest, ::Google::Longrunning::Operation
58
+ # Verify target sites' ownership and validity.
59
+ # This API sends all the target sites under site search engine for
60
+ # verification.
61
+ rpc :BatchVerifyTargetSites, ::Google::Cloud::DiscoveryEngine::V1::BatchVerifyTargetSitesRequest, ::Google::Longrunning::Operation
62
+ # Returns list of target sites with its domain verification status.
63
+ # This method can only be called under data store with BASIC_SITE_SEARCH
64
+ # state at the moment.
65
+ rpc :FetchDomainVerificationStatus, ::Google::Cloud::DiscoveryEngine::V1::FetchDomainVerificationStatusRequest, ::Google::Cloud::DiscoveryEngine::V1::FetchDomainVerificationStatusResponse
66
+ end
67
+
68
+ Stub = Service.rpc_stub_class
69
+ end
70
+ end
71
+ end
72
+ end
73
+ end
@@ -11,7 +11,7 @@ require 'google/protobuf/duration_pb'
11
11
  require 'google/protobuf/timestamp_pb'
12
12
 
13
13
 
14
- descriptor_data = "\n0google/cloud/discoveryengine/v1/user_event.proto\x12\x1fgoogle.cloud.discoveryengine.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a,google/cloud/discoveryengine/v1/common.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xbd\x07\n\tUserEvent\x12\x18\n\nevent_type\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x1c\n\x0euser_pseudo_id\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12.\n\nevent_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\tuser_info\x18\x04 \x01(\x0b\x32).google.cloud.discoveryengine.v1.UserInfo\x12\x1b\n\x13\x64irect_user_request\x18\x05 \x01(\x08\x12\x12\n\nsession_id\x18\x06 \x01(\t\x12<\n\tpage_info\x18\x07 \x01(\x0b\x32).google.cloud.discoveryengine.v1.PageInfo\x12\x19\n\x11\x61ttribution_token\x18\x08 \x01(\t\x12\x0e\n\x06\x66ilter\x18\t \x01(\t\x12@\n\tdocuments\x18\n \x03(\x0b\x32-.google.cloud.discoveryengine.v1.DocumentInfo\x12\x39\n\x05panel\x18\x0b \x01(\x0b\x32*.google.cloud.discoveryengine.v1.PanelInfo\x12@\n\x0bsearch_info\x18\x0c \x01(\x0b\x32+.google.cloud.discoveryengine.v1.SearchInfo\x12H\n\x0f\x63ompletion_info\x18\r \x01(\x0b\x32/.google.cloud.discoveryengine.v1.CompletionInfo\x12J\n\x10transaction_info\x18\x0e \x01(\x0b\x32\x30.google.cloud.discoveryengine.v1.TransactionInfo\x12\x0f\n\x07tag_ids\x18\x0f \x03(\t\x12\x15\n\rpromotion_ids\x18\x10 \x03(\t\x12N\n\nattributes\x18\x11 \x03(\x0b\x32:.google.cloud.discoveryengine.v1.UserEvent.AttributesEntry\x12>\n\nmedia_info\x18\x12 \x01(\x0b\x32*.google.cloud.discoveryengine.v1.MediaInfo\x1a\x63\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12?\n\x05value\x18\x02 \x01(\x0b\x32\x30.google.cloud.discoveryengine.v1.CustomAttribute:\x02\x38\x01\"Y\n\x08PageInfo\x12\x13\n\x0bpageview_id\x18\x01 \x01(\t\x12\x15\n\rpage_category\x18\x02 \x01(\t\x12\x0b\n\x03uri\x18\x03 \x01(\t\x12\x14\n\x0creferrer_uri\x18\x04 \x01(\t\"T\n\nSearchInfo\x12\x14\n\x0csearch_query\x18\x01 \x01(\t\x12\x10\n\x08order_by\x18\x02 \x01(\t\x12\x13\n\x06offset\x18\x03 \x01(\x05H\x00\x88\x01\x01\x42\t\n\x07_offset\"H\n\x0e\x43ompletionInfo\x12\x1b\n\x13selected_suggestion\x18\x01 \x01(\t\x12\x19\n\x11selected_position\x18\x02 \x01(\x05\"\xcb\x01\n\x0fTransactionInfo\x12\x18\n\x05value\x18\x01 \x01(\x02\x42\x04\xe2\x41\x01\x02H\x00\x88\x01\x01\x12\x16\n\x08\x63urrency\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12\x16\n\x0etransaction_id\x18\x03 \x01(\t\x12\x10\n\x03tax\x18\x04 \x01(\x02H\x01\x88\x01\x01\x12\x11\n\x04\x63ost\x18\x05 \x01(\x02H\x02\x88\x01\x01\x12\x1b\n\x0e\x64iscount_value\x18\x06 \x01(\x02H\x03\x88\x01\x01\x42\x08\n\x06_valueB\x06\n\x04_taxB\x07\n\x05_costB\x11\n\x0f_discount_value\"\xbb\x01\n\x0c\x44ocumentInfo\x12\x0c\n\x02id\x18\x01 \x01(\tH\x00\x12<\n\x04name\x18\x02 \x01(\tB,\xfa\x41)\n\'discoveryengine.googleapis.com/DocumentH\x00\x12\r\n\x03uri\x18\x06 \x01(\tH\x00\x12\x15\n\x08quantity\x18\x03 \x01(\x05H\x01\x88\x01\x01\x12\x15\n\rpromotion_ids\x18\x04 \x03(\tB\x15\n\x13\x64ocument_descriptorB\x0b\n\t_quantity\"\x95\x01\n\tPanelInfo\x12\x16\n\x08panel_id\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x1b\n\x0epanel_position\x18\x04 \x01(\x05H\x00\x88\x01\x01\x12\x19\n\x0ctotal_panels\x18\x05 \x01(\x05H\x01\x88\x01\x01\x42\x11\n\x0f_panel_positionB\x0f\n\r_total_panels\"\x8d\x01\n\tMediaInfo\x12:\n\x17media_progress_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12&\n\x19media_progress_percentage\x18\x02 \x01(\x02H\x00\x88\x01\x01\x42\x1c\n\x1a_media_progress_percentageB\x81\x02\n#com.google.cloud.discoveryengine.v1B\x0eUserEventProtoP\x01ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb\xa2\x02\x0f\x44ISCOVERYENGINE\xaa\x02\x1fGoogle.Cloud.DiscoveryEngine.V1\xca\x02\x1fGoogle\\Cloud\\DiscoveryEngine\\V1\xea\x02\"Google::Cloud::DiscoveryEngine::V1b\x06proto3"
14
+ descriptor_data = "\n0google/cloud/discoveryengine/v1/user_event.proto\x12\x1fgoogle.cloud.discoveryengine.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a,google/cloud/discoveryengine/v1/common.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xbb\x07\n\tUserEvent\x12\x17\n\nevent_type\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0euser_pseudo_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12.\n\nevent_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\tuser_info\x18\x04 \x01(\x0b\x32).google.cloud.discoveryengine.v1.UserInfo\x12\x1b\n\x13\x64irect_user_request\x18\x05 \x01(\x08\x12\x12\n\nsession_id\x18\x06 \x01(\t\x12<\n\tpage_info\x18\x07 \x01(\x0b\x32).google.cloud.discoveryengine.v1.PageInfo\x12\x19\n\x11\x61ttribution_token\x18\x08 \x01(\t\x12\x0e\n\x06\x66ilter\x18\t \x01(\t\x12@\n\tdocuments\x18\n \x03(\x0b\x32-.google.cloud.discoveryengine.v1.DocumentInfo\x12\x39\n\x05panel\x18\x0b \x01(\x0b\x32*.google.cloud.discoveryengine.v1.PanelInfo\x12@\n\x0bsearch_info\x18\x0c \x01(\x0b\x32+.google.cloud.discoveryengine.v1.SearchInfo\x12H\n\x0f\x63ompletion_info\x18\r \x01(\x0b\x32/.google.cloud.discoveryengine.v1.CompletionInfo\x12J\n\x10transaction_info\x18\x0e \x01(\x0b\x32\x30.google.cloud.discoveryengine.v1.TransactionInfo\x12\x0f\n\x07tag_ids\x18\x0f \x03(\t\x12\x15\n\rpromotion_ids\x18\x10 \x03(\t\x12N\n\nattributes\x18\x11 \x03(\x0b\x32:.google.cloud.discoveryengine.v1.UserEvent.AttributesEntry\x12>\n\nmedia_info\x18\x12 \x01(\x0b\x32*.google.cloud.discoveryengine.v1.MediaInfo\x1a\x63\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12?\n\x05value\x18\x02 \x01(\x0b\x32\x30.google.cloud.discoveryengine.v1.CustomAttribute:\x02\x38\x01\"Y\n\x08PageInfo\x12\x13\n\x0bpageview_id\x18\x01 \x01(\t\x12\x15\n\rpage_category\x18\x02 \x01(\t\x12\x0b\n\x03uri\x18\x03 \x01(\t\x12\x14\n\x0creferrer_uri\x18\x04 \x01(\t\"T\n\nSearchInfo\x12\x14\n\x0csearch_query\x18\x01 \x01(\t\x12\x10\n\x08order_by\x18\x02 \x01(\t\x12\x13\n\x06offset\x18\x03 \x01(\x05H\x00\x88\x01\x01\x42\t\n\x07_offset\"H\n\x0e\x43ompletionInfo\x12\x1b\n\x13selected_suggestion\x18\x01 \x01(\t\x12\x19\n\x11selected_position\x18\x02 \x01(\x05\"\xc9\x01\n\x0fTransactionInfo\x12\x17\n\x05value\x18\x01 \x01(\x02\x42\x03\xe0\x41\x02H\x00\x88\x01\x01\x12\x15\n\x08\x63urrency\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\x0etransaction_id\x18\x03 \x01(\t\x12\x10\n\x03tax\x18\x04 \x01(\x02H\x01\x88\x01\x01\x12\x11\n\x04\x63ost\x18\x05 \x01(\x02H\x02\x88\x01\x01\x12\x1b\n\x0e\x64iscount_value\x18\x06 \x01(\x02H\x03\x88\x01\x01\x42\x08\n\x06_valueB\x06\n\x04_taxB\x07\n\x05_costB\x11\n\x0f_discount_value\"\xbb\x01\n\x0c\x44ocumentInfo\x12\x0c\n\x02id\x18\x01 \x01(\tH\x00\x12<\n\x04name\x18\x02 \x01(\tB,\xfa\x41)\n\'discoveryengine.googleapis.com/DocumentH\x00\x12\r\n\x03uri\x18\x06 \x01(\tH\x00\x12\x15\n\x08quantity\x18\x03 \x01(\x05H\x01\x88\x01\x01\x12\x15\n\rpromotion_ids\x18\x04 \x03(\tB\x15\n\x13\x64ocument_descriptorB\x0b\n\t_quantity\"\x94\x01\n\tPanelInfo\x12\x15\n\x08panel_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x1b\n\x0epanel_position\x18\x04 \x01(\x05H\x00\x88\x01\x01\x12\x19\n\x0ctotal_panels\x18\x05 \x01(\x05H\x01\x88\x01\x01\x42\x11\n\x0f_panel_positionB\x0f\n\r_total_panels\"\x8d\x01\n\tMediaInfo\x12:\n\x17media_progress_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12&\n\x19media_progress_percentage\x18\x02 \x01(\x02H\x00\x88\x01\x01\x42\x1c\n\x1a_media_progress_percentageB\x81\x02\n#com.google.cloud.discoveryengine.v1B\x0eUserEventProtoP\x01ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb\xa2\x02\x0f\x44ISCOVERYENGINE\xaa\x02\x1fGoogle.Cloud.DiscoveryEngine.V1\xca\x02\x1fGoogle\\Cloud\\DiscoveryEngine\\V1\xea\x02\"Google::Cloud::DiscoveryEngine::V1b\x06proto3"
15
15
 
16
16
  pool = Google::Protobuf::DescriptorPool.generated_pool
17
17
 
@@ -14,7 +14,7 @@ require 'google/cloud/discoveryengine/v1/user_event_pb'
14
14
  require 'google/longrunning/operations_pb'
15
15
 
16
16
 
17
- descriptor_data = "\n8google/cloud/discoveryengine/v1/user_event_service.proto\x12\x1fgoogle.cloud.discoveryengine.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/httpbody.proto\x1a\x19google/api/resource.proto\x1a\x33google/cloud/discoveryengine/v1/import_config.proto\x1a\x30google/cloud/discoveryengine/v1/user_event.proto\x1a#google/longrunning/operations.proto\"\xb4\x01\n\x15WriteUserEventRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe2\x41\x01\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\x12I\n\nuser_event\x18\x02 \x01(\x0b\x32*.google.cloud.discoveryengine.v1.UserEventB\x04\xe2\x41\x01\x02H\x00\x88\x01\x01\x42\r\n\x0b_user_event\"\xaa\x01\n\x17\x43ollectUserEventRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe2\x41\x01\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\x12\x18\n\nuser_event\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12\x10\n\x03uri\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x10\n\x03\x65ts\x18\x04 \x01(\x03H\x01\x88\x01\x01\x42\x06\n\x04_uriB\x06\n\x04_ets2\xab\x08\n\x10UserEventService\x12\xac\x02\n\x0eWriteUserEvent\x12\x36.google.cloud.discoveryengine.v1.WriteUserEventRequest\x1a*.google.cloud.discoveryengine.v1.UserEvent\"\xb5\x01\x82\xd3\xe4\x93\x02\xae\x01\"A/v1/{parent=projects/*/locations/*/dataStores/*}/userEvents:write:\nuser_eventZ]\"O/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:write:\nuser_event\x12\x86\x02\n\x10\x43ollectUserEvent\x12\x38.google.cloud.discoveryengine.v1.CollectUserEventRequest\x1a\x14.google.api.HttpBody\"\xa1\x01\x82\xd3\xe4\x93\x02\x9a\x01\x12\x43/v1/{parent=projects/*/locations/*/dataStores/*}/userEvents:collectZS\x12Q/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:collect\x12\x8a\x03\n\x10ImportUserEvents\x12\x38.google.cloud.discoveryengine.v1.ImportUserEventsRequest\x1a\x1d.google.longrunning.Operation\"\x9c\x02\xca\x41t\n8google.cloud.discoveryengine.v1.ImportUserEventsResponse\x12\x38google.cloud.discoveryengine.v1.ImportUserEventsMetadata\x82\xd3\xe4\x93\x02\x9e\x01\"B/v1/{parent=projects/*/locations/*/dataStores/*}/userEvents:import:\x01*ZU\"P/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:import:\x01*\x1aR\xca\x41\x1e\x64iscoveryengine.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x88\x02\n#com.google.cloud.discoveryengine.v1B\x15UserEventServiceProtoP\x01ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb\xa2\x02\x0f\x44ISCOVERYENGINE\xaa\x02\x1fGoogle.Cloud.DiscoveryEngine.V1\xca\x02\x1fGoogle\\Cloud\\DiscoveryEngine\\V1\xea\x02\"Google::Cloud::DiscoveryEngine::V1b\x06proto3"
17
+ descriptor_data = "\n8google/cloud/discoveryengine/v1/user_event_service.proto\x12\x1fgoogle.cloud.discoveryengine.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/httpbody.proto\x1a\x19google/api/resource.proto\x1a\x33google/cloud/discoveryengine/v1/import_config.proto\x1a\x30google/cloud/discoveryengine/v1/user_event.proto\x1a#google/longrunning/operations.proto\"\xb2\x01\n\x15WriteUserEventRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\x12H\n\nuser_event\x18\x02 \x01(\x0b\x32*.google.cloud.discoveryengine.v1.UserEventB\x03\xe0\x41\x02H\x00\x88\x01\x01\x42\r\n\x0b_user_event\"\xa8\x01\n\x17\x43ollectUserEventRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\x12\x17\n\nuser_event\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x10\n\x03uri\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x10\n\x03\x65ts\x18\x04 \x01(\x03H\x01\x88\x01\x01\x42\x06\n\x04_uriB\x06\n\x04_ets2\xab\x08\n\x10UserEventService\x12\xac\x02\n\x0eWriteUserEvent\x12\x36.google.cloud.discoveryengine.v1.WriteUserEventRequest\x1a*.google.cloud.discoveryengine.v1.UserEvent\"\xb5\x01\x82\xd3\xe4\x93\x02\xae\x01\"A/v1/{parent=projects/*/locations/*/dataStores/*}/userEvents:write:\nuser_eventZ]\"O/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:write:\nuser_event\x12\x86\x02\n\x10\x43ollectUserEvent\x12\x38.google.cloud.discoveryengine.v1.CollectUserEventRequest\x1a\x14.google.api.HttpBody\"\xa1\x01\x82\xd3\xe4\x93\x02\x9a\x01\x12\x43/v1/{parent=projects/*/locations/*/dataStores/*}/userEvents:collectZS\x12Q/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:collect\x12\x8a\x03\n\x10ImportUserEvents\x12\x38.google.cloud.discoveryengine.v1.ImportUserEventsRequest\x1a\x1d.google.longrunning.Operation\"\x9c\x02\xca\x41t\n8google.cloud.discoveryengine.v1.ImportUserEventsResponse\x12\x38google.cloud.discoveryengine.v1.ImportUserEventsMetadata\x82\xd3\xe4\x93\x02\x9e\x01\"B/v1/{parent=projects/*/locations/*/dataStores/*}/userEvents:import:\x01*ZU\"P/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:import:\x01*\x1aR\xca\x41\x1e\x64iscoveryengine.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x88\x02\n#com.google.cloud.discoveryengine.v1B\x15UserEventServiceProtoP\x01ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb\xa2\x02\x0f\x44ISCOVERYENGINE\xaa\x02\x1fGoogle.Cloud.DiscoveryEngine.V1\xca\x02\x1fGoogle\\Cloud\\DiscoveryEngine\\V1\xea\x02\"Google::Cloud::DiscoveryEngine::V1b\x06proto3"
18
18
 
19
19
  pool = Google::Protobuf::DescriptorPool.generated_pool
20
20
 
@@ -100,6 +100,57 @@ module Google
100
100
  include ::Google::Protobuf::MessageExts
101
101
  extend ::Google::Protobuf::MessageExts::ClassMethods
102
102
  end
103
+
104
+ # The industry vertical associated with the
105
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}.
106
+ module IndustryVertical
107
+ # Value used when unset.
108
+ INDUSTRY_VERTICAL_UNSPECIFIED = 0
109
+
110
+ # The generic vertical for documents that are not specific to any industry
111
+ # vertical.
112
+ GENERIC = 1
113
+
114
+ # The media industry vertical.
115
+ MEDIA = 2
116
+ end
117
+
118
+ # The type of solution.
119
+ module SolutionType
120
+ # Default value.
121
+ SOLUTION_TYPE_UNSPECIFIED = 0
122
+
123
+ # Used for Recommendations AI.
124
+ SOLUTION_TYPE_RECOMMENDATION = 1
125
+
126
+ # Used for Discovery Search.
127
+ SOLUTION_TYPE_SEARCH = 2
128
+
129
+ # Used for use cases related to the Generative AI agent.
130
+ SOLUTION_TYPE_CHAT = 3
131
+ end
132
+
133
+ # Tiers of search features. Different tiers might have different
134
+ # pricing. To learn more, please check the pricing documentation.
135
+ module SearchTier
136
+ # Default value when the enum is unspecified. This is invalid to use.
137
+ SEARCH_TIER_UNSPECIFIED = 0
138
+
139
+ # Standard tier.
140
+ SEARCH_TIER_STANDARD = 1
141
+
142
+ # Enterprise tier.
143
+ SEARCH_TIER_ENTERPRISE = 2
144
+ end
145
+
146
+ # Add-on that provides additional functionality for search.
147
+ module SearchAddOn
148
+ # Default value when the enum is unspecified. This is invalid to use.
149
+ SEARCH_ADD_ON_UNSPECIFIED = 0
150
+
151
+ # Large language model add-on.
152
+ SEARCH_ADD_ON_LLM = 1
153
+ end
103
154
  end
104
155
  end
105
156
  end
@@ -0,0 +1,53 @@
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 V1
24
+ # Suggestion deny list entry identifying the phrase to block from suggestions
25
+ # and the applied operation for the phrase.
26
+ # @!attribute [rw] block_phrase
27
+ # @return [::String]
28
+ # Required. Phrase to block from suggestions served. Can be maximum 125
29
+ # characters.
30
+ # @!attribute [rw] match_operator
31
+ # @return [::Google::Cloud::DiscoveryEngine::V1::SuggestionDenyListEntry::MatchOperator]
32
+ # Required. The match operator to apply for this phrase. Whether to block the
33
+ # exact phrase, or block any suggestions containing this phrase.
34
+ class SuggestionDenyListEntry
35
+ include ::Google::Protobuf::MessageExts
36
+ extend ::Google::Protobuf::MessageExts::ClassMethods
37
+
38
+ # Operator for matching with the generated suggestions.
39
+ module MatchOperator
40
+ # Default value. Should not be used
41
+ MATCH_OPERATOR_UNSPECIFIED = 0
42
+
43
+ # If the suggestion is an exact match to the block_phrase, then block it.
44
+ EXACT_MATCH = 1
45
+
46
+ # If the suggestion contains the block_phrase, then block it.
47
+ CONTAINS = 2
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
@@ -35,8 +35,9 @@ module Google
35
35
  # 128 characters.
36
36
  # @!attribute [rw] query_model
37
37
  # @return [::String]
38
- # Selects data model of query suggestions for serving. Currently supported
39
- # values:
38
+ # Specifies the autocomplete data model. This overrides any model specified
39
+ # in the Configuration > Autocomplete section of the Cloud console. Currently
40
+ # supported values:
40
41
  #
41
42
  # * `document` - Using suggestions generated from user-imported documents.
42
43
  # * `search-history` - Using suggestions generated from the past history of
@@ -50,8 +51,7 @@ module Google
50
51
  # Default values:
51
52
  #
52
53
  # * `document` is the default model for regular dataStores.
53
- # * `search-history` is the default model for
54
- # [IndustryVertical.SITE_SEARCH][] dataStores.
54
+ # * `search-history` is the default model for site search dataStores.
55
55
  # @!attribute [rw] user_pseudo_id
56
56
  # @return [::String]
57
57
  # A unique identifier for tracking visitors. For example, this could be
@@ -100,6 +100,12 @@ module Google
100
100
  # @!attribute [rw] suggestion
101
101
  # @return [::String]
102
102
  # The suggestion for the query.
103
+ # @!attribute [rw] completable_field_paths
104
+ # @return [::Array<::String>]
105
+ # The unique document field paths that serve as the source of this
106
+ # suggestion if it was generated from completable fields.
107
+ #
108
+ # This field is only populated for the document-completable model.
103
109
  class QuerySuggestion
104
110
  include ::Google::Protobuf::MessageExts
105
111
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -26,6 +26,8 @@ module Google
26
26
  # @return [::String]
27
27
  # Immutable. Fully qualified name
28
28
  # `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
29
+ # or
30
+ # `project/*/locations/global/collections/{collection}/engines/*/conversations/*`.
29
31
  # @!attribute [rw] state
30
32
  # @return [::Google::Cloud::DiscoveryEngine::V1::Conversation::State]
31
33
  # The state of the Conversation.
@@ -70,6 +70,24 @@ module Google
70
70
  # @!attribute [rw] summary_spec
71
71
  # @return [::Google::Cloud::DiscoveryEngine::V1::SearchRequest::ContentSearchSpec::SummarySpec]
72
72
  # A specification for configuring the summary returned in the response.
73
+ # @!attribute [rw] filter
74
+ # @return [::String]
75
+ # The filter syntax consists of an expression language for constructing a
76
+ # predicate from one or more fields of the documents being filtered. Filter
77
+ # expression is case-sensitive. This will be used to filter search results
78
+ # which may affect the summary response.
79
+ #
80
+ # If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
81
+ #
82
+ # Filtering in Vertex AI Search is done by mapping the LHS filter key to a
83
+ # key property defined in the Vertex AI Search backend -- this mapping is
84
+ # defined by the customer in their schema. For example a media customer might
85
+ # have a field 'name' in their schema. In this case the filter would look
86
+ # like this: filter --> name:'ANY("king kong")'
87
+ #
88
+ # For more information about filtering including syntax and filter
89
+ # operators, see
90
+ # [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
73
91
  class ConverseConversationRequest
74
92
  include ::Google::Protobuf::MessageExts
75
93
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -124,7 +142,7 @@ module Google
124
142
  # {::Google::Cloud::DiscoveryEngine::V1::Conversation Conversation} to update. The
125
143
  # following are NOT supported:
126
144
  #
127
- # * [conversation.name][]
145
+ # * {::Google::Cloud::DiscoveryEngine::V1::Conversation#name Conversation.name}
128
146
  #
129
147
  # If not set or empty, all supported fields are updated.
130
148
  class UpdateConversationRequest
@@ -0,0 +1,88 @@
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 V1
24
+ # DataStore captures global settings and configs at the DataStore level.
25
+ # @!attribute [rw] name
26
+ # @return [::String]
27
+ # Immutable. The full resource name of the data store.
28
+ # Format:
29
+ # `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
30
+ #
31
+ # This field must be a UTF-8 encoded string with a length limit of 1024
32
+ # characters.
33
+ # @!attribute [rw] display_name
34
+ # @return [::String]
35
+ # Required. The data store display name.
36
+ #
37
+ # This field must be a UTF-8 encoded string with a length limit of 128
38
+ # characters. Otherwise, an INVALID_ARGUMENT error is returned.
39
+ # @!attribute [rw] industry_vertical
40
+ # @return [::Google::Cloud::DiscoveryEngine::V1::IndustryVertical]
41
+ # Immutable. The industry vertical that the data store registers.
42
+ # @!attribute [rw] solution_types
43
+ # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::SolutionType>]
44
+ # The solutions that the data store enrolls. Available solutions for each
45
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStore#industry_vertical industry_vertical}:
46
+ #
47
+ # * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
48
+ # * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
49
+ # solutions cannot be enrolled.
50
+ # @!attribute [r] default_schema_id
51
+ # @return [::String]
52
+ # Output only. The id of the default
53
+ # {::Google::Cloud::DiscoveryEngine::V1::Schema Schema} asscociated to this data
54
+ # store.
55
+ # @!attribute [rw] content_config
56
+ # @return [::Google::Cloud::DiscoveryEngine::V1::DataStore::ContentConfig]
57
+ # Immutable. The content config of the data store. If this field is unset,
58
+ # the server behavior defaults to
59
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStore::ContentConfig::NO_CONTENT ContentConfig.NO_CONTENT}.
60
+ # @!attribute [r] create_time
61
+ # @return [::Google::Protobuf::Timestamp]
62
+ # Output only. Timestamp the
63
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore} was created at.
64
+ class DataStore
65
+ include ::Google::Protobuf::MessageExts
66
+ extend ::Google::Protobuf::MessageExts::ClassMethods
67
+
68
+ # Content config of the data store.
69
+ module ContentConfig
70
+ # Default value.
71
+ CONTENT_CONFIG_UNSPECIFIED = 0
72
+
73
+ # Only contains documents without any
74
+ # {::Google::Cloud::DiscoveryEngine::V1::Document#content Document.content}.
75
+ NO_CONTENT = 1
76
+
77
+ # Only contains documents with
78
+ # {::Google::Cloud::DiscoveryEngine::V1::Document#content Document.content}.
79
+ CONTENT_REQUIRED = 2
80
+
81
+ # The data store is used for public website search.
82
+ PUBLIC_WEBSITE = 3
83
+ end
84
+ end
85
+ end
86
+ end
87
+ end
88
+ end
@@ -0,0 +1,214 @@
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 V1
24
+ # Request for
25
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client#create_data_store DataStoreService.CreateDataStore}
26
+ # method.
27
+ # @!attribute [rw] parent
28
+ # @return [::String]
29
+ # Required. The parent resource name, such as
30
+ # `projects/{project}/locations/{location}/collections/{collection}`.
31
+ # @!attribute [rw] data_store
32
+ # @return [::Google::Cloud::DiscoveryEngine::V1::DataStore]
33
+ # Required. The {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore} to
34
+ # create.
35
+ # @!attribute [rw] data_store_id
36
+ # @return [::String]
37
+ # Required. The ID to use for the
38
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}, which will become
39
+ # the final component of the
40
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}'s resource name.
41
+ #
42
+ # This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
43
+ # standard with a length limit of 63 characters. Otherwise, an
44
+ # INVALID_ARGUMENT error is returned.
45
+ # @!attribute [rw] create_advanced_site_search
46
+ # @return [::Boolean]
47
+ # A boolean flag indicating whether user want to directly create an advanced
48
+ # data store for site search.
49
+ # If the data store is not configured as site
50
+ # search (GENERIC vertical and PUBLIC_WEBSITE content_config), this flag will
51
+ # be ignored.
52
+ class CreateDataStoreRequest
53
+ include ::Google::Protobuf::MessageExts
54
+ extend ::Google::Protobuf::MessageExts::ClassMethods
55
+ end
56
+
57
+ # Request message for
58
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client#get_data_store DataStoreService.GetDataStore}
59
+ # method.
60
+ # @!attribute [rw] name
61
+ # @return [::String]
62
+ # Required. Full resource name of
63
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}, such as
64
+ # `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
65
+ #
66
+ # If the caller does not have permission to access the
67
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}, regardless of
68
+ # whether or not it exists, a PERMISSION_DENIED error is returned.
69
+ #
70
+ # If the requested {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}
71
+ # does not exist, a NOT_FOUND error is returned.
72
+ class GetDataStoreRequest
73
+ include ::Google::Protobuf::MessageExts
74
+ extend ::Google::Protobuf::MessageExts::ClassMethods
75
+ end
76
+
77
+ # Metadata related to the progress of the
78
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client#create_data_store DataStoreService.CreateDataStore}
79
+ # operation. This will be returned by the google.longrunning.Operation.metadata
80
+ # field.
81
+ # @!attribute [rw] create_time
82
+ # @return [::Google::Protobuf::Timestamp]
83
+ # Operation create time.
84
+ # @!attribute [rw] update_time
85
+ # @return [::Google::Protobuf::Timestamp]
86
+ # Operation last update time. If the operation is done, this is also the
87
+ # finish time.
88
+ class CreateDataStoreMetadata
89
+ include ::Google::Protobuf::MessageExts
90
+ extend ::Google::Protobuf::MessageExts::ClassMethods
91
+ end
92
+
93
+ # Request message for
94
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client#list_data_stores DataStoreService.ListDataStores}
95
+ # method.
96
+ # @!attribute [rw] parent
97
+ # @return [::String]
98
+ # Required. The parent branch resource name, such as
99
+ # `projects/{project}/locations/{location}/collections/{collection_id}`.
100
+ #
101
+ # If the caller does not have permission to list
102
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}s under this
103
+ # location, regardless of whether or not this data store exists, a
104
+ # PERMISSION_DENIED error is returned.
105
+ # @!attribute [rw] page_size
106
+ # @return [::Integer]
107
+ # Maximum number of {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}s
108
+ # to return. If unspecified, defaults to 10. The maximum allowed value is 50.
109
+ # Values above 50 will be coerced to 50.
110
+ #
111
+ # If this field is negative, an INVALID_ARGUMENT is returned.
112
+ # @!attribute [rw] page_token
113
+ # @return [::String]
114
+ # A page token
115
+ # {::Google::Cloud::DiscoveryEngine::V1::ListDataStoresResponse#next_page_token ListDataStoresResponse.next_page_token},
116
+ # received from a previous
117
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client#list_data_stores DataStoreService.ListDataStores}
118
+ # call. Provide this to retrieve the subsequent page.
119
+ #
120
+ # When paginating, all other parameters provided to
121
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client#list_data_stores DataStoreService.ListDataStores}
122
+ # must match the call that provided the page token. Otherwise, an
123
+ # INVALID_ARGUMENT error is returned.
124
+ # @!attribute [rw] filter
125
+ # @return [::String]
126
+ # Filter by solution type. For example: filter =
127
+ # 'solution_type:SOLUTION_TYPE_SEARCH'
128
+ class ListDataStoresRequest
129
+ include ::Google::Protobuf::MessageExts
130
+ extend ::Google::Protobuf::MessageExts::ClassMethods
131
+ end
132
+
133
+ # Response message for
134
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client#list_data_stores DataStoreService.ListDataStores}
135
+ # method.
136
+ # @!attribute [rw] data_stores
137
+ # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::DataStore>]
138
+ # All the customer's {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}s.
139
+ # @!attribute [rw] next_page_token
140
+ # @return [::String]
141
+ # A token that can be sent as
142
+ # {::Google::Cloud::DiscoveryEngine::V1::ListDataStoresRequest#page_token ListDataStoresRequest.page_token}
143
+ # to retrieve the next page. If this field is omitted, there are no
144
+ # subsequent pages.
145
+ class ListDataStoresResponse
146
+ include ::Google::Protobuf::MessageExts
147
+ extend ::Google::Protobuf::MessageExts::ClassMethods
148
+ end
149
+
150
+ # Request message for
151
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client#delete_data_store DataStoreService.DeleteDataStore}
152
+ # method.
153
+ # @!attribute [rw] name
154
+ # @return [::String]
155
+ # Required. Full resource name of
156
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}, such as
157
+ # `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
158
+ #
159
+ # If the caller does not have permission to delete the
160
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}, regardless of
161
+ # whether or not it exists, a PERMISSION_DENIED error is returned.
162
+ #
163
+ # If the {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore} to delete
164
+ # does not exist, a NOT_FOUND error is returned.
165
+ class DeleteDataStoreRequest
166
+ include ::Google::Protobuf::MessageExts
167
+ extend ::Google::Protobuf::MessageExts::ClassMethods
168
+ end
169
+
170
+ # Request message for
171
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client#update_data_store DataStoreService.UpdateDataStore}
172
+ # method.
173
+ # @!attribute [rw] data_store
174
+ # @return [::Google::Cloud::DiscoveryEngine::V1::DataStore]
175
+ # Required. The {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore} to
176
+ # update.
177
+ #
178
+ # If the caller does not have permission to update the
179
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}, regardless of
180
+ # whether or not it exists, a PERMISSION_DENIED error is returned.
181
+ #
182
+ # If the {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore} to update
183
+ # does not exist, a NOT_FOUND error is returned.
184
+ # @!attribute [rw] update_mask
185
+ # @return [::Google::Protobuf::FieldMask]
186
+ # Indicates which fields in the provided
187
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore} to update.
188
+ #
189
+ # If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
190
+ # is returned.
191
+ class UpdateDataStoreRequest
192
+ include ::Google::Protobuf::MessageExts
193
+ extend ::Google::Protobuf::MessageExts::ClassMethods
194
+ end
195
+
196
+ # Metadata related to the progress of the
197
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client#delete_data_store DataStoreService.DeleteDataStore}
198
+ # operation. This will be returned by the google.longrunning.Operation.metadata
199
+ # field.
200
+ # @!attribute [rw] create_time
201
+ # @return [::Google::Protobuf::Timestamp]
202
+ # Operation create time.
203
+ # @!attribute [rw] update_time
204
+ # @return [::Google::Protobuf::Timestamp]
205
+ # Operation last update time. If the operation is done, this is also the
206
+ # finish time.
207
+ class DeleteDataStoreMetadata
208
+ include ::Google::Protobuf::MessageExts
209
+ extend ::Google::Protobuf::MessageExts::ClassMethods
210
+ end
211
+ end
212
+ end
213
+ end
214
+ end
@@ -85,7 +85,7 @@ module Google
85
85
  # @return [::String]
86
86
  # The URI of the content. Only Cloud Storage URIs (e.g.
87
87
  # `gs://bucket-name/path/to/file`) are supported. The maximum file size
88
- # is 100 MB.
88
+ # is 2.5 MB for text-based formats, 100 MB for other formats.
89
89
  # @!attribute [rw] mime_type
90
90
  # @return [::String]
91
91
  # The MIME type of the content. Supported types: