google-cloud-discovery_engine-v1beta 0.7.2 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/discovery_engine/v1beta/completion_service/client.rb +235 -4
  4. data/lib/google/cloud/discovery_engine/v1beta/completion_service/operations.rb +801 -0
  5. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +221 -4
  6. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/operations.rb +1077 -0
  7. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/service_stub.rb +136 -0
  8. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest.rb +1 -0
  9. data/lib/google/cloud/discovery_engine/v1beta/completion_service.rb +1 -0
  10. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +20 -3
  11. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/paths.rb +91 -0
  12. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +20 -3
  13. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/service_stub.rb +45 -0
  14. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/client.rb +925 -0
  15. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/credentials.rb +47 -0
  16. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/operations.rb +801 -0
  17. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/paths.rb +97 -0
  18. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/client.rb +864 -0
  19. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/operations.rb +1077 -0
  20. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/service_stub.rb +403 -0
  21. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest.rb +54 -0
  22. data/lib/google/cloud/discovery_engine/v1beta/data_store_service.rb +57 -0
  23. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/operations.rb +14 -0
  24. data/lib/google/cloud/discovery_engine/v1beta/engine_service/client.rb +887 -0
  25. data/lib/google/cloud/discovery_engine/v1beta/engine_service/credentials.rb +47 -0
  26. data/lib/google/cloud/discovery_engine/v1beta/engine_service/operations.rb +801 -0
  27. data/lib/google/cloud/discovery_engine/v1beta/engine_service/paths.rb +73 -0
  28. data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/client.rb +826 -0
  29. data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/operations.rb +1077 -0
  30. data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/service_stub.rb +366 -0
  31. data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest.rb +54 -0
  32. data/lib/google/cloud/discovery_engine/v1beta/engine_service.rb +57 -0
  33. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/client.rb +22 -3
  34. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/paths.rb +19 -0
  35. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/client.rb +22 -3
  36. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/service_stub.rb +8 -0
  37. data/lib/google/cloud/discovery_engine/v1beta/rest.rb +4 -0
  38. data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/operations.rb +14 -0
  39. data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +48 -10
  40. data/lib/google/cloud/discovery_engine/v1beta/search_service/paths.rb +19 -0
  41. data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +48 -10
  42. data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/service_stub.rb +8 -0
  43. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/client.rb +646 -0
  44. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/credentials.rb +47 -0
  45. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/paths.rb +146 -0
  46. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest/client.rb +599 -0
  47. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest/service_stub.rb +291 -0
  48. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest.rb +52 -0
  49. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service.rb +55 -0
  50. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/client.rb +1635 -0
  51. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/credentials.rb +47 -0
  52. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/operations.rb +801 -0
  53. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/paths.rb +127 -0
  54. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/client.rb +1525 -0
  55. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/operations.rb +1077 -0
  56. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/service_stub.rb +860 -0
  57. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest.rb +53 -0
  58. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service.rb +56 -0
  59. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/operations.rb +14 -0
  60. data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
  61. data/lib/google/cloud/discovery_engine/v1beta.rb +4 -0
  62. data/lib/google/cloud/discoveryengine/v1beta/common_pb.rb +6 -1
  63. data/lib/google/cloud/discoveryengine/v1beta/completion_pb.rb +45 -0
  64. data/lib/google/cloud/discoveryengine/v1beta/completion_service_pb.rb +4 -1
  65. data/lib/google/cloud/discoveryengine/v1beta/completion_service_services_pb.rb +8 -0
  66. data/lib/google/cloud/discoveryengine/v1beta/conversation_pb.rb +1 -1
  67. data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +1 -1
  68. data/lib/google/cloud/discoveryengine/v1beta/data_store_pb.rb +49 -0
  69. data/lib/google/cloud/discoveryengine/v1beta/data_store_service_pb.rb +62 -0
  70. data/lib/google/cloud/discoveryengine/v1beta/data_store_service_services_pb.rb +61 -0
  71. data/lib/google/cloud/discoveryengine/v1beta/document_pb.rb +1 -1
  72. data/lib/google/cloud/discoveryengine/v1beta/document_service_pb.rb +1 -1
  73. data/lib/google/cloud/discoveryengine/v1beta/engine_pb.rb +53 -0
  74. data/lib/google/cloud/discoveryengine/v1beta/engine_service_pb.rb +62 -0
  75. data/lib/google/cloud/discoveryengine/v1beta/engine_service_services_pb.rb +55 -0
  76. data/lib/google/cloud/discoveryengine/v1beta/import_config_pb.rb +7 -1
  77. data/lib/google/cloud/discoveryengine/v1beta/purge_config_pb.rb +6 -1
  78. data/lib/google/cloud/discoveryengine/v1beta/recommendation_service_pb.rb +1 -1
  79. data/lib/google/cloud/discoveryengine/v1beta/schema_pb.rb +1 -1
  80. data/lib/google/cloud/discoveryengine/v1beta/schema_service_pb.rb +1 -1
  81. data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +8 -1
  82. data/lib/google/cloud/discoveryengine/v1beta/serving_config_pb.rb +53 -0
  83. data/lib/google/cloud/discoveryengine/v1beta/serving_config_service_pb.rb +54 -0
  84. data/lib/google/cloud/discoveryengine/v1beta/serving_config_service_services_pb.rb +53 -0
  85. data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_pb.rb +54 -0
  86. data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_service_pb.rb +82 -0
  87. data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_service_services_pb.rb +74 -0
  88. data/lib/google/cloud/discoveryengine/v1beta/user_event_pb.rb +1 -1
  89. data/lib/google/cloud/discoveryengine/v1beta/user_event_service_pb.rb +1 -1
  90. data/proto_docs/google/cloud/discoveryengine/v1beta/common.rb +60 -0
  91. data/proto_docs/google/cloud/discoveryengine/v1beta/completion.rb +53 -0
  92. data/proto_docs/google/cloud/discoveryengine/v1beta/completion_service.rb +10 -4
  93. data/proto_docs/google/cloud/discoveryengine/v1beta/conversation.rb +2 -0
  94. data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +19 -1
  95. data/proto_docs/google/cloud/discoveryengine/v1beta/data_store.rb +88 -0
  96. data/proto_docs/google/cloud/discoveryengine/v1beta/data_store_service.rb +216 -0
  97. data/proto_docs/google/cloud/discoveryengine/v1beta/document.rb +1 -1
  98. data/proto_docs/google/cloud/discoveryengine/v1beta/engine.rb +219 -0
  99. data/proto_docs/google/cloud/discoveryengine/v1beta/engine_service.rb +179 -0
  100. data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +66 -0
  101. data/proto_docs/google/cloud/discoveryengine/v1beta/purge_config.rb +41 -0
  102. data/proto_docs/google/cloud/discoveryengine/v1beta/recommendation_service.rb +22 -3
  103. data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +166 -15
  104. data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config.rb +247 -0
  105. data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config_service.rb +85 -0
  106. data/proto_docs/google/cloud/discoveryengine/v1beta/site_search_engine.rb +160 -0
  107. data/proto_docs/google/cloud/discoveryengine/v1beta/site_search_engine_service.rb +528 -0
  108. data/proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb +4 -3
  109. metadata +62 -116
