Skip to content

Commit 6728816

Browse files
authored
feat(google/cloud/agentregistry/v1): onboard a new library (#13509)
Onboard agentregistry. Run commands: ``` API_PATH=google/cloud/agentregistry/v1 V=$(go run github.com/googleapis/librarian/cmd/librarian@latest config get version) go run github.com/googleapis/librarian/cmd/librarian@${V} add "${API_PATH}" go run github.com/googleapis/librarian/cmd/librarian@${V} generate agentregistry ``` b/524671742
1 parent 69689c3 commit 6728816

220 files changed

Lines changed: 98844 additions & 0 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.

gapic-libraries-bom/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@
5656
<type>pom</type>
5757
<scope>import</scope>
5858
</dependency>
59+
<dependency>
60+
<groupId>com.google.cloud</groupId>
61+
<artifactId>google-cloud-agentregistry-bom</artifactId>
62+
<version>0.1.0-SNAPSHOT</version><!-- {x-version-update:google-cloud-agentregistry:current} -->
63+
<type>pom</type>
64+
<scope>import</scope>
65+
</dependency>
5966
<dependency>
6067
<groupId>com.google.cloud</groupId>
6168
<artifactId>google-cloud-aiplatform-bom</artifactId>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"api_shortname": "agentregistry",
3+
"name_pretty": "Agent Registry",
4+
"product_documentation": "https://docs.cloud.google.com/agent-registry/overview",
5+
"api_description": "Agent Registry is a centralized, unified catalog that lets you store,\ndiscover, and govern Model Context Protocol (MCP) servers, tools, and AI\nagents within Google Cloud.",
6+
"client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-agentregistry/latest/overview",
7+
"release_level": "preview",
8+
"transport": "both",
9+
"language": "java",
10+
"repo": "googleapis/google-cloud-java",
11+
"repo_short": "java-agentregistry",
12+
"distribution_name": "com.google.cloud:google-cloud-agentregistry",
13+
"api_id": "agentregistry.googleapis.com",
14+
"library_type": "GAPIC_AUTO",
15+
"requires_billing": true
16+
}

