Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ See each library's `README.md` file for more information about:
- [Certificate Manager API](google/cloud/certificatemanager/README.md)
[[quickstart]](google/cloud/certificatemanager/quickstart/README.md)
[[reference]](https://cloud.google.com/cpp/docs/reference/certificatemanager/latest)
- [Gemini Enterprise for Customer Experience API](google/cloud/ces/README.md)
[[quickstart]](google/cloud/ces/quickstart/README.md)
[[reference]](https://cloud.google.com/cpp/docs/reference/ces/latest)
- [Cloud Channel API](google/cloud/channel/README.md)
[[quickstart]](google/cloud/channel/quickstart/README.md)
[[reference]](https://cloud.google.com/cpp/docs/reference/channel/latest)
Expand Down
Binary file not shown.
6 changes: 6 additions & 0 deletions ci/etc/expected_install_directories
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@
./include/google/cloud/certificatemanager/v1
./include/google/cloud/certificatemanager/v1/internal
./include/google/cloud/certificatemanager/v1/mocks
./include/google/cloud/ces
./include/google/cloud/ces/v1
./include/google/cloud/ces/v1/internal
./include/google/cloud/ces/v1/mocks
./include/google/cloud/channel
./include/google/cloud/channel/v1
./include/google/cloud/channel/v1/internal
Expand Down Expand Up @@ -1326,6 +1330,8 @@
./lib64/cmake/google_cloud_cpp_binaryauthorization_mocks
./lib64/cmake/google_cloud_cpp_certificatemanager
./lib64/cmake/google_cloud_cpp_certificatemanager_mocks
./lib64/cmake/google_cloud_cpp_ces
./lib64/cmake/google_cloud_cpp_ces_mocks
./lib64/cmake/google_cloud_cpp_channel
./lib64/cmake/google_cloud_cpp_channel_mocks
./lib64/cmake/google_cloud_cpp_chronicle
Expand Down
1 change: 1 addition & 0 deletions cmake/GoogleCloudCppFeatures.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ set(GOOGLE_CLOUD_CPP_GA_LIBRARIES
"billing"
"binaryauthorization"
"certificatemanager"
"ces"
"channel"
"chronicle"
"cloudbuild"
Expand Down
8 changes: 8 additions & 0 deletions external/googleapis/protodeps/ces.deps
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@googleapis//google/api:annotations_proto
@googleapis//google/api:client_proto
@googleapis//google/api:field_behavior_proto
@googleapis//google/api:http_proto
@googleapis//google/api:launch_stage_proto
@googleapis//google/api:resource_proto
@googleapis//google/longrunning:operations_proto
@googleapis//google/rpc:status_proto
38 changes: 38 additions & 0 deletions external/googleapis/protolists/ces.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
@googleapis//google/cloud/ces/v1:agent.proto
@googleapis//google/cloud/ces/v1:agent_service.proto
@googleapis//google/cloud/ces/v1:agent_transfers.proto
@googleapis//google/cloud/ces/v1:app.proto
@googleapis//google/cloud/ces/v1:app_version.proto
@googleapis//google/cloud/ces/v1:auth.proto
@googleapis//google/cloud/ces/v1:bigquery_export.proto
@googleapis//google/cloud/ces/v1:changelog.proto
@googleapis//google/cloud/ces/v1:client_function.proto
@googleapis//google/cloud/ces/v1:common.proto
@googleapis//google/cloud/ces/v1:connector_tool.proto
@googleapis//google/cloud/ces/v1:connector_toolset.proto
@googleapis//google/cloud/ces/v1:conversation.proto
@googleapis//google/cloud/ces/v1:data_store.proto
@googleapis//google/cloud/ces/v1:data_store_tool.proto
@googleapis//google/cloud/ces/v1:deployment.proto
@googleapis//google/cloud/ces/v1:example.proto
@googleapis//google/cloud/ces/v1:fakes.proto
@googleapis//google/cloud/ces/v1:file_search_tool.proto
@googleapis//google/cloud/ces/v1:google_search_tool.proto
@googleapis//google/cloud/ces/v1:guardrail.proto
@googleapis//google/cloud/ces/v1:mcp_tool.proto
@googleapis//google/cloud/ces/v1:mcp_toolset.proto
@googleapis//google/cloud/ces/v1:omnichannel.proto
@googleapis//google/cloud/ces/v1:omnichannel_service.proto
@googleapis//google/cloud/ces/v1:open_api_tool.proto
@googleapis//google/cloud/ces/v1:open_api_toolset.proto
@googleapis//google/cloud/ces/v1:python_function.proto
@googleapis//google/cloud/ces/v1:schema.proto
@googleapis//google/cloud/ces/v1:search_suggestions.proto
@googleapis//google/cloud/ces/v1:session_service.proto
@googleapis//google/cloud/ces/v1:system_tool.proto
@googleapis//google/cloud/ces/v1:tool.proto
@googleapis//google/cloud/ces/v1:tool_service.proto
@googleapis//google/cloud/ces/v1:toolset.proto
@googleapis//google/cloud/ces/v1:toolset_tool.proto
@googleapis//google/cloud/ces/v1:widget_service.proto
@googleapis//google/cloud/ces/v1:widget_tool.proto
1 change: 1 addition & 0 deletions external/googleapis/update_libraries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ declare -A -r LIBRARIES=(
"@googleapis//google/cloud/certificatemanager/logging/v1:logging_cc_grpc" \
"@googleapis//google/cloud/certificatemanager/v1:certificatemanager_cc_grpc"
)"
["ces"]="@googleapis//google/cloud/ces/v1:ces_cc_grpc"
["channel"]="@googleapis//google/cloud/channel/v1:channel_cc_grpc"
["chronicle"]="@googleapis//google/cloud/chronicle/v1:chronicle_cc_grpc"
["cloudbuild"]="$(
Expand Down
29 changes: 29 additions & 0 deletions generator/generator_config.textproto
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,35 @@ service {
retryable_status_codes: ["kUnavailable"]
}

# CES
service {
service_proto_path: "google/cloud/ces/v1/agent_service.proto"
product_path: "google/cloud/ces/v1"
initial_copyright_year: "2026"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The initial_copyright_year is set to "2026", which is a future year. This should be updated to the current year. This issue is present for all new ces service definitions in this file and results in incorrect copyright headers in all newly generated files.

Suggested change
initial_copyright_year: "2026"
initial_copyright_year: "2024"

retryable_status_codes: ["kUnavailable"]
}

service {
service_proto_path: "google/cloud/ces/v1/widget_service.proto"
product_path: "google/cloud/ces/v1"
initial_copyright_year: "2026"
retryable_status_codes: ["kUnavailable"]
}

service {
service_proto_path: "google/cloud/ces/v1/tool_service.proto"
product_path: "google/cloud/ces/v1"
initial_copyright_year: "2026"
retryable_status_codes: ["kUnavailable"]
}

service {
service_proto_path: "google/cloud/ces/v1/session_service.proto"
product_path: "google/cloud/ces/v1"
initial_copyright_year: "2026"
retryable_status_codes: ["kUnavailable"]
}

# Chronicle
service {
service_proto_path: "google/cloud/chronicle/v1/entity.proto"
Expand Down
3 changes: 2 additions & 1 deletion generator/internal/format_method_comments.cc
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,10 @@ MethodCommentSubstitution substitutions[] = {
{kDialogflowEsConversationsProto, kDialogflowEsConversationsCpp},

// From google/cloud/visionai/v1/warehouse.proto
// From google/cloud/ces/v1/session_service.proto
// The "---" are transformed into a <mdash/> element which breaks our docs
// process.
{R"""(--- General Rules ---)""", R"""(General Rules:)"""},
{R"""(---)""", R"""(-)"""},

// Add Doxygen-style comments
{"\n", "\n ///"},
Expand Down
31 changes: 31 additions & 0 deletions google/cloud/ces/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

load("//bazel:gapic.bzl", "cc_gapic_library")

package(default_visibility = ["//visibility:private"])

licenses(["notice"]) # Apache 2.0

service_dirs = ["v1/"]

googleapis_deps = [
"@googleapis//google/cloud/ces/v1:ces_cc_grpc",
]

cc_gapic_library(
name = "ces",
googleapis_deps = googleapis_deps,
service_dirs = service_dirs,
)
36 changes: 36 additions & 0 deletions google/cloud/ces/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# ~~~
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ~~~

include(GoogleCloudCppLibrary)

google_cloud_cpp_add_gapic_library(
ces "Gemini Enterprise for Customer Experience API" SERVICE_DIRS "v1/")

if (BUILD_TESTING AND GOOGLE_CLOUD_CPP_ENABLE_CXX_EXCEPTIONS)
add_executable(ces_quickstart "quickstart/quickstart.cc")
target_link_libraries(ces_quickstart PRIVATE google-cloud-cpp::ces)
google_cloud_cpp_add_common_options(ces_quickstart)
add_test(
NAME ces_quickstart
COMMAND
cmake -P "${PROJECT_SOURCE_DIR}/cmake/quickstart-runner.cmake"
$<TARGET_FILE:ces_quickstart> GOOGLE_CLOUD_PROJECT
GOOGLE_CLOUD_CPP_TEST_REGION)
set_tests_properties(
ces_quickstart
PROPERTIES LABELS "integration-test;quickstart" PASS_REGULAR_EXPRESSION
"Permanent error.*gcloud-cpp.retry.function=ListApps")
endif ()
58 changes: 58 additions & 0 deletions google/cloud/ces/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Gemini Enterprise for Customer Experience API C++ Client Library

This directory contains an idiomatic C++ client library for the
[Gemini Enterprise for Customer Experience API][cloud-service-docs].

While this library is **GA**, please note that the Google Cloud C++ client
libraries do **not** follow [Semantic Versioning](https://semver.org/).

## Quickstart

The [quickstart/](quickstart/README.md) directory contains a minimal environment
to get started using this client library in a larger project. The following
"Hello World" program is used in this quickstart, and should give you a taste of
this library.

<!-- inject-quickstart-start -->

```cc
#include "google/cloud/ces/v1/agent_client.h"
#include "google/cloud/location.h"
#include <iostream>

int main(int argc, char* argv[]) try {
if (argc != 3) {
std::cerr << "Usage: " << argv[0] << " project-id location-id\n";
return 1;
}

auto const location = google::cloud::Location(argv[1], argv[2]);

namespace ces = ::google::cloud::ces_v1;
auto client = ces::AgentServiceClient(ces::MakeAgentServiceConnection());

for (auto r : client.ListApps(location.FullName())) {
if (!r) throw std::move(r).status();
std::cout << r->DebugString() << "\n";
}

return 0;
} catch (google::cloud::Status const& status) {
std::cerr << "google::cloud::Status thrown: " << status << "\n";
return 1;
}
```

<!-- inject-quickstart-end -->

## More Information

- Official documentation about the
[Gemini Enterprise for Customer Experience API][cloud-service-docs] service
- [Reference doxygen documentation][doxygen-link] for each release of this
client library
- Detailed header comments in our [public `.h`][source-link] files

[cloud-service-docs]: https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps
[doxygen-link]: https://cloud.google.com/cpp/docs/reference/ces/latest/
[source-link]: https://github.com/googleapis/google-cloud-cpp/tree/main/google/cloud/ces
61 changes: 61 additions & 0 deletions google/cloud/ces/doc/environment-variables.dox
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/*!
@page ces-env Environment Variables

A number of environment variables can be used to configure the behavior of
the library. There are also functions to configure this behavior in code. The
environment variables are convenient when troubleshooting problems.

@section ces-env-endpoint Endpoint Overrides

<!-- inject-endpoint-env-vars-start -->

- `GOOGLE_CLOUD_CPP_AGENT_SERVICE_ENDPOINT=...` overrides the
`EndpointOption` (which defaults to "ces.googleapis.com")
used by `MakeAgentServiceConnection()`.

- `GOOGLE_CLOUD_CPP_SESSION_SERVICE_ENDPOINT=...` overrides the
`EndpointOption` (which defaults to "ces.googleapis.com")
used by `MakeSessionServiceConnection()`.

- `GOOGLE_CLOUD_CPP_TOOL_SERVICE_ENDPOINT=...` overrides the
`EndpointOption` (which defaults to "ces.googleapis.com")
used by `MakeToolServiceConnection()`.

- `GOOGLE_CLOUD_CPP_WIDGET_SERVICE_ENDPOINT=...` overrides the
`EndpointOption` (which defaults to "ces.googleapis.com")
used by `MakeWidgetServiceConnection()`.

<!-- inject-endpoint-env-vars-end -->

@see google::cloud::EndpointOption

@section ces-env-logging Logging

`GOOGLE_CLOUD_CPP_ENABLE_TRACING=rpc`: turns on tracing for most gRPC
calls. The library injects an additional Stub decorator that prints each gRPC
request and response. Unless you have configured your own logging backend,
you should also set `GOOGLE_CLOUD_CPP_ENABLE_CLOG` to produce any output on
the program's console.

@see google::cloud::LoggingComponentsOption

`GOOGLE_CLOUD_CPP_TRACING_OPTIONS=...`: modifies the behavior of gRPC tracing,
including whether messages will be output on multiple lines, or whether
string/bytes fields will be truncated.

@see google::cloud::GrpcTracingOptionsOption

`GOOGLE_CLOUD_CPP_ENABLE_CLOG=yes`: turns on logging in the library, basically
the library always "logs" but the logging infrastructure has no backend to
actually print anything until the application sets a backend or they set this
environment variable.

@see google::cloud::LogBackend
@see google::cloud::LogSink

@section ces-env-project Setting the Default Project

`GOOGLE_CLOUD_PROJECT=...`: is used in examples and integration tests to
configure the GCP project. This has no effect in the library.

*/
56 changes: 56 additions & 0 deletions google/cloud/ces/doc/main.dox
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*!

@mainpage Gemini Enterprise for Customer Experience API C++ Client Library

An idiomatic C++ client library for the [Gemini Enterprise for Customer Experience API][cloud-service-docs].



While this library is **GA**, please note that the Google Cloud C++ client libraries do **not** follow
[Semantic Versioning](https://semver.org/).

@tableofcontents{HTML:2}

## Quickstart

The following shows the code that you'll run in the
`google/cloud/ces/quickstart/` directory,
which should give you a taste of the Gemini Enterprise for Customer Experience API C++ client library API.

@snippet quickstart.cc all

## Main classes

<!-- inject-client-list-start -->
This library offers multiple `*Client` classes, which are listed below. Each one
of these classes exposes all the RPCs for a service as member functions of the
class. This library groups multiple services because they are part of the same
product or are often used together. A typical example may be the administrative
and data plane operations for a single product.

The library also has other classes that provide helpers, configuration
parameters, and infrastructure to mock the `*Client` classes when testing your
application.

- [\c ces_v1::AgentServiceClient](@ref google::cloud::ces_v1::AgentServiceClient)
- [\c ces_v1::SessionServiceClient](@ref google::cloud::ces_v1::SessionServiceClient)
- [\c ces_v1::ToolServiceClient](@ref google::cloud::ces_v1::ToolServiceClient)
- [\c ces_v1::WidgetServiceClient](@ref google::cloud::ces_v1::WidgetServiceClient)
<!-- inject-client-list-end -->

## More Information

- @ref common-error-handling - describes how the library reports errors.
- @ref ces-override-endpoint - describes how to override the default
endpoint.
- @ref ces-override-authentication - describes how to change the
authentication credentials used by the library.
- @ref ces-override-retry - describes how to change the default retry
policies.
- @ref ces-env - describes environment variables that can configure the
behavior of the library.
- @ref ces-override-universe-domain - describes how to override the default universe domain.

[cloud-service-docs]: https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps

*/
10 changes: 10 additions & 0 deletions google/cloud/ces/doc/options.dox
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*!
@defgroup google-cloud-ces-options Gemini Enterprise for Customer Experience API Configuration Options

This library uses the same mechanism (`google::cloud::Options`) and the common
[options](@ref options) as all other C++ client libraries for its configuration.
Some `*Option` classes, which are only used in this library, are documented in
this page.

@see @ref options - for an overview of client library configuration.
*/
Loading