google-cloud-ces-v1beta 1.1.0 → 1.2.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/ces/v1beta/agent_card_pb.rb +3 -1
- data/lib/google/cloud/ces/v1beta/agent_pb.rb +3 -1
- data/lib/google/cloud/ces/v1beta/agent_service/client.rb +105 -1
- data/lib/google/cloud/ces/v1beta/agent_service/paths.rb +54 -11
- data/lib/google/cloud/ces/v1beta/agent_service/rest/client.rb +98 -1
- data/lib/google/cloud/ces/v1beta/agent_service/rest/service_stub.rb +62 -0
- data/lib/google/cloud/ces/v1beta/agent_service_pb.rb +3 -1
- data/lib/google/cloud/ces/v1beta/agent_service_services_pb.rb +2 -0
- data/lib/google/cloud/ces/v1beta/app_pb.rb +6 -1
- data/lib/google/cloud/ces/v1beta/app_version_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/assistant_service/client.rb +1023 -0
- data/lib/google/cloud/ces/v1beta/assistant_service/credentials.rb +48 -0
- data/lib/google/cloud/ces/v1beta/assistant_service/paths.rb +73 -0
- data/lib/google/cloud/ces/v1beta/assistant_service/rest/client.rb +946 -0
- data/lib/google/cloud/ces/v1beta/assistant_service/rest/service_stub.rb +450 -0
- data/lib/google/cloud/ces/v1beta/assistant_service/rest.rb +55 -0
- data/lib/google/cloud/ces/v1beta/assistant_service.rb +57 -0
- data/lib/google/cloud/ces/v1beta/assistant_service_pb.rb +49 -0
- data/lib/google/cloud/ces/v1beta/assistant_service_services_pb.rb +57 -0
- data/lib/google/cloud/ces/v1beta/common_pb.rb +4 -1
- data/lib/google/cloud/ces/v1beta/conversation_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/data_store_tool_pb.rb +2 -1
- data/lib/google/cloud/ces/v1beta/deployment_pb.rb +3 -1
- data/lib/google/cloud/ces/v1beta/evaluation_pb.rb +2 -1
- data/lib/google/cloud/ces/v1beta/evaluation_service/client.rb +2 -2
- data/lib/google/cloud/ces/v1beta/evaluation_service/rest/client.rb +2 -2
- data/lib/google/cloud/ces/v1beta/example_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/guardrail_pb.rb +4 -1
- data/lib/google/cloud/ces/v1beta/rest.rb +1 -0
- data/lib/google/cloud/ces/v1beta/session_service/client.rb +333 -0
- data/lib/google/cloud/ces/v1beta/session_service/paths.rb +40 -0
- data/lib/google/cloud/ces/v1beta/session_service/rest/client.rb +314 -0
- data/lib/google/cloud/ces/v1beta/session_service/rest/service_stub.rb +180 -0
- data/lib/google/cloud/ces/v1beta/session_service_pb.rb +33 -1
- data/lib/google/cloud/ces/v1beta/session_service_services_pb.rb +14 -0
- data/lib/google/cloud/ces/v1beta/tool_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/version.rb +1 -1
- data/lib/google/cloud/ces/v1beta.rb +1 -0
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/cloud/ces/v1beta/agent.rb +18 -2
- data/proto_docs/google/cloud/ces/v1beta/agent_card.rb +91 -0
- data/proto_docs/google/cloud/ces/v1beta/agent_service.rb +40 -0
- data/proto_docs/google/cloud/ces/v1beta/app.rb +113 -4
- data/proto_docs/google/cloud/ces/v1beta/app_version.rb +3 -0
- data/proto_docs/google/cloud/ces/v1beta/assistant_service.rb +452 -0
- data/proto_docs/google/cloud/ces/v1beta/common.rb +44 -0
- data/proto_docs/google/cloud/ces/v1beta/conversation.rb +4 -0
- data/proto_docs/google/cloud/ces/v1beta/data_store_tool.rb +16 -0
- data/proto_docs/google/cloud/ces/v1beta/deployment.rb +43 -2
- data/proto_docs/google/cloud/ces/v1beta/evaluation.rb +21 -5
- data/proto_docs/google/cloud/ces/v1beta/example.rb +23 -0
- data/proto_docs/google/cloud/ces/v1beta/guardrail.rb +88 -6
- data/proto_docs/google/cloud/ces/v1beta/session_service.rb +749 -11
- data/proto_docs/google/cloud/ces/v1beta/tool.rb +4 -0
- metadata +12 -1
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 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 Ces
|
|
24
|
+
module V1beta
|
|
25
|
+
module AssistantService
|
|
26
|
+
# Credentials for the AssistantService API.
|
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
|
28
|
+
self.scope = [
|
|
29
|
+
"https://www.googleapis.com/auth/ces",
|
|
30
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
|
31
|
+
]
|
|
32
|
+
self.env_vars = [
|
|
33
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
|
34
|
+
"GOOGLE_CLOUD_KEYFILE",
|
|
35
|
+
"GCLOUD_KEYFILE",
|
|
36
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
|
37
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
|
38
|
+
"GCLOUD_KEYFILE_JSON"
|
|
39
|
+
]
|
|
40
|
+
self.paths = [
|
|
41
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
|
42
|
+
]
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 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 Ces
|
|
23
|
+
module V1beta
|
|
24
|
+
module AssistantService
|
|
25
|
+
# Path helper methods for the AssistantService API.
|
|
26
|
+
module Paths
|
|
27
|
+
##
|
|
28
|
+
# Create a fully-qualified App resource string.
|
|
29
|
+
#
|
|
30
|
+
# The resource will be in the following format:
|
|
31
|
+
#
|
|
32
|
+
# `projects/{project}/locations/{location}/apps/{app}`
|
|
33
|
+
#
|
|
34
|
+
# @param project [String]
|
|
35
|
+
# @param location [String]
|
|
36
|
+
# @param app [String]
|
|
37
|
+
#
|
|
38
|
+
# @return [::String]
|
|
39
|
+
def app_path project:, location:, app:
|
|
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}/apps/#{app}"
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
##
|
|
47
|
+
# Create a fully-qualified AssistantSession resource string.
|
|
48
|
+
#
|
|
49
|
+
# The resource will be in the following format:
|
|
50
|
+
#
|
|
51
|
+
# `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
|
|
52
|
+
#
|
|
53
|
+
# @param project [String]
|
|
54
|
+
# @param location [String]
|
|
55
|
+
# @param app [String]
|
|
56
|
+
# @param assistant_session [String]
|
|
57
|
+
#
|
|
58
|
+
# @return [::String]
|
|
59
|
+
def assistant_session_path project:, location:, app:, assistant_session:
|
|
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, "app cannot contain /" if app.to_s.include? "/"
|
|
63
|
+
|
|
64
|
+
"projects/#{project}/locations/#{location}/apps/#{app}/assistantSessions/#{assistant_session}"
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
extend self
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|