@@ -0,0 +1,247 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module DiscoveryEngine
23
+ module V1beta
24
+ # Configures metadata that is used to generate serving time results (e.g.
25
+ # search results or recommendation predictions).
26
+ # The ServingConfig is passed in the search and predict request and generates
27
+ # results.
28
+ # @!attribute [rw] media_config
29
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::ServingConfig::MediaConfig]
30
+ # The MediaConfig of the serving configuration.
31
+ # @!attribute [rw] generic_config
32
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::ServingConfig::GenericConfig]
33
+ # The GenericConfig of the serving configuration.
34
+ # @!attribute [rw] name
35
+ # @return [::String]
36
+ # Immutable. Fully qualified name
37
+ # `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
38
+ # @!attribute [rw] display_name
39
+ # @return [::String]
40
+ # Required. The human readable serving config display name. Used in Discovery
41
+ # UI.
42
+ #
43
+ # This field must be a UTF-8 encoded string with a length limit of 128
44
+ # characters. Otherwise, an INVALID_ARGUMENT error is returned.
45
+ # @!attribute [rw] solution_type
46
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::SolutionType]
47
+ # Required. Immutable. Specifies the solution type that a serving config can
48
+ # be associated with.
49
+ # @!attribute [rw] model_id
50
+ # @return [::String]
51
+ # The id of the model to use at serving time.
52
+ # Currently only RecommendationModels are supported.
53
+ # Can be changed but only to a compatible model (e.g.
54
+ # others-you-may-like CTR to others-you-may-like CVR).
55
+ #
56
+ # Required when
57
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SolutionType SolutionType} is
58
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SolutionType::SOLUTION_TYPE_RECOMMENDATION SOLUTION_TYPE_RECOMMENDATION}.
59
+ # @!attribute [rw] diversity_level
60
+ # @return [::String]
61
+ # How much diversity to use in recommendation model results e.g.
62
+ # `medium-diversity` or `high-diversity`. Currently supported values:
63
+ #
64
+ # * `no-diversity`
65
+ # * `low-diversity`
66
+ # * `medium-diversity`
67
+ # * `high-diversity`
68
+ # * `auto-diversity`
69
+ #
70
+ # If not specified, we choose default based on recommendation model
71
+ # type. Default value: `no-diversity`.
72
+ #
73
+ # Can only be set if
74
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SolutionType SolutionType} is
75
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SolutionType::SOLUTION_TYPE_RECOMMENDATION SOLUTION_TYPE_RECOMMENDATION}.
76
+ # @!attribute [rw] embedding_config
77
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::EmbeddingConfig]
78
+ # Bring your own embedding config. The config is used for search semantic
79
+ # retrieval. The retrieval is based on the dot product of
80
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::EmbeddingSpec::EmbeddingVector#vector SearchRequest.EmbeddingSpec.EmbeddingVector.vector}
81
+ # and the document embeddings that are provided by this EmbeddingConfig. If
82
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::EmbeddingSpec::EmbeddingVector#vector SearchRequest.EmbeddingSpec.EmbeddingVector.vector}
83
+ # is provided, it overrides this
84
+ # {::Google::Cloud::DiscoveryEngine::V1beta::ServingConfig#embedding_config ServingConfig.embedding_config}.
85
+ # @!attribute [rw] ranking_expression
86
+ # @return [::String]
87
+ # The ranking expression controls the customized ranking on retrieval
88
+ # documents. To leverage this, document embedding is required. The ranking
89
+ # expression setting in ServingConfig applies to all search requests served
90
+ # by the serving config. However, if [SearchRequest.ranking_expression][] is
91
+ # specified, it overrides the ServingConfig ranking expression.
92
+ #
93
+ # The ranking expression is a single function or multiple functions that are
94
+ # joined by "+".
95
+ # * ranking_expression = function, { " + ", function };
96
+ # Supported functions:
97
+ # * double * relevance_score
98
+ # * double * dotProduct(embedding_field_path)
99
+ # Function variables:
100
+ # relevance_score: pre-defined keywords, used for measure relevance between
101
+ # query and document.
102
+ # embedding_field_path: the document embedding field
103
+ # used with query embedding vector.
104
+ # dotProduct: embedding function between embedding_field_path and query
105
+ # embedding vector.
106
+ #
107
+ # Example ranking expression:
108
+ # If document has an embedding field doc_embedding, the ranking expression
109
+ # could be 0.5 * relevance_score + 0.3 * dotProduct(doc_embedding).
110
+ # @!attribute [r] create_time
111
+ # @return [::Google::Protobuf::Timestamp]
112
+ # Output only. ServingConfig created timestamp.
113
+ # @!attribute [r] update_time
114
+ # @return [::Google::Protobuf::Timestamp]
115
+ # Output only. ServingConfig updated timestamp.
116
+ # @!attribute [rw] filter_control_ids
117
+ # @return [::Array<::String>]
118
+ # Filter controls to use in serving path.
119
+ # All triggered filter controls will be applied.
120
+ # Filter controls must be in the same data store as the serving config.
121
+ # Maximum of 20 filter controls.
122
+ # @!attribute [rw] boost_control_ids
123
+ # @return [::Array<::String>]
124
+ # Boost controls to use in serving path.
125
+ # All triggered boost controls will be applied.
126
+ # Boost controls must be in the same data store as the serving config.
127
+ # Maximum of 20 boost controls.
128
+ # @!attribute [rw] redirect_control_ids
129
+ # @return [::Array<::String>]
130
+ # IDs of the redirect controls. Only the first triggered redirect
131
+ # action is applied, even if multiple apply. Maximum number of
132
+ # specifications is 100.
133
+ #
134
+ # Can only be set if
135
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SolutionType SolutionType} is
136
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SolutionType::SOLUTION_TYPE_SEARCH SOLUTION_TYPE_SEARCH}.
137
+ # @!attribute [rw] synonyms_control_ids
138
+ # @return [::Array<::String>]
139
+ # Condition synonyms specifications. If multiple synonyms conditions
140
+ # match, all matching synonyms controls in the list will execute.
141
+ # Maximum number of specifications is 100.
142
+ #
143
+ # Can only be set if
144
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SolutionType SolutionType} is
145
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SolutionType::SOLUTION_TYPE_SEARCH SOLUTION_TYPE_SEARCH}.
146
+ # @!attribute [rw] oneway_synonyms_control_ids
147
+ # @return [::Array<::String>]
148
+ # Condition oneway synonyms specifications. If multiple oneway synonyms
149
+ # conditions match, all matching oneway synonyms controls in the list
150
+ # will execute. Maximum number of specifications is 100.
151
+ #
152
+ # Can only be set if
153
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SolutionType SolutionType} is
154
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SolutionType::SOLUTION_TYPE_SEARCH SOLUTION_TYPE_SEARCH}.
155
+ # @!attribute [rw] dissociate_control_ids
156
+ # @return [::Array<::String>]
157
+ # Condition do not associate specifications. If multiple do not
158
+ # associate conditions match, all matching do not associate controls in
159
+ # the list will execute.
160
+ # Order does not matter.
161
+ # Maximum number of specifications is 100.
162
+ #
163
+ # Can only be set if
164
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SolutionType SolutionType} is
165
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SolutionType::SOLUTION_TYPE_SEARCH SOLUTION_TYPE_SEARCH}.
166
+ # @!attribute [rw] replacement_control_ids
167
+ # @return [::Array<::String>]
168
+ # Condition replacement specifications.
169
+ # Applied according to the order in the list.
170
+ # A previously replaced term can not be re-replaced.
171
+ # Maximum number of specifications is 100.
172
+ #
173
+ # Can only be set if
174
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SolutionType SolutionType} is
175
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SolutionType::SOLUTION_TYPE_SEARCH SOLUTION_TYPE_SEARCH}.
176
+ # @!attribute [rw] ignore_control_ids
177
+ # @return [::Array<::String>]
178
+ # Condition ignore specifications. If multiple ignore
179
+ # conditions match, all matching ignore controls in the list will
180
+ # execute.
181
+ # Order does not matter.
182
+ # Maximum number of specifications is 100.
183
+ class ServingConfig
184
+ include ::Google::Protobuf::MessageExts
185
+ extend ::Google::Protobuf::MessageExts::ClassMethods
186
+
187
+ # Specifies the configurations needed for Media Discovery. Currently we
188
+ # support:
189
+ #
190
+ # * `demote_content_watched`: Threshold for watched content demotion.
191
+ # Customers can specify if using watched content demotion or use viewed
192
+ # detail page. Using the content watched demotion, customers need to specify
193
+ # the watched minutes or percentage exceeds the threshold, the content will
194
+ # be demoted in the recommendation result.
195
+ # * `promote_fresh_content`: cutoff days for fresh content promotion.
196
+ # Customers can specify if using content freshness promotion. If the content
197
+ # was published within the cutoff days, the content will be promoted in the
198
+ # recommendation result.
199
+ # Can only be set if
200
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SolutionType SolutionType} is
201
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SolutionType::SOLUTION_TYPE_RECOMMENDATION SOLUTION_TYPE_RECOMMENDATION}.
202
+ # @!attribute [rw] content_watched_percentage_threshold
203
+ # @return [::Float]
204
+ # Specifies the content watched percentage threshold for demotion.
205
+ # Threshold value must be between [0, 1.0] inclusive.
206
+ # @!attribute [rw] content_watched_seconds_threshold
207
+ # @return [::Float]
208
+ # Specifies the content watched minutes threshold for demotion.
209
+ # @!attribute [rw] demotion_event_type
210
+ # @return [::String]
211
+ # Specifies the event type used for demoting recommendation result.
212
+ # Currently supported values:
213
+ #
214
+ # * `view-item`: Item viewed.
215
+ # * `media-play`: Start/resume watching a video, playing a song, etc.
216
+ # * `media-complete`: Finished or stopped midway through a video, song,
217
+ # etc.
218
+ #
219
+ # If unset, watch history demotion will not be applied. Content freshness
220
+ # demotion will still be applied.
221
+ # @!attribute [rw] content_freshness_cutoff_days
222
+ # @return [::Integer]
223
+ # Specifies the content freshness used for recommendation result.
224
+ # Contents will be demoted if contents were published for more than content
225
+ # freshness cutoff days.
226
+ class MediaConfig
227
+ include ::Google::Protobuf::MessageExts
228
+ extend ::Google::Protobuf::MessageExts::ClassMethods
229
+ end
230
+
231
+ # Specifies the configurations needed for Generic Discovery.Currently we
232
+ # support:
233
+ #
234
+ # * `content_search_spec`: configuration for generic content search.
235
+ # @!attribute [rw] content_search_spec
236
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec]
237
+ # Specifies the expected behavior of content search.
238
+ # Only valid for content-search enabled data store.
239
+ class GenericConfig
240
+ include ::Google::Protobuf::MessageExts
241
+ extend ::Google::Protobuf::MessageExts::ClassMethods
242
+ end
243
+ end
244
+ end
245
+ end
246
+ end
247
+ end
@@ -0,0 +1,85 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module DiscoveryEngine
23
+ module V1beta
24
+ # Request for UpdateServingConfig method.
25
+ # @!attribute [rw] serving_config
26
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::ServingConfig]
27
+ # Required. The ServingConfig to update.
28
+ # @!attribute [rw] update_mask
29
+ # @return [::Google::Protobuf::FieldMask]
30
+ # Indicates which fields in the provided
31
+ # {::Google::Cloud::DiscoveryEngine::V1beta::ServingConfig ServingConfig} to
32
+ # update. The following are NOT supported:
33
+ #
34
+ # * {::Google::Cloud::DiscoveryEngine::V1beta::ServingConfig#name ServingConfig.name}
35
+ #
36
+ # If not set, all supported fields are updated.
37
+ class UpdateServingConfigRequest
38
+ include ::Google::Protobuf::MessageExts
39
+ extend ::Google::Protobuf::MessageExts::ClassMethods
40
+ end
41
+
42
+ # Request for GetServingConfig method.
43
+ # @!attribute [rw] name
44
+ # @return [::String]
45
+ # Required. The resource name of the ServingConfig to get. Format:
46
+ # `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config_id}`
47
+ class GetServingConfigRequest
48
+ include ::Google::Protobuf::MessageExts
49
+ extend ::Google::Protobuf::MessageExts::ClassMethods
50
+ end
51
+
52
+ # Request for ListServingConfigs method.
53
+ # @!attribute [rw] parent
54
+ # @return [::String]
55
+ # Required. The dataStore resource name. Format:
56
+ # `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}`
57
+ # @!attribute [rw] page_size
58
+ # @return [::Integer]
59
+ # Optional. Maximum number of results to return. If unspecified, defaults
60
+ # to 100. If a value greater than 100 is provided, at most 100 results are
61
+ # returned.
62
+ # @!attribute [rw] page_token
63
+ # @return [::String]
64
+ # Optional. A page token, received from a previous `ListServingConfigs` call.
65
+ # Provide this to retrieve the subsequent page.
66
+ class ListServingConfigsRequest
67
+ include ::Google::Protobuf::MessageExts
68
+ extend ::Google::Protobuf::MessageExts::ClassMethods
69
+ end
70
+
71
+ # Response for ListServingConfigs method.
72
+ # @!attribute [rw] serving_configs
73
+ # @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::ServingConfig>]
74
+ # All the ServingConfigs for a given dataStore.
75
+ # @!attribute [rw] next_page_token
76
+ # @return [::String]
77
+ # Pagination token, if not returned indicates the last page.
78
+ class ListServingConfigsResponse
79
+ include ::Google::Protobuf::MessageExts
80
+ extend ::Google::Protobuf::MessageExts::ClassMethods
81
+ end
82
+ end
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,160 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module DiscoveryEngine
23
+ module V1beta
24
+ # SiteSearchEngine captures DataStore level site search persisting
25
+ # configurations. It is a singleton value per data store.
26
+ # @!attribute [rw] name
27
+ # @return [::String]
28
+ # The fully qualified resource name of the site search engine.
29
+ # Format: `projects/*/locations/*/dataStores/*/siteSearchEngine`
30
+ class SiteSearchEngine
31
+ include ::Google::Protobuf::MessageExts
32
+ extend ::Google::Protobuf::MessageExts::ClassMethods
33
+ end
34
+
35
+ # A target site for the SiteSearchEngine.
36
+ # @!attribute [r] name
37
+ # @return [::String]
38
+ # Output only. The fully qualified resource name of the target site.
39
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}`
40
+ # The `target_site_id` is system-generated.
41
+ # @!attribute [rw] provided_uri_pattern
42
+ # @return [::String]
43
+ # Required. Input only. The user provided URI pattern from which the
44
+ # `generated_uri_pattern` is generated.
45
+ # @!attribute [rw] type
46
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::TargetSite::Type]
47
+ # The type of the target site, e.g., whether the site is to be included or
48
+ # excluded.
49
+ # @!attribute [rw] exact_match
50
+ # @return [::Boolean]
51
+ # Input only. If set to false, a uri_pattern is generated to include all
52
+ # pages whose address contains the provided_uri_pattern. If set to true, an
53
+ # uri_pattern is generated to try to be an exact match of the
54
+ # provided_uri_pattern or just the specific page if the provided_uri_pattern
55
+ # is a specific one. provided_uri_pattern is always normalized to
56
+ # generate the URI pattern to be used by the search engine.
57
+ # @!attribute [r] generated_uri_pattern
58
+ # @return [::String]
59
+ # Output only. This is system-generated based on the provided_uri_pattern.
60
+ # @!attribute [r] site_verification_info
61
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::SiteVerificationInfo]
62
+ # Output only. Site ownership and validity verification status.
63
+ # @!attribute [r] indexing_status
64
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::TargetSite::IndexingStatus]
65
+ # Output only. Indexing status.
66
+ # @!attribute [r] update_time
67
+ # @return [::Google::Protobuf::Timestamp]
68
+ # Output only. The target site's last updated time.
69
+ # @!attribute [r] failure_reason
70
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::TargetSite::FailureReason]
71
+ # Output only. Failure reason.
72
+ class TargetSite
73
+ include ::Google::Protobuf::MessageExts
74
+ extend ::Google::Protobuf::MessageExts::ClassMethods
75
+
76
+ # Site search indexing failure reasons.
77
+ # @!attribute [rw] quota_failure
78
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::TargetSite::FailureReason::QuotaFailure]
79
+ # Failed due to insufficient quota.
80
+ class FailureReason
81
+ include ::Google::Protobuf::MessageExts
82
+ extend ::Google::Protobuf::MessageExts::ClassMethods
83
+
84
+ # Failed due to insufficient quota.
85
+ # @!attribute [rw] total_required_quota
86
+ # @return [::Integer]
87
+ # This number is an estimation on how much total quota this project needs
88
+ # to successfully complete indexing.
89
+ class QuotaFailure
90
+ include ::Google::Protobuf::MessageExts
91
+ extend ::Google::Protobuf::MessageExts::ClassMethods
92
+ end
93
+ end
94
+
95
+ # Possible target site types.
96
+ module Type
97
+ # This value is unused. In this case, server behavior defaults to
98
+ # {::Google::Cloud::DiscoveryEngine::V1beta::TargetSite::Type::INCLUDE Type.INCLUDE}.
99
+ TYPE_UNSPECIFIED = 0
100
+
101
+ # Include the target site.
102
+ INCLUDE = 1
103
+
104
+ # Exclude the target site.
105
+ EXCLUDE = 2
106
+ end
107
+
108
+ # Target site indexing status enumeration.
109
+ module IndexingStatus
110
+ # Defaults to SUCCEEDED.
111
+ INDEXING_STATUS_UNSPECIFIED = 0
112
+
113
+ # The target site is in the update queue and will be picked up by indexing
114
+ # pipeline.
115
+ PENDING = 1
116
+
117
+ # The target site fails to be indexed.
118
+ FAILED = 2
119
+
120
+ # The target site has been indexed.
121
+ SUCCEEDED = 3
122
+
123
+ # The previously indexed target site has been marked to be deleted. This is
124
+ # a transitioning state which will resulted in either:
125
+ # 1. target site deleted if unindexing is successful;
126
+ # 2. state reverts to SUCCEEDED if the unindexing fails.
127
+ DELETING = 4
128
+ end
129
+ end
130
+
131
+ # Verification information for target sites in advanced site search.
132
+ # @!attribute [rw] site_verification_state
133
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::SiteVerificationInfo::SiteVerificationState]
134
+ # Site verification state indicating the ownership and validity.
135
+ # @!attribute [rw] verify_time
136
+ # @return [::Google::Protobuf::Timestamp]
137
+ # Latest site verification time.
138
+ class SiteVerificationInfo
139
+ include ::Google::Protobuf::MessageExts
140
+ extend ::Google::Protobuf::MessageExts::ClassMethods
141
+
142
+ # Site verification state.
143
+ module SiteVerificationState
144
+ # Defaults to VERIFIED.
145
+ SITE_VERIFICATION_STATE_UNSPECIFIED = 0
146
+
147
+ # Site ownership verified.
148
+ VERIFIED = 1
149
+
150
+ # Site ownership pending verification or verification failed.
151
+ UNVERIFIED = 2
152
+
153
+ # Site exempt from verification, e.g., a public website that opens to all.
154
+ EXEMPTED = 3
155
+ end
156
+ end
157
+ end
158
+ end
159
+ end
160
+ end