java-agentregistry/README.md

Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,207 @@
1+
# Google Agent Registry Client for Java
2+
3+
Java idiomatic client for [Agent Registry][product-docs].
4+
5+
[![Maven][maven-version-image]][maven-version-link]
6+
![Stability][stability-image]
7+
8+
- [Product Documentation][product-docs]
9+
- [Client Library Documentation][javadocs]
10+
11+
> Note: This client is a work-in-progress, and may occasionally
12+
> make backwards-incompatible changes.
13+
14+
15+
## Quickstart
16+
17+
18+
If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
19+
20+
```xml
21+
<dependencyManagement>
22+
<dependencies>
23+
<dependency>
24+
<groupId>com.google.cloud</groupId>
25+
<artifactId>libraries-bom</artifactId>
26+
<version>26.83.0</version>
27+
<type>pom</type>
28+
<scope>import</scope>
29+
</dependency>
30+
</dependencies>
31+
</dependencyManagement>
32+
33+
<dependencies>
34+
<dependency>
35+
<groupId>com.google.cloud</groupId>
36+
<artifactId>google-cloud-agentregistry</artifactId>
37+
</dependency>
38+
</dependencies>
39+
```
40+
41+
If you are using Maven without the BOM, add this to your dependencies:
42+
43+
44+
```xml
45+
<dependency>
46+
<groupId>com.google.cloud</groupId>
47+
<artifactId>google-cloud-agentregistry</artifactId>
48+
<version>0.0.0</version>
49+
</dependency>
50+
```
51+
52+
If you are using Gradle without BOM, add this to your dependencies:
53+
54+
```Groovy
55+
implementation 'com.google.cloud:google-cloud-agentregistry:0.0.0'
56+
```
57+
58+
If you are using SBT, add this to your dependencies:
59+
60+
```Scala
61+
libraryDependencies += "com.google.cloud" % "google-cloud-agentregistry" % "0.0.0"
62+
```
63+
64+
## Authentication
65+
66+
See the [Authentication][authentication] section in the base directory's README.
67+
68+
## Authorization
69+
70+
The client application making API calls must be granted [authorization scopes][auth-scopes] required for the desired Agent Registry APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the Agent Registry API calls.
71+
72+
## Getting Started
73+
74+
### Prerequisites
75+
76+
You will need a [Google Cloud Platform Console][developer-console] project with the Agent Registry [API enabled][enable-api].
77+
You will need to [enable billing][enable-billing] to use Google Agent Registry.
78+
[Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by
79+
[installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line:
80+
`gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`.
81+
82+
### Installation and setup
83+
84+
You'll need to obtain the `google-cloud-agentregistry` library. See the [Quickstart](#quickstart) section
85+
to add `google-cloud-agentregistry` as a dependency in your code.
86+
87+
## About Agent Registry
88+
89+
90+
[Agent Registry][product-docs] Agent Registry is a centralized, unified catalog that lets you store,
91+
discover, and govern Model Context Protocol (MCP) servers, tools, and AI
92+
agents within Google Cloud.
93+
94+
See the [Agent Registry client library docs][javadocs] to learn how to
95+
use this Agent Registry Client Library.
96+
97+
98+
99+
100+
101+
102+
## Troubleshooting
103+
104+
To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting].
105+
106+
## Transport
107+
108+
Agent Registry uses both gRPC and HTTP/JSON for the transport layer.
109+
110+
## Supported Java Versions
111+
112+
Java 8 or above is required for using this client.
113+
114+
Google's Java client libraries,
115+
[Google Cloud Client Libraries][cloudlibs]
116+
and
117+
[Google Cloud API Libraries][apilibs],
118+
follow the
119+
[Oracle Java SE support roadmap][oracle]
120+
(see the Oracle Java SE Product Releases section).
121+
122+
### For new development
123+
124+
In general, new feature development occurs with support for the lowest Java
125+
LTS version covered by Oracle's Premier Support (which typically lasts 5 years
126+
from initial General Availability). If the minimum required JVM for a given
127+
library is changed, it is accompanied by a [semver][semver] major release.
128+
129+
Java 11 and (in September 2021) Java 17 are the best choices for new
130+
development.
131+
132+
### Keeping production systems current
133+
134+
Google tests its client libraries with all current LTS versions covered by
135+
Oracle's Extended Support (which typically lasts 8 years from initial
136+
General Availability).
137+
138+
#### Legacy support
139+
140+
Google's client libraries support legacy versions of Java runtimes with long
141+
term stable libraries that don't receive feature updates on a best efforts basis
142+
as it may not be possible to backport all patches.
143+
144+
Google provides updates on a best efforts basis to apps that continue to use
145+
Java 7, though apps might need to upgrade to current versions of the library
146+
that supports their JVM.
147+
148+
#### Where to find specific information
149+
150+
The latest versions and the supported Java versions are identified on
151+
the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME`
152+
and on [google-cloud-java][g-c-j].
153+
154+
## Versioning
155+
156+
157+
This library follows [Semantic Versioning](http://semver.org/).
158+
159+
160+
It is currently in major version zero (``0.y.z``), which means that anything may change at any time
161+
and the public API should not be considered stable.
162+
163+
164+
## Contributing
165+
166+
167+
Contributions to this library are always welcome and highly encouraged.
168+
169+
See [CONTRIBUTING][contributing] for more information how to get started.
170+
171+
Please note that this project is released with a Contributor Code of Conduct. By participating in
172+
this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more
173+
information.
174+
175+
176+
## License
177+
178+
Apache 2.0 - See [LICENSE][license] for more information.
179+
180+
Java is a registered trademark of Oracle and/or its affiliates.
181+
182+
[product-docs]: https://docs.cloud.google.com/agent-registry/overview
183+
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-agentregistry/latest/overview
184+
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
185+
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-agentregistry.svg
186+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-agentregistry/0.0.0
187+
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
188+
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
189+
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
190+
[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy
191+
[developer-console]: https://console.developers.google.com/
192+
[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects
193+
[cloud-cli]: https://cloud.google.com/cli
194+
[troubleshooting]: https://github.com/googleapis/google-cloud-java/blob/main/TROUBLESHOOTING.md
195+
[contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md
196+
[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct
197+
[license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE
198+
[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing
199+
[enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=agentregistry.googleapis.com
200+
[libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM
201+
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
202+
203+
[semver]: https://semver.org/
204+
[cloudlibs]: https://cloud.google.com/apis/docs/client-libraries-explained
205+
[apilibs]: https://cloud.google.com/apis/docs/client-libraries-explained#google_api_client_libraries
206+
[oracle]: https://www.oracle.com/java/technologies/java-se-support-roadmap.html
207+
[g-c-j]: http://github.com/googleapis/google-cloud-java
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>com.google.cloud</groupId>
5+
<artifactId>google-cloud-agentregistry-bom</artifactId>
6+
<version>0.1.0-SNAPSHOT</version><!-- {x-version-update:google-cloud-agentregistry:current} -->
7+
<packaging>pom</packaging>
8+
<parent>
9+
<groupId>com.google.cloud</groupId>
10+
<artifactId>google-cloud-pom-parent</artifactId>
11+
<version>1.88.0-SNAPSHOT</version><!-- {x-version-update:google-cloud-java:current} -->
12+
<relativePath>../../google-cloud-pom-parent/pom.xml</relativePath>
13+
</parent>
14+
15+
<name>Google Agent Registry BOM</name>
16+
<description>
17+
BOM for Agent Registry
18+
</description>
19+
20+
<properties>
21+
<maven.antrun.skip>true</maven.antrun.skip>
22+
</properties>
23+
24+
<dependencyManagement>
25+
<dependencies>
26+
<!-- {x-generated-dependencies-start} -->
27+
<dependency>
28+
<groupId>com.google.cloud</groupId>
29+
<artifactId>google-cloud-agentregistry</artifactId>
30+
<version>0.1.0-SNAPSHOT</version><!-- {x-version-update:google-cloud-agentregistry:current} -->
31+
</dependency>
32+
<dependency>
33+
<groupId>com.google.api.grpc</groupId>
34+
<artifactId>grpc-google-cloud-agentregistry-v1</artifactId>
35+
<version>0.1.0-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-agentregistry-v1:current} -->
36+
</dependency>
37+
<dependency>
38+
<groupId>com.google.api.grpc</groupId>
39+
<artifactId>proto-google-cloud-agentregistry-v1</artifactId>
40+
<version>0.1.0-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-agentregistry-v1:current} -->
41+
</dependency>
42+
<!-- {x-generated-dependencies-end} -->
43+
</dependencies>
44+
</dependencyManagement>
45+
</project>

0 commit comments

Comments
 (0)