google-cloud-discovery_engine-v1beta 0.3.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/client.rb +21 -3
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +21 -3
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +959 -0
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/paths.rb +176 -0
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +797 -0
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/service_stub.rb +450 -0
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +19 -4
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +19 -4
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/operations.rb +42 -0
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/client.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/client.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1beta/rest.rb +2 -1
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/client.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/client.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/operations.rb +42 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +57 -12
- data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +57 -12
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +16 -2
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +16 -2
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/operations.rb +42 -0
- data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1beta.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1beta/common_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1beta/completion_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/conversation_pb.rb +55 -0
- data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +61 -0
- data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_services_pb.rb +67 -0
- data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +7 -1
- data/lib/google/cloud/discoveryengine/v1beta/user_event_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/user_event_service_services_pb.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/common.rb +10 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/completion_service.rb +13 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/conversation.rb +138 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +209 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/document.rb +2 -4
- data/proto_docs/google/cloud/discoveryengine/v1beta/document_service.rb +2 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +17 -17
- data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +295 -61
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb +41 -29
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_event_service.rb +1 -1
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- metadata +36 -3
@@ -51,8 +51,7 @@ module Google
|
|
51
51
|
#
|
52
52
|
# * `document` is the default model for regular dataStores.
|
53
53
|
# * `search-history` is the default model for
|
54
|
-
# [IndustryVertical.SITE_SEARCH][
|
55
|
-
# dataStores.
|
54
|
+
# [IndustryVertical.SITE_SEARCH][] dataStores.
|
56
55
|
# @!attribute [rw] user_pseudo_id
|
57
56
|
# @return [::String]
|
58
57
|
# A unique identifier for tracking visitors. For example, this could be
|
@@ -69,6 +68,12 @@ module Google
|
|
69
68
|
#
|
70
69
|
# The field must be a UTF-8 encoded string with a length limit of 128
|
71
70
|
# characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
|
71
|
+
# @!attribute [rw] include_tail_suggestions
|
72
|
+
# @return [::Boolean]
|
73
|
+
# Indicates if tail suggestions should be returned if there are no
|
74
|
+
# suggestions that match the full query. Even if set to true, if there are
|
75
|
+
# suggestions that match the full query, those are returned and no
|
76
|
+
# tail suggestions are returned.
|
72
77
|
class CompleteQueryRequest
|
73
78
|
include ::Google::Protobuf::MessageExts
|
74
79
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -81,6 +86,12 @@ module Google
|
|
81
86
|
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::CompleteQueryResponse::QuerySuggestion>]
|
82
87
|
# Results of the matched query suggestions. The result list is ordered and
|
83
88
|
# the first result is a top suggestion.
|
89
|
+
# @!attribute [rw] tail_match_triggered
|
90
|
+
# @return [::Boolean]
|
91
|
+
# True if the returned suggestions are all tail suggestions.
|
92
|
+
#
|
93
|
+
# For tail matching to be triggered, include_tail_suggestions in the request
|
94
|
+
# must be true and there must be no suggestions that match the full query.
|
84
95
|
class CompleteQueryResponse
|
85
96
|
include ::Google::Protobuf::MessageExts
|
86
97
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -0,0 +1,138 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module DiscoveryEngine
|
23
|
+
module V1beta
|
24
|
+
# External conversation proto definition.
|
25
|
+
# @!attribute [rw] name
|
26
|
+
# @return [::String]
|
27
|
+
# Immutable. Fully qualified name
|
28
|
+
# `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
|
29
|
+
# @!attribute [rw] state
|
30
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::Conversation::State]
|
31
|
+
# The state of the Conversation.
|
32
|
+
# @!attribute [rw] user_pseudo_id
|
33
|
+
# @return [::String]
|
34
|
+
# A unique identifier for tracking users.
|
35
|
+
# @!attribute [rw] messages
|
36
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::ConversationMessage>]
|
37
|
+
# Conversation messages.
|
38
|
+
# @!attribute [r] start_time
|
39
|
+
# @return [::Google::Protobuf::Timestamp]
|
40
|
+
# Output only. The time the conversation started.
|
41
|
+
# @!attribute [r] end_time
|
42
|
+
# @return [::Google::Protobuf::Timestamp]
|
43
|
+
# Output only. The time the conversation finished.
|
44
|
+
class Conversation
|
45
|
+
include ::Google::Protobuf::MessageExts
|
46
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
47
|
+
|
48
|
+
# Enumeration of the state of the conversation.
|
49
|
+
module State
|
50
|
+
# Unknown.
|
51
|
+
STATE_UNSPECIFIED = 0
|
52
|
+
|
53
|
+
# Conversation is currently open.
|
54
|
+
IN_PROGRESS = 1
|
55
|
+
|
56
|
+
# Conversation has been completed.
|
57
|
+
COMPLETED = 2
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# Defines a reply message to user.
|
62
|
+
# @!attribute [rw] reply
|
63
|
+
# @return [::String]
|
64
|
+
# DEPRECATED: use `summary` instead.
|
65
|
+
# Text reply.
|
66
|
+
# @!attribute [rw] references
|
67
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::Reply::Reference>]
|
68
|
+
# References in the reply.
|
69
|
+
# @!attribute [rw] summary
|
70
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::Summary]
|
71
|
+
# Summary based on search results.
|
72
|
+
class Reply
|
73
|
+
include ::Google::Protobuf::MessageExts
|
74
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
75
|
+
|
76
|
+
# Defines reference in reply.
|
77
|
+
# @!attribute [rw] uri
|
78
|
+
# @return [::String]
|
79
|
+
# URI link reference.
|
80
|
+
# @!attribute [rw] anchor_text
|
81
|
+
# @return [::String]
|
82
|
+
# Anchor text.
|
83
|
+
# @!attribute [rw] start
|
84
|
+
# @return [::Integer]
|
85
|
+
# Anchor text start index.
|
86
|
+
# @!attribute [rw] end
|
87
|
+
# @return [::Integer]
|
88
|
+
# Anchor text end index.
|
89
|
+
class Reference
|
90
|
+
include ::Google::Protobuf::MessageExts
|
91
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
# Defines context of the conversation
|
96
|
+
# @!attribute [rw] context_documents
|
97
|
+
# @return [::Array<::String>]
|
98
|
+
# The current list of documents the user is seeing.
|
99
|
+
# It contains the document resource references.
|
100
|
+
# @!attribute [rw] active_document
|
101
|
+
# @return [::String]
|
102
|
+
# The current active document the user opened.
|
103
|
+
# It contains the document resource reference.
|
104
|
+
class ConversationContext
|
105
|
+
include ::Google::Protobuf::MessageExts
|
106
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
107
|
+
end
|
108
|
+
|
109
|
+
# Defines text input.
|
110
|
+
# @!attribute [rw] input
|
111
|
+
# @return [::String]
|
112
|
+
# Text input.
|
113
|
+
# @!attribute [rw] context
|
114
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::ConversationContext]
|
115
|
+
# Conversation context of the input.
|
116
|
+
class TextInput
|
117
|
+
include ::Google::Protobuf::MessageExts
|
118
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
119
|
+
end
|
120
|
+
|
121
|
+
# Defines a conversation message.
|
122
|
+
# @!attribute [rw] user_input
|
123
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::TextInput]
|
124
|
+
# User text input.
|
125
|
+
# @!attribute [rw] reply
|
126
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::Reply]
|
127
|
+
# Search reply.
|
128
|
+
# @!attribute [r] create_time
|
129
|
+
# @return [::Google::Protobuf::Timestamp]
|
130
|
+
# Output only. Message creation timestamp.
|
131
|
+
class ConversationMessage
|
132
|
+
include ::Google::Protobuf::MessageExts
|
133
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
134
|
+
end
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
138
|
+
end
|
@@ -0,0 +1,209 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module DiscoveryEngine
|
23
|
+
module V1beta
|
24
|
+
# Request message for
|
25
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Client#converse_conversation ConversationalSearchService.ConverseConversation}
|
26
|
+
# method.
|
27
|
+
# @!attribute [rw] name
|
28
|
+
# @return [::String]
|
29
|
+
# Required. The resource name of the Conversation to get. Format:
|
30
|
+
# `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
|
31
|
+
# Use
|
32
|
+
# `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
|
33
|
+
# to activate auto session mode, which automatically creates a new
|
34
|
+
# conversation inside a ConverseConversation session.
|
35
|
+
# @!attribute [rw] query
|
36
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::TextInput]
|
37
|
+
# Required. Current user input.
|
38
|
+
# @!attribute [rw] serving_config
|
39
|
+
# @return [::String]
|
40
|
+
# The resource name of the Serving Config to use. Format:
|
41
|
+
# `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
|
42
|
+
# If this is not set, the default serving config will be used.
|
43
|
+
# @!attribute [rw] conversation
|
44
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::Conversation]
|
45
|
+
# The conversation to be used by auto session only. The name field will be
|
46
|
+
# ignored as we automatically assign new name for the conversation in auto
|
47
|
+
# session.
|
48
|
+
# @!attribute [rw] safe_search
|
49
|
+
# @return [::Boolean]
|
50
|
+
# Whether to turn on safe search.
|
51
|
+
# @!attribute [rw] user_labels
|
52
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
53
|
+
# The user labels applied to a resource must meet the following requirements:
|
54
|
+
#
|
55
|
+
# * Each resource can have multiple labels, up to a maximum of 64.
|
56
|
+
# * Each label must be a key-value pair.
|
57
|
+
# * Keys have a minimum length of 1 character and a maximum length of 63
|
58
|
+
# characters and cannot be empty. Values can be empty and have a maximum
|
59
|
+
# length of 63 characters.
|
60
|
+
# * Keys and values can contain only lowercase letters, numeric characters,
|
61
|
+
# underscores, and dashes. All characters must use UTF-8 encoding, and
|
62
|
+
# international characters are allowed.
|
63
|
+
# * The key portion of a label must be unique. However, you can use the same
|
64
|
+
# key with multiple resources.
|
65
|
+
# * Keys must start with a lowercase letter or international character.
|
66
|
+
#
|
67
|
+
# See [Google Cloud
|
68
|
+
# Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
|
69
|
+
# for more details.
|
70
|
+
# @!attribute [rw] summary_spec
|
71
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec::SummarySpec]
|
72
|
+
# A specification for configuring the summary returned in the response.
|
73
|
+
class ConverseConversationRequest
|
74
|
+
include ::Google::Protobuf::MessageExts
|
75
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
76
|
+
|
77
|
+
# @!attribute [rw] key
|
78
|
+
# @return [::String]
|
79
|
+
# @!attribute [rw] value
|
80
|
+
# @return [::String]
|
81
|
+
class UserLabelsEntry
|
82
|
+
include ::Google::Protobuf::MessageExts
|
83
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# Response message for
|
88
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Client#converse_conversation ConversationalSearchService.ConverseConversation}
|
89
|
+
# method.
|
90
|
+
# @!attribute [rw] reply
|
91
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::Reply]
|
92
|
+
# Answer to the current query.
|
93
|
+
# @!attribute [rw] conversation
|
94
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::Conversation]
|
95
|
+
# Updated conversation including the answer.
|
96
|
+
# @!attribute [rw] related_questions
|
97
|
+
# @return [::Array<::String>]
|
98
|
+
# Suggested related questions.
|
99
|
+
# @!attribute [rw] search_results
|
100
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::SearchResult>]
|
101
|
+
# Search Results.
|
102
|
+
class ConverseConversationResponse
|
103
|
+
include ::Google::Protobuf::MessageExts
|
104
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
105
|
+
end
|
106
|
+
|
107
|
+
# Request for CreateConversation method.
|
108
|
+
# @!attribute [rw] parent
|
109
|
+
# @return [::String]
|
110
|
+
# Required. Full resource name of parent data store. Format:
|
111
|
+
# `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
|
112
|
+
# @!attribute [rw] conversation
|
113
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::Conversation]
|
114
|
+
# Required. The conversation to create.
|
115
|
+
class CreateConversationRequest
|
116
|
+
include ::Google::Protobuf::MessageExts
|
117
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
118
|
+
end
|
119
|
+
|
120
|
+
# Request for UpdateConversation method.
|
121
|
+
# @!attribute [rw] conversation
|
122
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::Conversation]
|
123
|
+
# Required. The Conversation to update.
|
124
|
+
# @!attribute [rw] update_mask
|
125
|
+
# @return [::Google::Protobuf::FieldMask]
|
126
|
+
# Indicates which fields in the provided
|
127
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::Conversation Conversation} to update.
|
128
|
+
# The following are NOT supported:
|
129
|
+
#
|
130
|
+
# * [conversation.name][]
|
131
|
+
#
|
132
|
+
# If not set or empty, all supported fields are updated.
|
133
|
+
class UpdateConversationRequest
|
134
|
+
include ::Google::Protobuf::MessageExts
|
135
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
136
|
+
end
|
137
|
+
|
138
|
+
# Request for DeleteConversation method.
|
139
|
+
# @!attribute [rw] name
|
140
|
+
# @return [::String]
|
141
|
+
# Required. The resource name of the Conversation to delete. Format:
|
142
|
+
# `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
|
143
|
+
class DeleteConversationRequest
|
144
|
+
include ::Google::Protobuf::MessageExts
|
145
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
146
|
+
end
|
147
|
+
|
148
|
+
# Request for GetConversation method.
|
149
|
+
# @!attribute [rw] name
|
150
|
+
# @return [::String]
|
151
|
+
# Required. The resource name of the Conversation to get. Format:
|
152
|
+
# `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
|
153
|
+
class GetConversationRequest
|
154
|
+
include ::Google::Protobuf::MessageExts
|
155
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
156
|
+
end
|
157
|
+
|
158
|
+
# Request for ListConversations method.
|
159
|
+
# @!attribute [rw] parent
|
160
|
+
# @return [::String]
|
161
|
+
# Required. The data store resource name. Format:
|
162
|
+
# `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
|
163
|
+
# @!attribute [rw] page_size
|
164
|
+
# @return [::Integer]
|
165
|
+
# Maximum number of results to return. If unspecified, defaults
|
166
|
+
# to 50. Max allowed value is 1000.
|
167
|
+
# @!attribute [rw] page_token
|
168
|
+
# @return [::String]
|
169
|
+
# A page token, received from a previous `ListConversations` call.
|
170
|
+
# Provide this to retrieve the subsequent page.
|
171
|
+
# @!attribute [rw] filter
|
172
|
+
# @return [::String]
|
173
|
+
# A filter to apply on the list results. The supported features are:
|
174
|
+
# user_pseudo_id, state.
|
175
|
+
#
|
176
|
+
# Example:
|
177
|
+
# "user_pseudo_id = some_id"
|
178
|
+
# @!attribute [rw] order_by
|
179
|
+
# @return [::String]
|
180
|
+
# A comma-separated list of fields to order by, sorted in ascending order.
|
181
|
+
# Use "desc" after a field name for descending.
|
182
|
+
# Supported fields:
|
183
|
+
# * `update_time`
|
184
|
+
# * `create_time`
|
185
|
+
# * `conversation_name`
|
186
|
+
#
|
187
|
+
# Example:
|
188
|
+
# "update_time desc"
|
189
|
+
# "create_time"
|
190
|
+
class ListConversationsRequest
|
191
|
+
include ::Google::Protobuf::MessageExts
|
192
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
193
|
+
end
|
194
|
+
|
195
|
+
# Response for ListConversations method.
|
196
|
+
# @!attribute [rw] conversations
|
197
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::Conversation>]
|
198
|
+
# All the Conversations for a given data store.
|
199
|
+
# @!attribute [rw] next_page_token
|
200
|
+
# @return [::String]
|
201
|
+
# Pagination token, if not returned indicates the last page.
|
202
|
+
class ListConversationsResponse
|
203
|
+
include ::Google::Protobuf::MessageExts
|
204
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
205
|
+
end
|
206
|
+
end
|
207
|
+
end
|
208
|
+
end
|
209
|
+
end
|
@@ -26,14 +26,12 @@ module Google
|
|
26
26
|
# @!attribute [rw] struct_data
|
27
27
|
# @return [::Google::Protobuf::Struct]
|
28
28
|
# The structured JSON data for the document. It should conform to the
|
29
|
-
# registered
|
30
|
-
# [Schema.schema][google.cloud.discoveryengine.v1beta.Schema.schema] or an
|
29
|
+
# registered {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema} or an
|
31
30
|
# `INVALID_ARGUMENT` error is thrown.
|
32
31
|
# @!attribute [rw] json_data
|
33
32
|
# @return [::String]
|
34
33
|
# The JSON string representation of the document. It should conform to the
|
35
|
-
# registered
|
36
|
-
# [Schema.schema][google.cloud.discoveryengine.v1beta.Schema.schema] or an
|
34
|
+
# registered {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema} or an
|
37
35
|
# `INVALID_ARGUMENT` error is thrown.
|
38
36
|
# @!attribute [rw] name
|
39
37
|
# @return [::String]
|
@@ -51,7 +51,8 @@ module Google
|
|
51
51
|
# Use `default_branch` as the branch ID, to list documents under the default
|
52
52
|
# branch.
|
53
53
|
#
|
54
|
-
# If the caller does not have permission to list
|
54
|
+
# If the caller does not have permission to list
|
55
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}s under this
|
55
56
|
# branch, regardless of whether or not this branch exists, a
|
56
57
|
# `PERMISSION_DENIED` error is returned.
|
57
58
|
# @!attribute [rw] page_size
|
@@ -44,15 +44,15 @@ module Google
|
|
44
44
|
# have a valid
|
45
45
|
# {::Google::Cloud::DiscoveryEngine::V1beta::Document#id Document.id}.
|
46
46
|
# * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by
|
47
|
-
# `input_uris`
|
47
|
+
# `input_uris` becomes a document, with the ID set to the first 128
|
48
48
|
# bits of SHA256(URI) encoded as a hex string.
|
49
49
|
# * `custom`: One custom data JSON per row in arbitrary format that conforms
|
50
|
-
# the defined {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema} of
|
51
|
-
# data store. This can only be used by
|
52
|
-
# * `csv`: A CSV file with header conforming the defined
|
50
|
+
# to the defined {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema} of
|
51
|
+
# the data store. This can only be used by Gen App Builder.
|
52
|
+
# * `csv`: A CSV file with header conforming to the defined
|
53
53
|
# {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema} of the
|
54
|
-
# data store. Each entry after the header
|
55
|
-
# This can only be used by
|
54
|
+
# data store. Each entry after the header is imported as a Document.
|
55
|
+
# This can only be used by Gen App Builder.
|
56
56
|
#
|
57
57
|
# Supported values for user even imports:
|
58
58
|
#
|
@@ -103,9 +103,9 @@ module Google
|
|
103
103
|
# {::Google::Cloud::DiscoveryEngine::V1beta::Document#json_data Document.json_data}
|
104
104
|
# or
|
105
105
|
# {::Google::Cloud::DiscoveryEngine::V1beta::Document#struct_data Document.struct_data}.
|
106
|
-
# * `custom`: One custom data per row in arbitrary format that conforms
|
107
|
-
# defined {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema} of the
|
108
|
-
# store. This can only be used by
|
106
|
+
# * `custom`: One custom data per row in arbitrary format that conforms to
|
107
|
+
# the defined {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema} of the
|
108
|
+
# data store. This can only be used by Gen App Builder.
|
109
109
|
class BigQuerySource
|
110
110
|
include ::Google::Protobuf::MessageExts
|
111
111
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -115,7 +115,7 @@ module Google
|
|
115
115
|
# @!attribute [rw] gcs_prefix
|
116
116
|
# @return [::String]
|
117
117
|
# Cloud Storage prefix for import errors. This must be an empty,
|
118
|
-
# existing Cloud Storage directory. Import errors
|
118
|
+
# existing Cloud Storage directory. Import errors are written to
|
119
119
|
# sharded files in this directory, one per line, as a JSON-encoded
|
120
120
|
# `google.rpc.Status` message.
|
121
121
|
class ImportErrorConfig
|
@@ -177,7 +177,7 @@ module Google
|
|
177
177
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
178
178
|
end
|
179
179
|
|
180
|
-
# Metadata related to the progress of the Import operation. This
|
180
|
+
# Metadata related to the progress of the Import operation. This is
|
181
181
|
# returned by the google.longrunning.Operation.metadata field.
|
182
182
|
# @!attribute [rw] create_time
|
183
183
|
# @return [::Google::Protobuf::Timestamp]
|
@@ -197,8 +197,8 @@ module Google
|
|
197
197
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
198
198
|
end
|
199
199
|
|
200
|
-
# Metadata related to the progress of the ImportDocuments operation. This
|
201
|
-
#
|
200
|
+
# Metadata related to the progress of the ImportDocuments operation. This is
|
201
|
+
# returned by the google.longrunning.Operation.metadata field.
|
202
202
|
# @!attribute [rw] create_time
|
203
203
|
# @return [::Google::Protobuf::Timestamp]
|
204
204
|
# Operation create time.
|
@@ -253,7 +253,7 @@ module Google
|
|
253
253
|
# `false`, {::Google::Cloud::DiscoveryEngine::V1beta::Document#id Document.id}s
|
254
254
|
# have to be specified using
|
255
255
|
# {::Google::Cloud::DiscoveryEngine::V1beta::ImportDocumentsRequest#id_field id_field},
|
256
|
-
#
|
256
|
+
# otherwise, documents without IDs fail to be imported.
|
257
257
|
#
|
258
258
|
# Only set this field when using
|
259
259
|
# {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource GcsSource} or
|
@@ -274,12 +274,12 @@ module Google
|
|
274
274
|
# {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource BigQuerySource} it is
|
275
275
|
# the column name of the BigQuery table where the unique ids are stored.
|
276
276
|
#
|
277
|
-
# The values of the JSON field or the BigQuery column
|
277
|
+
# The values of the JSON field or the BigQuery column are used as the
|
278
278
|
# {::Google::Cloud::DiscoveryEngine::V1beta::Document#id Document.id}s. The JSON
|
279
279
|
# field or the BigQuery column must be of string type, and the values must be
|
280
280
|
# set as valid strings conform to
|
281
281
|
# [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
|
282
|
-
# Otherwise, documents without valid IDs
|
282
|
+
# Otherwise, documents without valid IDs fail to be imported.
|
283
283
|
#
|
284
284
|
# Only set this field when using
|
285
285
|
# {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource GcsSource} or
|
@@ -312,7 +312,7 @@ module Google
|
|
312
312
|
# Indicates how imported documents are reconciled with the existing documents
|
313
313
|
# created or imported before.
|
314
314
|
module ReconciliationMode
|
315
|
-
# Defaults to INCREMENTAL
|
315
|
+
# Defaults to `INCREMENTAL`.
|
316
316
|
RECONCILIATION_MODE_UNSPECIFIED = 0
|
317
317
|
|
318
318
|
# Inserts new documents or updates existing documents.
|