google-cloud-discovery_engine-v1beta 0.14.1 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +109 -1
  3. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +102 -1
  4. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/service_stub.rb +66 -0
  5. data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +13 -4
  6. data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +13 -4
  7. data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
  8. data/lib/google/cloud/discoveryengine/v1beta/answer_pb.rb +2 -1
  9. data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +1 -1
  10. data/lib/google/cloud/discoveryengine/v1beta/custom_tuning_model_pb.rb +1 -1
  11. data/lib/google/cloud/discoveryengine/v1beta/document_pb.rb +4 -1
  12. data/lib/google/cloud/discoveryengine/v1beta/document_service_pb.rb +10 -1
  13. data/lib/google/cloud/discoveryengine/v1beta/document_service_services_pb.rb +4 -0
  14. data/lib/google/cloud/discoveryengine/v1beta/import_config_pb.rb +1 -1
  15. data/lib/google/cloud/discoveryengine/v1beta/purge_config_pb.rb +5 -1
  16. data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +4 -1
  17. data/lib/google/cloud/discoveryengine/v1beta/user_event_pb.rb +1 -1
  18. data/proto_docs/google/api/client.rb +17 -0
  19. data/proto_docs/google/cloud/discoveryengine/v1beta/answer.rb +48 -2
  20. data/proto_docs/google/cloud/discoveryengine/v1beta/control.rb +1 -1
  21. data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +3 -0
  22. data/proto_docs/google/cloud/discoveryengine/v1beta/custom_tuning_model.rb +3 -0
  23. data/proto_docs/google/cloud/discoveryengine/v1beta/document.rb +22 -0
  24. data/proto_docs/google/cloud/discoveryengine/v1beta/document_processing_config.rb +2 -0
  25. data/proto_docs/google/cloud/discoveryengine/v1beta/document_service.rb +104 -0
  26. data/proto_docs/google/cloud/discoveryengine/v1beta/grounded_generation_service.rb +2 -1
  27. data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +13 -7
  28. data/proto_docs/google/cloud/discoveryengine/v1beta/purge_config.rb +38 -0
  29. data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +104 -6
  30. data/proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb +4 -0
  31. metadata +2 -2
@@ -179,6 +179,110 @@ module Google
179
179
  include ::Google::Protobuf::MessageExts
180
180
  extend ::Google::Protobuf::MessageExts::ClassMethods
181
181
  end
