Skip to content

Commit bcef8f2

Browse files
committed
Run generators and format their outputs
1 parent ec94ec3 commit bcef8f2

47 files changed

Lines changed: 9658 additions & 47 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ci/etc/expected_install_directories

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,10 @@
872872
./include/google/cloud/managedidentities/v1/internal
873873
./include/google/cloud/managedidentities/v1/mocks
874874
./include/google/cloud/managedkafka
875+
./include/google/cloud/managedkafka/schemaregistry
876+
./include/google/cloud/managedkafka/schemaregistry/v1
877+
./include/google/cloud/managedkafka/schemaregistry/v1/internal
878+
./include/google/cloud/managedkafka/schemaregistry/v1/mocks
875879
./include/google/cloud/managedkafka/v1
876880
./include/google/cloud/managedkafka/v1/internal
877881
./include/google/cloud/managedkafka/v1/mocks

external/googleapis/protodeps/managedkafka.deps

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
@com_google_googleapis//google/api:field_behavior_proto
44
@com_google_googleapis//google/api:field_info_proto
55
@com_google_googleapis//google/api:http_proto
6+
@com_google_googleapis//google/api:httpbody_proto
67
@com_google_googleapis//google/api:launch_stage_proto
78
@com_google_googleapis//google/api:resource_proto
89
@com_google_googleapis//google/longrunning:operations_proto
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@com_google_googleapis//google/cloud/managedkafka/schemaregistry/v1:schema_registry.proto
2+
@com_google_googleapis//google/cloud/managedkafka/schemaregistry/v1:schema_registry_resources.proto
13
@com_google_googleapis//google/cloud/managedkafka/v1:managed_kafka.proto
24
@com_google_googleapis//google/cloud/managedkafka/v1:managed_kafka_connect.proto
35
@com_google_googleapis//google/cloud/managedkafka/v1:resources.proto

google/cloud/managedkafka/BUILD.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024 Google LLC
1+
# Copyright 2025 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -18,10 +18,10 @@ package(default_visibility = ["//visibility:private"])
1818

1919
licenses(["notice"]) # Apache 2.0
2020

21-
service_dirs = ["v1/"]
21+
service_dirs = ["schemaregistry/v1/"]
2222

2323
googleapis_deps = [
24-
"@com_google_googleapis//google/cloud/managedkafka/v1:managedkafka_cc_grpc",
24+
"@com_google_googleapis//google/cloud/managedkafka/schemaregistry/v1:managedkafka_cc_grpc",
2525
]
2626

2727
cc_gapic_library(

google/cloud/managedkafka/CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ~~~
2-
# Copyright 2024 Google LLC
2+
# Copyright 2025 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -17,7 +17,8 @@
1717
include(GoogleCloudCppLibrary)
1818

1919
google_cloud_cpp_add_gapic_library(
20-
managedkafka "Managed Service for Apache Kafka API" SERVICE_DIRS "v1/")
20+
managedkafka "Managed Service for Apache Kafka API"
21+
SERVICE_DIRS "schemaregistry/v1/")
2122

2223
if (BUILD_TESTING AND GOOGLE_CLOUD_CPP_ENABLE_CXX_EXCEPTIONS)
2324
add_executable(managedkafka_quickstart "quickstart/quickstart.cc")
@@ -29,7 +30,8 @@ if (BUILD_TESTING AND GOOGLE_CLOUD_CPP_ENABLE_CXX_EXCEPTIONS)
2930
COMMAND
3031
cmake -P "${PROJECT_SOURCE_DIR}/cmake/quickstart-runner.cmake"
3132
$<TARGET_FILE:managedkafka_quickstart> GOOGLE_CLOUD_PROJECT
32-
GOOGLE_CLOUD_CPP_TEST_REGION)
33+
GOOGLE_CLOUD_CPP_TEST_REGION # EDIT HERE
34+
)
3335
set_tests_properties(managedkafka_quickstart
3436
PROPERTIES LABELS "integration-test;quickstart")
3537
endif ()

