google-cloud-discovery_engine-v1 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/discovery_engine/v1/completion_service/client.rb +33 -4
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/client.rb +39 -3
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/client.rb +968 -0
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/paths.rb +176 -0
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/client.rb +897 -0
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/service_stub.rb +450 -0
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1/document_service/client.rb +33 -9
- data/lib/google/cloud/discovery_engine/v1/document_service/operations.rb +10 -1
- data/lib/google/cloud/discovery_engine/v1/document_service/rest/client.rb +153 -8
- data/lib/google/cloud/discovery_engine/v1/document_service/rest/operations.rb +117 -0
- data/lib/google/cloud/discovery_engine/v1/rest.rb +2 -1
- data/lib/google/cloud/discovery_engine/v1/schema_service/client.rb +24 -1
- data/lib/google/cloud/discovery_engine/v1/schema_service/operations.rb +10 -1
- data/lib/google/cloud/discovery_engine/v1/schema_service/rest/client.rb +119 -0
- data/lib/google/cloud/discovery_engine/v1/schema_service/rest/operations.rb +117 -0
- data/lib/google/cloud/discovery_engine/v1/search_service/client.rb +55 -10
- data/lib/google/cloud/discovery_engine/v1/search_service/rest/client.rb +67 -12
- data/lib/google/cloud/discovery_engine/v1/user_event_service/client.rb +29 -6
- data/lib/google/cloud/discovery_engine/v1/user_event_service/operations.rb +10 -1
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/client.rb +74 -5
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/operations.rb +117 -0
- data/lib/google/cloud/discovery_engine/v1/version.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1/common_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1/completion_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/conversation_pb.rb +54 -0
- data/lib/google/cloud/discoveryengine/v1/conversational_search_service_pb.rb +61 -0
- data/lib/google/cloud/discoveryengine/v1/conversational_search_service_services_pb.rb +67 -0
- data/lib/google/cloud/discoveryengine/v1/import_config_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/search_service_pb.rb +13 -1
- data/lib/google/cloud/discoveryengine/v1/user_event_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/user_event_service_services_pb.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/discoveryengine/v1/common.rb +19 -2
- data/proto_docs/google/cloud/discoveryengine/v1/completion_service.rb +15 -2
- data/proto_docs/google/cloud/discoveryengine/v1/conversation.rb +113 -0
- data/proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb +206 -0
- data/proto_docs/google/cloud/discoveryengine/v1/document.rb +8 -5
- data/proto_docs/google/cloud/discoveryengine/v1/document_service.rb +4 -3
- data/proto_docs/google/cloud/discoveryengine/v1/import_config.rb +23 -19
- data/proto_docs/google/cloud/discoveryengine/v1/search_service.rb +455 -19
- data/proto_docs/google/cloud/discoveryengine/v1/user_event.rb +44 -32
- data/proto_docs/google/cloud/discoveryengine/v1/user_event_service.rb +1 -1
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- metadata +38 -5
@@ -57,7 +57,7 @@ module Google
|
|
57
57
|
# quality.
|
58
58
|
#
|
59
59
|
# The field must be a UTF-8 encoded string with a length limit of 128
|
60
|
-
# characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
60
|
+
# characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
|
61
61
|
#
|
62
62
|
# The field should not contain PII or user-data. We recommend to use Google
|
63
63
|
# Analytics [Client
|
@@ -110,20 +110,17 @@ module Google
|
|
110
110
|
#
|
111
111
|
# The value must be one of:
|
112
112
|
#
|
113
|
-
# * [
|
113
|
+
# * [RecommendResponse.attribution_token][] for events that are the result of
|
114
114
|
# [RecommendationService.Recommend][].
|
115
115
|
# * {::Google::Cloud::DiscoveryEngine::V1::SearchResponse#attribution_token SearchResponse.attribution_token} for events that are the result of
|
116
116
|
# {::Google::Cloud::DiscoveryEngine::V1::SearchService::Client#search SearchService.Search}.
|
117
|
-
# * [CompleteQueryResponse.attribution_token][] for events that are the
|
118
|
-
# result of
|
119
|
-
# {::Google::Cloud::DiscoveryEngine::V1::CompletionService::Client#complete_query CompletionService.CompleteQuery}.
|
120
117
|
#
|
121
118
|
# This token enables us to accurately attribute page view or conversion
|
122
119
|
# completion back to the event and the particular predict response containing
|
123
120
|
# this clicked/purchased product. If user clicks on product K in the
|
124
|
-
# recommendation results, pass [
|
125
|
-
# parameter to product K's page. When recording events on product K's
|
126
|
-
# log the [
|
121
|
+
# recommendation results, pass [RecommendResponse.attribution_token][] as a
|
122
|
+
# URL parameter to product K's page. When recording events on product K's
|
123
|
+
# page, log the [RecommendResponse.attribution_token][] to this field.
|
127
124
|
# @!attribute [rw] filter
|
128
125
|
# @return [::String]
|
129
126
|
# The filter syntax consists of an expression language for constructing a
|
@@ -131,8 +128,9 @@ module Google
|
|
131
128
|
#
|
132
129
|
# One example is for `search` events, the associated
|
133
130
|
# {::Google::Cloud::DiscoveryEngine::V1::SearchRequest SearchRequest} may contain
|
134
|
-
# a filter expression in
|
135
|
-
#
|
131
|
+
# a filter expression in
|
132
|
+
# {::Google::Cloud::DiscoveryEngine::V1::SearchRequest#filter SearchRequest.filter}
|
133
|
+
# conforming to https://google.aip.dev/160#filtering.
|
136
134
|
#
|
137
135
|
# Similarly, for `view-item-list` events that are generated from a
|
138
136
|
# [RecommendationService.RecommendRequest][], this field may be populated
|
@@ -140,10 +138,11 @@ module Google
|
|
140
138
|
# to https://google.aip.dev/160#filtering.
|
141
139
|
#
|
142
140
|
# The value must be a UTF-8 encoded string with a length limit of 1,000
|
143
|
-
# characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
141
|
+
# characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
|
144
142
|
# @!attribute [rw] documents
|
145
143
|
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1::DocumentInfo>]
|
146
|
-
# List of
|
144
|
+
# List of {::Google::Cloud::DiscoveryEngine::V1::Document Document}s associated
|
145
|
+
# with this user event.
|
147
146
|
#
|
148
147
|
# This field is optional except for the following event types:
|
149
148
|
#
|
@@ -165,12 +164,14 @@ module Google
|
|
165
164
|
# Panel metadata associated with this user event.
|
166
165
|
# @!attribute [rw] search_info
|
167
166
|
# @return [::Google::Cloud::DiscoveryEngine::V1::SearchInfo]
|
168
|
-
#
|
167
|
+
# {::Google::Cloud::DiscoveryEngine::V1::SearchService::Client#search SearchService.Search}
|
168
|
+
# details related to the event.
|
169
169
|
#
|
170
170
|
# This field should be set for `search` event.
|
171
171
|
# @!attribute [rw] completion_info
|
172
172
|
# @return [::Google::Cloud::DiscoveryEngine::V1::CompletionInfo]
|
173
|
-
#
|
173
|
+
# {::Google::Cloud::DiscoveryEngine::V1::CompletionService::Client#complete_query CompletionService.CompleteQuery}
|
174
|
+
# details related to the event.
|
174
175
|
#
|
175
176
|
# This field should be set for `search` event when autocomplete function is
|
176
177
|
# enabled and the user clicks a suggestion for search.
|
@@ -210,7 +211,7 @@ module Google
|
|
210
211
|
# * For number attributes, at most 400 values are allowed.
|
211
212
|
#
|
212
213
|
# For product recommendations, an example of extra user information is
|
213
|
-
# `
|
214
|
+
# `traffic_channel`, which is how a user arrives at the site. Users can
|
214
215
|
# arrive
|
215
216
|
# at the site by coming to the site directly, coming through Google
|
216
217
|
# search, or in other ways.
|
@@ -238,7 +239,7 @@ module Google
|
|
238
239
|
#
|
239
240
|
# This should be kept the same for all user events triggered from the same
|
240
241
|
# pageview. For example, an item detail page view could trigger multiple
|
241
|
-
# events as the user is browsing the page. The `
|
242
|
+
# events as the user is browsing the page. The `pageview_id` property should
|
242
243
|
# be kept the same for all these events so that they can be grouped together
|
243
244
|
# properly.
|
244
245
|
#
|
@@ -254,10 +255,10 @@ module Google
|
|
254
255
|
#
|
255
256
|
# Category pages include special pages such as sales or promotions. For
|
256
257
|
# instance, a special sale page may have the category hierarchy:
|
257
|
-
# "pageCategory" : "Sales > 2017 Black Friday Deals"
|
258
|
+
# `"pageCategory" : "Sales > 2017 Black Friday Deals"`.
|
258
259
|
#
|
259
260
|
# Required for `view-category-page` events. Other event types should not set
|
260
|
-
# this field. Otherwise, an INVALID_ARGUMENT error is returned.
|
261
|
+
# this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
|
261
262
|
# @!attribute [rw] uri
|
262
263
|
# @return [::String]
|
263
264
|
# Complete URL (window.location.href) of the user's current page.
|
@@ -287,24 +288,26 @@ module Google
|
|
287
288
|
# for definition.
|
288
289
|
#
|
289
290
|
# The value must be a UTF-8 encoded string with a length limit of 5,000
|
290
|
-
# characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
291
|
+
# characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
|
291
292
|
#
|
292
293
|
# At least one of
|
293
294
|
# {::Google::Cloud::DiscoveryEngine::V1::SearchInfo#search_query search_query} or
|
294
295
|
# {::Google::Cloud::DiscoveryEngine::V1::PageInfo#page_category PageInfo.page_category}
|
295
296
|
# is required for `search` events. Other event types should not set this
|
296
|
-
# field. Otherwise, an INVALID_ARGUMENT error is returned.
|
297
|
+
# field. Otherwise, an `INVALID_ARGUMENT` error is returned.
|
297
298
|
# @!attribute [rw] order_by
|
298
299
|
# @return [::String]
|
299
300
|
# The order in which products are returned, if applicable.
|
300
301
|
#
|
301
|
-
# See
|
302
|
+
# See
|
303
|
+
# {::Google::Cloud::DiscoveryEngine::V1::SearchRequest#order_by SearchRequest.order_by}
|
304
|
+
# for definition and syntax.
|
302
305
|
#
|
303
306
|
# The value must be a UTF-8 encoded string with a length limit of 1,000
|
304
|
-
# characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
307
|
+
# characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
|
305
308
|
#
|
306
309
|
# This can only be set for `search` events. Other event types should not set
|
307
|
-
# this field. Otherwise, an INVALID_ARGUMENT error is returned.
|
310
|
+
# this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
|
308
311
|
# @!attribute [rw] offset
|
309
312
|
# @return [::Integer]
|
310
313
|
# An integer that specifies the current offset for pagination (the 0-indexed
|
@@ -314,10 +317,10 @@ module Google
|
|
314
317
|
# {::Google::Cloud::DiscoveryEngine::V1::SearchRequest#offset SearchRequest.offset}
|
315
318
|
# for definition.
|
316
319
|
#
|
317
|
-
# If this field is negative, an INVALID_ARGUMENT is returned.
|
320
|
+
# If this field is negative, an `INVALID_ARGUMENT` is returned.
|
318
321
|
#
|
319
322
|
# This can only be set for `search` events. Other event types should not set
|
320
|
-
# this field. Otherwise, an INVALID_ARGUMENT error is returned.
|
323
|
+
# this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
|
321
324
|
class SearchInfo
|
322
325
|
include ::Google::Protobuf::MessageExts
|
323
326
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -327,10 +330,12 @@ module Google
|
|
327
330
|
# clicked completion info.
|
328
331
|
# @!attribute [rw] selected_suggestion
|
329
332
|
# @return [::String]
|
330
|
-
# End user selected
|
333
|
+
# End user selected
|
334
|
+
# {::Google::Cloud::DiscoveryEngine::V1::CompleteQueryResponse::QuerySuggestion#suggestion CompleteQueryResponse.QuerySuggestion.suggestion}.
|
331
335
|
# @!attribute [rw] selected_position
|
332
336
|
# @return [::Integer]
|
333
|
-
# End user selected
|
337
|
+
# End user selected
|
338
|
+
# {::Google::Cloud::DiscoveryEngine::V1::CompleteQueryResponse::QuerySuggestion#suggestion CompleteQueryResponse.QuerySuggestion.suggestion}
|
334
339
|
# position, starting from 0.
|
335
340
|
class CompletionInfo
|
336
341
|
include ::Google::Protobuf::MessageExts
|
@@ -391,11 +396,16 @@ module Google
|
|
391
396
|
# Detailed document information associated with a user event.
|
392
397
|
# @!attribute [rw] id
|
393
398
|
# @return [::String]
|
394
|
-
#
|
399
|
+
# The {::Google::Cloud::DiscoveryEngine::V1::Document Document} resource ID.
|
395
400
|
# @!attribute [rw] name
|
396
401
|
# @return [::String]
|
397
|
-
#
|
402
|
+
# The {::Google::Cloud::DiscoveryEngine::V1::Document Document} resource full
|
403
|
+
# name, of the form:
|
398
404
|
# `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
|
405
|
+
# @!attribute [rw] uri
|
406
|
+
# @return [::String]
|
407
|
+
# The {::Google::Cloud::DiscoveryEngine::V1::Document Document} URI - only
|
408
|
+
# allowed for website data stores.
|
399
409
|
# @!attribute [rw] quantity
|
400
410
|
# @return [::Integer]
|
401
411
|
# Quantity of the Document associated with the user event. Defaults to 1.
|
@@ -445,11 +455,13 @@ module Google
|
|
445
455
|
# @return [::Google::Protobuf::Duration]
|
446
456
|
# The media progress time in seconds, if applicable.
|
447
457
|
# For example, if the end user has finished 90 seconds of a playback video,
|
448
|
-
# then
|
449
|
-
#
|
458
|
+
# then
|
459
|
+
# {::Google::Protobuf::Duration#seconds MediaInfo.media_progress_duration.seconds}
|
460
|
+
# should be set to 90.
|
450
461
|
# @!attribute [rw] media_progress_percentage
|
451
462
|
# @return [::Float]
|
452
|
-
# Media progress should be computed using only the
|
463
|
+
# Media progress should be computed using only the
|
464
|
+
# {::Google::Cloud::DiscoveryEngine::V1::MediaInfo#media_progress_duration media_progress_duration}
|
453
465
|
# relative to the media total length.
|
454
466
|
#
|
455
467
|
# This value must be between `[0, 1.0]` inclusive.
|
@@ -47,7 +47,7 @@ module Google
|
|
47
47
|
# @return [::String]
|
48
48
|
# The URL including cgi-parameters but excluding the hash fragment with a
|
49
49
|
# length limit of 5,000 characters. This is often more useful than the
|
50
|
-
# referer URL, because many browsers only send the domain for
|
50
|
+
# referer URL, because many browsers only send the domain for third-party
|
51
51
|
# requests.
|
52
52
|
# @!attribute [rw] ets
|
53
53
|
# @return [::Integer]
|
@@ -0,0 +1,229 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 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 Protobuf
|
22
|
+
# `FieldMask` represents a set of symbolic field paths, for example:
|
23
|
+
#
|
24
|
+
# paths: "f.a"
|
25
|
+
# paths: "f.b.d"
|
26
|
+
#
|
27
|
+
# Here `f` represents a field in some root message, `a` and `b`
|
28
|
+
# fields in the message found in `f`, and `d` a field found in the
|
29
|
+
# message in `f.b`.
|
30
|
+
#
|
31
|
+
# Field masks are used to specify a subset of fields that should be
|
32
|
+
# returned by a get operation or modified by an update operation.
|
33
|
+
# Field masks also have a custom JSON encoding (see below).
|
34
|
+
#
|
35
|
+
# # Field Masks in Projections
|
36
|
+
#
|
37
|
+
# When used in the context of a projection, a response message or
|
38
|
+
# sub-message is filtered by the API to only contain those fields as
|
39
|
+
# specified in the mask. For example, if the mask in the previous
|
40
|
+
# example is applied to a response message as follows:
|
41
|
+
#
|
42
|
+
# f {
|
43
|
+
# a : 22
|
44
|
+
# b {
|
45
|
+
# d : 1
|
46
|
+
# x : 2
|
47
|
+
# }
|
48
|
+
# y : 13
|
49
|
+
# }
|
50
|
+
# z: 8
|
51
|
+
#
|
52
|
+
# The result will not contain specific values for fields x,y and z
|
53
|
+
# (their value will be set to the default, and omitted in proto text
|
54
|
+
# output):
|
55
|
+
#
|
56
|
+
#
|
57
|
+
# f {
|
58
|
+
# a : 22
|
59
|
+
# b {
|
60
|
+
# d : 1
|
61
|
+
# }
|
62
|
+
# }
|
63
|
+
#
|
64
|
+
# A repeated field is not allowed except at the last position of a
|
65
|
+
# paths string.
|
66
|
+
#
|
67
|
+
# If a FieldMask object is not present in a get operation, the
|
68
|
+
# operation applies to all fields (as if a FieldMask of all fields
|
69
|
+
# had been specified).
|
70
|
+
#
|
71
|
+
# Note that a field mask does not necessarily apply to the
|
72
|
+
# top-level response message. In case of a REST get operation, the
|
73
|
+
# field mask applies directly to the response, but in case of a REST
|
74
|
+
# list operation, the mask instead applies to each individual message
|
75
|
+
# in the returned resource list. In case of a REST custom method,
|
76
|
+
# other definitions may be used. Where the mask applies will be
|
77
|
+
# clearly documented together with its declaration in the API. In
|
78
|
+
# any case, the effect on the returned resource/resources is required
|
79
|
+
# behavior for APIs.
|
80
|
+
#
|
81
|
+
# # Field Masks in Update Operations
|
82
|
+
#
|
83
|
+
# A field mask in update operations specifies which fields of the
|
84
|
+
# targeted resource are going to be updated. The API is required
|
85
|
+
# to only change the values of the fields as specified in the mask
|
86
|
+
# and leave the others untouched. If a resource is passed in to
|
87
|
+
# describe the updated values, the API ignores the values of all
|
88
|
+
# fields not covered by the mask.
|
89
|
+
#
|
90
|
+
# If a repeated field is specified for an update operation, new values will
|
91
|
+
# be appended to the existing repeated field in the target resource. Note that
|
92
|
+
# a repeated field is only allowed in the last position of a `paths` string.
|
93
|
+
#
|
94
|
+
# If a sub-message is specified in the last position of the field mask for an
|
95
|
+
# update operation, then new value will be merged into the existing sub-message
|
96
|
+
# in the target resource.
|
97
|
+
#
|
98
|
+
# For example, given the target message:
|
99
|
+
#
|
100
|
+
# f {
|
101
|
+
# b {
|
102
|
+
# d: 1
|
103
|
+
# x: 2
|
104
|
+
# }
|
105
|
+
# c: [1]
|
106
|
+
# }
|
107
|
+
#
|
108
|
+
# And an update message:
|
109
|
+
#
|
110
|
+
# f {
|
111
|
+
# b {
|
112
|
+
# d: 10
|
113
|
+
# }
|
114
|
+
# c: [2]
|
115
|
+
# }
|
116
|
+
#
|
117
|
+
# then if the field mask is:
|
118
|
+
#
|
119
|
+
# paths: ["f.b", "f.c"]
|
120
|
+
#
|
121
|
+
# then the result will be:
|
122
|
+
#
|
123
|
+
# f {
|
124
|
+
# b {
|
125
|
+
# d: 10
|
126
|
+
# x: 2
|
127
|
+
# }
|
128
|
+
# c: [1, 2]
|
129
|
+
# }
|
130
|
+
#
|
131
|
+
# An implementation may provide options to override this default behavior for
|
132
|
+
# repeated and message fields.
|
133
|
+
#
|
134
|
+
# In order to reset a field's value to the default, the field must
|
135
|
+
# be in the mask and set to the default value in the provided resource.
|
136
|
+
# Hence, in order to reset all fields of a resource, provide a default
|
137
|
+
# instance of the resource and set all fields in the mask, or do
|
138
|
+
# not provide a mask as described below.
|
139
|
+
#
|
140
|
+
# If a field mask is not present on update, the operation applies to
|
141
|
+
# all fields (as if a field mask of all fields has been specified).
|
142
|
+
# Note that in the presence of schema evolution, this may mean that
|
143
|
+
# fields the client does not know and has therefore not filled into
|
144
|
+
# the request will be reset to their default. If this is unwanted
|
145
|
+
# behavior, a specific service may require a client to always specify
|
146
|
+
# a field mask, producing an error if not.
|
147
|
+
#
|
148
|
+
# As with get operations, the location of the resource which
|
149
|
+
# describes the updated values in the request message depends on the
|
150
|
+
# operation kind. In any case, the effect of the field mask is
|
151
|
+
# required to be honored by the API.
|
152
|
+
#
|
153
|
+
# ## Considerations for HTTP REST
|
154
|
+
#
|
155
|
+
# The HTTP kind of an update operation which uses a field mask must
|
156
|
+
# be set to PATCH instead of PUT in order to satisfy HTTP semantics
|
157
|
+
# (PUT must only be used for full updates).
|
158
|
+
#
|
159
|
+
# # JSON Encoding of Field Masks
|
160
|
+
#
|
161
|
+
# In JSON, a field mask is encoded as a single string where paths are
|
162
|
+
# separated by a comma. Fields name in each path are converted
|
163
|
+
# to/from lower-camel naming conventions.
|
164
|
+
#
|
165
|
+
# As an example, consider the following message declarations:
|
166
|
+
#
|
167
|
+
# message Profile {
|
168
|
+
# User user = 1;
|
169
|
+
# Photo photo = 2;
|
170
|
+
# }
|
171
|
+
# message User {
|
172
|
+
# string display_name = 1;
|
173
|
+
# string address = 2;
|
174
|
+
# }
|
175
|
+
#
|
176
|
+
# In proto a field mask for `Profile` may look as such:
|
177
|
+
#
|
178
|
+
# mask {
|
179
|
+
# paths: "user.display_name"
|
180
|
+
# paths: "photo"
|
181
|
+
# }
|
182
|
+
#
|
183
|
+
# In JSON, the same mask is represented as below:
|
184
|
+
#
|
185
|
+
# {
|
186
|
+
# mask: "user.displayName,photo"
|
187
|
+
# }
|
188
|
+
#
|
189
|
+
# # Field Masks and Oneof Fields
|
190
|
+
#
|
191
|
+
# Field masks treat fields in oneofs just as regular fields. Consider the
|
192
|
+
# following message:
|
193
|
+
#
|
194
|
+
# message SampleMessage {
|
195
|
+
# oneof test_oneof {
|
196
|
+
# string name = 4;
|
197
|
+
# SubMessage sub_message = 9;
|
198
|
+
# }
|
199
|
+
# }
|
200
|
+
#
|
201
|
+
# The field mask can be:
|
202
|
+
#
|
203
|
+
# mask {
|
204
|
+
# paths: "name"
|
205
|
+
# }
|
206
|
+
#
|
207
|
+
# Or:
|
208
|
+
#
|
209
|
+
# mask {
|
210
|
+
# paths: "sub_message"
|
211
|
+
# }
|
212
|
+
#
|
213
|
+
# Note that oneof type names ("test_oneof" in this case) cannot be used in
|
214
|
+
# paths.
|
215
|
+
#
|
216
|
+
# ## Field Mask Verification
|
217
|
+
#
|
218
|
+
# The implementation of any API method which has a FieldMask type field in the
|
219
|
+
# request should verify the included field paths, and return an
|
220
|
+
# `INVALID_ARGUMENT` error if any path is unmappable.
|
221
|
+
# @!attribute [rw] paths
|
222
|
+
# @return [::Array<::String>]
|
223
|
+
# The set of field mask paths.
|
224
|
+
class FieldMask
|
225
|
+
include ::Google::Protobuf::MessageExts
|
226
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
227
|
+
end
|
228
|
+
end
|
229
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-discovery_engine-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.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: 2023-
|
11
|
+
date: 2023-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.20.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -44,6 +44,26 @@ dependencies:
|
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '1.0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: google-cloud-location
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0.4'
|
54
|
+
- - "<"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 2.a
|
57
|
+
type: :runtime
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0.4'
|
64
|
+
- - "<"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 2.a
|
47
67
|
- !ruby/object:Gem::Dependency
|
48
68
|
name: google-style
|
49
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -177,6 +197,13 @@ files:
|
|
177
197
|
- lib/google/cloud/discovery_engine/v1/completion_service/rest.rb
|
178
198
|
- lib/google/cloud/discovery_engine/v1/completion_service/rest/client.rb
|
179
199
|
- lib/google/cloud/discovery_engine/v1/completion_service/rest/service_stub.rb
|
200
|
+
- lib/google/cloud/discovery_engine/v1/conversational_search_service.rb
|
201
|
+
- lib/google/cloud/discovery_engine/v1/conversational_search_service/client.rb
|
202
|
+
- lib/google/cloud/discovery_engine/v1/conversational_search_service/credentials.rb
|
203
|
+
- lib/google/cloud/discovery_engine/v1/conversational_search_service/paths.rb
|
204
|
+
- lib/google/cloud/discovery_engine/v1/conversational_search_service/rest.rb
|
205
|
+
- lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/client.rb
|
206
|
+
- lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/service_stub.rb
|
180
207
|
- lib/google/cloud/discovery_engine/v1/document_service.rb
|
181
208
|
- lib/google/cloud/discovery_engine/v1/document_service/client.rb
|
182
209
|
- lib/google/cloud/discovery_engine/v1/document_service/credentials.rb
|
@@ -216,6 +243,9 @@ files:
|
|
216
243
|
- lib/google/cloud/discoveryengine/v1/common_pb.rb
|
217
244
|
- lib/google/cloud/discoveryengine/v1/completion_service_pb.rb
|
218
245
|
- lib/google/cloud/discoveryengine/v1/completion_service_services_pb.rb
|
246
|
+
- lib/google/cloud/discoveryengine/v1/conversation_pb.rb
|
247
|
+
- lib/google/cloud/discoveryengine/v1/conversational_search_service_pb.rb
|
248
|
+
- lib/google/cloud/discoveryengine/v1/conversational_search_service_services_pb.rb
|
219
249
|
- lib/google/cloud/discoveryengine/v1/document_pb.rb
|
220
250
|
- lib/google/cloud/discoveryengine/v1/document_service_pb.rb
|
221
251
|
- lib/google/cloud/discoveryengine/v1/document_service_services_pb.rb
|
@@ -237,6 +267,8 @@ files:
|
|
237
267
|
- proto_docs/google/api/resource.rb
|
238
268
|
- proto_docs/google/cloud/discoveryengine/v1/common.rb
|
239
269
|
- proto_docs/google/cloud/discoveryengine/v1/completion_service.rb
|
270
|
+
- proto_docs/google/cloud/discoveryengine/v1/conversation.rb
|
271
|
+
- proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb
|
240
272
|
- proto_docs/google/cloud/discoveryengine/v1/document.rb
|
241
273
|
- proto_docs/google/cloud/discoveryengine/v1/document_service.rb
|
242
274
|
- proto_docs/google/cloud/discoveryengine/v1/import_config.rb
|
@@ -250,6 +282,7 @@ files:
|
|
250
282
|
- proto_docs/google/protobuf/any.rb
|
251
283
|
- proto_docs/google/protobuf/duration.rb
|
252
284
|
- proto_docs/google/protobuf/empty.rb
|
285
|
+
- proto_docs/google/protobuf/field_mask.rb
|
253
286
|
- proto_docs/google/protobuf/struct.rb
|
254
287
|
- proto_docs/google/protobuf/timestamp.rb
|
255
288
|
- proto_docs/google/rpc/status.rb
|
@@ -273,7 +306,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
273
306
|
- !ruby/object:Gem::Version
|
274
307
|
version: '0'
|
275
308
|
requirements: []
|
276
|
-
rubygems_version: 3.4.
|
309
|
+
rubygems_version: 3.4.19
|
277
310
|
signing_key:
|
278
311
|
specification_version: 4
|
279
312
|
summary: Discovery Engine API.
|