182
+
183
+ # Request message for
184
+ # {::Google::Cloud::DiscoveryEngine::V1beta::DocumentService::Client#batch_get_documents_metadata DocumentService.BatchGetDocumentsMetadata}
185
+ # method.
186
+ # @!attribute [rw] parent
187
+ # @return [::String]
188
+ # Required. The parent branch resource name, such as
189
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
190
+ # @!attribute [rw] matcher
191
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::BatchGetDocumentsMetadataRequest::Matcher]
192
+ # Required. Matcher for the
193
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}s.
194
+ class BatchGetDocumentsMetadataRequest
195
+ include ::Google::Protobuf::MessageExts
196
+ extend ::Google::Protobuf::MessageExts::ClassMethods
197
+
198
+ # Matcher for the {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}s
199
+ # by exact uris.
200
+ # @!attribute [rw] uris
201
+ # @return [::Array<::String>]
202
+ # The exact URIs to match by.
203
+ class UrisMatcher
204
+ include ::Google::Protobuf::MessageExts
205
+ extend ::Google::Protobuf::MessageExts::ClassMethods
206
+ end
207
+
208
+ # Matcher for the {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}s.
209
+ # Currently supports matching by exact URIs.
210
+ # @!attribute [rw] uris_matcher
211
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::BatchGetDocumentsMetadataRequest::UrisMatcher]
212
+ # Matcher by exact URIs.
213
+ class Matcher
214
+ include ::Google::Protobuf::MessageExts
215
+ extend ::Google::Protobuf::MessageExts::ClassMethods
216
+ end
217
+ end
218
+
219
+ # Response message for
220
+ # {::Google::Cloud::DiscoveryEngine::V1beta::DocumentService::Client#batch_get_documents_metadata DocumentService.BatchGetDocumentsMetadata}
221
+ # method.
222
+ # @!attribute [rw] documents_metadata
223
+ # @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::BatchGetDocumentsMetadataResponse::DocumentMetadata>]
224
+ # The metadata of the
225
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}s.
226
+ class BatchGetDocumentsMetadataResponse
227
+ include ::Google::Protobuf::MessageExts
228
+ extend ::Google::Protobuf::MessageExts::ClassMethods
229
+
230
+ # The metadata of a {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}.
231
+ # @!attribute [rw] matcher_value
232
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::BatchGetDocumentsMetadataResponse::DocumentMetadata::MatcherValue]
233
+ # The value of the matcher that was used to match the
234
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}.
235
+ # @!attribute [rw] state
236
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::BatchGetDocumentsMetadataResponse::State]
237
+ # The state of the document.
238
+ # @!attribute [rw] last_refreshed_time
239
+ # @return [::Google::Protobuf::Timestamp]
240
+ # The timestamp of the last time the
241
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Document Document} was last
242
+ # indexed.
243
+ # @!attribute [rw] data_ingestion_source
244
+ # @return [::String]
245
+ # The data ingestion source of the
246
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}.
247
+ #
248
+ # Allowed values are:
249
+ #
250
+ # * `batch`: Data ingested via Batch API, e.g., ImportDocuments.
251
+ # * `streaming` Data ingested via Streaming API, e.g., FHIR streaming.
252
+ class DocumentMetadata
253
+ include ::Google::Protobuf::MessageExts
254
+ extend ::Google::Protobuf::MessageExts::ClassMethods
255
+
256
+ # The value of the matcher that was used to match the
257
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}.
258
+ # @!attribute [rw] uri
259
+ # @return [::String]
260
+ # If match by URI, the URI of the
261
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}.
262
+ class MatcherValue
263
+ include ::Google::Protobuf::MessageExts
264
+ extend ::Google::Protobuf::MessageExts::ClassMethods
265
+ end
266
+ end
267
+
268
+ # The state of the {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}.
269
+ module State
270
+ # Should never be set.
271
+ STATE_UNSPECIFIED = 0
272
+
273
+ # The {::Google::Cloud::DiscoveryEngine::V1beta::Document Document} is indexed.
274
+ INDEXED = 1
275
+
276
+ # The {::Google::Cloud::DiscoveryEngine::V1beta::Document Document} is not
277
+ # indexed because its URI is not in the
278
+ # {::Google::Cloud::DiscoveryEngine::V1beta::TargetSite TargetSite}.
279
+ NOT_IN_TARGET_SITE = 2
280
+
281
+ # The {::Google::Cloud::DiscoveryEngine::V1beta::Document Document} is not
282
+ # indexed.
283
+ NOT_IN_INDEX = 3
284
+ end
285
+ end
182
286
  end
183
287
  end
184
288
  end
@@ -130,8 +130,9 @@ module Google
130
130
  # field will be set to false. In that case, no grounding check was done for
131
131
  # the claim and therefore
132
132
  # {::Google::Cloud::DiscoveryEngine::V1beta::CheckGroundingResponse::Claim#citation_indices citation_indices},
133
+ # [anti_citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.anti_citation_indices],
133
134
  # and
134
- # [anti_citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.anti_citation_indices]
135
+ # [score][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.score]
135
136
  # should not be returned.
136
137
  class Claim
137
138
  include ::Google::Protobuf::MessageExts
@@ -69,7 +69,7 @@ module Google
69
69
  # BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
70
70
  # @!attribute [rw] project_id
71
71
  # @return [::String]
72
- # The project ID (can be project # or ID) that the BigQuery source is in with
72
+ # The project ID or the project number that contains the BigQuery source. Has
73
73
  # a length limit of 128 characters. If not specified, inherits the project
74
74
  # ID from the parent request.
75
75
  # @!attribute [rw] dataset_id
@@ -114,7 +114,7 @@ module Google
114
114
  # The Spanner source for importing data
115
115
  # @!attribute [rw] project_id
116
116
  # @return [::String]
117
- # The project ID that the Spanner source is in with a length limit of 128
117
+ # The project ID that contains the Spanner source. Has a length limit of 128
118
118
  # characters. If not specified, inherits the project ID from the parent
119
119
  # request.
120
120
  # @!attribute [rw] instance_id
@@ -269,7 +269,7 @@ module Google
269
269
  # The Cloud Bigtable source for importing data.
270
270
  # @!attribute [rw] project_id
271
271
  # @return [::String]
272
- # The project ID that the Bigtable source is in with a length limit of 128
272
+ # The project ID that contains the Bigtable source. Has a length limit of 128
273
273
  # characters. If not specified, inherits the project ID from the parent
274
274
  # request.
275
275
  # @!attribute [rw] instance_id
@@ -298,6 +298,12 @@ module Google
298
298
  # Intermediate Cloud Storage directory used for the import with a length
299
299
  # limit of 2,000 characters. Can be specified if one wants to have the
300
300
  # FhirStore export to a specific Cloud Storage directory.
