google-cloud-discovery_engine-v1 0.4.2 → 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/lib/google/cloud/discovery_engine/v1/completion_service/client.rb +235 -4
- data/lib/google/cloud/discovery_engine/v1/completion_service/operations.rb +801 -0
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/client.rb +221 -4
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/operations.rb +1091 -0
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/service_stub.rb +136 -0
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest.rb +1 -0
- data/lib/google/cloud/discovery_engine/v1/completion_service.rb +1 -0
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/paths.rb +91 -0
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/service_stub.rb +45 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/client.rb +924 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/operations.rb +801 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/paths.rb +97 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/client.rb +863 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/operations.rb +1091 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/service_stub.rb +403 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest.rb +54 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service.rb +57 -0
- data/lib/google/cloud/discovery_engine/v1/document_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/client.rb +885 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/operations.rb +801 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/paths.rb +73 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/client.rb +824 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/operations.rb +1091 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/service_stub.rb +366 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest.rb +54 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service.rb +57 -0
- data/lib/google/cloud/discovery_engine/v1/rest.rb +3 -0
- data/lib/google/cloud/discovery_engine/v1/schema_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1/search_service/client.rb +40 -4
- data/lib/google/cloud/discovery_engine/v1/search_service/paths.rb +19 -0
- data/lib/google/cloud/discovery_engine/v1/search_service/rest/client.rb +40 -4
- data/lib/google/cloud/discovery_engine/v1/search_service/rest/service_stub.rb +8 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/client.rb +1631 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/operations.rb +801 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/paths.rb +127 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/client.rb +1521 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/operations.rb +1091 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/service_stub.rb +860 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest.rb +53 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service.rb +56 -0
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1/version.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1.rb +3 -0
- data/lib/google/cloud/discoveryengine/v1/common_pb.rb +5 -1
- data/lib/google/cloud/discoveryengine/v1/completion_pb.rb +45 -0
- data/lib/google/cloud/discoveryengine/v1/completion_service_pb.rb +4 -1
- data/lib/google/cloud/discoveryengine/v1/completion_service_services_pb.rb +8 -0
- data/lib/google/cloud/discoveryengine/v1/conversation_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/conversational_search_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/data_store_pb.rb +49 -0
- data/lib/google/cloud/discoveryengine/v1/data_store_service_pb.rb +62 -0
- data/lib/google/cloud/discoveryengine/v1/data_store_service_services_pb.rb +61 -0
- data/lib/google/cloud/discoveryengine/v1/document_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/document_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/engine_pb.rb +53 -0
- data/lib/google/cloud/discoveryengine/v1/engine_service_pb.rb +62 -0
- data/lib/google/cloud/discoveryengine/v1/engine_service_services_pb.rb +55 -0
- data/lib/google/cloud/discoveryengine/v1/import_config_pb.rb +7 -1
- data/lib/google/cloud/discoveryengine/v1/purge_config_pb.rb +6 -1
- data/lib/google/cloud/discoveryengine/v1/schema_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/schema_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/search_service_pb.rb +8 -1
- data/lib/google/cloud/discoveryengine/v1/site_search_engine_pb.rb +54 -0
- data/lib/google/cloud/discoveryengine/v1/site_search_engine_service_pb.rb +82 -0
- data/lib/google/cloud/discoveryengine/v1/site_search_engine_service_services_pb.rb +73 -0
- 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/proto_docs/google/cloud/discoveryengine/v1/common.rb +51 -0
- data/proto_docs/google/cloud/discoveryengine/v1/completion.rb +53 -0
- data/proto_docs/google/cloud/discoveryengine/v1/completion_service.rb +10 -4
- data/proto_docs/google/cloud/discoveryengine/v1/conversation.rb +2 -0
- data/proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb +19 -1
- data/proto_docs/google/cloud/discoveryengine/v1/data_store.rb +88 -0
- data/proto_docs/google/cloud/discoveryengine/v1/data_store_service.rb +214 -0
- data/proto_docs/google/cloud/discoveryengine/v1/document.rb +1 -1
- data/proto_docs/google/cloud/discoveryengine/v1/engine.rb +214 -0
- data/proto_docs/google/cloud/discoveryengine/v1/engine_service.rb +177 -0
- data/proto_docs/google/cloud/discoveryengine/v1/import_config.rb +66 -0
- data/proto_docs/google/cloud/discoveryengine/v1/purge_config.rb +41 -0
- data/proto_docs/google/cloud/discoveryengine/v1/search_service.rb +149 -4
- data/proto_docs/google/cloud/discoveryengine/v1/site_search_engine.rb +160 -0
- data/proto_docs/google/cloud/discoveryengine/v1/site_search_engine_service.rb +525 -0
- data/proto_docs/google/cloud/discoveryengine/v1/user_event.rb +3 -3
- metadata +48 -2
@@ -0,0 +1,73 @@
|
|
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
|
+
module EngineService
|
25
|
+
# Path helper methods for the EngineService API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Collection resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/collections/{collection}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param collection [String]
|
37
|
+
#
|
38
|
+
# @return [::String]
|
39
|
+
def collection_path project:, location:, collection:
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
42
|
+
|
43
|
+
"projects/#{project}/locations/#{location}/collections/#{collection}"
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# Create a fully-qualified Engine resource string.
|
48
|
+
#
|
49
|
+
# The resource will be in the following format:
|
50
|
+
#
|
51
|
+
# `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
|
52
|
+
#
|
53
|
+
# @param project [String]
|
54
|
+
# @param location [String]
|
55
|
+
# @param collection [String]
|
56
|
+
# @param engine [String]
|
57
|
+
#
|
58
|
+
# @return [::String]
|
59
|
+
def engine_path project:, location:, collection:, engine:
|
60
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
61
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
62
|
+
raise ::ArgumentError, "collection cannot contain /" if collection.to_s.include? "/"
|
63
|
+
|
64
|
+
"projects/#{project}/locations/#{location}/collections/#{collection}/engines/#{engine}"
|
65
|
+
end
|
66
|
+
|
67
|
+
extend self
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|