diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md
index 6b963e60ae1f..af62c4be7737 100644
--- a/java-accessapproval/README.md
+++ b/java-accessapproval/README.md
@@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies:
This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -59,7 +59,7 @@ * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); + * AgentName name = AgentName.ofProjectLocationAgentName("[PROJECT]", "[LOCATION]", "[AGENT]"); * Agent response = agentRegistryClient.getAgent(name); * } * } @@ -448,294 +448,4232 @@ * * *
ListLocations
Lists information about the supported locations for this service. - *
This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. - *
For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.
CreateSkill
========================================================================= # Skills Collection APIs + *
Creates a Skill resource container, optionally publishing the initial SkillRevision inline in a single, atomic CRUD roundtrip.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*listLocations(ListLocationsRequest request) + *
createSkillAsync(CreateSkillRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *createSkillAsync(LocationName parent, Skill skill, String skillId) + *
createSkillAsync(String parent, Skill skill, String skillId) *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*listLocationsPagedCallable() - *
listLocationsCallable() + *
createSkillOperationCallable() + *
createSkillCallable() *
GetLocation
Gets information about a location.
GetSkill
Fetches the active configuration and metadata of a Skill.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*getLocation(GetLocationRequest request) + *
getSkill(GetSkillRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *getSkill(SkillName name) + *
getSkill(String name) *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*getLocationCallable() + *
getSkillCallable() *
See the individual methods for example code. - * - *
Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *
This class can be customized by passing in a custom instance of AgentRegistrySettings to - * create(). For example: - * - *
To customize credentials: - * - *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * AgentRegistrySettings agentRegistrySettings =
- * AgentRegistrySettings.newBuilder()
- * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- * .build();
- * AgentRegistryClient agentRegistryClient = AgentRegistryClient.create(agentRegistrySettings);
- * }
- *
- * To customize the endpoint: - * - *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * AgentRegistrySettings agentRegistrySettings =
- * AgentRegistrySettings.newBuilder().setEndpoint(myEndpoint).build();
- * AgentRegistryClient agentRegistryClient = AgentRegistryClient.create(agentRegistrySettings);
- * }
- *
- * To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over - * the wire: - * - *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * AgentRegistrySettings agentRegistrySettings =
- * AgentRegistrySettings.newHttpJsonBuilder().build();
- * AgentRegistryClient agentRegistryClient = AgentRegistryClient.create(agentRegistrySettings);
- * }
- *
- * Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@NullMarked -@Generated("by gapic-generator-java") -public class AgentRegistryClient implements BackgroundResource { - private final @Nullable AgentRegistrySettings settings; - private final AgentRegistryStub stub; - private final OperationsClient httpJsonOperationsClient; - private final com.google.longrunning.OperationsClient operationsClient; - - /** Constructs an instance of AgentRegistryClient with default settings. */ - public static final AgentRegistryClient create() throws IOException { - return create(AgentRegistrySettings.newBuilder().build()); - } - - /** - * Constructs an instance of AgentRegistryClient, using the given settings. The channels are - * created based on the settings passed in, or defaults for any settings that are not set. - */ - public static final AgentRegistryClient create(AgentRegistrySettings settings) - throws IOException { - return new AgentRegistryClient(settings); - } - - /** - * Constructs an instance of AgentRegistryClient, using the given stub for making calls. This is - * for advanced usage - prefer using create(AgentRegistrySettings). - */ - public static final AgentRegistryClient create(AgentRegistryStub stub) { - return new AgentRegistryClient(stub); - } - - /** - * Constructs an instance of AgentRegistryClient, using the given settings. This is protected so - * that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected AgentRegistryClient(AgentRegistrySettings settings) throws IOException { - this.settings = settings; - this.stub = ((AgentRegistryStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - protected AgentRegistryClient(AgentRegistryStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - public final @Nullable AgentRegistrySettings getSettings() { - return settings; - } - - public AgentRegistryStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final com.google.longrunning.OperationsClient getOperationsClient() { - return operationsClient; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - @BetaApi - public final OperationsClient getHttpJsonOperationsClient() { - return httpJsonOperationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Agents in a given project and location. - * - *
Sample code: - * - *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- * for (Agent element : agentRegistryClient.listAgents(parent).iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- * }
- *
- * @param parent Required. Parent value for ListAgentsRequest
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final ListAgentsPagedResponse listAgents(@Nullable LocationName parent) {
- ListAgentsRequest request =
- ListAgentsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build();
- return listAgents(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Lists Agents in a given project and location.
- *
- * Sample code: - * - *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
- * for (Agent element : agentRegistryClient.listAgents(parent).iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- * }
- *
- * @param parent Required. Parent value for ListAgentsRequest
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final ListAgentsPagedResponse listAgents(String parent) {
- ListAgentsRequest request = ListAgentsRequest.newBuilder().setParent(parent).build();
- return listAgents(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Lists Agents in a given project and location.
- *
- * Sample code: - * - *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * ListAgentsRequest request =
- * ListAgentsRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
- * .setOrderBy("orderBy-1207110587")
- * .build();
- * for (Agent element : agentRegistryClient.listAgents(request).iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- * }
- *
- * @param request The request object containing all of the parameters for the API call.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final ListAgentsPagedResponse listAgents(ListAgentsRequest request) {
- return listAgentsPagedCallable().call(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Lists Agents in a given project and location.
- *
- * Sample code: - * - *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * ListAgentsRequest request =
- * ListAgentsRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setPageSize(883849137)
+ *
+ * UpdateSkill
+ * Updates Skill metadata or overrides active pointers/state using REST standard PATCH.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * updateSkillAsync(UpdateSkillRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * updateSkillAsync(Skill skill, FieldMask updateMask)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * updateSkillOperationCallable()
+ *
updateSkillCallable()
+ *
+ *
+ *
+ *
+ * DeleteSkill
+ * Deletes a Skill container along with all its revisions.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * deleteSkillAsync(DeleteSkillRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * deleteSkillAsync(SkillName name)
+ *
deleteSkillAsync(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * deleteSkillOperationCallable()
+ *
deleteSkillCallable()
+ *
+ *
+ *
+ *
+ * ListSkills
+ * Lists logical Skills available in a project.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listSkills(ListSkillsRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listSkills(LocationName parent)
+ *
listSkills(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listSkillsPagedCallable()
+ *
listSkillsCallable()
+ *
+ *
+ *
+ *
+ * SearchSkills
+ * Custom deep-search method to filter by frontmatter or query SKILL.md text blobs.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * searchSkills(SearchSkillsRequest request)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * searchSkillsPagedCallable()
+ *
searchSkillsCallable()
+ *
+ *
+ *
+ *
+ * CreateSkillRevision
+ * Creates a new immutable revision and triggers validation pipelines.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * createSkillRevisionAsync(CreateSkillRevisionRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * createSkillRevisionAsync(SkillName parent, SkillRevision skillRevision, String skillRevisionId)
+ *
createSkillRevisionAsync(String parent, SkillRevision skillRevision, String skillRevisionId)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * createSkillRevisionOperationCallable()
+ *
createSkillRevisionCallable()
+ *
+ *
+ *
+ *
+ * GetSkillRevision
+ * Gets details of a single immutable Revision.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getSkillRevision(GetSkillRevisionRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getSkillRevision(SkillRevisionName name)
+ *
getSkillRevision(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getSkillRevisionCallable()
+ *
+ *
+ *
+ *
+ * DeleteSkillRevision
+ * Deletes a specific revision (restricted to admins to purge accidentally committed secrets).
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * deleteSkillRevisionAsync(DeleteSkillRevisionRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * deleteSkillRevisionAsync(SkillRevisionName name)
+ *
deleteSkillRevisionAsync(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * deleteSkillRevisionOperationCallable()
+ *
deleteSkillRevisionCallable()
+ *
+ *
+ *
+ *
+ * ListSkillRevisions
+ * Lists all revisions belonging to a parent Skill.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listSkillRevisions(ListSkillRevisionsRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listSkillRevisions(SkillName parent)
+ *
listSkillRevisions(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listSkillRevisionsPagedCallable()
+ *
listSkillRevisionsCallable()
+ *
+ *
+ *
+ *
+ * GetPublisher
+ * Fetches details of a specific Publisher.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getPublisher(GetPublisherRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getPublisher(PublisherName name)
+ *
getPublisher(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getPublisherCallable()
+ *
+ *
+ *
+ *
+ * ListPublishers
+ * Lists all Publishers in a location.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listPublishers(ListPublishersRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listPublishers(LocationName parent)
+ *
listPublishers(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listPublishersPagedCallable()
+ *
listPublishersCallable()
+ *
+ *
+ *
+ *
+ * GetAiApplication
+ * Gets details of a single AI Application.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getAiApplication(GetAiApplicationRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getAiApplication(AiApplicationName name)
+ *
getAiApplication(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getAiApplicationCallable()
+ *
+ *
+ *
+ *
+ * ListAiApplications
+ * Lists AI Applications in a given project and location.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listAiApplications(ListAiApplicationsRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listAiApplications(LocationName parent)
+ *
listAiApplications(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listAiApplicationsPagedCallable()
+ *
listAiApplicationsCallable()
+ *
+ *
+ *
+ *
+ * GetAiApplicationAgent
+ * Gets details of a single Agent under an AI Application.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getAiApplicationAgent(GetAiApplicationAgentRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getAiApplicationAgent(AgentName name)
+ *
getAiApplicationAgent(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getAiApplicationAgentCallable()
+ *
+ *
+ *
+ *
+ * ListAiApplicationAgents
+ * Lists Agents under an AI Application.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listAiApplicationAgents(ListAiApplicationAgentsRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listAiApplicationAgents(AiApplicationName parent)
+ *
listAiApplicationAgents(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listAiApplicationAgentsPagedCallable()
+ *
listAiApplicationAgentsCallable()
+ *
+ *
+ *
+ *
+ * GetAiApplicationMcpServer
+ * Gets details of a single McpServer under an AI Application.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getAiApplicationMcpServer(GetAiApplicationMcpServerRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getAiApplicationMcpServer(McpServerName name)
+ *
getAiApplicationMcpServer(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getAiApplicationMcpServerCallable()
+ *
+ *
+ *
+ *
+ * ListAiApplicationMcpServers
+ * Lists McpServers under an AI Application.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listAiApplicationMcpServers(ListAiApplicationMcpServersRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listAiApplicationMcpServers(AiApplicationName parent)
+ *
listAiApplicationMcpServers(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listAiApplicationMcpServersPagedCallable()
+ *
listAiApplicationMcpServersCallable()
+ *
+ *
+ *
+ *
+ * GetFinding
+ * Gets details of a single Finding.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getFinding(GetFindingRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getFinding(FindingName name)
+ *
getFinding(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getFindingCallable()
+ *
+ *
+ *
+ *
+ * ListFindings
+ * Lists Findings in a given project and location.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listFindings(ListFindingsRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listFindings(LocationName parent)
+ *
listFindings(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listFindingsPagedCallable()
+ *
listFindingsCallable()
+ *
+ *
+ *
+ *
+ * GetAiApplicationEndpoint
+ * Gets details of a single Endpoint under an AI Application.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getAiApplicationEndpoint(GetAiApplicationEndpointRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getAiApplicationEndpoint(EndpointName name)
+ *
getAiApplicationEndpoint(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getAiApplicationEndpointCallable()
+ *
+ *
+ *
+ *
+ * ListAiApplicationEndpoints
+ * Lists Endpoints under an AI Application.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listAiApplicationEndpoints(ListAiApplicationEndpointsRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listAiApplicationEndpoints(AiApplicationName parent)
+ *
listAiApplicationEndpoints(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listAiApplicationEndpointsPagedCallable()
+ *
listAiApplicationEndpointsCallable()
+ *
+ *
+ *
+ *
+ * GetSkillEncryptionSpec
+ * ========================================================================= # Skill Encryption Spec Service Methods
+ *
Gets the customer-managed encryption key (CMEK) configuration for Skills in a specific project and location.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getSkillEncryptionSpec(GetSkillEncryptionSpecRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getSkillEncryptionSpec(SkillEncryptionSpecName name)
+ *
getSkillEncryptionSpec(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getSkillEncryptionSpecCallable()
+ *
+ *
+ *
+ *
+ * UpdateSkillEncryptionSpec
+ * Updates the customer-managed encryption key (CMEK) configuration for Skills in a specific project and location.
+ *
This method is only allowed when no Skills exist in the target project and location. If any Skill already exists in the location, the request fails with `FAILED_PRECONDITION`.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * updateSkillEncryptionSpecAsync(UpdateSkillEncryptionSpecRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * updateSkillEncryptionSpecAsync(SkillEncryptionSpec skillEncryptionSpec, FieldMask updateMask)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * updateSkillEncryptionSpecOperationCallable()
+ *
updateSkillEncryptionSpecCallable()
+ *
+ *
+ *
+ *
+ * ListLocations
+ * Lists information about the supported locations for this service.
+ *
This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project.
+ *
For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listLocations(ListLocationsRequest request)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listLocationsPagedCallable()
+ *
listLocationsCallable()
+ *
+ *
+ *
+ *
+ * GetLocation
+ * Gets information about a location.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getLocation(GetLocationRequest request)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getLocationCallable()
+ *
+ *
+ *
+ *
+ *
+ * See the individual methods for example code.
+ *
+ *
Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ *
This class can be customized by passing in a custom instance of AgentRegistrySettings to
+ * create(). For example:
+ *
+ *
To customize credentials:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AgentRegistrySettings agentRegistrySettings =
+ * AgentRegistrySettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * AgentRegistryClient agentRegistryClient = AgentRegistryClient.create(agentRegistrySettings);
+ * }
+ *
+ * To customize the endpoint:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AgentRegistrySettings agentRegistrySettings =
+ * AgentRegistrySettings.newBuilder().setEndpoint(myEndpoint).build();
+ * AgentRegistryClient agentRegistryClient = AgentRegistryClient.create(agentRegistrySettings);
+ * }
+ *
+ * To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over
+ * the wire:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AgentRegistrySettings agentRegistrySettings =
+ * AgentRegistrySettings.newHttpJsonBuilder().build();
+ * AgentRegistryClient agentRegistryClient = AgentRegistryClient.create(agentRegistrySettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public class AgentRegistryClient implements BackgroundResource {
+ private final @Nullable AgentRegistrySettings settings;
+ private final AgentRegistryStub stub;
+ private final OperationsClient httpJsonOperationsClient;
+ private final com.google.longrunning.OperationsClient operationsClient;
+
+ /** Constructs an instance of AgentRegistryClient with default settings. */
+ public static final AgentRegistryClient create() throws IOException {
+ return create(AgentRegistrySettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of AgentRegistryClient, using the given settings. The channels are
+ * created based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final AgentRegistryClient create(AgentRegistrySettings settings)
+ throws IOException {
+ return new AgentRegistryClient(settings);
+ }
+
+ /**
+ * Constructs an instance of AgentRegistryClient, using the given stub for making calls. This is
+ * for advanced usage - prefer using create(AgentRegistrySettings).
+ */
+ public static final AgentRegistryClient create(AgentRegistryStub stub) {
+ return new AgentRegistryClient(stub);
+ }
+
+ /**
+ * Constructs an instance of AgentRegistryClient, using the given settings. This is protected so
+ * that it is easy to make a subclass, but otherwise, the static factory methods should be
+ * preferred.
+ */
+ protected AgentRegistryClient(AgentRegistrySettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((AgentRegistryStubSettings) settings.getStubSettings()).createStub();
+ this.operationsClient =
+ com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
+ this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
+ }
+
+ protected AgentRegistryClient(AgentRegistryStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ this.operationsClient =
+ com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
+ this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
+ }
+
+ public final @Nullable AgentRegistrySettings getSettings() {
+ return settings;
+ }
+
+ public AgentRegistryStub getStub() {
+ return stub;
+ }
+
+ /**
+ * Returns the OperationsClient that can be used to query the status of a long-running operation
+ * returned by another API method call.
+ */
+ public final com.google.longrunning.OperationsClient getOperationsClient() {
+ return operationsClient;
+ }
+
+ /**
+ * Returns the OperationsClient that can be used to query the status of a long-running operation
+ * returned by another API method call.
+ */
+ @BetaApi
+ public final OperationsClient getHttpJsonOperationsClient() {
+ return httpJsonOperationsClient;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Agents in a given project and location.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (Agent element : agentRegistryClient.listAgents(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListAgentsRequest
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAgentsPagedResponse listAgents(@Nullable LocationName parent) {
+ ListAgentsRequest request =
+ ListAgentsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build();
+ return listAgents(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Agents in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (Agent element : agentRegistryClient.listAgents(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListAgentsRequest
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAgentsPagedResponse listAgents(String parent) {
+ ListAgentsRequest request = ListAgentsRequest.newBuilder().setParent(parent).build();
+ return listAgents(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Agents in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * ListAgentsRequest request =
+ * ListAgentsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (Agent element : agentRegistryClient.listAgents(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAgentsPagedResponse listAgents(ListAgentsRequest request) {
+ return listAgentsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Agents in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * ListAgentsRequest request =
+ * ListAgentsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture future = agentRegistryClient.listAgentsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Agent element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listAgentsPagedCallable() {
+ return stub.listAgentsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Agents in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * ListAgentsRequest request =
+ * ListAgentsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListAgentsResponse response = agentRegistryClient.listAgentsCallable().call(request);
+ * for (Agent element : response.getAgentsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listAgentsCallable() {
+ return stub.listAgentsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Searches Agents in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (Agent element : agentRegistryClient.searchAgents(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for SearchAgentsRequest. Format:
+ * `projects/{project}/locations/{location}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SearchAgentsPagedResponse searchAgents(@Nullable LocationName parent) {
+ SearchAgentsRequest request =
+ SearchAgentsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return searchAgents(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Searches Agents in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (Agent element : agentRegistryClient.searchAgents(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for SearchAgentsRequest. Format:
+ * `projects/{project}/locations/{location}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SearchAgentsPagedResponse searchAgents(String parent) {
+ SearchAgentsRequest request = SearchAgentsRequest.newBuilder().setParent(parent).build();
+ return searchAgents(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Searches Agents in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * SearchAgentsRequest request =
+ * SearchAgentsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setSearchString("searchString120312793")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Agent element : agentRegistryClient.searchAgents(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SearchAgentsPagedResponse searchAgents(SearchAgentsRequest request) {
+ return searchAgentsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Searches Agents in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * SearchAgentsRequest request =
+ * SearchAgentsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setSearchString("searchString120312793")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future = agentRegistryClient.searchAgentsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Agent element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ searchAgentsPagedCallable() {
+ return stub.searchAgentsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Searches Agents in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * SearchAgentsRequest request =
+ * SearchAgentsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setSearchString("searchString120312793")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * SearchAgentsResponse response = agentRegistryClient.searchAgentsCallable().call(request);
+ * for (Agent element : response.getAgentsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable searchAgentsCallable() {
+ return stub.searchAgentsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * AgentName name = AgentName.ofProjectLocationAgentName("[PROJECT]", "[LOCATION]", "[AGENT]");
+ * Agent response = agentRegistryClient.getAgent(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Agent getAgent(@Nullable AgentName name) {
+ GetAgentRequest request =
+ GetAgentRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getAgent(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * String name =
+ * AgentName.ofProjectLocationAgentName("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
+ * Agent response = agentRegistryClient.getAgent(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Agent getAgent(String name) {
+ GetAgentRequest request = GetAgentRequest.newBuilder().setName(name).build();
+ return getAgent(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * GetAgentRequest request =
+ * GetAgentRequest.newBuilder()
+ * .setName(
+ * AgentName.ofProjectLocationAgentName("[PROJECT]", "[LOCATION]", "[AGENT]")
+ * .toString())
+ * .build();
+ * Agent response = agentRegistryClient.getAgent(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Agent getAgent(GetAgentRequest request) {
+ return getAgentCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * GetAgentRequest request =
+ * GetAgentRequest.newBuilder()
+ * .setName(
+ * AgentName.ofProjectLocationAgentName("[PROJECT]", "[LOCATION]", "[AGENT]")
+ * .toString())
+ * .build();
+ * ApiFuture future = agentRegistryClient.getAgentCallable().futureCall(request);
+ * // Do something.
+ * Agent response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getAgentCallable() {
+ return stub.getAgentCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Endpoints in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (Endpoint element : agentRegistryClient.listEndpoints(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location to list endpoints in. Expected format:
+ * `projects/{project}/locations/{location}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListEndpointsPagedResponse listEndpoints(@Nullable LocationName parent) {
+ ListEndpointsRequest request =
+ ListEndpointsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listEndpoints(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Endpoints in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (Endpoint element : agentRegistryClient.listEndpoints(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location to list endpoints in. Expected format:
+ * `projects/{project}/locations/{location}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListEndpointsPagedResponse listEndpoints(String parent) {
+ ListEndpointsRequest request = ListEndpointsRequest.newBuilder().setParent(parent).build();
+ return listEndpoints(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Endpoints in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * ListEndpointsRequest request =
+ * ListEndpointsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * for (Endpoint element : agentRegistryClient.listEndpoints(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest request) {
+ return listEndpointsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Endpoints in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * ListEndpointsRequest request =
+ * ListEndpointsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * ApiFuture future =
+ * agentRegistryClient.listEndpointsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Endpoint element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listEndpointsPagedCallable() {
+ return stub.listEndpointsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Endpoints in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * ListEndpointsRequest request =
+ * ListEndpointsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * while (true) {
+ * ListEndpointsResponse response = agentRegistryClient.listEndpointsCallable().call(request);
+ * for (Endpoint element : response.getEndpointsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listEndpointsCallable() {
+ return stub.listEndpointsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Endpoint.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * EndpointName name =
+ * EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
+ * Endpoint response = agentRegistryClient.getEndpoint(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the endpoint to retrieve. Format:
+ * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Endpoint getEndpoint(@Nullable EndpointName name) {
+ GetEndpointRequest request =
+ GetEndpointRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getEndpoint(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Endpoint.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * String name =
+ * EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString();
+ * Endpoint response = agentRegistryClient.getEndpoint(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the endpoint to retrieve. Format:
+ * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Endpoint getEndpoint(String name) {
+ GetEndpointRequest request = GetEndpointRequest.newBuilder().setName(name).build();
+ return getEndpoint(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Endpoint.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * GetEndpointRequest request =
+ * GetEndpointRequest.newBuilder()
+ * .setName(
+ * EndpointName.ofProjectLocationEndpointName(
+ * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString())
+ * .build();
+ * Endpoint response = agentRegistryClient.getEndpoint(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Endpoint getEndpoint(GetEndpointRequest request) {
+ return getEndpointCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Endpoint.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * GetEndpointRequest request =
+ * GetEndpointRequest.newBuilder()
+ * .setName(
+ * EndpointName.ofProjectLocationEndpointName(
+ * "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+ * .toString())
+ * .build();
+ * ApiFuture future = agentRegistryClient.getEndpointCallable().futureCall(request);
+ * // Do something.
+ * Endpoint response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getEndpointCallable() {
+ return stub.getEndpointCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists McpServers in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (McpServer element : agentRegistryClient.listMcpServers(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListMcpServersRequest. Format:
+ * `projects/{project}/locations/{location}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListMcpServersPagedResponse listMcpServers(@Nullable LocationName parent) {
+ ListMcpServersRequest request =
+ ListMcpServersRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listMcpServers(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists McpServers in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (McpServer element : agentRegistryClient.listMcpServers(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListMcpServersRequest. Format:
+ * `projects/{project}/locations/{location}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListMcpServersPagedResponse listMcpServers(String parent) {
+ ListMcpServersRequest request = ListMcpServersRequest.newBuilder().setParent(parent).build();
+ return listMcpServers(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists McpServers in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * ListMcpServersRequest request =
+ * ListMcpServersRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (McpServer element : agentRegistryClient.listMcpServers(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListMcpServersPagedResponse listMcpServers(ListMcpServersRequest request) {
+ return listMcpServersPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists McpServers in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * ListMcpServersRequest request =
+ * ListMcpServersRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture future =
+ * agentRegistryClient.listMcpServersPagedCallable().futureCall(request);
+ * // Do something.
+ * for (McpServer element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listMcpServersPagedCallable() {
+ return stub.listMcpServersPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists McpServers in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * ListMcpServersRequest request =
+ * ListMcpServersRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListMcpServersResponse response =
+ * agentRegistryClient.listMcpServersCallable().call(request);
+ * for (McpServer element : response.getMcpServersList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listMcpServersCallable() {
+ return stub.listMcpServersCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Searches McpServers in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (McpServer element : agentRegistryClient.searchMcpServers(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for SearchMcpServersRequest. Format:
+ * `projects/{project}/locations/{location}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SearchMcpServersPagedResponse searchMcpServers(@Nullable LocationName parent) {
+ SearchMcpServersRequest request =
+ SearchMcpServersRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return searchMcpServers(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Searches McpServers in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (McpServer element : agentRegistryClient.searchMcpServers(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for SearchMcpServersRequest. Format:
+ * `projects/{project}/locations/{location}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SearchMcpServersPagedResponse searchMcpServers(String parent) {
+ SearchMcpServersRequest request =
+ SearchMcpServersRequest.newBuilder().setParent(parent).build();
+ return searchMcpServers(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Searches McpServers in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * SearchMcpServersRequest request =
+ * SearchMcpServersRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setSearchString("searchString120312793")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (McpServer element : agentRegistryClient.searchMcpServers(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SearchMcpServersPagedResponse searchMcpServers(SearchMcpServersRequest request) {
+ return searchMcpServersPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Searches McpServers in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * SearchMcpServersRequest request =
+ * SearchMcpServersRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setSearchString("searchString120312793")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * agentRegistryClient.searchMcpServersPagedCallable().futureCall(request);
+ * // Do something.
+ * for (McpServer element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ searchMcpServersPagedCallable() {
+ return stub.searchMcpServersPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Searches McpServers in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * SearchMcpServersRequest request =
+ * SearchMcpServersRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setSearchString("searchString120312793")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * SearchMcpServersResponse response =
+ * agentRegistryClient.searchMcpServersCallable().call(request);
+ * for (McpServer element : response.getMcpServersList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ searchMcpServersCallable() {
+ return stub.searchMcpServersCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single McpServer.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * McpServerName name =
+ * McpServerName.ofProjectLocationMcpServerName("[PROJECT]", "[LOCATION]", "[MCP_SERVER]");
+ * McpServer response = agentRegistryClient.getMcpServer(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final McpServer getMcpServer(@Nullable McpServerName name) {
+ GetMcpServerRequest request =
+ GetMcpServerRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getMcpServer(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single McpServer.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * String name =
+ * McpServerName.ofProjectLocationMcpServerName("[PROJECT]", "[LOCATION]", "[MCP_SERVER]")
+ * .toString();
+ * McpServer response = agentRegistryClient.getMcpServer(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final McpServer getMcpServer(String name) {
+ GetMcpServerRequest request = GetMcpServerRequest.newBuilder().setName(name).build();
+ return getMcpServer(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single McpServer.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * GetMcpServerRequest request =
+ * GetMcpServerRequest.newBuilder()
+ * .setName(
+ * McpServerName.ofProjectLocationMcpServerName(
+ * "[PROJECT]", "[LOCATION]", "[MCP_SERVER]")
+ * .toString())
+ * .build();
+ * McpServer response = agentRegistryClient.getMcpServer(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final McpServer getMcpServer(GetMcpServerRequest request) {
+ return getMcpServerCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single McpServer.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * GetMcpServerRequest request =
+ * GetMcpServerRequest.newBuilder()
+ * .setName(
+ * McpServerName.ofProjectLocationMcpServerName(
+ * "[PROJECT]", "[LOCATION]", "[MCP_SERVER]")
+ * .toString())
+ * .build();
+ * ApiFuture future = agentRegistryClient.getMcpServerCallable().futureCall(request);
+ * // Do something.
+ * McpServer response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getMcpServerCallable() {
+ return stub.getMcpServerCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Services in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (Service element : agentRegistryClient.listServices(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location to list services in. Expected format:
+ * `projects/{project}/locations/{location}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListServicesPagedResponse listServices(@Nullable LocationName parent) {
+ ListServicesRequest request =
+ ListServicesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listServices(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Services in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (Service element : agentRegistryClient.listServices(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location to list services in. Expected format:
+ * `projects/{project}/locations/{location}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListServicesPagedResponse listServices(String parent) {
+ ListServicesRequest request = ListServicesRequest.newBuilder().setParent(parent).build();
+ return listServices(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Services in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * ListServicesRequest request =
+ * ListServicesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * for (Service element : agentRegistryClient.listServices(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListServicesPagedResponse listServices(ListServicesRequest request) {
+ return listServicesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Services in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * ListServicesRequest request =
+ * ListServicesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * ApiFuture future =
+ * agentRegistryClient.listServicesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Service element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listServicesPagedCallable() {
+ return stub.listServicesPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Services in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * ListServicesRequest request =
+ * ListServicesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * while (true) {
+ * ListServicesResponse response = agentRegistryClient.listServicesCallable().call(request);
+ * for (Service element : response.getServicesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listServicesCallable() {
+ return stub.listServicesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Service.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
+ * Service response = agentRegistryClient.getService(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Service. Format:
+ * `projects/{project}/locations/{location}/services/{service}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Service getService(@Nullable ServiceName name) {
+ GetServiceRequest request =
+ GetServiceRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getService(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Service.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
+ * Service response = agentRegistryClient.getService(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Service. Format:
+ * `projects/{project}/locations/{location}/services/{service}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Service getService(String name) {
+ GetServiceRequest request = GetServiceRequest.newBuilder().setName(name).build();
+ return getService(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Service.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * GetServiceRequest request =
+ * GetServiceRequest.newBuilder()
+ * .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
+ * .build();
+ * Service response = agentRegistryClient.getService(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Service getService(GetServiceRequest request) {
+ return getServiceCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Service.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * GetServiceRequest request =
+ * GetServiceRequest.newBuilder()
+ * .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
+ * .build();
+ * ApiFuture future = agentRegistryClient.getServiceCallable().futureCall(request);
+ * // Do something.
+ * Service response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getServiceCallable() {
+ return stub.getServiceCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Service in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * Service service = Service.newBuilder().build();
+ * String serviceId = "serviceId-194185552";
+ * Service response = agentRegistryClient.createServiceAsync(parent, service, serviceId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The project and location to create the Service in. Expected format:
+ * `projects/{project}/locations/{location}`.
+ * @param service Required. The Service resource that is being created. Format:
+ * `projects/{project}/locations/{location}/services/{service}`.
+ * @param serviceId Required. The ID to use for the service, which will become the final component
+ * of the service's resource name.
+ * This value should be 4-63 characters, and valid characters are `/[a-z][0-9]-/`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createServiceAsync(
+ @Nullable LocationName parent, Service service, String serviceId) {
+ CreateServiceRequest request =
+ CreateServiceRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setService(service)
+ .setServiceId(serviceId)
+ .build();
+ return createServiceAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Service in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * Service service = Service.newBuilder().build();
+ * String serviceId = "serviceId-194185552";
+ * Service response = agentRegistryClient.createServiceAsync(parent, service, serviceId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The project and location to create the Service in. Expected format:
+ * `projects/{project}/locations/{location}`.
+ * @param service Required. The Service resource that is being created. Format:
+ * `projects/{project}/locations/{location}/services/{service}`.
+ * @param serviceId Required. The ID to use for the service, which will become the final component
+ * of the service's resource name.
+ * This value should be 4-63 characters, and valid characters are `/[a-z][0-9]-/`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createServiceAsync(
+ String parent, Service service, String serviceId) {
+ CreateServiceRequest request =
+ CreateServiceRequest.newBuilder()
+ .setParent(parent)
+ .setService(service)
+ .setServiceId(serviceId)
+ .build();
+ return createServiceAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Service in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * CreateServiceRequest request =
+ * CreateServiceRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setServiceId("serviceId-194185552")
+ * .setService(Service.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Service response = agentRegistryClient.createServiceAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createServiceAsync(
+ CreateServiceRequest request) {
+ return createServiceOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Service in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * CreateServiceRequest request =
+ * CreateServiceRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setServiceId("serviceId-194185552")
+ * .setService(Service.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * agentRegistryClient.createServiceOperationCallable().futureCall(request);
+ * // Do something.
+ * Service response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ createServiceOperationCallable() {
+ return stub.createServiceOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Service in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * CreateServiceRequest request =
+ * CreateServiceRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setServiceId("serviceId-194185552")
+ * .setService(Service.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future = agentRegistryClient.createServiceCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable createServiceCallable() {
+ return stub.createServiceCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the parameters of a single Service.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * Service service = Service.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Service response = agentRegistryClient.updateServiceAsync(service, updateMask).get();
+ * }
+ * }
+ *
+ * @param service Required. The Service resource that is being updated. Format:
+ * `projects/{project}/locations/{location}/services/{service}`.
+ * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the
+ * Service resource by the update. The fields specified in the update_mask are relative to the
+ * resource, not the full request. A field will be overwritten if it is in the mask. If the
+ * user does not provide a mask then all fields present in the request will be overwritten.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateServiceAsync(
+ Service service, FieldMask updateMask) {
+ UpdateServiceRequest request =
+ UpdateServiceRequest.newBuilder().setService(service).setUpdateMask(updateMask).build();
+ return updateServiceAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the parameters of a single Service.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * UpdateServiceRequest request =
+ * UpdateServiceRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setService(Service.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Service response = agentRegistryClient.updateServiceAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateServiceAsync(
+ UpdateServiceRequest request) {
+ return updateServiceOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the parameters of a single Service.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * UpdateServiceRequest request =
+ * UpdateServiceRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setService(Service.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * agentRegistryClient.updateServiceOperationCallable().futureCall(request);
+ * // Do something.
+ * Service response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ updateServiceOperationCallable() {
+ return stub.updateServiceOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the parameters of a single Service.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * UpdateServiceRequest request =
+ * UpdateServiceRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setService(Service.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future = agentRegistryClient.updateServiceCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable updateServiceCallable() {
+ return stub.updateServiceCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single Service.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
+ * agentRegistryClient.deleteServiceAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the Service. Format:
+ * `projects/{project}/locations/{location}/services/{service}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteServiceAsync(
+ @Nullable ServiceName name) {
+ DeleteServiceRequest request =
+ DeleteServiceRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return deleteServiceAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single Service.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
+ * agentRegistryClient.deleteServiceAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the Service. Format:
+ * `projects/{project}/locations/{location}/services/{service}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteServiceAsync(String name) {
+ DeleteServiceRequest request = DeleteServiceRequest.newBuilder().setName(name).build();
+ return deleteServiceAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single Service.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * DeleteServiceRequest request =
+ * DeleteServiceRequest.newBuilder()
+ * .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * agentRegistryClient.deleteServiceAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteServiceAsync(
+ DeleteServiceRequest request) {
+ return deleteServiceOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single Service.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * DeleteServiceRequest request =
+ * DeleteServiceRequest.newBuilder()
+ * .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * agentRegistryClient.deleteServiceOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deleteServiceOperationCallable() {
+ return stub.deleteServiceOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single Service.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * DeleteServiceRequest request =
+ * DeleteServiceRequest.newBuilder()
+ * .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future = agentRegistryClient.deleteServiceCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable deleteServiceCallable() {
+ return stub.deleteServiceCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Bindings in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (Binding element : agentRegistryClient.listBindings(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location to list bindings in. Expected format:
+ * `projects/{project}/locations/{location}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBindingsPagedResponse listBindings(@Nullable LocationName parent) {
+ ListBindingsRequest request =
+ ListBindingsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listBindings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Bindings in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (Binding element : agentRegistryClient.listBindings(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location to list bindings in. Expected format:
+ * `projects/{project}/locations/{location}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBindingsPagedResponse listBindings(String parent) {
+ ListBindingsRequest request = ListBindingsRequest.newBuilder().setParent(parent).build();
+ return listBindings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Bindings in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * ListBindingsRequest request =
+ * ListBindingsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (Binding element : agentRegistryClient.listBindings(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBindingsPagedResponse listBindings(ListBindingsRequest request) {
+ return listBindingsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Bindings in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * ListBindingsRequest request =
+ * ListBindingsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture future =
+ * agentRegistryClient.listBindingsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Binding element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listBindingsPagedCallable() {
+ return stub.listBindingsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Bindings in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * ListBindingsRequest request =
+ * ListBindingsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListBindingsResponse response = agentRegistryClient.listBindingsCallable().call(request);
+ * for (Binding element : response.getBindingsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listBindingsCallable() {
+ return stub.listBindingsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Binding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * BindingName name = BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]");
+ * Binding response = agentRegistryClient.getBinding(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Binding. Format:
+ * `projects/{project}/locations/{location}/bindings/{binding}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Binding getBinding(@Nullable BindingName name) {
+ GetBindingRequest request =
+ GetBindingRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getBinding(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Binding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * String name = BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString();
+ * Binding response = agentRegistryClient.getBinding(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Binding. Format:
+ * `projects/{project}/locations/{location}/bindings/{binding}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Binding getBinding(String name) {
+ GetBindingRequest request = GetBindingRequest.newBuilder().setName(name).build();
+ return getBinding(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Binding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * GetBindingRequest request =
+ * GetBindingRequest.newBuilder()
+ * .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString())
+ * .build();
+ * Binding response = agentRegistryClient.getBinding(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Binding getBinding(GetBindingRequest request) {
+ return getBindingCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Binding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * GetBindingRequest request =
+ * GetBindingRequest.newBuilder()
+ * .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString())
+ * .build();
+ * ApiFuture future = agentRegistryClient.getBindingCallable().futureCall(request);
+ * // Do something.
+ * Binding response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getBindingCallable() {
+ return stub.getBindingCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Binding in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * Binding binding = Binding.newBuilder().build();
+ * String bindingId = "bindingId-920966528";
+ * Binding response = agentRegistryClient.createBindingAsync(parent, binding, bindingId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The project and location to create the Binding in. Expected format:
+ * `projects/{project}/locations/{location}`.
+ * @param binding Required. The Binding resource that is being created.
+ * @param bindingId Required. The ID to use for the binding, which will become the final component
+ * of the binding's resource name.
+ * This value should be 4-63 characters, and must conform to RFC-1034. Specifically, it
+ * must match the regular expression `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createBindingAsync(
+ @Nullable LocationName parent, Binding binding, String bindingId) {
+ CreateBindingRequest request =
+ CreateBindingRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setBinding(binding)
+ .setBindingId(bindingId)
+ .build();
+ return createBindingAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Binding in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * Binding binding = Binding.newBuilder().build();
+ * String bindingId = "bindingId-920966528";
+ * Binding response = agentRegistryClient.createBindingAsync(parent, binding, bindingId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The project and location to create the Binding in. Expected format:
+ * `projects/{project}/locations/{location}`.
+ * @param binding Required. The Binding resource that is being created.
+ * @param bindingId Required. The ID to use for the binding, which will become the final component
+ * of the binding's resource name.
+ * This value should be 4-63 characters, and must conform to RFC-1034. Specifically, it
+ * must match the regular expression `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createBindingAsync(
+ String parent, Binding binding, String bindingId) {
+ CreateBindingRequest request =
+ CreateBindingRequest.newBuilder()
+ .setParent(parent)
+ .setBinding(binding)
+ .setBindingId(bindingId)
+ .build();
+ return createBindingAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Binding in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * CreateBindingRequest request =
+ * CreateBindingRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setBindingId("bindingId-920966528")
+ * .setBinding(Binding.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Binding response = agentRegistryClient.createBindingAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createBindingAsync(
+ CreateBindingRequest request) {
+ return createBindingOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Binding in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * CreateBindingRequest request =
+ * CreateBindingRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setBindingId("bindingId-920966528")
+ * .setBinding(Binding.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * agentRegistryClient.createBindingOperationCallable().futureCall(request);
+ * // Do something.
+ * Binding response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ createBindingOperationCallable() {
+ return stub.createBindingOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Binding in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * CreateBindingRequest request =
+ * CreateBindingRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setBindingId("bindingId-920966528")
+ * .setBinding(Binding.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future = agentRegistryClient.createBindingCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable createBindingCallable() {
+ return stub.createBindingCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the parameters of a single Binding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * Binding binding = Binding.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Binding response = agentRegistryClient.updateBindingAsync(binding, updateMask).get();
+ * }
+ * }
+ *
+ * @param binding Required. The Binding resource that is being updated.
+ * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the
+ * Binding resource by the update. The fields specified in the update_mask are relative to the
+ * resource, not the full request. A field will be overwritten if it is in the mask. If the
+ * user does not provide a mask then all fields present in the request will be overwritten.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateBindingAsync(
+ Binding binding, FieldMask updateMask) {
+ UpdateBindingRequest request =
+ UpdateBindingRequest.newBuilder().setBinding(binding).setUpdateMask(updateMask).build();
+ return updateBindingAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the parameters of a single Binding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * UpdateBindingRequest request =
+ * UpdateBindingRequest.newBuilder()
+ * .setBinding(Binding.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Binding response = agentRegistryClient.updateBindingAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateBindingAsync(
+ UpdateBindingRequest request) {
+ return updateBindingOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the parameters of a single Binding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * UpdateBindingRequest request =
+ * UpdateBindingRequest.newBuilder()
+ * .setBinding(Binding.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * agentRegistryClient.updateBindingOperationCallable().futureCall(request);
+ * // Do something.
+ * Binding response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ updateBindingOperationCallable() {
+ return stub.updateBindingOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the parameters of a single Binding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * UpdateBindingRequest request =
+ * UpdateBindingRequest.newBuilder()
+ * .setBinding(Binding.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future = agentRegistryClient.updateBindingCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable updateBindingCallable() {
+ return stub.updateBindingCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single Binding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * BindingName name = BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]");
+ * agentRegistryClient.deleteBindingAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the Binding. Format:
+ * `projects/{project}/locations/{location}/bindings/{binding}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteBindingAsync(
+ @Nullable BindingName name) {
+ DeleteBindingRequest request =
+ DeleteBindingRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return deleteBindingAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single Binding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * String name = BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString();
+ * agentRegistryClient.deleteBindingAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the Binding. Format:
+ * `projects/{project}/locations/{location}/bindings/{binding}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteBindingAsync(String name) {
+ DeleteBindingRequest request = DeleteBindingRequest.newBuilder().setName(name).build();
+ return deleteBindingAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single Binding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * DeleteBindingRequest request =
+ * DeleteBindingRequest.newBuilder()
+ * .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * agentRegistryClient.deleteBindingAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteBindingAsync(
+ DeleteBindingRequest request) {
+ return deleteBindingOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single Binding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * DeleteBindingRequest request =
+ * DeleteBindingRequest.newBuilder()
+ * .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * agentRegistryClient.deleteBindingOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deleteBindingOperationCallable() {
+ return stub.deleteBindingOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single Binding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * DeleteBindingRequest request =
+ * DeleteBindingRequest.newBuilder()
+ * .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future = agentRegistryClient.deleteBindingCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable deleteBindingCallable() {
+ return stub.deleteBindingCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetches available Bindings.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (Binding element : agentRegistryClient.fetchAvailableBindings(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, in the format `projects/{project}/locations/{location}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FetchAvailableBindingsPagedResponse fetchAvailableBindings(
+ @Nullable LocationName parent) {
+ FetchAvailableBindingsRequest request =
+ FetchAvailableBindingsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return fetchAvailableBindings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetches available Bindings.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (Binding element : agentRegistryClient.fetchAvailableBindings(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, in the format `projects/{project}/locations/{location}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FetchAvailableBindingsPagedResponse fetchAvailableBindings(String parent) {
+ FetchAvailableBindingsRequest request =
+ FetchAvailableBindingsRequest.newBuilder().setParent(parent).build();
+ return fetchAvailableBindings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetches available Bindings.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * FetchAvailableBindingsRequest request =
+ * FetchAvailableBindingsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Binding element : agentRegistryClient.fetchAvailableBindings(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FetchAvailableBindingsPagedResponse fetchAvailableBindings(
+ FetchAvailableBindingsRequest request) {
+ return fetchAvailableBindingsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetches available Bindings.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * FetchAvailableBindingsRequest request =
+ * FetchAvailableBindingsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * agentRegistryClient.fetchAvailableBindingsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Binding element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ fetchAvailableBindingsPagedCallable() {
+ return stub.fetchAvailableBindingsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetches available Bindings.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * FetchAvailableBindingsRequest request =
+ * FetchAvailableBindingsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * FetchAvailableBindingsResponse response =
+ * agentRegistryClient.fetchAvailableBindingsCallable().call(request);
+ * for (Binding element : response.getBindingsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ fetchAvailableBindingsCallable() {
+ return stub.fetchAvailableBindingsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * ========================================================================= # Skills Collection
+ * APIs
+ *
+ * Creates a Skill resource container, optionally publishing the initial SkillRevision inline
+ * in a single, atomic CRUD roundtrip.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * Skill skill = Skill.newBuilder().build();
+ * String skillId = "skillId2147320652";
+ * Skill response = agentRegistryClient.createSkillAsync(parent, skill, skillId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The project and location location to bootstrap.
+ * @param skill Required. Skill container body config.
+ * @param skillId Required. Custom, user-defined unique container identifier. Must be unique
+ * within the parent project and location. This value should be 4-64 characters, and valid
+ * characters are `/[a-z][0-9]-/`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createSkillAsync(
+ @Nullable LocationName parent, Skill skill, String skillId) {
+ CreateSkillRequest request =
+ CreateSkillRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setSkill(skill)
+ .setSkillId(skillId)
+ .build();
+ return createSkillAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * ========================================================================= # Skills Collection
+ * APIs
+ *
+ * Creates a Skill resource container, optionally publishing the initial SkillRevision inline
+ * in a single, atomic CRUD roundtrip.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * Skill skill = Skill.newBuilder().build();
+ * String skillId = "skillId2147320652";
+ * Skill response = agentRegistryClient.createSkillAsync(parent, skill, skillId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The project and location location to bootstrap.
+ * @param skill Required. Skill container body config.
+ * @param skillId Required. Custom, user-defined unique container identifier. Must be unique
+ * within the parent project and location. This value should be 4-64 characters, and valid
+ * characters are `/[a-z][0-9]-/`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createSkillAsync(
+ String parent, Skill skill, String skillId) {
+ CreateSkillRequest request =
+ CreateSkillRequest.newBuilder()
+ .setParent(parent)
+ .setSkill(skill)
+ .setSkillId(skillId)
+ .build();
+ return createSkillAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * ========================================================================= # Skills Collection
+ * APIs
+ *
+ * Creates a Skill resource container, optionally publishing the initial SkillRevision inline
+ * in a single, atomic CRUD roundtrip.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * CreateSkillRequest request =
+ * CreateSkillRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setSkillId("skillId2147320652")
+ * .setSkill(Skill.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Skill response = agentRegistryClient.createSkillAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createSkillAsync(
+ CreateSkillRequest request) {
+ return createSkillOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * ========================================================================= # Skills Collection
+ * APIs
+ *
+ * Creates a Skill resource container, optionally publishing the initial SkillRevision inline
+ * in a single, atomic CRUD roundtrip.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * CreateSkillRequest request =
+ * CreateSkillRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setSkillId("skillId2147320652")
+ * .setSkill(Skill.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * agentRegistryClient.createSkillOperationCallable().futureCall(request);
+ * // Do something.
+ * Skill response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ createSkillOperationCallable() {
+ return stub.createSkillOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * ========================================================================= # Skills Collection
+ * APIs
+ *
+ * Creates a Skill resource container, optionally publishing the initial SkillRevision inline
+ * in a single, atomic CRUD roundtrip.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * CreateSkillRequest request =
+ * CreateSkillRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setSkillId("skillId2147320652")
+ * .setSkill(Skill.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future = agentRegistryClient.createSkillCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable createSkillCallable() {
+ return stub.createSkillCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetches the active configuration and metadata of a Skill.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * SkillName name = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]");
+ * Skill response = agentRegistryClient.getSkill(name);
+ * }
+ * }
+ *
+ * @param name Required. Target resource container name.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Skill getSkill(@Nullable SkillName name) {
+ GetSkillRequest request =
+ GetSkillRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getSkill(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetches the active configuration and metadata of a Skill.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * String name = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString();
+ * Skill response = agentRegistryClient.getSkill(name);
+ * }
+ * }
+ *
+ * @param name Required. Target resource container name.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Skill getSkill(String name) {
+ GetSkillRequest request = GetSkillRequest.newBuilder().setName(name).build();
+ return getSkill(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetches the active configuration and metadata of a Skill.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * GetSkillRequest request =
+ * GetSkillRequest.newBuilder()
+ * .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString())
+ * .build();
+ * Skill response = agentRegistryClient.getSkill(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Skill getSkill(GetSkillRequest request) {
+ return getSkillCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetches the active configuration and metadata of a Skill.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * GetSkillRequest request =
+ * GetSkillRequest.newBuilder()
+ * .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString())
+ * .build();
+ * ApiFuture future = agentRegistryClient.getSkillCallable().futureCall(request);
+ * // Do something.
+ * Skill response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getSkillCallable() {
+ return stub.getSkillCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates Skill metadata or overrides active pointers/state using REST standard PATCH.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * Skill skill = Skill.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Skill response = agentRegistryClient.updateSkillAsync(skill, updateMask).get();
+ * }
+ * }
+ *
+ * @param skill Required. Mutable Skill container config fields to write.
+ * @param updateMask Optional. Standard update target mask mapping relative fields.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateSkillAsync(
+ Skill skill, FieldMask updateMask) {
+ UpdateSkillRequest request =
+ UpdateSkillRequest.newBuilder().setSkill(skill).setUpdateMask(updateMask).build();
+ return updateSkillAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates Skill metadata or overrides active pointers/state using REST standard PATCH.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * UpdateSkillRequest request =
+ * UpdateSkillRequest.newBuilder()
+ * .setSkill(Skill.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Skill response = agentRegistryClient.updateSkillAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateSkillAsync(
+ UpdateSkillRequest request) {
+ return updateSkillOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates Skill metadata or overrides active pointers/state using REST standard PATCH.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * UpdateSkillRequest request =
+ * UpdateSkillRequest.newBuilder()
+ * .setSkill(Skill.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * agentRegistryClient.updateSkillOperationCallable().futureCall(request);
+ * // Do something.
+ * Skill response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ updateSkillOperationCallable() {
+ return stub.updateSkillOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates Skill metadata or overrides active pointers/state using REST standard PATCH.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * UpdateSkillRequest request =
+ * UpdateSkillRequest.newBuilder()
+ * .setSkill(Skill.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future = agentRegistryClient.updateSkillCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable updateSkillCallable() {
+ return stub.updateSkillCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Skill container along with all its revisions.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * SkillName name = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]");
+ * agentRegistryClient.deleteSkillAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Target Skill container name to remove.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteSkillAsync(
+ @Nullable SkillName name) {
+ DeleteSkillRequest request =
+ DeleteSkillRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return deleteSkillAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Skill container along with all its revisions.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * String name = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString();
+ * agentRegistryClient.deleteSkillAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Target Skill container name to remove.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteSkillAsync(String name) {
+ DeleteSkillRequest request = DeleteSkillRequest.newBuilder().setName(name).build();
+ return deleteSkillAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Skill container along with all its revisions.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * DeleteSkillRequest request =
+ * DeleteSkillRequest.newBuilder()
+ * .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .build();
+ * agentRegistryClient.deleteSkillAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteSkillAsync(
+ DeleteSkillRequest request) {
+ return deleteSkillOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Skill container along with all its revisions.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * DeleteSkillRequest request =
+ * DeleteSkillRequest.newBuilder()
+ * .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .build();
+ * OperationFuture future =
+ * agentRegistryClient.deleteSkillOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deleteSkillOperationCallable() {
+ return stub.deleteSkillOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Skill container along with all its revisions.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * DeleteSkillRequest request =
+ * DeleteSkillRequest.newBuilder()
+ * .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .build();
+ * ApiFuture future = agentRegistryClient.deleteSkillCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable deleteSkillCallable() {
+ return stub.deleteSkillCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists logical Skills available in a project.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (Skill element : agentRegistryClient.listSkills(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListSkillsRequest
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListSkillsPagedResponse listSkills(@Nullable LocationName parent) {
+ ListSkillsRequest request =
+ ListSkillsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build();
+ return listSkills(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists logical Skills available in a project.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (Skill element : agentRegistryClient.listSkills(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListSkillsRequest
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListSkillsPagedResponse listSkills(String parent) {
+ ListSkillsRequest request = ListSkillsRequest.newBuilder().setParent(parent).build();
+ return listSkills(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists logical Skills available in a project.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * ListSkillsRequest request =
+ * ListSkillsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (Skill element : agentRegistryClient.listSkills(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListSkillsPagedResponse listSkills(ListSkillsRequest request) {
+ return listSkillsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists logical Skills available in a project.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * ListSkillsRequest request =
+ * ListSkillsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture future = agentRegistryClient.listSkillsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Skill element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listSkillsPagedCallable() {
+ return stub.listSkillsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists logical Skills available in a project.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * ListSkillsRequest request =
+ * ListSkillsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListSkillsResponse response = agentRegistryClient.listSkillsCallable().call(request);
+ * for (Skill element : response.getSkillsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listSkillsCallable() {
+ return stub.listSkillsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Custom deep-search method to filter by frontmatter or query SKILL.md text blobs.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * SearchSkillsRequest request =
+ * SearchSkillsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setSearchType(SearchType.forNumber(0))
+ * .setSearchString("searchString120312793")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
* .setPageToken("pageToken873572522")
+ * .build();
+ * for (Skill element : agentRegistryClient.searchSkills(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SearchSkillsPagedResponse searchSkills(SearchSkillsRequest request) {
+ return searchSkillsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Custom deep-search method to filter by frontmatter or query SKILL.md text blobs.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * SearchSkillsRequest request =
+ * SearchSkillsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setSearchType(SearchType.forNumber(0))
+ * .setSearchString("searchString120312793")
* .setFilter("filter-1274492040")
- * .setOrderBy("orderBy-1207110587")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
* .build();
- * ApiFuture future = agentRegistryClient.listAgentsPagedCallable().futureCall(request);
+ * ApiFuture future = agentRegistryClient.searchSkillsPagedCallable().futureCall(request);
* // Do something.
- * for (Agent element : future.get().iterateAll()) {
+ * for (Skill element : future.get().iterateAll()) {
* // doThingsWith(element);
* }
* }
* }
*/
- public final UnaryCallable listAgentsPagedCallable() {
- return stub.listAgentsPagedCallable();
+ public final UnaryCallable
+ searchSkillsPagedCallable() {
+ return stub.searchSkillsPagedCallable();
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists Agents in a given project and location.
+ * Custom deep-search method to filter by frontmatter or query SKILL.md text blobs.
*
* Sample code:
*
@@ -746,17 +4684,18 @@ public final UnaryCallable listAgent
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * ListAgentsRequest request =
- * ListAgentsRequest.newBuilder()
+ * SearchSkillsRequest request =
+ * SearchSkillsRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setSearchType(SearchType.forNumber(0))
+ * .setSearchString("searchString120312793")
+ * .setFilter("filter-1274492040")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
- * .setOrderBy("orderBy-1207110587")
* .build();
* while (true) {
- * ListAgentsResponse response = agentRegistryClient.listAgentsCallable().call(request);
- * for (Agent element : response.getAgentsList()) {
+ * SearchSkillsResponse response = agentRegistryClient.searchSkillsCallable().call(request);
+ * for (Skill element : response.getSkillsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
@@ -769,13 +4708,13 @@ public final UnaryCallable listAgent
* }
* }
*/
- public final UnaryCallableSample code:
*
@@ -786,28 +4725,36 @@ public final UnaryCallable Sample code:
*
@@ -818,25 +4765,36 @@ public final SearchAgentsPagedResponse searchAgents(@Nullable LocationName paren
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
- * for (Agent element : agentRegistryClient.searchAgents(parent).iterateAll()) {
- * // doThingsWith(element);
- * }
+ * String parent = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString();
+ * SkillRevision skillRevision = SkillRevision.newBuilder().build();
+ * String skillRevisionId = "skillRevisionId-983110777";
+ * SkillRevision response =
+ * agentRegistryClient
+ * .createSkillRevisionAsync(parent, skillRevision, skillRevisionId)
+ * .get();
* }
* }
*
- * @param parent Required. Parent value for SearchAgentsRequest. Format:
- * `projects/{project}/locations/{location}`.
+ * @param parent Required. Parent logical container name.
+ * @param skillRevision Required. Immutable SkillRevision snapshot definition schema.
+ * @param skillRevisionId Optional. Custom, user-defined unique revision identifier. Format: 4-63
+ * characters, matching regex `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final SearchAgentsPagedResponse searchAgents(String parent) {
- SearchAgentsRequest request = SearchAgentsRequest.newBuilder().setParent(parent).build();
- return searchAgents(request);
+ public final OperationFuture Sample code:
*
@@ -847,29 +4805,28 @@ public final SearchAgentsPagedResponse searchAgents(String parent) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * SearchAgentsRequest request =
- * SearchAgentsRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setSearchString("searchString120312793")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
+ * CreateSkillRevisionRequest request =
+ * CreateSkillRevisionRequest.newBuilder()
+ * .setParent(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString())
+ * .setSkillRevision(SkillRevision.newBuilder().build())
+ * .setSkillRevisionId("skillRevisionId-983110777")
+ * .setRequestId("requestId693933066")
* .build();
- * for (Agent element : agentRegistryClient.searchAgents(request).iterateAll()) {
- * // doThingsWith(element);
- * }
+ * SkillRevision response = agentRegistryClient.createSkillRevisionAsync(request).get();
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final SearchAgentsPagedResponse searchAgents(SearchAgentsRequest request) {
- return searchAgentsPagedCallable().call(request);
+ public final OperationFuture Sample code:
*
@@ -880,29 +4837,28 @@ public final SearchAgentsPagedResponse searchAgents(SearchAgentsRequest request)
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * SearchAgentsRequest request =
- * SearchAgentsRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setSearchString("searchString120312793")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
+ * CreateSkillRevisionRequest request =
+ * CreateSkillRevisionRequest.newBuilder()
+ * .setParent(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString())
+ * .setSkillRevision(SkillRevision.newBuilder().build())
+ * .setSkillRevisionId("skillRevisionId-983110777")
+ * .setRequestId("requestId693933066")
* .build();
- * ApiFuture Sample code:
*
@@ -913,35 +4869,27 @@ public final SearchAgentsPagedResponse searchAgents(SearchAgentsRequest request)
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * SearchAgentsRequest request =
- * SearchAgentsRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setSearchString("searchString120312793")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
+ * CreateSkillRevisionRequest request =
+ * CreateSkillRevisionRequest.newBuilder()
+ * .setParent(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString())
+ * .setSkillRevision(SkillRevision.newBuilder().build())
+ * .setSkillRevisionId("skillRevisionId-983110777")
+ * .setRequestId("requestId693933066")
* .build();
- * while (true) {
- * SearchAgentsResponse response = agentRegistryClient.searchAgentsCallable().call(request);
- * for (Agent element : response.getAgentsList()) {
- * // doThingsWith(element);
- * }
- * String nextPageToken = response.getNextPageToken();
- * if (!Strings.isNullOrEmpty(nextPageToken)) {
- * request = request.toBuilder().setPageToken(nextPageToken).build();
- * } else {
- * break;
- * }
- * }
+ * ApiFuture Sample code:
*
@@ -952,23 +4900,24 @@ public final UnaryCallable Sample code:
*
@@ -979,22 +4928,174 @@ public final Agent getAgent(@Nullable AgentName name) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * String name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
- * Agent response = agentRegistryClient.getAgent(name);
+ * String name =
+ * SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]").toString();
+ * SkillRevision response = agentRegistryClient.getSkillRevision(name);
* }
* }
*
- * @param name Required. Name of the resource
+ * @param name Required. Target revision name.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SkillRevision getSkillRevision(String name) {
+ GetSkillRevisionRequest request = GetSkillRevisionRequest.newBuilder().setName(name).build();
+ return getSkillRevision(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single immutable Revision.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
*
@@ -1005,24 +5106,28 @@ public final Agent getAgent(String name) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * GetAgentRequest request =
- * GetAgentRequest.newBuilder()
- * .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+ * DeleteSkillRevisionRequest request =
+ * DeleteSkillRevisionRequest.newBuilder()
+ * .setName(
+ * SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]")
+ * .toString())
+ * .setRequestId("requestId693933066")
* .build();
- * Agent response = agentRegistryClient.getAgent(request);
+ * OperationFuture Sample code:
*
@@ -1033,23 +5138,27 @@ public final Agent getAgent(GetAgentRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * GetAgentRequest request =
- * GetAgentRequest.newBuilder()
- * .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+ * DeleteSkillRevisionRequest request =
+ * DeleteSkillRevisionRequest.newBuilder()
+ * .setName(
+ * SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]")
+ * .toString())
+ * .setRequestId("requestId693933066")
* .build();
- * ApiFuture Sample code:
*
@@ -1060,28 +5169,27 @@ public final UnaryCallable Sample code:
*
@@ -1092,25 +5200,25 @@ public final ListEndpointsPagedResponse listEndpoints(@Nullable LocationName par
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
- * for (Endpoint element : agentRegistryClient.listEndpoints(parent).iterateAll()) {
+ * String parent = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString();
+ * for (SkillRevision element : agentRegistryClient.listSkillRevisions(parent).iterateAll()) {
* // doThingsWith(element);
* }
* }
* }
*
- * @param parent Required. The project and location to list endpoints in. Expected format:
- * `projects/{project}/locations/{location}`.
+ * @param parent Required. Parent logical container name to query.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListEndpointsPagedResponse listEndpoints(String parent) {
- ListEndpointsRequest request = ListEndpointsRequest.newBuilder().setParent(parent).build();
- return listEndpoints(request);
+ public final ListSkillRevisionsPagedResponse listSkillRevisions(String parent) {
+ ListSkillRevisionsRequest request =
+ ListSkillRevisionsRequest.newBuilder().setParent(parent).build();
+ return listSkillRevisions(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists Endpoints in a given project and location.
+ * Lists all revisions belonging to a parent Skill.
*
* Sample code:
*
@@ -1121,14 +5229,13 @@ public final ListEndpointsPagedResponse listEndpoints(String parent) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * ListEndpointsRequest request =
- * ListEndpointsRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * ListSkillRevisionsRequest request =
+ * ListSkillRevisionsRequest.newBuilder()
+ * .setParent(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
* .build();
- * for (Endpoint element : agentRegistryClient.listEndpoints(request).iterateAll()) {
+ * for (SkillRevision element : agentRegistryClient.listSkillRevisions(request).iterateAll()) {
* // doThingsWith(element);
* }
* }
@@ -1137,13 +5244,14 @@ public final ListEndpointsPagedResponse listEndpoints(String parent) {
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest request) {
- return listEndpointsPagedCallable().call(request);
+ public final ListSkillRevisionsPagedResponse listSkillRevisions(
+ ListSkillRevisionsRequest request) {
+ return listSkillRevisionsPagedCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists Endpoints in a given project and location.
+ * Lists all revisions belonging to a parent Skill.
*
* Sample code:
*
@@ -1154,30 +5262,29 @@ public final ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest reque
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * ListEndpointsRequest request =
- * ListEndpointsRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * ListSkillRevisionsRequest request =
+ * ListSkillRevisionsRequest.newBuilder()
+ * .setParent(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
* .build();
- * ApiFuture Sample code:
*
@@ -1188,16 +5295,16 @@ public final ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest reque
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * ListEndpointsRequest request =
- * ListEndpointsRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * ListSkillRevisionsRequest request =
+ * ListSkillRevisionsRequest.newBuilder()
+ * .setParent(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
* .build();
* while (true) {
- * ListEndpointsResponse response = agentRegistryClient.listEndpointsCallable().call(request);
- * for (Endpoint element : response.getEndpointsList()) {
+ * ListSkillRevisionsResponse response =
+ * agentRegistryClient.listSkillRevisionsCallable().call(request);
+ * for (SkillRevision element : response.getSkillRevisionsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
@@ -1210,13 +5317,14 @@ public final ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest reque
* }
* }
*/
- public final UnaryCallable Sample code:
*
@@ -1227,24 +5335,24 @@ public final UnaryCallable Sample code:
*
@@ -1255,23 +5363,23 @@ public final Endpoint getEndpoint(@Nullable EndpointName name) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * String name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString();
- * Endpoint response = agentRegistryClient.getEndpoint(name);
+ * String name = PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]").toString();
+ * Publisher response = agentRegistryClient.getPublisher(name);
* }
* }
*
- * @param name Required. The name of the endpoint to retrieve. Format:
- * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+ * @param name Required. Target publisher resource name. Format:
+ * `projects/{project}/locations/{location}/publishers/{publisher}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final Endpoint getEndpoint(String name) {
- GetEndpointRequest request = GetEndpointRequest.newBuilder().setName(name).build();
- return getEndpoint(request);
+ public final Publisher getPublisher(String name) {
+ GetPublisherRequest request = GetPublisherRequest.newBuilder().setName(name).build();
+ return getPublisher(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets details of a single Endpoint.
+ * Fetches details of a specific Publisher.
*
* Sample code:
*
@@ -1282,24 +5390,24 @@ public final Endpoint getEndpoint(String name) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * GetEndpointRequest request =
- * GetEndpointRequest.newBuilder()
- * .setName(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString())
+ * GetPublisherRequest request =
+ * GetPublisherRequest.newBuilder()
+ * .setName(PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]").toString())
* .build();
- * Endpoint response = agentRegistryClient.getEndpoint(request);
+ * Publisher response = agentRegistryClient.getPublisher(request);
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final Endpoint getEndpoint(GetEndpointRequest request) {
- return getEndpointCallable().call(request);
+ public final Publisher getPublisher(GetPublisherRequest request) {
+ return getPublisherCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets details of a single Endpoint.
+ * Fetches details of a specific Publisher.
*
* Sample code:
*
@@ -1310,23 +5418,23 @@ public final Endpoint getEndpoint(GetEndpointRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * GetEndpointRequest request =
- * GetEndpointRequest.newBuilder()
- * .setName(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString())
+ * GetPublisherRequest request =
+ * GetPublisherRequest.newBuilder()
+ * .setName(PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]").toString())
* .build();
- * ApiFuture Sample code:
*
@@ -1338,27 +5446,27 @@ public final UnaryCallable Sample code:
*
@@ -1370,24 +5478,24 @@ public final ListMcpServersPagedResponse listMcpServers(@Nullable LocationName p
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
- * for (McpServer element : agentRegistryClient.listMcpServers(parent).iterateAll()) {
+ * for (Publisher element : agentRegistryClient.listPublishers(parent).iterateAll()) {
* // doThingsWith(element);
* }
* }
* }
*
- * @param parent Required. Parent value for ListMcpServersRequest. Format:
- * `projects/{project}/locations/{location}`.
+ * @param parent Required. Parent location to query. Format:
+ * `projects/{project}/locations/{location}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListMcpServersPagedResponse listMcpServers(String parent) {
- ListMcpServersRequest request = ListMcpServersRequest.newBuilder().setParent(parent).build();
- return listMcpServers(request);
+ public final ListPublishersPagedResponse listPublishers(String parent) {
+ ListPublishersRequest request = ListPublishersRequest.newBuilder().setParent(parent).build();
+ return listPublishers(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists McpServers in a given project and location.
+ * Lists all Publishers in a location.
*
* Sample code:
*
@@ -1398,15 +5506,13 @@ public final ListMcpServersPagedResponse listMcpServers(String parent) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * ListMcpServersRequest request =
- * ListMcpServersRequest.newBuilder()
+ * ListPublishersRequest request =
+ * ListPublishersRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
- * .setOrderBy("orderBy-1207110587")
* .build();
- * for (McpServer element : agentRegistryClient.listMcpServers(request).iterateAll()) {
+ * for (Publisher element : agentRegistryClient.listPublishers(request).iterateAll()) {
* // doThingsWith(element);
* }
* }
@@ -1415,13 +5521,13 @@ public final ListMcpServersPagedResponse listMcpServers(String parent) {
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListMcpServersPagedResponse listMcpServers(ListMcpServersRequest request) {
- return listMcpServersPagedCallable().call(request);
+ public final ListPublishersPagedResponse listPublishers(ListPublishersRequest request) {
+ return listPublishersPagedCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists McpServers in a given project and location.
+ * Lists all Publishers in a location.
*
* Sample code:
*
@@ -1432,31 +5538,29 @@ public final ListMcpServersPagedResponse listMcpServers(ListMcpServersRequest re
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * ListMcpServersRequest request =
- * ListMcpServersRequest.newBuilder()
+ * ListPublishersRequest request =
+ * ListPublishersRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
- * .setOrderBy("orderBy-1207110587")
* .build();
- * ApiFuture Sample code:
*
@@ -1467,18 +5571,16 @@ public final ListMcpServersPagedResponse listMcpServers(ListMcpServersRequest re
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * ListMcpServersRequest request =
- * ListMcpServersRequest.newBuilder()
+ * ListPublishersRequest request =
+ * ListPublishersRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
- * .setOrderBy("orderBy-1207110587")
* .build();
* while (true) {
- * ListMcpServersResponse response =
- * agentRegistryClient.listMcpServersCallable().call(request);
- * for (McpServer element : response.getMcpServersList()) {
+ * ListPublishersResponse response =
+ * agentRegistryClient.listPublishersCallable().call(request);
+ * for (Publisher element : response.getPublishersList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
@@ -1491,14 +5593,127 @@ public final ListMcpServersPagedResponse listMcpServers(ListMcpServersRequest re
* }
* }
*/
- public final UnaryCallable Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
*
@@ -1510,27 +5725,27 @@ public final ListMcpServersPagedResponse listMcpServers(ListMcpServersRequest re
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- * for (McpServer element : agentRegistryClient.searchMcpServers(parent).iterateAll()) {
+ * for (AiApplication element : agentRegistryClient.listAiApplications(parent).iterateAll()) {
* // doThingsWith(element);
* }
* }
* }
*
- * @param parent Required. Parent value for SearchMcpServersRequest. Format:
- * `projects/{project}/locations/{location}`.
+ * @param parent Required. Parent project and location to query. Format:
+ * `projects/{project}/locations/{location}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final SearchMcpServersPagedResponse searchMcpServers(@Nullable LocationName parent) {
- SearchMcpServersRequest request =
- SearchMcpServersRequest.newBuilder()
+ public final ListAiApplicationsPagedResponse listAiApplications(@Nullable LocationName parent) {
+ ListAiApplicationsRequest request =
+ ListAiApplicationsRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.build();
- return searchMcpServers(request);
+ return listAiApplications(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Searches McpServers in a given project and location.
+ * Lists AI Applications in a given project and location.
*
* Sample code:
*
@@ -1542,25 +5757,25 @@ public final SearchMcpServersPagedResponse searchMcpServers(@Nullable LocationNa
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
- * for (McpServer element : agentRegistryClient.searchMcpServers(parent).iterateAll()) {
+ * for (AiApplication element : agentRegistryClient.listAiApplications(parent).iterateAll()) {
* // doThingsWith(element);
* }
* }
* }
*
- * @param parent Required. Parent value for SearchMcpServersRequest. Format:
- * `projects/{project}/locations/{location}`.
+ * @param parent Required. Parent project and location to query. Format:
+ * `projects/{project}/locations/{location}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final SearchMcpServersPagedResponse searchMcpServers(String parent) {
- SearchMcpServersRequest request =
- SearchMcpServersRequest.newBuilder().setParent(parent).build();
- return searchMcpServers(request);
+ public final ListAiApplicationsPagedResponse listAiApplications(String parent) {
+ ListAiApplicationsRequest request =
+ ListAiApplicationsRequest.newBuilder().setParent(parent).build();
+ return listAiApplications(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Searches McpServers in a given project and location.
+ * Lists AI Applications in a given project and location.
*
* Sample code:
*
@@ -1571,14 +5786,15 @@ public final SearchMcpServersPagedResponse searchMcpServers(String parent) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * SearchMcpServersRequest request =
- * SearchMcpServersRequest.newBuilder()
+ * ListAiApplicationsRequest request =
+ * ListAiApplicationsRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setSearchString("searchString120312793")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
* .build();
- * for (McpServer element : agentRegistryClient.searchMcpServers(request).iterateAll()) {
+ * for (AiApplication element : agentRegistryClient.listAiApplications(request).iterateAll()) {
* // doThingsWith(element);
* }
* }
@@ -1587,13 +5803,14 @@ public final SearchMcpServersPagedResponse searchMcpServers(String parent) {
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final SearchMcpServersPagedResponse searchMcpServers(SearchMcpServersRequest request) {
- return searchMcpServersPagedCallable().call(request);
+ public final ListAiApplicationsPagedResponse listAiApplications(
+ ListAiApplicationsRequest request) {
+ return listAiApplicationsPagedCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Searches McpServers in a given project and location.
+ * Lists AI Applications in a given project and location.
*
* Sample code:
*
@@ -1604,30 +5821,31 @@ public final SearchMcpServersPagedResponse searchMcpServers(SearchMcpServersRequ
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * SearchMcpServersRequest request =
- * SearchMcpServersRequest.newBuilder()
+ * ListAiApplicationsRequest request =
+ * ListAiApplicationsRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setSearchString("searchString120312793")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
- * .build();
- * ApiFuture Sample code:
*
@@ -1638,17 +5856,18 @@ public final SearchMcpServersPagedResponse searchMcpServers(SearchMcpServersRequ
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * SearchMcpServersRequest request =
- * SearchMcpServersRequest.newBuilder()
+ * ListAiApplicationsRequest request =
+ * ListAiApplicationsRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setSearchString("searchString120312793")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
* .build();
* while (true) {
- * SearchMcpServersResponse response =
- * agentRegistryClient.searchMcpServersCallable().call(request);
- * for (McpServer element : response.getMcpServersList()) {
+ * ListAiApplicationsResponse response =
+ * agentRegistryClient.listAiApplicationsCallable().call(request);
+ * for (AiApplication element : response.getAiApplicationsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
@@ -1661,14 +5880,14 @@ public final SearchMcpServersPagedResponse searchMcpServers(SearchMcpServersRequ
* }
* }
*/
- public final UnaryCallable Sample code:
*
@@ -1679,23 +5898,28 @@ public final SearchMcpServersPagedResponse searchMcpServers(SearchMcpServersRequ
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * McpServerName name = McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]");
- * McpServer response = agentRegistryClient.getMcpServer(name);
+ * AgentName name =
+ * AgentName.ofProjectLocationAiApplicationAgentName(
+ * "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[AGENT]");
+ * Agent response = agentRegistryClient.getAiApplicationAgent(name);
* }
* }
*
- * @param name Required. Name of the resource
+ * @param name Required. Name of the resource. Format:
+ * `projects/{project}/locations/{location}/aiApplications/{ai_application}/agents/{agent}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final McpServer getMcpServer(@Nullable McpServerName name) {
- GetMcpServerRequest request =
- GetMcpServerRequest.newBuilder().setName(name == null ? null : name.toString()).build();
- return getMcpServer(request);
+ public final Agent getAiApplicationAgent(@Nullable AgentName name) {
+ GetAiApplicationAgentRequest request =
+ GetAiApplicationAgentRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getAiApplicationAgent(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets details of a single McpServer.
+ * Gets details of a single Agent under an AI Application.
*
* Sample code:
*
@@ -1706,22 +5930,25 @@ public final McpServer getMcpServer(@Nullable McpServerName name) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * String name = McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]").toString();
- * McpServer response = agentRegistryClient.getMcpServer(name);
+ * String name =
+ * AgentName.ofProjectLocationAgentName("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
+ * Agent response = agentRegistryClient.getAiApplicationAgent(name);
* }
* }
*
- * @param name Required. Name of the resource
+ * @param name Required. Name of the resource. Format:
+ * `projects/{project}/locations/{location}/aiApplications/{ai_application}/agents/{agent}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final McpServer getMcpServer(String name) {
- GetMcpServerRequest request = GetMcpServerRequest.newBuilder().setName(name).build();
- return getMcpServer(request);
+ public final Agent getAiApplicationAgent(String name) {
+ GetAiApplicationAgentRequest request =
+ GetAiApplicationAgentRequest.newBuilder().setName(name).build();
+ return getAiApplicationAgent(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets details of a single McpServer.
+ * Gets details of a single Agent under an AI Application.
*
* Sample code:
*
@@ -1732,24 +5959,27 @@ public final McpServer getMcpServer(String name) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * GetMcpServerRequest request =
- * GetMcpServerRequest.newBuilder()
- * .setName(McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]").toString())
+ * GetAiApplicationAgentRequest request =
+ * GetAiApplicationAgentRequest.newBuilder()
+ * .setName(
+ * AgentName.ofProjectLocationAiApplicationAgentName(
+ * "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[AGENT]")
+ * .toString())
* .build();
- * McpServer response = agentRegistryClient.getMcpServer(request);
+ * Agent response = agentRegistryClient.getAiApplicationAgent(request);
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final McpServer getMcpServer(GetMcpServerRequest request) {
- return getMcpServerCallable().call(request);
+ public final Agent getAiApplicationAgent(GetAiApplicationAgentRequest request) {
+ return getAiApplicationAgentCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets details of a single McpServer.
+ * Gets details of a single Agent under an AI Application.
*
* Sample code:
*
@@ -1760,23 +5990,27 @@ public final McpServer getMcpServer(GetMcpServerRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * GetMcpServerRequest request =
- * GetMcpServerRequest.newBuilder()
- * .setName(McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]").toString())
+ * GetAiApplicationAgentRequest request =
+ * GetAiApplicationAgentRequest.newBuilder()
+ * .setName(
+ * AgentName.ofProjectLocationAiApplicationAgentName(
+ * "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[AGENT]")
+ * .toString())
* .build();
- * ApiFuture Sample code:
*
@@ -1787,28 +6021,30 @@ public final UnaryCallable Sample code:
*
@@ -1819,25 +6055,27 @@ public final ListServicesPagedResponse listServices(@Nullable LocationName paren
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
- * for (Service element : agentRegistryClient.listServices(parent).iterateAll()) {
+ * String parent =
+ * AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString();
+ * for (Agent element : agentRegistryClient.listAiApplicationAgents(parent).iterateAll()) {
* // doThingsWith(element);
* }
* }
* }
*
- * @param parent Required. The project and location to list services in. Expected format:
- * `projects/{project}/locations/{location}`.
+ * @param parent Required. Parent value (AI Application) for ListAiApplicationAgentsRequest.
+ * Format: `projects/{project}/locations/{location}/aiApplications/{ai_application}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListServicesPagedResponse listServices(String parent) {
- ListServicesRequest request = ListServicesRequest.newBuilder().setParent(parent).build();
- return listServices(request);
+ public final ListAiApplicationAgentsPagedResponse listAiApplicationAgents(String parent) {
+ ListAiApplicationAgentsRequest request =
+ ListAiApplicationAgentsRequest.newBuilder().setParent(parent).build();
+ return listAiApplicationAgents(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists Services in a given project and location.
+ * Lists Agents under an AI Application.
*
* Sample code:
*
@@ -1848,14 +6086,14 @@ public final ListServicesPagedResponse listServices(String parent) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * ListServicesRequest request =
- * ListServicesRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * ListAiApplicationAgentsRequest request =
+ * ListAiApplicationAgentsRequest.newBuilder()
+ * .setParent(
+ * AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
* .build();
- * for (Service element : agentRegistryClient.listServices(request).iterateAll()) {
+ * for (Agent element : agentRegistryClient.listAiApplicationAgents(request).iterateAll()) {
* // doThingsWith(element);
* }
* }
@@ -1864,13 +6102,14 @@ public final ListServicesPagedResponse listServices(String parent) {
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListServicesPagedResponse listServices(ListServicesRequest request) {
- return listServicesPagedCallable().call(request);
+ public final ListAiApplicationAgentsPagedResponse listAiApplicationAgents(
+ ListAiApplicationAgentsRequest request) {
+ return listAiApplicationAgentsPagedCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists Services in a given project and location.
+ * Lists Agents under an AI Application.
*
* Sample code:
*
@@ -1881,30 +6120,30 @@ public final ListServicesPagedResponse listServices(ListServicesRequest request)
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * ListServicesRequest request =
- * ListServicesRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * ListAiApplicationAgentsRequest request =
+ * ListAiApplicationAgentsRequest.newBuilder()
+ * .setParent(
+ * AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
* .build();
- * ApiFuture Sample code:
*
@@ -1915,16 +6154,17 @@ public final ListServicesPagedResponse listServices(ListServicesRequest request)
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * ListServicesRequest request =
- * ListServicesRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * ListAiApplicationAgentsRequest request =
+ * ListAiApplicationAgentsRequest.newBuilder()
+ * .setParent(
+ * AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
* .build();
* while (true) {
- * ListServicesResponse response = agentRegistryClient.listServicesCallable().call(request);
- * for (Service element : response.getServicesList()) {
+ * ListAiApplicationAgentsResponse response =
+ * agentRegistryClient.listAiApplicationAgentsCallable().call(request);
+ * for (Agent element : response.getAgentsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
@@ -1937,13 +6177,14 @@ public final ListServicesPagedResponse listServices(ListServicesRequest request)
* }
* }
*/
- public final UnaryCallable Sample code:
*
@@ -1954,24 +6195,28 @@ public final UnaryCallable Sample code:
*
@@ -1982,23 +6227,26 @@ public final Service getService(@Nullable ServiceName name) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
- * Service response = agentRegistryClient.getService(name);
+ * String name =
+ * McpServerName.ofProjectLocationMcpServerName("[PROJECT]", "[LOCATION]", "[MCP_SERVER]")
+ * .toString();
+ * McpServer response = agentRegistryClient.getAiApplicationMcpServer(name);
* }
* }
*
- * @param name Required. The name of the Service. Format:
- * `projects/{project}/locations/{location}/services/{service}`.
+ * @param name Required. Name of the resource. Format:
+ * `projects/{project}/locations/{location}/aiApplications/{ai_application}/mcpServers/{mcp_server}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final Service getService(String name) {
- GetServiceRequest request = GetServiceRequest.newBuilder().setName(name).build();
- return getService(request);
+ public final McpServer getAiApplicationMcpServer(String name) {
+ GetAiApplicationMcpServerRequest request =
+ GetAiApplicationMcpServerRequest.newBuilder().setName(name).build();
+ return getAiApplicationMcpServer(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets details of a single Service.
+ * Gets details of a single McpServer under an AI Application.
*
* Sample code:
*
@@ -2009,24 +6257,27 @@ public final Service getService(String name) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * GetServiceRequest request =
- * GetServiceRequest.newBuilder()
- * .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
+ * GetAiApplicationMcpServerRequest request =
+ * GetAiApplicationMcpServerRequest.newBuilder()
+ * .setName(
+ * McpServerName.ofProjectLocationAiApplicationMcpServerName(
+ * "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[MCP_SERVER]")
+ * .toString())
* .build();
- * Service response = agentRegistryClient.getService(request);
+ * McpServer response = agentRegistryClient.getAiApplicationMcpServer(request);
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final Service getService(GetServiceRequest request) {
- return getServiceCallable().call(request);
+ public final McpServer getAiApplicationMcpServer(GetAiApplicationMcpServerRequest request) {
+ return getAiApplicationMcpServerCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets details of a single Service.
+ * Gets details of a single McpServer under an AI Application.
*
* Sample code:
*
@@ -2037,23 +6288,28 @@ public final Service getService(GetServiceRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * GetServiceRequest request =
- * GetServiceRequest.newBuilder()
- * .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
+ * GetAiApplicationMcpServerRequest request =
+ * GetAiApplicationMcpServerRequest.newBuilder()
+ * .setName(
+ * McpServerName.ofProjectLocationAiApplicationMcpServerName(
+ * "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[MCP_SERVER]")
+ * .toString())
* .build();
- * ApiFuture Sample code:
*
@@ -2064,36 +6320,31 @@ public final UnaryCallable This value should be 4-63 characters, and valid characters are `/[a-z][0-9]-/`.
+ * @param parent Required. Parent value (AI Application) for ListAiApplicationMcpServersRequest.
+ * Format: `projects/{project}/locations/{location}/aiApplications/{ai_application}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final OperationFuture Sample code:
*
@@ -2104,36 +6355,168 @@ public final OperationFuture This value should be 4-63 characters, and valid characters are `/[a-z][0-9]-/`.
+ * @param parent Required. Parent value (AI Application) for ListAiApplicationMcpServersRequest.
+ * Format: `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAiApplicationMcpServersPagedResponse listAiApplicationMcpServers(String parent) {
+ ListAiApplicationMcpServersRequest request =
+ ListAiApplicationMcpServersRequest.newBuilder().setParent(parent).build();
+ return listAiApplicationMcpServers(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists McpServers under an AI Application.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
*
@@ -2144,28 +6527,23 @@ public final OperationFuture Sample code:
*
@@ -2176,28 +6554,24 @@ public final OperationFuture Sample code:
*
@@ -2208,26 +6582,23 @@ public final OperationFuture Sample code:
*
@@ -2238,30 +6609,28 @@ public final UnaryCallable Sample code:
*
@@ -2272,27 +6641,25 @@ public final OperationFuture Sample code:
*
@@ -2303,27 +6670,30 @@ public final OperationFuture Sample code:
*
@@ -2334,25 +6704,31 @@ public final OperationFuture Sample code:
*
@@ -2363,25 +6739,36 @@ public final UnaryCallable Sample code:
*
@@ -2392,23 +6779,28 @@ public final OperationFuture Sample code:
*
@@ -2419,26 +6811,26 @@ public final OperationFuture Sample code:
*
@@ -2449,26 +6841,27 @@ public final OperationFuture Sample code:
*
@@ -2479,24 +6872,28 @@ public final OperationFuture Sample code:
*
@@ -2507,28 +6904,30 @@ public final UnaryCallable Sample code:
*
@@ -2539,25 +6938,27 @@ public final ListBindingsPagedResponse listBindings(@Nullable LocationName paren
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
- * for (Binding element : agentRegistryClient.listBindings(parent).iterateAll()) {
+ * String parent =
+ * AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString();
+ * for (Endpoint element : agentRegistryClient.listAiApplicationEndpoints(parent).iterateAll()) {
* // doThingsWith(element);
* }
* }
* }
*
- * @param parent Required. The project and location to list bindings in. Expected format:
- * `projects/{project}/locations/{location}`.
+ * @param parent Required. Parent value (AI Application) for ListAiApplicationEndpointsRequest.
+ * Format: `projects/{project}/locations/{location}/aiApplications/{ai_application}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListBindingsPagedResponse listBindings(String parent) {
- ListBindingsRequest request = ListBindingsRequest.newBuilder().setParent(parent).build();
- return listBindings(request);
+ public final ListAiApplicationEndpointsPagedResponse listAiApplicationEndpoints(String parent) {
+ ListAiApplicationEndpointsRequest request =
+ ListAiApplicationEndpointsRequest.newBuilder().setParent(parent).build();
+ return listAiApplicationEndpoints(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists Bindings in a given project and location.
+ * Lists Endpoints under an AI Application.
*
* Sample code:
*
@@ -2568,15 +6969,15 @@ public final ListBindingsPagedResponse listBindings(String parent) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * ListBindingsRequest request =
- * ListBindingsRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * ListAiApplicationEndpointsRequest request =
+ * ListAiApplicationEndpointsRequest.newBuilder()
+ * .setParent(
+ * AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
- * .setOrderBy("orderBy-1207110587")
* .build();
- * for (Binding element : agentRegistryClient.listBindings(request).iterateAll()) {
+ * for (Endpoint element :
+ * agentRegistryClient.listAiApplicationEndpoints(request).iterateAll()) {
* // doThingsWith(element);
* }
* }
@@ -2585,13 +6986,14 @@ public final ListBindingsPagedResponse listBindings(String parent) {
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListBindingsPagedResponse listBindings(ListBindingsRequest request) {
- return listBindingsPagedCallable().call(request);
+ public final ListAiApplicationEndpointsPagedResponse listAiApplicationEndpoints(
+ ListAiApplicationEndpointsRequest request) {
+ return listAiApplicationEndpointsPagedCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists Bindings in a given project and location.
+ * Lists Endpoints under an AI Application.
*
* Sample code:
*
@@ -2602,31 +7004,31 @@ public final ListBindingsPagedResponse listBindings(ListBindingsRequest request)
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * ListBindingsRequest request =
- * ListBindingsRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * ListAiApplicationEndpointsRequest request =
+ * ListAiApplicationEndpointsRequest.newBuilder()
+ * .setParent(
+ * AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
- * .setOrderBy("orderBy-1207110587")
* .build();
- * ApiFuture Sample code:
*
@@ -2637,17 +7039,17 @@ public final ListBindingsPagedResponse listBindings(ListBindingsRequest request)
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * ListBindingsRequest request =
- * ListBindingsRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * ListAiApplicationEndpointsRequest request =
+ * ListAiApplicationEndpointsRequest.newBuilder()
+ * .setParent(
+ * AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
- * .setOrderBy("orderBy-1207110587")
* .build();
- * while (true) {
- * ListBindingsResponse response = agentRegistryClient.listBindingsCallable().call(request);
- * for (Binding element : response.getBindingsList()) {
+ * while (true) {
+ * ListAiApplicationEndpointsResponse response =
+ * agentRegistryClient.listAiApplicationEndpointsCallable().call(request);
+ * for (Endpoint element : response.getEndpointsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
@@ -2660,13 +7062,18 @@ public final ListBindingsPagedResponse listBindings(ListBindingsRequest request)
* }
* }
*/
- public final UnaryCallable Gets the customer-managed encryption key (CMEK) configuration for Skills in a specific
+ * project and location.
*
* Sample code:
*
@@ -2677,24 +7084,30 @@ public final UnaryCallable Gets the customer-managed encryption key (CMEK) configuration for Skills in a specific
+ * project and location.
*
* Sample code:
*
@@ -2705,23 +7118,28 @@ public final Binding getBinding(@Nullable BindingName name) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * String name = BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString();
- * Binding response = agentRegistryClient.getBinding(name);
+ * String name = SkillEncryptionSpecName.of("[PROJECT]", "[LOCATION]").toString();
+ * SkillEncryptionSpec response = agentRegistryClient.getSkillEncryptionSpec(name);
* }
* }
*
- * @param name Required. The name of the Binding. Format:
- * `projects/{project}/locations/{location}/bindings/{binding}`.
+ * @param name Required. The name of the SkillEncryptionSpec to retrieve. Format:
+ * `projects/{project}/locations/{location}/skillEncryptionSpec`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final Binding getBinding(String name) {
- GetBindingRequest request = GetBindingRequest.newBuilder().setName(name).build();
- return getBinding(request);
+ public final SkillEncryptionSpec getSkillEncryptionSpec(String name) {
+ GetSkillEncryptionSpecRequest request =
+ GetSkillEncryptionSpecRequest.newBuilder().setName(name).build();
+ return getSkillEncryptionSpec(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets details of a single Binding.
+ * ========================================================================= # Skill Encryption
+ * Spec Service Methods
+ *
+ * Gets the customer-managed encryption key (CMEK) configuration for Skills in a specific
+ * project and location.
*
* Sample code:
*
@@ -2732,24 +7150,28 @@ public final Binding getBinding(String name) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * GetBindingRequest request =
- * GetBindingRequest.newBuilder()
- * .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString())
+ * GetSkillEncryptionSpecRequest request =
+ * GetSkillEncryptionSpecRequest.newBuilder()
+ * .setName(SkillEncryptionSpecName.of("[PROJECT]", "[LOCATION]").toString())
* .build();
- * Binding response = agentRegistryClient.getBinding(request);
+ * SkillEncryptionSpec response = agentRegistryClient.getSkillEncryptionSpec(request);
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final Binding getBinding(GetBindingRequest request) {
- return getBindingCallable().call(request);
+ public final SkillEncryptionSpec getSkillEncryptionSpec(GetSkillEncryptionSpecRequest request) {
+ return getSkillEncryptionSpecCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets details of a single Binding.
+ * ========================================================================= # Skill Encryption
+ * Spec Service Methods
+ *
+ * Gets the customer-managed encryption key (CMEK) configuration for Skills in a specific
+ * project and location.
*
* Sample code:
*
@@ -2760,63 +7182,29 @@ public final Binding getBinding(GetBindingRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * GetBindingRequest request =
- * GetBindingRequest.newBuilder()
- * .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString())
+ * GetSkillEncryptionSpecRequest request =
+ * GetSkillEncryptionSpecRequest.newBuilder()
+ * .setName(SkillEncryptionSpecName.of("[PROJECT]", "[LOCATION]").toString())
* .build();
- * ApiFuture Sample code:
- *
- * This value should be 4-63 characters, and must conform to RFC-1034. Specifically, it
- * must match the regular expression `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final OperationFuture This method is only allowed when no Skills exist in the target project and location. If any
+ * Skill already exists in the location, the request fails with `FAILED_PRECONDITION`.
*
* Sample code:
*
@@ -2827,36 +7215,39 @@ public final OperationFuture This value should be 4-63 characters, and must conform to RFC-1034. Specifically, it
- * must match the regular expression `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
+ * @param skillEncryptionSpec Required. The SkillEncryptionSpec to update.
+ * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the
+ * SkillEncryptionSpec resource by the update. The fields specified in the update_mask are
+ * relative to the resource, not the full request. A field will be overwritten if it is in the
+ * mask. If the user does not provide a mask then all fields present in the request will be
+ * overwritten.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final OperationFuture This method is only allowed when no Skills exist in the target project and location. If any
+ * Skill already exists in the location, the request fails with `FAILED_PRECONDITION`.
*
* Sample code:
*
@@ -2867,28 +7258,31 @@ public final OperationFuture This method is only allowed when no Skills exist in the target project and location. If any
+ * Skill already exists in the location, the request fails with `FAILED_PRECONDITION`.
*
* Sample code:
*
@@ -2899,28 +7293,31 @@ public final OperationFuture This method is only allowed when no Skills exist in the target project and location. If any
+ * Skill already exists in the location, the request fails with `FAILED_PRECONDITION`.
*
* Sample code:
*
@@ -2931,26 +7328,38 @@ public final OperationFuture This method lists locations based on the resource scope provided inthe
+ * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field:
+ * ***Global locations**: If `name` is empty, the method lists thepublic
+ * locations available to all projects. * **Project-specificlocations**: If
+ * `name` follows the format`projects/{project}`, the method lists locations visible to
+ * thatspecific project. This includes public, private, or otherproject-specific locations enabled
+ * for the project.
+ *
+ * For gRPC and client library implementations, the resource name ispassed as the `name` field.
+ * For direct service calls, the resourcename isincorporated into the request path based on the
+ * specific serviceimplementation and version.
*
* Sample code:
*
@@ -2961,29 +7370,41 @@ public final UnaryCallable This method lists locations based on the resource scope provided inthe
+ * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field:
+ * ***Global locations**: If `name` is empty, the method lists thepublic
+ * locations available to all projects. * **Project-specificlocations**: If
+ * `name` follows the format`projects/{project}`, the method lists locations visible to
+ * thatspecific project. This includes public, private, or otherproject-specific locations enabled
+ * for the project.
+ *
+ * For gRPC and client library implementations, the resource name ispassed as the `name` field.
+ * For direct service calls, the resourcename isincorporated into the request path based on the
+ * specific serviceimplementation and version.
*
* Sample code:
*
@@ -2994,27 +7415,42 @@ public final OperationFuture This method lists locations based on the resource scope provided inthe
+ * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field:
+ * ***Global locations**: If `name` is empty, the method lists thepublic
+ * locations available to all projects. * **Project-specificlocations**: If
+ * `name` follows the format`projects/{project}`, the method lists locations visible to
+ * thatspecific project. This includes public, private, or otherproject-specific locations enabled
+ * for the project.
+ *
+ * For gRPC and client library implementations, the resource name ispassed as the `name` field.
+ * For direct service calls, the resourcename isincorporated into the request path based on the
+ * specific serviceimplementation and version.
*
* Sample code:
*
@@ -3025,27 +7461,35 @@ public final OperationFuture Sample code:
*
@@ -3056,25 +7500,21 @@ public final OperationFuture Sample code:
*
@@ -3085,1141 +7525,1400 @@ public final UnaryCallable Sample code:
- *
- * Sample code:
- *
- * Sample code:
- *
- * Sample code:
- *
- * Sample code:
- *
- * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * GetSkillRevisionRequest request =
+ * GetSkillRevisionRequest.newBuilder()
+ * .setName(
+ * SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]")
+ * .toString())
+ * .build();
+ * SkillRevision response = agentRegistryClient.getSkillRevision(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SkillRevision getSkillRevision(GetSkillRevisionRequest request) {
+ return getSkillRevisionCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single immutable Revision.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * GetSkillRevisionRequest request =
+ * GetSkillRevisionRequest.newBuilder()
+ * .setName(
+ * SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * SkillRevisionName name =
+ * SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]");
+ * agentRegistryClient.deleteSkillRevisionAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Target revision name to remove.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * String name =
+ * SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]").toString();
+ * agentRegistryClient.deleteSkillRevisionAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Target revision name to remove.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * DeleteSkillRevisionRequest request =
+ * DeleteSkillRevisionRequest.newBuilder()
+ * .setName(
+ * SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * agentRegistryClient.deleteSkillRevisionAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final Agent getAgent(String name) {
- GetAgentRequest request = GetAgentRequest.newBuilder().setName(name).build();
- return getAgent(request);
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * AiApplicationName name = AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]");
+ * AiApplication response = agentRegistryClient.getAiApplication(name);
+ * }
+ * }
+ *
+ * @param name Required. Target AI Application resource name. Format:
+ * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AiApplication getAiApplication(@Nullable AiApplicationName name) {
+ GetAiApplicationRequest request =
+ GetAiApplicationRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getAiApplication(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single AI Application.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * String name = AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString();
+ * AiApplication response = agentRegistryClient.getAiApplication(name);
+ * }
+ * }
+ *
+ * @param name Required. Target AI Application resource name. Format:
+ * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AiApplication getAiApplication(String name) {
+ GetAiApplicationRequest request = GetAiApplicationRequest.newBuilder().setName(name).build();
+ return getAiApplication(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single AI Application.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * GetAiApplicationRequest request =
+ * GetAiApplicationRequest.newBuilder()
+ * .setName(
+ * AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString())
+ * .build();
+ * AiApplication response = agentRegistryClient.getAiApplication(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AiApplication getAiApplication(GetAiApplicationRequest request) {
+ return getAiApplicationCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single AI Application.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * GetAiApplicationRequest request =
+ * GetAiApplicationRequest.newBuilder()
+ * .setName(
+ * AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * ListAiApplicationMcpServersRequest request =
+ * ListAiApplicationMcpServersRequest.newBuilder()
+ * .setParent(
+ * AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (McpServer element :
+ * agentRegistryClient.listAiApplicationMcpServers(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAiApplicationMcpServersPagedResponse listAiApplicationMcpServers(
+ ListAiApplicationMcpServersRequest request) {
+ return listAiApplicationMcpServersPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists McpServers under an AI Application.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * ListAiApplicationMcpServersRequest request =
+ * ListAiApplicationMcpServersRequest.newBuilder()
+ * .setParent(
+ * AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable<
+ ListAiApplicationMcpServersRequest, ListAiApplicationMcpServersPagedResponse>
+ listAiApplicationMcpServersPagedCallable() {
+ return stub.listAiApplicationMcpServersPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists McpServers under an AI Application.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * ListAiApplicationMcpServersRequest request =
+ * ListAiApplicationMcpServersRequest.newBuilder()
+ * .setParent(
+ * AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListAiApplicationMcpServersResponse response =
+ * agentRegistryClient.listAiApplicationMcpServersCallable().call(request);
+ * for (McpServer element : response.getMcpServersList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListAiApplicationMcpServersRequest, ListAiApplicationMcpServersResponse>
+ listAiApplicationMcpServersCallable() {
+ return stub.listAiApplicationMcpServersCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Finding.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+ * FindingName name = FindingName.of("[PROJECT]", "[LOCATION]", "[FINDING]");
+ * Finding response = agentRegistryClient.getFinding(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Finding to retrieve. Format:
+ * `projects/{project}/locations/{location}/findings/{finding}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final OperationFuture{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- * Binding binding = Binding.newBuilder().build();
- * String bindingId = "bindingId-920966528";
- * Binding response = agentRegistryClient.createBindingAsync(parent, binding, bindingId).get();
- * }
- * }
+ * Updates the customer-managed encryption key (CMEK) configuration for Skills in a specific
+ * project and location.
*
- * @param parent Required. The project and location to create the Binding in. Expected format:
- * `projects/{project}/locations/{location}`.
- * @param binding Required. The Binding resource that is being created.
- * @param bindingId Required. The ID to use for the binding, which will become the final component
- * of the binding's resource name.
- * {@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * String name = BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString();
- * agentRegistryClient.deleteBindingAsync(name).get();
- * }
- * }
- *
- * @param name Required. The name of the Binding. Format:
- * `projects/{project}/locations/{location}/bindings/{binding}`.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final OperationFuture{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * DeleteBindingRequest request =
- * DeleteBindingRequest.newBuilder()
- * .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString())
- * .setRequestId("requestId693933066")
- * .build();
- * agentRegistryClient.deleteBindingAsync(request).get();
- * }
- * }
- *
- * @param request The request object containing all of the parameters for the API call.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final OperationFuture{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * DeleteBindingRequest request =
- * DeleteBindingRequest.newBuilder()
- * .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString())
- * .setRequestId("requestId693933066")
- * .build();
- * OperationFuture
- */
- public final OperationCallable{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * DeleteBindingRequest request =
- * DeleteBindingRequest.newBuilder()
- * .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString())
- * .setRequestId("requestId693933066")
- * .build();
- * ApiFuture
- */
- public final UnaryCallable{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
- * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- * for (Binding element : agentRegistryClient.fetchAvailableBindings(parent).iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- * }
- *
- * @param parent Required. The parent, in the format `projects/{project}/locations/{location}`.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final FetchAvailableBindingsPagedResponse fetchAvailableBindings(
- @Nullable LocationName parent) {
- FetchAvailableBindingsRequest request =
- FetchAvailableBindingsRequest.newBuilder()
- .setParent(parent == null ? null : parent.toString())
- .build();
- return fetchAvailableBindings(request);
+ public static class ListMcpServersFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListMcpServersRequest,
+ ListMcpServersResponse,
+ McpServer,
+ ListMcpServersPage,
+ ListMcpServersFixedSizeCollection> {
+
+ private ListMcpServersFixedSizeCollection(
+ @Nullable List