301
+ # @!attribute [rw] resource_types
302
+ # @return [::Array<::String>]
303
+ # The FHIR resource types to import. The resource types should be a subset of
304
+ # all [supported FHIR resource
305
+ # types](https://cloud.google.com/generative-ai-app-builder/docs/fhir-schema-reference#resource-level-specification).
306
+ # Default to all supported FHIR resource types if empty.
301
307
  class FhirStoreSource
302
308
  include ::Google::Protobuf::MessageExts
303
309
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -306,8 +312,8 @@ module Google
306
312
  # Cloud SQL source import data from.
307
313
  # @!attribute [rw] project_id
308
314
  # @return [::String]
309
- # The project ID that the Cloud SQL source is in with a length limit of 128
310
- # characters. If not specified, inherits the project ID from the parent
315
+ # The project ID that contains the Cloud SQL source. Has a length limit of
316
+ # 128 characters. If not specified, inherits the project ID from the parent
311
317
  # request.
312
318
  # @!attribute [rw] instance_id
313
319
  # @return [::String]
@@ -342,8 +348,8 @@ module Google
342
348
  # AlloyDB source import data from.
343
349
  # @!attribute [rw] project_id
344
350
  # @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
351
+ # The project ID that contains the AlloyDB source.
352
+ # Has a length limit of 128 characters. If not specified, inherits the
347
353
  # project ID from the parent request.
348
354
  # @!attribute [rw] location_id
349
355
  # @return [::String]
@@ -98,9 +98,30 @@ module Google
98
98
  extend ::Google::Protobuf::MessageExts::ClassMethods
99
99
  end
100
100
 
101
+ # Configuration of destination for Purge related errors.
102
+ # @!attribute [rw] gcs_prefix
103
+ # @return [::String]
104
+ # Cloud Storage prefix for purge errors. This must be an empty,
105
+ # existing Cloud Storage directory. Purge errors are written to
106
+ # sharded files in this directory, one per line, as a JSON-encoded
107
+ # `google.rpc.Status` message.
108
+ class PurgeErrorConfig
109
+ include ::Google::Protobuf::MessageExts
110
+ extend ::Google::Protobuf::MessageExts::ClassMethods
111
+ end
112
+
101
113
  # Request message for
102
114
  # {::Google::Cloud::DiscoveryEngine::V1beta::DocumentService::Client#purge_documents DocumentService.PurgeDocuments}
103
115
  # method.
116
+ # @!attribute [rw] gcs_source
117
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::GcsSource]
118
+ # Cloud Storage location for the input content.
119
+ # Supported `data_schema`:
120
+ # * `document_id`: One valid
121
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Document#id Document.id} per line.
122
+ # @!attribute [rw] inline_source
123
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::PurgeDocumentsRequest::InlineSource]
124
+ # Inline source for the input content for purge.
104
125
  # @!attribute [rw] parent
105
126
  # @return [::String]
106
127
  # Required. The parent resource name, such as
@@ -110,6 +131,9 @@ module Google
110
131
  # Required. Filter matching documents to purge. Only currently supported
111
132
  # value is
112
133
  # `*` (all items).
134
+ # @!attribute [rw] error_config
135
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::PurgeErrorConfig]
136
+ # The desired location of errors incurred during the purge.
113
137
  # @!attribute [rw] force
114
138
  # @return [::Boolean]
115
139
  # Actually performs the purge. If `force` is set to false, return the
@@ -117,6 +141,20 @@ module Google
117
141
  class PurgeDocumentsRequest
118
142
  include ::Google::Protobuf::MessageExts
119
143
  extend ::Google::Protobuf::MessageExts::ClassMethods
144
+
145
+ # The inline source for the input config for
146
+ # {::Google::Cloud::DiscoveryEngine::V1beta::DocumentService::Client#purge_documents DocumentService.PurgeDocuments}
147
+ # method.
148
+ # @!attribute [rw] documents
149
+ # @return [::Array<::String>]
150
+ # Required. A list of full resource name of documents to purge. In the
151
+ # format
152
+ # `projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*`.
153
+ # Recommended max of 100 items.
154
+ class InlineSource
155
+ include ::Google::Protobuf::MessageExts
156
+ extend ::Google::Protobuf::MessageExts::ClassMethods
157
+ end
120
158
  end
121
159
 
122
160
  # Response message for
@@ -120,9 +120,12 @@ module Google
120
120
  # object. Leave it unset if ordered by relevance. `order_by` expression is
121
121
  # case-sensitive.
122
122
  #