google/cloud/managedkafka/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ this library.
1818
<!-- inject-quickstart-start -->
1919

2020
```cc
21-
#include "google/cloud/managedkafka/v1/managed_kafka_client.h"
21+
#include "google/cloud/managedkafka/schemaregistry/v1/ EDIT HERE _client.h"
2222
#include "google/cloud/location.h"
2323
#include <iostream>
2424

@@ -30,11 +30,11 @@ int main(int argc, char* argv[]) try {
3030

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

33-
namespace managedkafka = ::google::cloud::managedkafka_v1;
34-
auto client = managedkafka::ManagedKafkaClient(
35-
managedkafka::MakeManagedKafkaConnection());
33+
namespace managedkafka = ::google::cloud::managedkafka_schemaregistry_v1;
34+
auto client = managedkafka::ServiceClient(
35+
managedkafka::MakeServiceConnection()); // EDIT HERE
3636

37-
for (auto r : client.ListClusters(location.FullName())) {
37+
for (auto r : client.List /*EDIT HERE*/ (location.FullName())) {
3838
if (!r) throw std::move(r).status();
3939
std::cout << r->DebugString() << "\n";
4040
}
@@ -56,6 +56,6 @@ int main(int argc, char* argv[]) try {
5656
client library
5757
- Detailed header comments in our [public `.h`][source-link] files
5858
59-
[cloud-service-docs]: https://cloud.google.com/managed-kafka
59+
[cloud-service-docs]: https://cloud.google.com/managed-service-for-apache-kafka/docs
6060
[doxygen-link]: https://cloud.google.com/cpp/docs/reference/managedkafka/latest/
6161
[source-link]: https://github.com/googleapis/google-cloud-cpp/tree/main/google/cloud/managedkafka

google/cloud/managedkafka/doc/environment-variables.dox

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ environment variables are convenient when troubleshooting problems.
1414
`EndpointOption` (which defaults to "managedkafka.googleapis.com")
1515
used by `MakeManagedKafkaConnection()`.
1616

17+
- `GOOGLE_CLOUD_CPP_MANAGED_SCHEMA_REGISTRY_ENDPOINT=...` overrides the
18+
`EndpointOption` (which defaults to "managedkafka.googleapis.com")
19+
used by `MakeManagedSchemaRegistryConnection()`.
20+
1721
<!-- inject-endpoint-env-vars-end -->
1822

1923
@see google::cloud::EndpointOption

google/cloud/managedkafka/doc/main.dox

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,18 @@ which should give you a taste of the Managed Service for Apache Kafka API C++ cl
2222
## Main classes
2323

2424
<!-- inject-client-list-start -->
25-
The main class in this library is
26-
[`managedkafka_v1::ManagedKafkaClient`](@ref google::cloud::managedkafka_v1::ManagedKafkaClient). All RPCs are exposed
27-
as member functions of this class. Other classes provide helpers, configuration
28-
parameters, and infrastructure to mock
29-
[`managedkafka_v1::ManagedKafkaClient`](@ref google::cloud::managedkafka_v1::ManagedKafkaClient) when testing your
25+
This library offers multiple `*Client` classes, which are listed below. Each one
26+
of these classes exposes all the RPCs for a service as member functions of the
27+
class. This library groups multiple services because they are part of the same
28+
product or are often used together. A typical example may be the administrative
29+
and data plane operations for a single product.
30+
31+
The library also has other classes that provide helpers, configuration
32+
parameters, and infrastructure to mock the `*Client` classes when testing your
3033
application.
34+
35+
- [\c managedkafka_schemaregistry_v1::ManagedSchemaRegistryClient](@ref google::cloud::managedkafka_schemaregistry_v1::ManagedSchemaRegistryClient)
36+
- [\c managedkafka_v1::ManagedKafkaClient](@ref google::cloud::managedkafka_v1::ManagedKafkaClient)
3137
<!-- inject-client-list-end -->
3238

3339
## More Information
@@ -42,6 +48,6 @@ application.
4248
- @ref managedkafka-env - describes environment variables that can configure the
4349
behavior of the library.
4450

45-
[cloud-service-docs]: https://cloud.google.com/managed-kafka
51+
[cloud-service-docs]: https://cloud.google.com/managed-service-for-apache-kafka/docs
4652

4753
*/

google/cloud/managedkafka/doc/override-authentication.dox

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ this default. You can do so by providing the
99
The following example shows how to explicitly load a service account key file:
1010

1111
<!-- inject-service-account-snippet-start -->
12-
@snippet managed_kafka_client_samples.cc with-service-account
12+
@snippet managed_schema_registry_client_samples.cc with-service-account
13+
14+
Follow these links to find examples for other \c *Client classes:
15+
16+
- [\c managedkafka_schemaregistry_v1::ManagedSchemaRegistryClient](@ref managedkafka_schemaregistry_v1::ManagedSchemaRegistryClient-service-account-snippet)
17+
- [\c managedkafka_v1::ManagedKafkaClient](@ref managedkafka_v1::ManagedKafkaClient-service-account-snippet)
1318

1419
<!-- inject-service-account-snippet-end -->
1520

@@ -27,6 +32,12 @@ guide for more details.
2732

2833
// <!-- inject-authentication-pages-start -->
2934

35+
/*! @page managedkafka_schemaregistry_v1::ManagedSchemaRegistryClient-service-account-snippet Override managedkafka_schemaregistry_v1::ManagedSchemaRegistryClient Authentication Defaults
36+
37+
@snippet google/cloud/managedkafka/schemaregistry/v1/samples/managed_schema_registry_client_samples.cc with-service-account
38+
39+
*/
40+
3041
/*! @page managedkafka_v1::ManagedKafkaClient-service-account-snippet Override managedkafka_v1::ManagedKafkaClient Authentication Defaults
3142

3243
@snippet google/cloud/managedkafka/v1/samples/managed_kafka_client_samples.cc with-service-account

google/cloud/managedkafka/doc/override-endpoint.dox

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,27 @@ library. Use the
77
client library to change this default.
88

99
<!-- inject-endpoint-snippet-start -->
10-
For example, this will override the default endpoint for `managedkafka_v1::ManagedKafkaClient`:
10+
For example, this will override the default endpoint for `managedkafka_schemaregistry_v1::ManagedSchemaRegistryClient`:
1111

12-
@snippet managed_kafka_client_samples.cc set-client-endpoint
12+
@snippet managed_schema_registry_client_samples.cc set-client-endpoint
13+
14+
Follow these links to find examples for other \c *Client classes:
15+
16+
- [\c managedkafka_schemaregistry_v1::ManagedSchemaRegistryClient](@ref managedkafka_schemaregistry_v1::ManagedSchemaRegistryClient-endpoint-snippet)
17+
- [\c managedkafka_v1::ManagedKafkaClient](@ref managedkafka_v1::ManagedKafkaClient-endpoint-snippet)
1318

1419
<!-- inject-endpoint-snippet-end -->
1520

1621
*/
1722

1823
// <!-- inject-endpoint-pages-start -->
1924

25+
/*! @page managedkafka_schemaregistry_v1::ManagedSchemaRegistryClient-endpoint-snippet Override managedkafka_schemaregistry_v1::ManagedSchemaRegistryClient Endpoint Configuration
26+
27+
@snippet google/cloud/managedkafka/schemaregistry/v1/samples/managed_schema_registry_client_samples.cc set-client-endpoint
28+
29+
*/
30+
2031
/*! @page managedkafka_v1::ManagedKafkaClient-endpoint-snippet Override managedkafka_v1::ManagedKafkaClient Endpoint Configuration
2132

2233
@snippet google/cloud/managedkafka/v1/samples/managed_kafka_client_samples.cc set-client-endpoint

0 commit comments

Comments
 (0)