google-cloud-discovery_engine-v1beta 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/client.rb +7 -3
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +7 -3
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +925 -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 +763 -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 +5 -4
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +5 -4
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/operations.rb +42 -0
- data/lib/google/cloud/discovery_engine/v1beta/rest.rb +2 -1
- 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 +14 -12
- data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +14 -12
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +2 -2
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +2 -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/completion_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/conversation_pb.rb +53 -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 +3 -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/cloud/discoveryengine/v1beta/common.rb +1 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/completion_service.rb +13 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/conversation.rb +134 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +175 -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 +161 -60
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb +37 -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 +15 -2
@@ -0,0 +1,47 @@
|
|
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
|
+
require "googleauth"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module DiscoveryEngine
|
24
|
+
module V1beta
|
25
|
+
module ConversationalSearchService
|
26
|
+
# Credentials for the ConversationalSearchService API.
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
|
+
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
30
|
+
]
|
31
|
+
self.env_vars = [
|
32
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
33
|
+
"GOOGLE_CLOUD_KEYFILE",
|
34
|
+
"GCLOUD_KEYFILE",
|
35
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
36
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
37
|
+
"GCLOUD_KEYFILE_JSON"
|
38
|
+
]
|
39
|
+
self.paths = [
|
40
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
41
|
+
]
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,176 @@
|
|
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
|
+
module ConversationalSearchService
|
25
|
+
# Path helper methods for the ConversationalSearchService API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Conversation resource string.
|
29
|
+
#
|
30
|
+
# @overload conversation_path(project:, location:, data_store:, conversation:)
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}`
|
34
|
+
#
|
35
|
+
# @param project [String]
|
36
|
+
# @param location [String]
|
37
|
+
# @param data_store [String]
|
38
|
+
# @param conversation [String]
|
39
|
+
#
|
40
|
+
# @overload conversation_path(project:, location:, collection:, data_store:, conversation:)
|
41
|
+
# The resource will be in the following format:
|
42
|
+
#
|
43
|
+
# `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}`
|
44
|
+
#
|
45
|
+
# @param project [String]
|
46
|
+
# @param location [String]
|
47
|
+
# @param collection [String]
|
48
|
+
# @param data_store [String]
|
49
|
+
# @param conversation [String]
|
50
|
+
#
|
51
|
+
# @return [::String]
|
52
|
+
def conversation_path **args
|
53
|
+
resources = {
|
54
|
+
"conversation:data_store:location:project" => (proc do |project:, location:, data_store:, conversation:|
|
55
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
56
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
57
|
+
raise ::ArgumentError, "data_store cannot contain /" if data_store.to_s.include? "/"
|
58
|
+
|
59
|
+
"projects/#{project}/locations/#{location}/dataStores/#{data_store}/conversations/#{conversation}"
|
60
|
+
end),
|
61
|
+
"collection:conversation:data_store:location:project" => (proc do |project:, location:, collection:, data_store:, conversation:|
|
62
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
63
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
64
|
+
raise ::ArgumentError, "collection cannot contain /" if collection.to_s.include? "/"
|
65
|
+
raise ::ArgumentError, "data_store cannot contain /" if data_store.to_s.include? "/"
|
66
|
+
|
67
|
+
"projects/#{project}/locations/#{location}/collections/#{collection}/dataStores/#{data_store}/conversations/#{conversation}"
|
68
|
+
end)
|
69
|
+
}
|
70
|
+
|
71
|
+
resource = resources[args.keys.sort.join(":")]
|
72
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
73
|
+
resource.call(**args)
|
74
|
+
end
|
75
|
+
|
76
|
+
##
|
77
|
+
# Create a fully-qualified DataStore resource string.
|
78
|
+
#
|
79
|
+
# @overload data_store_path(project:, location:, data_store:)
|
80
|
+
# The resource will be in the following format:
|
81
|
+
#
|
82
|
+
# `projects/{project}/locations/{location}/dataStores/{data_store}`
|
83
|
+
#
|
84
|
+
# @param project [String]
|
85
|
+
# @param location [String]
|
86
|
+
# @param data_store [String]
|
87
|
+
#
|
88
|
+
# @overload data_store_path(project:, location:, collection:, data_store:)
|
89
|
+
# The resource will be in the following format:
|
90
|
+
#
|
91
|
+
# `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
|
92
|
+
#
|
93
|
+
# @param project [String]
|
94
|
+
# @param location [String]
|
95
|
+
# @param collection [String]
|
96
|
+
# @param data_store [String]
|
97
|
+
#
|
98
|
+
# @return [::String]
|
99
|
+
def data_store_path **args
|
100
|
+
resources = {
|
101
|
+
"data_store:location:project" => (proc do |project:, location:, data_store:|
|
102
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
103
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
104
|
+
|
105
|
+
"projects/#{project}/locations/#{location}/dataStores/#{data_store}"
|
106
|
+
end),
|
107
|
+
"collection:data_store:location:project" => (proc do |project:, location:, collection:, data_store:|
|
108
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
109
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
110
|
+
raise ::ArgumentError, "collection cannot contain /" if collection.to_s.include? "/"
|
111
|
+
|
112
|
+
"projects/#{project}/locations/#{location}/collections/#{collection}/dataStores/#{data_store}"
|
113
|
+
end)
|
114
|
+
}
|
115
|
+
|
116
|
+
resource = resources[args.keys.sort.join(":")]
|
117
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
118
|
+
resource.call(**args)
|
119
|
+
end
|
120
|
+
|
121
|
+
##
|
122
|
+
# Create a fully-qualified ServingConfig resource string.
|
123
|
+
#
|
124
|
+
# @overload serving_config_path(project:, location:, data_store:, serving_config:)
|
125
|
+
# The resource will be in the following format:
|
126
|
+
#
|
127
|
+
# `projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}`
|
128
|
+
#
|
129
|
+
# @param project [String]
|
130
|
+
# @param location [String]
|
131
|
+
# @param data_store [String]
|
132
|
+
# @param serving_config [String]
|
133
|
+
#
|
134
|
+
# @overload serving_config_path(project:, location:, collection:, data_store:, serving_config:)
|
135
|
+
# The resource will be in the following format:
|
136
|
+
#
|
137
|
+
# `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}`
|
138
|
+
#
|
139
|
+
# @param project [String]
|
140
|
+
# @param location [String]
|
141
|
+
# @param collection [String]
|
142
|
+
# @param data_store [String]
|
143
|
+
# @param serving_config [String]
|
144
|
+
#
|
145
|
+
# @return [::String]
|
146
|
+
def serving_config_path **args
|
147
|
+
resources = {
|
148
|
+
"data_store:location:project:serving_config" => (proc do |project:, location:, data_store:, serving_config:|
|
149
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
150
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
151
|
+
raise ::ArgumentError, "data_store cannot contain /" if data_store.to_s.include? "/"
|
152
|
+
|
153
|
+
"projects/#{project}/locations/#{location}/dataStores/#{data_store}/servingConfigs/#{serving_config}"
|
154
|
+
end),
|
155
|
+
"collection:data_store:location:project:serving_config" => (proc do |project:, location:, collection:, data_store:, serving_config:|
|
156
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
157
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
158
|
+
raise ::ArgumentError, "collection cannot contain /" if collection.to_s.include? "/"
|
159
|
+
raise ::ArgumentError, "data_store cannot contain /" if data_store.to_s.include? "/"
|
160
|
+
|
161
|
+
"projects/#{project}/locations/#{location}/collections/#{collection}/dataStores/#{data_store}/servingConfigs/#{serving_config}"
|
162
|
+
end)
|
163
|
+
}
|
164
|
+
|
165
|
+
resource = resources[args.keys.sort.join(":")]
|
166
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
167
|
+
resource.call(**args)
|
168
|
+
end
|
169
|
+
|
170
|
+
extend self
|
171
|
+
end
|
172
|
+
end
|
173
|
+
end
|
174
|
+
end
|
175
|
+
end
|
176
|
+
end
|