123
- # For more information on ordering for retail search, see
124
- # [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
125
- #
123
+ # For more information on ordering the website search results, see
124
+ # [Order web search
125
+ # results](https://cloud.google.com/generative-ai-app-builder/docs/order-web-search-results).
126
+ # For more information on ordering the healthcare search results, see
127
+ # [Order healthcare search
128
+ # results](https://cloud.google.com/generative-ai-app-builder/docs/order-hc-results).
126
129
  # If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
127
130
  # @!attribute [rw] user_info
128
131
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::UserInfo]
@@ -303,6 +306,13 @@ module Google
303
306
  # Session specification.
304
307
  #
305
308
  # Can be used only when `session` is set.
309
+ # @!attribute [rw] relevance_threshold
310
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::RelevanceThreshold]
311
+ # The relevance threshold of the search results.
312
+ #
313
+ # Default to Google defined threshold, leveraging a balance of
314
+ # precision and recall to deliver both highly accurate results and
315
+ # comprehensive coverage of relevant information.
306
316
  class SearchRequest
307
317
  include ::Google::Protobuf::MessageExts
308
318
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -773,6 +783,14 @@ module Google
773
783
  # navigational queries. If this field is set to `true`, we skip
774
784
  # generating summaries for non-summary seeking queries and return
775
785
  # fallback messages instead.
786
+ # @!attribute [rw] ignore_low_relevant_content
787
+ # @return [::Boolean]
788
+ # Specifies whether to filter out queries that have low relevance. The
789
+ # default value is `false`.
790
+ #
791
+ # If this field is set to `false`, all search results are used regardless
792
+ # of relevance to generate answers. If set to `true`, only queries with
793
+ # high relevance search results will generate answers.
776
794
  # @!attribute [rw] model_prompt_spec
777
795
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec::SummarySpec::ModelPromptSpec]
778
796
  # If specified, the spec will be used to modify the prompt provided to
@@ -1061,6 +1079,27 @@ module Google
1061
1079
  include ::Google::Protobuf::MessageExts
1062
1080
  extend ::Google::Protobuf::MessageExts::ClassMethods
1063
1081
  end
1082
+
1083
+ # The relevance threshold of the search results. The higher relevance
1084
+ # threshold is, the higher relevant results are shown and the less number of
1085
+ # results are returned.
1086
+ module RelevanceThreshold
1087
+ # Default value. In this case, server behavior defaults to Google defined
1088
+ # threshold.
1089
+ RELEVANCE_THRESHOLD_UNSPECIFIED = 0
1090
+
1091
+ # Lowest relevance threshold.
1092
+ LOWEST = 1
1093
+
1094
+ # Low relevance threshold.
1095
+ LOW = 2
1096
+
1097
+ # Medium relevance threshold.
1098
+ MEDIUM = 3
1099
+
1100
+ # High relevance threshold.
1101
+ HIGH = 4
1102
+ end
1064
1103
  end
1065
1104
 
1066
1105
  # Response message for
@@ -1088,7 +1127,8 @@ module Google
1088
1127
  # A unique search token. This should be included in the
1089
1128
  # {::Google::Cloud::DiscoveryEngine::V1beta::UserEvent UserEvent} logs resulting
1090
1129
  # from this search, which enables accurate attribution of search model
1091
- # performance.
1130
+ # performance. This also helps to identify a request during the customer
1131
+ # support scenarios.
1092
1132
  # @!attribute [rw] redirect_uri
1093
1133
  # @return [::String]
1094
1134
  # The URI of a customer-defined redirect page. If redirect action is
@@ -1132,6 +1172,10 @@ module Google
1132
1172
  # Only set if
1133
1173
  # {::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest#session SearchRequest.session}
1134
1174
  # is provided. See its description for more details.
1175
+ # @!attribute [rw] one_box_results
1176
+ # @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::OneBoxResult>]
1177
+ # A list of One Box results. There can be multiple One Box results of
1178
+ # different types.
1135
1179
  class SearchResponse
1136
1180
  include ::Google::Protobuf::MessageExts
1137
1181
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1350,14 +1394,14 @@ module Google
1350
1394
 
1351
1395
  # The adversarial query ignored case.
1352
1396
  #
1353
- # Only populated when
1397
+ # Only used when
1354
1398
  # {::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec::SummarySpec#ignore_adversarial_query SummarySpec.ignore_adversarial_query}
1355
1399
  # is set to `true`.
1356
1400
  ADVERSARIAL_QUERY_IGNORED = 1
1357
1401
 
1358
1402
  # The non-summary seeking query ignored case.
1359
1403
  #
1360
- # Only populated when
1404
+ # Only used when
1361
1405
  # {::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec::SummarySpec#ignore_non_summary_seeking_query SummarySpec.ignore_non_summary_seeking_query}
