google-cloud-discovery_engine-v1 0.7.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/discovery_engine/v1/completion_service/client.rb +228 -3
- data/lib/google/cloud/discovery_engine/v1/completion_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/client.rb +214 -3
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/service_stub.rb +136 -0
- data/lib/google/cloud/discovery_engine/v1/control_service/client.rb +875 -0
- data/lib/google/cloud/discovery_engine/v1/control_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/control_service/paths.rb +167 -0
- data/lib/google/cloud/discovery_engine/v1/control_service/rest/client.rb +814 -0
- data/lib/google/cloud/discovery_engine/v1/control_service/rest/service_stub.rb +440 -0
- data/lib/google/cloud/discovery_engine/v1/control_service/rest.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1/control_service.rb +58 -0
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/client.rb +911 -135
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/paths.rb +199 -0
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/client.rb +733 -6
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/service_stub.rb +520 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/client.rb +15 -7
- data/lib/google/cloud/discovery_engine/v1/data_store_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/data_store_service/paths.rb +45 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/client.rb +15 -7
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/document_service/client.rb +26 -14
- data/lib/google/cloud/discovery_engine/v1/document_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/document_service/rest/client.rb +26 -14
- data/lib/google/cloud/discovery_engine/v1/document_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/engine_service/client.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/engine_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/client.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/client.rb +471 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/paths.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/rest/client.rb +438 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/rest/service_stub.rb +129 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/client.rb +485 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/operations.rb +809 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/paths.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/rest/client.rb +452 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/rest/operations.rb +1114 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/rest/service_stub.rb +129 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/rest.rb +54 -0
- data/lib/google/cloud/discovery_engine/v1/project_service.rb +57 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/client.rb +481 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/paths.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/rest/client.rb +448 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/rest/service_stub.rb +129 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1/recommendation_service/client.rb +24 -19
- data/lib/google/cloud/discovery_engine/v1/recommendation_service/paths.rb +66 -0
- data/lib/google/cloud/discovery_engine/v1/recommendation_service/rest/client.rb +24 -19
- data/lib/google/cloud/discovery_engine/v1/rest.rb +4 -0
- data/lib/google/cloud/discovery_engine/v1/schema_service/client.rb +18 -10
- data/lib/google/cloud/discovery_engine/v1/schema_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/schema_service/rest/client.rb +18 -10
- data/lib/google/cloud/discovery_engine/v1/schema_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/search_service/client.rb +57 -9
- data/lib/google/cloud/discovery_engine/v1/search_service/paths.rb +68 -0
- data/lib/google/cloud/discovery_engine/v1/search_service/rest/client.rb +57 -9
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/client.rb +27 -12
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/client.rb +27 -12
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/user_event_service/client.rb +23 -6
- data/lib/google/cloud/discovery_engine/v1/user_event_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/user_event_service/paths.rb +21 -0
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/client.rb +23 -6
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/service_stub.rb +15 -0
- data/lib/google/cloud/discovery_engine/v1/version.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1.rb +4 -0
- data/lib/google/cloud/discoveryengine/v1/answer_pb.rb +69 -0
- data/lib/google/cloud/discoveryengine/v1/chunk_pb.rb +50 -0
- data/lib/google/cloud/discoveryengine/v1/common_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1/completion_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1/completion_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/completion_service_services_pb.rb +8 -0
- data/lib/google/cloud/discoveryengine/v1/control_pb.rb +55 -0
- data/lib/google/cloud/discoveryengine/v1/control_service_pb.rb +57 -0
- data/lib/google/cloud/discoveryengine/v1/control_service_services_pb.rb +69 -0
- data/lib/google/cloud/discoveryengine/v1/conversational_search_service_pb.rb +32 -1
- data/lib/google/cloud/discoveryengine/v1/conversational_search_service_services_pb.rb +25 -0
- data/lib/google/cloud/discoveryengine/v1/data_store_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1/document_processing_config_pb.rb +51 -0
- data/lib/google/cloud/discoveryengine/v1/document_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/engine_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/grounded_generation_service_pb.rb +52 -0
- data/lib/google/cloud/discoveryengine/v1/grounded_generation_service_services_pb.rb +45 -0
- data/lib/google/cloud/discoveryengine/v1/grounding_pb.rb +46 -0
- data/lib/google/cloud/discoveryengine/v1/import_config_pb.rb +6 -1
- data/lib/google/cloud/discoveryengine/v1/project_pb.rb +49 -0
- data/lib/google/cloud/discoveryengine/v1/project_service_pb.rb +50 -0
- data/lib/google/cloud/discoveryengine/v1/project_service_services_pb.rb +51 -0
- data/lib/google/cloud/discoveryengine/v1/purge_config_pb.rb +4 -1
- data/lib/google/cloud/discoveryengine/v1/rank_service_pb.rb +49 -0
- data/lib/google/cloud/discoveryengine/v1/rank_service_services_pb.rb +45 -0
- data/lib/google/cloud/discoveryengine/v1/search_service_pb.rb +9 -1
- data/lib/google/cloud/discoveryengine/v1/session_pb.rb +50 -0
- data/lib/google/cloud/discoveryengine/v1/site_search_engine_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/user_event_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/user_event_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/user_event_service_services_pb.rb +1 -1
- data/proto_docs/google/cloud/discoveryengine/v1/answer.rb +375 -0
- data/proto_docs/google/cloud/discoveryengine/v1/chunk.rb +119 -0
- data/proto_docs/google/cloud/discoveryengine/v1/common.rb +16 -0
- data/proto_docs/google/cloud/discoveryengine/v1/completion.rb +31 -0
- data/proto_docs/google/cloud/discoveryengine/v1/control.rb +207 -0
- data/proto_docs/google/cloud/discoveryengine/v1/control_service.rb +126 -0
- data/proto_docs/google/cloud/discoveryengine/v1/conversation.rb +2 -2
- data/proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb +529 -0
- data/proto_docs/google/cloud/discoveryengine/v1/data_store.rb +3 -0
- data/proto_docs/google/cloud/discoveryengine/v1/data_store_service.rb +2 -2
- data/proto_docs/google/cloud/discoveryengine/v1/document.rb +1 -1
- data/proto_docs/google/cloud/discoveryengine/v1/document_processing_config.rb +143 -0
- data/proto_docs/google/cloud/discoveryengine/v1/document_service.rb +5 -5
- data/proto_docs/google/cloud/discoveryengine/v1/engine.rb +3 -3
- data/proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb +144 -0
- data/proto_docs/google/cloud/discoveryengine/v1/grounding.rb +79 -0
- data/proto_docs/google/cloud/discoveryengine/v1/import_config.rb +118 -4
- data/proto_docs/google/cloud/discoveryengine/v1/project.rb +106 -0
- data/proto_docs/google/cloud/discoveryengine/v1/project_service.rb +57 -0
- data/proto_docs/google/cloud/discoveryengine/v1/purge_config.rb +42 -0
- data/proto_docs/google/cloud/discoveryengine/v1/rank_service.rb +124 -0
- data/proto_docs/google/cloud/discoveryengine/v1/recommendation_service.rb +20 -19
- data/proto_docs/google/cloud/discoveryengine/v1/schema_service.rb +5 -5
- data/proto_docs/google/cloud/discoveryengine/v1/search_service.rb +230 -20
- data/proto_docs/google/cloud/discoveryengine/v1/session.rb +88 -0
- data/proto_docs/google/cloud/discoveryengine/v1/site_search_engine.rb +3 -0
- data/proto_docs/google/cloud/discoveryengine/v1/user_event.rb +24 -3
- data/proto_docs/google/cloud/discoveryengine/v1/user_event_service.rb +13 -1
- metadata +58 -2
@@ -0,0 +1,106 @@
|
|
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
|
+
# Metadata and configurations for a Google Cloud project in the service.
|
25
|
+
# @!attribute [r] name
|
26
|
+
# @return [::String]
|
27
|
+
# Output only. Full resource name of the project, for example
|
28
|
+
# `projects/{project_number}`.
|
29
|
+
# Note that when making requests, project number and project id are both
|
30
|
+
# acceptable, but the server will always respond in project number.
|
31
|
+
# @!attribute [r] create_time
|
32
|
+
# @return [::Google::Protobuf::Timestamp]
|
33
|
+
# Output only. The timestamp when this project is created.
|
34
|
+
# @!attribute [r] provision_completion_time
|
35
|
+
# @return [::Google::Protobuf::Timestamp]
|
36
|
+
# Output only. The timestamp when this project is successfully provisioned.
|
37
|
+
# Empty value means this project is still provisioning and is not ready for
|
38
|
+
# use.
|
39
|
+
# @!attribute [r] service_terms_map
|
40
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::DiscoveryEngine::V1::Project::ServiceTerms}]
|
41
|
+
# Output only. A map of terms of services. The key is the `id` of
|
42
|
+
# {::Google::Cloud::DiscoveryEngine::V1::Project::ServiceTerms ServiceTerms}.
|
43
|
+
class Project
|
44
|
+
include ::Google::Protobuf::MessageExts
|
45
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
46
|
+
|
47
|
+
# Metadata about the terms of service.
|
48
|
+
# @!attribute [rw] id
|
49
|
+
# @return [::String]
|
50
|
+
# The unique identifier of this terms of service.
|
51
|
+
# Available terms:
|
52
|
+
#
|
53
|
+
# * `GA_DATA_USE_TERMS`: [Terms for data
|
54
|
+
# use](https://cloud.google.com/retail/data-use-terms). When using this as
|
55
|
+
# `id`, the acceptable
|
56
|
+
# {::Google::Cloud::DiscoveryEngine::V1::Project::ServiceTerms#version version}
|
57
|
+
# to provide is `2022-11-23`.
|
58
|
+
# @!attribute [rw] version
|
59
|
+
# @return [::String]
|
60
|
+
# The version string of the terms of service.
|
61
|
+
# For acceptable values, see the comments for
|
62
|
+
# {::Google::Cloud::DiscoveryEngine::V1::Project::ServiceTerms#id id} above.
|
63
|
+
# @!attribute [rw] state
|
64
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::Project::ServiceTerms::State]
|
65
|
+
# Whether the project has accepted/rejected the service terms or it is
|
66
|
+
# still pending.
|
67
|
+
# @!attribute [rw] accept_time
|
68
|
+
# @return [::Google::Protobuf::Timestamp]
|
69
|
+
# The last time when the project agreed to the terms of service.
|
70
|
+
# @!attribute [rw] decline_time
|
71
|
+
# @return [::Google::Protobuf::Timestamp]
|
72
|
+
# The last time when the project declined or revoked the agreement to terms
|
73
|
+
# of service.
|
74
|
+
class ServiceTerms
|
75
|
+
include ::Google::Protobuf::MessageExts
|
76
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
77
|
+
|
78
|
+
# The agreement states this terms of service.
|
79
|
+
module State
|
80
|
+
# The default value of the enum. This value is not actually used.
|
81
|
+
STATE_UNSPECIFIED = 0
|
82
|
+
|
83
|
+
# The project has given consent to the terms of service.
|
84
|
+
TERMS_ACCEPTED = 1
|
85
|
+
|
86
|
+
# The project is pending to review and accept the terms of service.
|
87
|
+
TERMS_PENDING = 2
|
88
|
+
|
89
|
+
# The project has declined or revoked the agreement to terms of service.
|
90
|
+
TERMS_DECLINED = 3
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
# @!attribute [rw] key
|
95
|
+
# @return [::String]
|
96
|
+
# @!attribute [rw] value
|
97
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::Project::ServiceTerms]
|
98
|
+
class ServiceTermsMapEntry
|
99
|
+
include ::Google::Protobuf::MessageExts
|
100
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module DiscoveryEngine
|
23
|
+
module V1
|
24
|
+
# Request for
|
25
|
+
# {::Google::Cloud::DiscoveryEngine::V1::ProjectService::Client#provision_project ProjectService.ProvisionProject}
|
26
|
+
# method.
|
27
|
+
# @!attribute [rw] name
|
28
|
+
# @return [::String]
|
29
|
+
# Required. Full resource name of a
|
30
|
+
# {::Google::Cloud::DiscoveryEngine::V1::Project Project}, such as
|
31
|
+
# `projects/{project_id_or_number}`.
|
32
|
+
# @!attribute [rw] accept_data_use_terms
|
33
|
+
# @return [::Boolean]
|
34
|
+
# Required. Set to `true` to specify that caller has read and would like to
|
35
|
+
# give consent to the [Terms for data
|
36
|
+
# use](https://cloud.google.com/retail/data-use-terms).
|
37
|
+
# @!attribute [rw] data_use_terms_version
|
38
|
+
# @return [::String]
|
39
|
+
# Required. The version of the [Terms for data
|
40
|
+
# use](https://cloud.google.com/retail/data-use-terms) that caller has read
|
41
|
+
# and would like to give consent to.
|
42
|
+
#
|
43
|
+
# Acceptable version is `2022-11-23`, and this may change over time.
|
44
|
+
class ProvisionProjectRequest
|
45
|
+
include ::Google::Protobuf::MessageExts
|
46
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
47
|
+
end
|
48
|
+
|
49
|
+
# Metadata associated with a project provision operation.
|
50
|
+
class ProvisionProjectMetadata
|
51
|
+
include ::Google::Protobuf::MessageExts
|
52
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -122,6 +122,48 @@ module Google
|
|
122
122
|
include ::Google::Protobuf::MessageExts
|
123
123
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
124
124
|
end
|
125
|
+
|
126
|
+
# Request message for
|
127
|
+
# {::Google::Cloud::DiscoveryEngine::V1::CompletionService::Client#purge_completion_suggestions CompletionService.PurgeCompletionSuggestions}
|
128
|
+
# method.
|
129
|
+
# @!attribute [rw] parent
|
130
|
+
# @return [::String]
|
131
|
+
# Required. The parent data store resource name for which to purge completion
|
132
|
+
# suggestions. Follows pattern
|
133
|
+
# projects/*/locations/*/collections/*/dataStores/*.
|
134
|
+
class PurgeCompletionSuggestionsRequest
|
135
|
+
include ::Google::Protobuf::MessageExts
|
136
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
137
|
+
end
|
138
|
+
|
139
|
+
# Response message for
|
140
|
+
# {::Google::Cloud::DiscoveryEngine::V1::CompletionService::Client#purge_completion_suggestions CompletionService.PurgeCompletionSuggestions}
|
141
|
+
# method.
|
142
|
+
# @!attribute [rw] purge_succeeded
|
143
|
+
# @return [::Boolean]
|
144
|
+
# Whether the completion suggestions were successfully purged.
|
145
|
+
# @!attribute [rw] error_samples
|
146
|
+
# @return [::Array<::Google::Rpc::Status>]
|
147
|
+
# A sample of errors encountered while processing the request.
|
148
|
+
class PurgeCompletionSuggestionsResponse
|
149
|
+
include ::Google::Protobuf::MessageExts
|
150
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
151
|
+
end
|
152
|
+
|
153
|
+
# Metadata related to the progress of the PurgeCompletionSuggestions
|
154
|
+
# operation. This is returned by the google.longrunning.Operation.metadata
|
155
|
+
# field.
|
156
|
+
# @!attribute [rw] create_time
|
157
|
+
# @return [::Google::Protobuf::Timestamp]
|
158
|
+
# Operation create time.
|
159
|
+
# @!attribute [rw] update_time
|
160
|
+
# @return [::Google::Protobuf::Timestamp]
|
161
|
+
# Operation last update time. If the operation is done, this is also the
|
162
|
+
# finish time.
|
163
|
+
class PurgeCompletionSuggestionsMetadata
|
164
|
+
include ::Google::Protobuf::MessageExts
|
165
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
166
|
+
end
|
125
167
|
end
|
126
168
|
end
|
127
169
|
end
|
@@ -0,0 +1,124 @@
|
|
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
|
+
# Record message for
|
25
|
+
# {::Google::Cloud::DiscoveryEngine::V1::RankService::Client#rank RankService.Rank} method.
|
26
|
+
# @!attribute [rw] id
|
27
|
+
# @return [::String]
|
28
|
+
# The unique ID to represent the record.
|
29
|
+
# @!attribute [rw] title
|
30
|
+
# @return [::String]
|
31
|
+
# The title of the record. Empty by default.
|
32
|
+
# At least one of
|
33
|
+
# {::Google::Cloud::DiscoveryEngine::V1::RankingRecord#title title} or
|
34
|
+
# {::Google::Cloud::DiscoveryEngine::V1::RankingRecord#content content} should be
|
35
|
+
# set otherwise an INVALID_ARGUMENT error is thrown.
|
36
|
+
# @!attribute [rw] content
|
37
|
+
# @return [::String]
|
38
|
+
# The content of the record. Empty by default.
|
39
|
+
# At least one of
|
40
|
+
# {::Google::Cloud::DiscoveryEngine::V1::RankingRecord#title title} or
|
41
|
+
# {::Google::Cloud::DiscoveryEngine::V1::RankingRecord#content content} should be
|
42
|
+
# set otherwise an INVALID_ARGUMENT error is thrown.
|
43
|
+
# @!attribute [rw] score
|
44
|
+
# @return [::Float]
|
45
|
+
# The score of this record based on the given query and selected model.
|
46
|
+
class RankingRecord
|
47
|
+
include ::Google::Protobuf::MessageExts
|
48
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
49
|
+
end
|
50
|
+
|
51
|
+
# Request message for
|
52
|
+
# {::Google::Cloud::DiscoveryEngine::V1::RankService::Client#rank RankService.Rank} method.
|
53
|
+
# @!attribute [rw] ranking_config
|
54
|
+
# @return [::String]
|
55
|
+
# Required. The resource name of the rank service config, such as
|
56
|
+
# `projects/{project_num}/locations/{location_id}/rankingConfigs/default_ranking_config`.
|
57
|
+
# @!attribute [rw] model
|
58
|
+
# @return [::String]
|
59
|
+
# The identifier of the model to use. It is one of:
|
60
|
+
#
|
61
|
+
# * `semantic-ranker-512@latest`: Semantic ranking model with maxiumn input
|
62
|
+
# token size 512.
|
63
|
+
#
|
64
|
+
# It is set to `semantic-ranker-512@latest` by default if unspecified.
|
65
|
+
# @!attribute [rw] top_n
|
66
|
+
# @return [::Integer]
|
67
|
+
# The number of results to return. If this is unset or no bigger than zero,
|
68
|
+
# returns all results.
|
69
|
+
# @!attribute [rw] query
|
70
|
+
# @return [::String]
|
71
|
+
# The query to use.
|
72
|
+
# @!attribute [rw] records
|
73
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1::RankingRecord>]
|
74
|
+
# Required. A list of records to rank. At most 200 records to rank.
|
75
|
+
# @!attribute [rw] ignore_record_details_in_response
|
76
|
+
# @return [::Boolean]
|
77
|
+
# If true, the response will contain only record ID and score. By default, it
|
78
|
+
# is false, the response will contain record details.
|
79
|
+
# @!attribute [rw] user_labels
|
80
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
81
|
+
# The user labels applied to a resource must meet the following requirements:
|
82
|
+
#
|
83
|
+
# * Each resource can have multiple labels, up to a maximum of 64.
|
84
|
+
# * Each label must be a key-value pair.
|
85
|
+
# * Keys have a minimum length of 1 character and a maximum length of 63
|
86
|
+
# characters and cannot be empty. Values can be empty and have a maximum
|
87
|
+
# length of 63 characters.
|
88
|
+
# * Keys and values can contain only lowercase letters, numeric characters,
|
89
|
+
# underscores, and dashes. All characters must use UTF-8 encoding, and
|
90
|
+
# international characters are allowed.
|
91
|
+
# * The key portion of a label must be unique. However, you can use the same
|
92
|
+
# key with multiple resources.
|
93
|
+
# * Keys must start with a lowercase letter or international character.
|
94
|
+
#
|
95
|
+
# See [Google Cloud
|
96
|
+
# Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
|
97
|
+
# for more details.
|
98
|
+
class RankRequest
|
99
|
+
include ::Google::Protobuf::MessageExts
|
100
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
101
|
+
|
102
|
+
# @!attribute [rw] key
|
103
|
+
# @return [::String]
|
104
|
+
# @!attribute [rw] value
|
105
|
+
# @return [::String]
|
106
|
+
class UserLabelsEntry
|
107
|
+
include ::Google::Protobuf::MessageExts
|
108
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
# Response message for
|
113
|
+
# {::Google::Cloud::DiscoveryEngine::V1::RankService::Client#rank RankService.Rank} method.
|
114
|
+
# @!attribute [rw] records
|
115
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1::RankingRecord>]
|
116
|
+
# A list of records sorted by descending score.
|
117
|
+
class RankResponse
|
118
|
+
include ::Google::Protobuf::MessageExts
|
119
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
|
30
30
|
#
|
31
31
|
# One default serving config is created along with your recommendation engine
|
32
|
-
# creation. The engine ID
|
32
|
+
# creation. The engine ID is used as the ID of the default serving
|
33
33
|
# config. For example, for Engine
|
34
34
|
# `projects/*/locations/global/collections/*/engines/my-engine`, you can use
|
35
35
|
# `projects/*/locations/global/collections/*/engines/my-engine/servingConfigs/my-engine`
|
@@ -57,9 +57,9 @@ module Google
|
|
57
57
|
# @!attribute [rw] page_size
|
58
58
|
# @return [::Integer]
|
59
59
|
# Maximum number of results to return. Set this property
|
60
|
-
# to the number of recommendation results needed. If zero, the service
|
61
|
-
#
|
62
|
-
# above 100
|
60
|
+
# to the number of recommendation results needed. If zero, the service
|
61
|
+
# chooses a reasonable default. The maximum allowed value is 100. Values
|
62
|
+
# above 100 are set to 100.
|
63
63
|
# @!attribute [rw] filter
|
64
64
|
# @return [::String]
|
65
65
|
# Filter for restricting recommendation results with a length limit of 5,000
|
@@ -80,19 +80,19 @@ module Google
|
|
80
80
|
# * (available: true) AND
|
81
81
|
# (launguage: ANY("en", "es")) OR (categories: ANY("Movie"))
|
82
82
|
#
|
83
|
-
# If your filter blocks all results, the API
|
83
|
+
# If your filter blocks all results, the API returns generic
|
84
84
|
# (unfiltered) popular Documents. If you only want results strictly matching
|
85
|
-
# the filters, set `strictFiltering` to
|
85
|
+
# the filters, set `strictFiltering` to `true` in
|
86
86
|
# {::Google::Cloud::DiscoveryEngine::V1::RecommendRequest#params RecommendRequest.params}
|
87
87
|
# to receive empty results instead.
|
88
88
|
#
|
89
|
-
# Note that the API
|
89
|
+
# Note that the API never returns
|
90
90
|
# {::Google::Cloud::DiscoveryEngine::V1::Document Document}s with `storageStatus`
|
91
|
-
#
|
91
|
+
# as `EXPIRED` or `DELETED` regardless of filter choices.
|
92
92
|
# @!attribute [rw] validate_only
|
93
93
|
# @return [::Boolean]
|
94
|
-
# Use validate only mode for this recommendation query. If set to true
|
95
|
-
# fake model
|
94
|
+
# Use validate only mode for this recommendation query. If set to `true`, a
|
95
|
+
# fake model is used that returns arbitrary Document IDs.
|
96
96
|
# Note that the validate only mode should only be used for testing the API,
|
97
97
|
# or if the model is not ready.
|
98
98
|
# @!attribute [rw] params
|
@@ -101,16 +101,17 @@ module Google
|
|
101
101
|
#
|
102
102
|
# Allowed values:
|
103
103
|
#
|
104
|
-
# * `returnDocument`: Boolean. If set to true
|
105
|
-
# object
|
104
|
+
# * `returnDocument`: Boolean. If set to `true`, the associated Document
|
105
|
+
# object is returned in
|
106
106
|
# {::Google::Cloud::DiscoveryEngine::V1::RecommendResponse::RecommendationResult#document RecommendResponse.RecommendationResult.document}.
|
107
|
-
# * `returnScore`: Boolean. If set to true, the recommendation
|
108
|
-
# corresponding to each returned Document
|
107
|
+
# * `returnScore`: Boolean. If set to true, the recommendation score
|
108
|
+
# corresponding to each returned Document is set in
|
109
109
|
# {::Google::Cloud::DiscoveryEngine::V1::RecommendResponse::RecommendationResult#metadata RecommendResponse.RecommendationResult.metadata}.
|
110
|
-
# The given
|
111
|
-
#
|
112
|
-
# * `strictFiltering`: Boolean. True by default. If set to false
|
113
|
-
#
|
110
|
+
# The given score indicates the probability of a Document conversion given
|
111
|
+
# the user's context and history.
|
112
|
+
# * `strictFiltering`: Boolean. True by default. If set to `false`, the
|
113
|
+
# service
|
114
|
+
# returns generic (unfiltered) popular Documents instead of empty if
|
114
115
|
# your filter blocks all recommendation results.
|
115
116
|
# * `diversityLevel`: String. Default empty. If set to be non-empty, then
|
116
117
|
# it needs to be one of:
|
@@ -201,7 +202,7 @@ module Google
|
|
201
202
|
# {::Google::Cloud::DiscoveryEngine::V1::RecommendRequest#params RecommendRequest.params}.
|
202
203
|
# @!attribute [rw] metadata
|
203
204
|
# @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}]
|
204
|
-
# Additional Document metadata
|
205
|
+
# Additional Document metadata or annotations.
|
205
206
|
#
|
206
207
|
# Possible values:
|
207
208
|
#
|
@@ -46,9 +46,9 @@ module Google
|
|
46
46
|
# return. The service may return fewer than this value.
|
47
47
|
#
|
48
48
|
# If unspecified, at most 100
|
49
|
-
# {::Google::Cloud::DiscoveryEngine::V1::Schema Schema}s
|
49
|
+
# {::Google::Cloud::DiscoveryEngine::V1::Schema Schema}s are returned.
|
50
50
|
#
|
51
|
-
# The maximum value is 1000; values above 1000
|
51
|
+
# The maximum value is 1000; values above 1000 are set to 1000.
|
52
52
|
# @!attribute [rw] page_token
|
53
53
|
# @return [::String]
|
54
54
|
# A page token, received from a previous
|
@@ -93,8 +93,8 @@ module Google
|
|
93
93
|
# @!attribute [rw] schema_id
|
94
94
|
# @return [::String]
|
95
95
|
# Required. The ID to use for the
|
96
|
-
# {::Google::Cloud::DiscoveryEngine::V1::Schema Schema}, which
|
97
|
-
#
|
96
|
+
# {::Google::Cloud::DiscoveryEngine::V1::Schema Schema}, which becomes the final
|
97
|
+
# component of the
|
98
98
|
# {::Google::Cloud::DiscoveryEngine::V1::Schema#name Schema.name}.
|
99
99
|
#
|
100
100
|
# This field should conform to
|
@@ -114,7 +114,7 @@ module Google
|
|
114
114
|
# @!attribute [rw] allow_missing
|
115
115
|
# @return [::Boolean]
|
116
116
|
# If set to true, and the {::Google::Cloud::DiscoveryEngine::V1::Schema Schema} is
|
117
|
-
# not found, a new {::Google::Cloud::DiscoveryEngine::V1::Schema Schema}
|
117
|
+
# not found, a new {::Google::Cloud::DiscoveryEngine::V1::Schema Schema} is
|
118
118
|
# created. In this situation, `update_mask` is ignored.
|
119
119
|
class UpdateSchemaRequest
|
120
120
|
include ::Google::Protobuf::MessageExts
|