google-cloud-discovery_engine-v1beta 0.11.0 → 0.13.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/v1beta/completion_service/client.rb +9 -3
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +9 -3
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/operations.rb +35 -6
- data/lib/google/cloud/discovery_engine/v1beta/control_service/client.rb +875 -0
- data/lib/google/cloud/discovery_engine/v1beta/control_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/control_service/paths.rb +167 -0
- data/lib/google/cloud/discovery_engine/v1beta/control_service/rest/client.rb +814 -0
- data/lib/google/cloud/discovery_engine/v1beta/control_service/rest/service_stub.rb +440 -0
- data/lib/google/cloud/discovery_engine/v1beta/control_service/rest.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1beta/control_service.rb +58 -0
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +31 -15
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +31 -15
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/client.rb +15 -7
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/client.rb +15 -7
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/operations.rb +35 -6
- data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +24 -15
- data/lib/google/cloud/discovery_engine/v1beta/document_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +24 -15
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/operations.rb +35 -6
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/client.rb +19 -8
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/client.rb +19 -8
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/operations.rb +35 -6
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/client.rb +824 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/operations.rb +809 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/paths.rb +250 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/client.rb +770 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/operations.rb +1106 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/service_stub.rb +306 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest.rb +54 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service.rb +57 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/client.rb +25 -3
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/client.rb +25 -3
- data/lib/google/cloud/discovery_engine/v1beta/project_service/client.rb +485 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/operations.rb +809 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/paths.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/client.rb +452 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/operations.rb +1106 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/service_stub.rb +129 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/rest.rb +54 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service.rb +57 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/client.rb +24 -2
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest/client.rb +24 -2
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/client.rb +24 -19
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/paths.rb +66 -0
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/client.rb +24 -19
- data/lib/google/cloud/discovery_engine/v1beta/rest.rb +5 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/client.rb +1035 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/operations.rb +809 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/paths.rb +73 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/client.rb +967 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/operations.rb +1106 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/service_stub.rb +426 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest.rb +54 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service.rb +57 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/client.rb +911 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/paths.rb +69 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/rest/client.rb +850 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/rest/service_stub.rb +366 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/rest.rb +53 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service.rb +56 -0
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/client.rb +18 -10
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/client.rb +18 -10
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/operations.rb +35 -6
- data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +25 -12
- data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +25 -12
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/client.rb +104 -2
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/client.rb +97 -2
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/operations.rb +35 -6
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/service_stub.rb +59 -0
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/client.rb +9 -3
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest/client.rb +9 -3
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/client.rb +27 -12
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/client.rb +27 -12
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/operations.rb +35 -6
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +23 -6
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/paths.rb +21 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +23 -6
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/operations.rb +35 -6
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/service_stub.rb +8 -0
- data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1beta.rb +5 -0
- data/lib/google/cloud/discoveryengine/v1beta/answer_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1beta/chunk_pb.rb +50 -0
- data/lib/google/cloud/discoveryengine/v1beta/common_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1beta/control_pb.rb +55 -0
- data/lib/google/cloud/discoveryengine/v1beta/control_service_pb.rb +57 -0
- data/lib/google/cloud/discoveryengine/v1beta/control_service_services_pb.rb +69 -0
- data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/custom_tuning_model_pb.rb +48 -0
- data/lib/google/cloud/discoveryengine/v1beta/document_processing_config_pb.rb +4 -1
- data/lib/google/cloud/discoveryengine/v1beta/document_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/engine_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/evaluation_pb.rb +56 -0
- data/lib/google/cloud/discoveryengine/v1beta/evaluation_service_pb.rb +59 -0
- data/lib/google/cloud/discoveryengine/v1beta/evaluation_service_services_pb.rb +57 -0
- data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/grounding_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/import_config_pb.rb +7 -1
- data/lib/google/cloud/discoveryengine/v1beta/project_pb.rb +49 -0
- data/lib/google/cloud/discoveryengine/v1beta/project_service_pb.rb +50 -0
- data/lib/google/cloud/discoveryengine/v1beta/project_service_services_pb.rb +51 -0
- data/lib/google/cloud/discoveryengine/v1beta/rank_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/sample_query_pb.rb +49 -0
- data/lib/google/cloud/discoveryengine/v1beta/sample_query_service_pb.rb +59 -0
- data/lib/google/cloud/discoveryengine/v1beta/sample_query_service_services_pb.rb +63 -0
- data/lib/google/cloud/discoveryengine/v1beta/sample_query_set_pb.rb +47 -0
- data/lib/google/cloud/discoveryengine/v1beta/sample_query_set_service_pb.rb +57 -0
- data/lib/google/cloud/discoveryengine/v1beta/sample_query_set_service_services_pb.rb +59 -0
- data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +5 -1
- data/lib/google/cloud/discoveryengine/v1beta/search_tuning_service_pb.rb +5 -1
- data/lib/google/cloud/discoveryengine/v1beta/search_tuning_service_services_pb.rb +2 -0
- data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/user_event_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/user_event_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/user_event_service_services_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +14 -10
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/answer.rb +9 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/chunk.rb +119 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/common.rb +16 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/control.rb +209 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/control_service.rb +126 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/conversation.rb +2 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +29 -5
- data/proto_docs/google/cloud/discoveryengine/v1beta/custom_tuning_model.rb +75 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/data_store_service.rb +2 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/document.rb +1 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/document_processing_config.rb +44 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/document_service.rb +6 -7
- data/proto_docs/google/cloud/discoveryengine/v1beta/engine.rb +3 -3
- data/proto_docs/google/cloud/discoveryengine/v1beta/evaluation.rb +223 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/evaluation_service.rb +194 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/grounded_generation_service.rb +39 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/grounding.rb +3 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +89 -4
- data/proto_docs/google/cloud/discoveryengine/v1beta/project.rb +106 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/project_service.rb +57 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/rank_service.rb +28 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/recommendation_service.rb +20 -19
- data/proto_docs/google/cloud/discoveryengine/v1beta/sample_query.rb +82 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/sample_query_service.rb +179 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/sample_query_set.rb +57 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/sample_query_set_service.rb +186 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/schema_service.rb +5 -5
- data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +95 -28
- data/proto_docs/google/cloud/discoveryengine/v1beta/search_tuning_service.rb +31 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config.rb +11 -5
- data/proto_docs/google/cloud/discoveryengine/v1beta/session.rb +4 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/site_search_engine.rb +3 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb +24 -3
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_event_service.rb +13 -1
- metadata +72 -2
@@ -0,0 +1,126 @@
|
|
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 CreateControl method.
|
25
|
+
# @!attribute [rw] parent
|
26
|
+
# @return [::String]
|
27
|
+
# Required. Full resource name of parent data store. Format:
|
28
|
+
# `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}`
|
29
|
+
# or
|
30
|
+
# `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`.
|
31
|
+
# @!attribute [rw] control
|
32
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::Control]
|
33
|
+
# Required. The Control to create.
|
34
|
+
# @!attribute [rw] control_id
|
35
|
+
# @return [::String]
|
36
|
+
# Required. The ID to use for the Control, which will become the final
|
37
|
+
# component of the Control's resource name.
|
38
|
+
#
|
39
|
+
# This value must be within 1-63 characters.
|
40
|
+
# Valid characters are /[a-z][0-9]-_/.
|
41
|
+
class CreateControlRequest
|
42
|
+
include ::Google::Protobuf::MessageExts
|
43
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
44
|
+
end
|
45
|
+
|
46
|
+
# Request for UpdateControl method.
|
47
|
+
# @!attribute [rw] control
|
48
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::Control]
|
49
|
+
# Required. The Control to update.
|
50
|
+
# @!attribute [rw] update_mask
|
51
|
+
# @return [::Google::Protobuf::FieldMask]
|
52
|
+
# Optional. Indicates which fields in the provided
|
53
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::Control Control} to update. The
|
54
|
+
# following are NOT supported:
|
55
|
+
#
|
56
|
+
# * {::Google::Cloud::DiscoveryEngine::V1beta::Control#name Control.name}
|
57
|
+
# * {::Google::Cloud::DiscoveryEngine::V1beta::Control#solution_type Control.solution_type}
|
58
|
+
#
|
59
|
+
# If not set or empty, all supported fields are updated.
|
60
|
+
class UpdateControlRequest
|
61
|
+
include ::Google::Protobuf::MessageExts
|
62
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
63
|
+
end
|
64
|
+
|
65
|
+
# Request for DeleteControl method.
|
66
|
+
# @!attribute [rw] name
|
67
|
+
# @return [::String]
|
68
|
+
# Required. The resource name of the Control to delete. Format:
|
69
|
+
# `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
|
70
|
+
class DeleteControlRequest
|
71
|
+
include ::Google::Protobuf::MessageExts
|
72
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
73
|
+
end
|
74
|
+
|
75
|
+
# Request for GetControl method.
|
76
|
+
# @!attribute [rw] name
|
77
|
+
# @return [::String]
|
78
|
+
# Required. The resource name of the Control to get. Format:
|
79
|
+
# `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
|
80
|
+
class GetControlRequest
|
81
|
+
include ::Google::Protobuf::MessageExts
|
82
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
83
|
+
end
|
84
|
+
|
85
|
+
# Request for ListControls method.
|
86
|
+
# @!attribute [rw] parent
|
87
|
+
# @return [::String]
|
88
|
+
# Required. The data store resource name. Format:
|
89
|
+
# `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}`
|
90
|
+
# or
|
91
|
+
# `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`.
|
92
|
+
# @!attribute [rw] page_size
|
93
|
+
# @return [::Integer]
|
94
|
+
# Optional. Maximum number of results to return. If unspecified, defaults
|
95
|
+
# to 50. Max allowed value is 1000.
|
96
|
+
# @!attribute [rw] page_token
|
97
|
+
# @return [::String]
|
98
|
+
# Optional. A page token, received from a previous `ListControls` call.
|
99
|
+
# Provide this to retrieve the subsequent page.
|
100
|
+
# @!attribute [rw] filter
|
101
|
+
# @return [::String]
|
102
|
+
# Optional. A filter to apply on the list results. Supported features:
|
103
|
+
#
|
104
|
+
# * List all the products under the parent branch if
|
105
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::ListControlsRequest#filter filter} is
|
106
|
+
# unset. Currently this field is unsupported.
|
107
|
+
class ListControlsRequest
|
108
|
+
include ::Google::Protobuf::MessageExts
|
109
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
110
|
+
end
|
111
|
+
|
112
|
+
# Response for ListControls method.
|
113
|
+
# @!attribute [rw] controls
|
114
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::Control>]
|
115
|
+
# All the Controls for a given data store.
|
116
|
+
# @!attribute [rw] next_page_token
|
117
|
+
# @return [::String]
|
118
|
+
# Pagination token, if not returned indicates the last page.
|
119
|
+
class ListControlsResponse
|
120
|
+
include ::Google::Protobuf::MessageExts
|
121
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
@@ -25,9 +25,9 @@ module Google
|
|
25
25
|
# @!attribute [rw] name
|
26
26
|
# @return [::String]
|
27
27
|
# Immutable. Fully qualified name
|
28
|
-
# `project
|
28
|
+
# `projects/{project}/locations/global/collections/{collection}/dataStore/*/conversations/*`
|
29
29
|
# or
|
30
|
-
# `project
|
30
|
+
# `projects/{project}/locations/global/collections/{collection}/engines/*/conversations/*`.
|
31
31
|
# @!attribute [rw] state
|
32
32
|
# @return [::Google::Cloud::DiscoveryEngine::V1beta::Conversation::State]
|
33
33
|
# The state of the Conversation.
|
@@ -247,8 +247,8 @@ module Google
|
|
247
247
|
#
|
248
248
|
# When session field is not set, the API is in sessionless mode.
|
249
249
|
#
|
250
|
-
# We support auto session mode: users can use the wildcard symbol
|
251
|
-
# session
|
250
|
+
# We support auto session mode: users can use the wildcard symbol `-` as
|
251
|
+
# session ID. A new ID will be automatically generated and assigned.
|
252
252
|
# @!attribute [rw] safety_spec
|
253
253
|
# @return [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SafetySpec]
|
254
254
|
# Model specification.
|
@@ -347,6 +347,13 @@ module Google
|
|
347
347
|
# non-answer seeking query. If this field is set to `true`, we skip
|
348
348
|
# generating answers for non-answer seeking queries and return
|
349
349
|
# fallback messages instead.
|
350
|
+
# @!attribute [rw] ignore_low_relevant_content
|
351
|
+
# @return [::Boolean]
|
352
|
+
# Specifies whether to filter out queries that have low relevance.
|
353
|
+
#
|
354
|
+
# If this field is set to `false`, all search results are used regardless
|
355
|
+
# of relevance to generate answers. If set to `true` or unset, the behavior
|
356
|
+
# will be determined automatically by the service.
|
350
357
|
class AnswerGenerationSpec
|
351
358
|
include ::Google::Protobuf::MessageExts
|
352
359
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -421,6 +428,18 @@ module Google
|
|
421
428
|
# [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
|
422
429
|
#
|
423
430
|
# If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
|
431
|
+
# @!attribute [rw] search_result_mode
|
432
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec::SearchResultMode]
|
433
|
+
# Specifies the search result mode. If unspecified, the
|
434
|
+
# search result mode defaults to `DOCUMENTS`.
|
435
|
+
# See [parse and chunk
|
436
|
+
# documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
|
437
|
+
# @!attribute [rw] data_store_specs
|
438
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::DataStoreSpec>]
|
439
|
+
# Specs defining dataStores to filter on in a search call and
|
440
|
+
# configurations for those dataStores. This is only considered for
|
441
|
+
# engines with multiple dataStores use case. For single dataStore within
|
442
|
+
# an engine, they should use the specs at the top level.
|
424
443
|
class SearchParams
|
425
444
|
include ::Google::Protobuf::MessageExts
|
426
445
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -561,7 +580,7 @@ module Google
|
|
561
580
|
# @!attribute [rw] max_rephrase_steps
|
562
581
|
# @return [::Integer]
|
563
582
|
# Max rephrase steps.
|
564
|
-
# The max number is
|
583
|
+
# The max number is 5 steps.
|
565
584
|
# If not set or set to < 1, it will be set to 1 by default.
|
566
585
|
class QueryRephraserSpec
|
567
586
|
include ::Google::Protobuf::MessageExts
|
@@ -576,8 +595,10 @@ module Google
|
|
576
595
|
# @!attribute [rw] answer
|
577
596
|
# @return [::Google::Cloud::DiscoveryEngine::V1beta::Answer]
|
578
597
|
# Answer resource object.
|
579
|
-
# If
|
580
|
-
#
|
598
|
+
# If
|
599
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::QueryUnderstandingSpec::QueryRephraserSpec#max_rephrase_steps AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps}
|
600
|
+
# is greater than 1, use
|
601
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::Answer#name Answer.name} to fetch
|
581
602
|
# answer information using
|
582
603
|
# {::Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Client#get_answer ConversationalSearchService.GetAnswer}
|
583
604
|
# API.
|
@@ -587,6 +608,9 @@ module Google
|
|
587
608
|
# It will be only available when session field is set and valid in the
|
588
609
|
# {::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest AnswerQueryRequest}
|
589
610
|
# request.
|
611
|
+
# @!attribute [rw] answer_query_token
|
612
|
+
# @return [::String]
|
613
|
+
# A global unique ID used for logging.
|
590
614
|
class AnswerQueryResponse
|
591
615
|
include ::Google::Protobuf::MessageExts
|
592
616
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -0,0 +1,75 @@
|
|
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
|
+
# Metadata that describes a custom tuned model.
|
25
|
+
# @!attribute [rw] name
|
26
|
+
# @return [::String]
|
27
|
+
# Required. The fully qualified resource name of the model.
|
28
|
+
#
|
29
|
+
# Format:
|
30
|
+
# `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}`
|
31
|
+
# model must be an alpha-numerical string with limit of 40 characters.
|
32
|
+
# @!attribute [rw] display_name
|
33
|
+
# @return [::String]
|
34
|
+
# The display name of the model.
|
35
|
+
# @!attribute [rw] model_version
|
36
|
+
# @return [::Integer]
|
37
|
+
# The version of the model.
|
38
|
+
# @!attribute [rw] model_state
|
39
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::CustomTuningModel::ModelState]
|
40
|
+
# The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`).
|
41
|
+
# @!attribute [rw] create_time
|
42
|
+
# @return [::Google::Protobuf::Timestamp]
|
43
|
+
# Timestamp the Model was created at.
|
44
|
+
# @!attribute [rw] training_start_time
|
45
|
+
# @return [::Google::Protobuf::Timestamp]
|
46
|
+
# Timestamp the model training was initiated.
|
47
|
+
class CustomTuningModel
|
48
|
+
include ::Google::Protobuf::MessageExts
|
49
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
50
|
+
|
51
|
+
# The state of the model.
|
52
|
+
module ModelState
|
53
|
+
# Default value.
|
54
|
+
MODEL_STATE_UNSPECIFIED = 0
|
55
|
+
|
56
|
+
# The model is in a paused training state.
|
57
|
+
TRAINING_PAUSED = 1
|
58
|
+
|
59
|
+
# The model is currently training.
|
60
|
+
TRAINING = 2
|
61
|
+
|
62
|
+
# The model has successfully completed training.
|
63
|
+
TRAINING_COMPLETE = 3
|
64
|
+
|
65
|
+
# The model is ready for serving.
|
66
|
+
READY_FOR_SERVING = 4
|
67
|
+
|
68
|
+
# The model training failed.
|
69
|
+
TRAINING_FAILED = 5
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -124,8 +124,8 @@ module Google
|
|
124
124
|
# INVALID_ARGUMENT error is returned.
|
125
125
|
# @!attribute [rw] filter
|
126
126
|
# @return [::String]
|
127
|
-
# Filter by solution type.
|
128
|
-
# 'solution_type:SOLUTION_TYPE_SEARCH'
|
127
|
+
# Filter by solution type .
|
128
|
+
# For example: `filter = 'solution_type:SOLUTION_TYPE_SEARCH'`
|
129
129
|
class ListDataStoresRequest
|
130
130
|
include ::Google::Protobuf::MessageExts
|
131
131
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -92,7 +92,7 @@ module Google
|
|
92
92
|
# @return [::String]
|
93
93
|
# The URI of the content. Only Cloud Storage URIs (e.g.
|
94
94
|
# `gs://bucket-name/path/to/file`) are supported. The maximum file size
|
95
|
-
# is 2.5 MB for text-based formats,
|
95
|
+
# is 2.5 MB for text-based formats, 200 MB for other formats.
|
96
96
|
# @!attribute [rw] mime_type
|
97
97
|
# @return [::String]
|
98
98
|
# The MIME type of the content. Supported types:
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# The full resource name of the Document Processing Config.
|
33
33
|
# Format:
|
34
34
|
# `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
|
35
|
+
# @!attribute [rw] chunking_config
|
36
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::DocumentProcessingConfig::ChunkingConfig]
|
37
|
+
# Whether chunking mode is enabled.
|
35
38
|
# @!attribute [rw] default_parsing_config
|
36
39
|
# @return [::Google::Cloud::DiscoveryEngine::V1beta::DocumentProcessingConfig::ParsingConfig]
|
37
40
|
# Configurations for default Document parser.
|
@@ -42,16 +45,46 @@ module Google
|
|
42
45
|
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::DiscoveryEngine::V1beta::DocumentProcessingConfig::ParsingConfig}]
|
43
46
|
# Map from file type to override the default parsing configuration based on
|
44
47
|
# the file type. Supported keys:
|
48
|
+
#
|
45
49
|
# * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
|
46
50
|
# parsing or layout parsing is supported.
|
47
51
|
# * `html`: Override parsing config for HTML files, only digital parsing and
|
48
|
-
#
|
52
|
+
# layout parsing are supported.
|
49
53
|
# * `docx`: Override parsing config for DOCX files, only digital parsing and
|
50
|
-
#
|
54
|
+
# layout parsing are supported.
|
55
|
+
# * `pptx`: Override parsing config for PPTX files, only digital parsing and
|
56
|
+
# layout parsing are supported.
|
51
57
|
class DocumentProcessingConfig
|
52
58
|
include ::Google::Protobuf::MessageExts
|
53
59
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
54
60
|
|
61
|
+
# Configuration for chunking config.
|
62
|
+
# @!attribute [rw] layout_based_chunking_config
|
63
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::DocumentProcessingConfig::ChunkingConfig::LayoutBasedChunkingConfig]
|
64
|
+
# Configuration for the layout based chunking.
|
65
|
+
class ChunkingConfig
|
66
|
+
include ::Google::Protobuf::MessageExts
|
67
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
68
|
+
|
69
|
+
# Configuration for the layout based chunking.
|
70
|
+
# @!attribute [rw] chunk_size
|
71
|
+
# @return [::Integer]
|
72
|
+
# The token size limit for each chunk.
|
73
|
+
#
|
74
|
+
# Supported values: 100-500 (inclusive).
|
75
|
+
# Default value: 500.
|
76
|
+
# @!attribute [rw] include_ancestor_headings
|
77
|
+
# @return [::Boolean]
|
78
|
+
# Whether to include appending different levels of headings to chunks
|
79
|
+
# from the middle of the document to prevent context loss.
|
80
|
+
#
|
81
|
+
# Default value: False.
|
82
|
+
class LayoutBasedChunkingConfig
|
83
|
+
include ::Google::Protobuf::MessageExts
|
84
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
55
88
|
# Related configurations applied to a specific type of document parser.
|
56
89
|
# @!attribute [rw] digital_parsing_config
|
57
90
|
# @return [::Google::Cloud::DiscoveryEngine::V1beta::DocumentProcessingConfig::ParsingConfig::DigitalParsingConfig]
|
@@ -60,6 +93,9 @@ module Google
|
|
60
93
|
# @return [::Google::Cloud::DiscoveryEngine::V1beta::DocumentProcessingConfig::ParsingConfig::OcrParsingConfig]
|
61
94
|
# Configurations applied to OCR parser. Currently it only applies to
|
62
95
|
# PDFs.
|
96
|
+
# @!attribute [rw] layout_parsing_config
|
97
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::DocumentProcessingConfig::ParsingConfig::LayoutParsingConfig]
|
98
|
+
# Configurations applied to layout parser.
|
63
99
|
class ParsingConfig
|
64
100
|
include ::Google::Protobuf::MessageExts
|
65
101
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -84,6 +120,12 @@ module Google
|
|
84
120
|
include ::Google::Protobuf::MessageExts
|
85
121
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
86
122
|
end
|
123
|
+
|
124
|
+
# The layout parsing configurations for documents.
|
125
|
+
class LayoutParsingConfig
|
126
|
+
include ::Google::Protobuf::MessageExts
|
127
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
128
|
+
end
|
87
129
|
end
|
88
130
|
|
89
131
|
# @!attribute [rw] key
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
# @return [::Integer]
|
60
60
|
# Maximum number of {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}s
|
61
61
|
# to return. If unspecified, defaults to 100. The maximum allowed value is
|
62
|
-
# 1000. Values above 1000
|
62
|
+
# 1000. Values above 1000 are set to 1000.
|
63
63
|
#
|
64
64
|
# If this field is negative, an `INVALID_ARGUMENT` error is returned.
|
65
65
|
# @!attribute [rw] page_token
|
@@ -110,8 +110,8 @@ module Google
|
|
110
110
|
# @!attribute [rw] document_id
|
111
111
|
# @return [::String]
|
112
112
|
# Required. The ID to use for the
|
113
|
-
# {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}, which
|
114
|
-
#
|
113
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}, which becomes the
|
114
|
+
# final component of the
|
115
115
|
# {::Google::Cloud::DiscoveryEngine::V1beta::Document#name Document.name}.
|
116
116
|
#
|
117
117
|
# If the caller does not have permission to create the
|
@@ -148,14 +148,13 @@ module Google
|
|
148
148
|
# is not set, a `NOT_FOUND` error is returned.
|
149
149
|
# @!attribute [rw] allow_missing
|
150
150
|
# @return [::Boolean]
|
151
|
-
# If set to true
|
151
|
+
# If set to `true` and the
|
152
152
|
# {::Google::Cloud::DiscoveryEngine::V1beta::Document Document} is not found, a
|
153
|
-
# new {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}
|
154
|
-
# created.
|
153
|
+
# new {::Google::Cloud::DiscoveryEngine::V1beta::Document Document} is be created.
|
155
154
|
# @!attribute [rw] update_mask
|
156
155
|
# @return [::Google::Protobuf::FieldMask]
|
157
156
|
# Indicates which fields in the provided imported 'document' to update. If
|
158
|
-
# not set,
|
157
|
+
# not set, by default updates all fields.
|
159
158
|
class UpdateDocumentRequest
|
160
159
|
include ::Google::Protobuf::MessageExts
|
161
160
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -94,7 +94,7 @@ module Google
|
|
94
94
|
# The restriction of the Engine industry vertical is based on
|
95
95
|
# {::Google::Cloud::DiscoveryEngine::V1beta::DataStore DataStore}: If unspecified,
|
96
96
|
# default to `GENERIC`. Vertical on Engine has to match vertical of the
|
97
|
-
# DataStore
|
97
|
+
# DataStore linked to the engine.
|
98
98
|
# @!attribute [rw] common_config
|
99
99
|
# @return [::Google::Cloud::DiscoveryEngine::V1beta::Engine::CommonConfig]
|
100
100
|
# Common config spec that specifies the metadata of the engine.
|
@@ -192,8 +192,8 @@ module Google
|
|
192
192
|
# Common configurations for an Engine.
|
193
193
|
# @!attribute [rw] company_name
|
194
194
|
# @return [::String]
|
195
|
-
#
|
196
|
-
#
|
195
|
+
# The name of the company, business or entity that is associated with the
|
196
|
+
# engine. Setting this may help improve LLM related features.
|
197
197
|
class CommonConfig
|
198
198
|
include ::Google::Protobuf::MessageExts
|
199
199
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|