1362
1406
  # is set to `true`.
1363
1407
  NON_SUMMARY_SEEKING_QUERY_IGNORED = 2
@@ -1385,6 +1429,20 @@ module Google
1385
1429
  # Google skips the summary if there is no relevant content in the
1386
1430
  # retrieved search results.
1387
1431
  NO_RELEVANT_CONTENT = 6
1432
+
1433
+ # The jail-breaking query ignored case.
1434
+ #
1435
+ # For example, "Reply in the tone of a competing company's CEO".
1436
+ # Only used when
1437
+ # [SearchRequest.ContentSearchSpec.SummarySpec.ignore_jail_breaking_query]
1438
+ # is set to `true`.
1439
+ JAIL_BREAKING_QUERY_IGNORED = 7
1440
+
1441
+ # The customer policy violation case.
1442
+ #
1443
+ # Google skips the summary if there is a customer policy violation
1444
+ # detected. The policy is defined by the customer.
1445
+ CUSTOMER_POLICY_VIOLATION = 8
1388
1446
  end
1389
1447
  end
1390
1448
 
@@ -1454,6 +1512,9 @@ module Google
1454
1512
  # @return [::Array<::String>]
1455
1513
  # Values of the string field. The record will only be returned if the
1456
1514
  # field value matches one of the values specified here.
1515
+ # @!attribute [rw] query_segment
1516
+ # @return [::String]
1517
+ # Identifies the keywords within the search query that match a filter.
1457
1518
  class StringConstraint
1458
1519
  include ::Google::Protobuf::MessageExts
1459
1520
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1470,6 +1531,9 @@ module Google
1470
1531
  # @!attribute [rw] value
1471
1532
  # @return [::Float]
1472
1533
  # The value specified in the numerical constraint.
1534
+ # @!attribute [rw] query_segment
1535
+ # @return [::String]
1536
+ # Identifies the keywords within the search query that match a filter.
1473
1537
  class NumberConstraint
1474
1538
  include ::Google::Protobuf::MessageExts
1475
1539
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1506,6 +1570,12 @@ module Google
1506
1570
  # The reference address that was inferred from the input query. The
1507
1571
  # proximity of the reference address to the geolocation field will be
1508
1572
  # used to filter the results.
1573
+ # @!attribute [rw] latitude
1574
+ # @return [::Float]
1575
+ # The latitude of the geolocation inferred from the input query.
1576
+ # @!attribute [rw] longitude
1577
+ # @return [::Float]
1578
+ # The longitude of the geolocation inferred from the input query.
1509
1579
  # @!attribute [rw] radius_in_meters
1510
1580
  # @return [::Float]
1511
1581
  # The radius in meters around the address. The record is returned if
@@ -1576,6 +1646,34 @@ module Google
1576
1646
  include ::Google::Protobuf::MessageExts
1577
1647
  extend ::Google::Protobuf::MessageExts::ClassMethods
1578
1648
  end
1649
+
1650
+ # OneBoxResult is a holder for all results of specific type that we want
1651
+ # to display in UI differently.
1652
+ # @!attribute [rw] one_box_type
1653
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::OneBoxResult::OneBoxType]
1654
+ # The type of One Box result.
1655
+ # @!attribute [rw] search_results
1656
+ # @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::SearchResult>]
1657
+ # The search results for this One Box.
1658
+ class OneBoxResult
1659
+ include ::Google::Protobuf::MessageExts
1660
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1661
+
1662
+ # The type of One Box result.
1663
+ module OneBoxType
1664
+ # Default value. Should not be used.
1665
+ ONE_BOX_TYPE_UNSPECIFIED = 0
1666
+
1667
+ # One Box result contains people results.
1668
+ PEOPLE = 1
1669
+
1670
+ # One Box result contains organization results.
1671
+ ORGANIZATION = 2
1672
+
1673
+ # One Box result contains slack results.
1674
+ SLACK = 3
1675
+ end
1676
+ end
1579
1677
  end
1580
1678
  end
1581
1679
  end
@@ -450,6 +450,10 @@ module Google
450
450
  # @return [::Array<::String>]
451
451
  # The promotion IDs associated with this Document.
452
452
  # Currently, this field is restricted to at most one ID.
453
+ # @!attribute [r] joined
454
+ # @return [::Boolean]
455
+ # Output only. Whether the referenced Document can be found in the data
456
+ # store.
453
457
  class DocumentInfo
454
458
  include ::Google::Protobuf::MessageExts
455
459
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-discovery_engine-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.1
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-09 00:00:00.000000000 Z
11
+ date: 2024-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common