From 7f843270b51bc1f342a61d8a3efcd161ec1916b7 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sun, 25 Oct 2026 18:05:27 -0700 Subject: [PATCH] chore: regenerate agentregistry client --- .../v1/2.0.0/README.md | 4 +- .../agentregistry/v1/AgentRegistry.java | 4947 +++++++++++++---- .../v1/model/ArchiveUploadSource.java | 99 + .../services/agentregistry/v1/model/File.java | 90 + .../agentregistry/v1/model/Finding.java | 291 + .../agentregistry/v1/model/Frontmatter.java | 162 + .../agentregistry/v1/model/GcsSource.java | 90 + .../v1/model/ListFindingsResponse.java | 96 + .../v1/model/ListPublishersResponse.java | 90 + .../v1/model/ListSkillRevisionsResponse.java | 90 + .../v1/model/ListSkillsResponse.java | 114 + .../agentregistry/v1/model/Publisher.java | 196 + .../agentregistry/v1/model/ScanResult.java | 138 + .../v1/model/ScanningConfig.java | 66 + .../v1/model/SearchSkillsRequest.java | 237 + .../v1/model/SearchSkillsResponse.java | 90 + .../agentregistry/v1/model/Skill.java | 448 ++ .../agentregistry/v1/model/SkillRevision.java | 285 + .../v1/2.0.0/pom.xml | 4 +- .../v1/README.md | 4 +- 20 files changed, 6384 insertions(+), 1157 deletions(-) create mode 100644 clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ArchiveUploadSource.java create mode 100644 clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/File.java create mode 100644 clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/Finding.java create mode 100644 clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/Frontmatter.java create mode 100644 clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/GcsSource.java create mode 100644 clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ListFindingsResponse.java create mode 100644 clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ListPublishersResponse.java create mode 100644 clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ListSkillRevisionsResponse.java create mode 100644 clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ListSkillsResponse.java create mode 100644 clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/Publisher.java create mode 100644 clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ScanResult.java create mode 100644 clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ScanningConfig.java create mode 100644 clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/SearchSkillsRequest.java create mode 100644 clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/SearchSkillsResponse.java create mode 100644 clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/Skill.java create mode 100644 clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/SkillRevision.java diff --git a/clients/google-api-services-agentregistry/v1/2.0.0/README.md b/clients/google-api-services-agentregistry/v1/2.0.0/README.md index aaa424c2ccd..9f49bc038b1 100644 --- a/clients/google-api-services-agentregistry/v1/2.0.0/README.md +++ b/clients/google-api-services-agentregistry/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-agentregistry - v1-rev20261014-2.0.0 + v1-rev20261021-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-agentregistry:v1-rev20261014-2.0.0' + implementation 'com.google.apis:google-api-services-agentregistry:v1-rev20261021-2.0.0' } ``` diff --git a/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/AgentRegistry.java b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/AgentRegistry.java index a3e5b4b87c5..f3f6fc514f6 100644 --- a/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/AgentRegistry.java +++ b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/AgentRegistry.java @@ -4623,34 +4623,35 @@ public List set(String parameterName, Object value) { } /** - * An accessor for creating requests from the McpServers collection. + * An accessor for creating requests from the Findings collection. * *

The typical use is:

*
        *   {@code AgentRegistry agentregistry = new AgentRegistry(...);}
-       *   {@code AgentRegistry.McpServers.List request = agentregistry.mcpServers().list(parameters ...)}
+       *   {@code AgentRegistry.Findings.List request = agentregistry.findings().list(parameters ...)}
        * 
* * @return the resource collection */ - public McpServers mcpServers() { - return new McpServers(); + public Findings findings() { + return new Findings(); } /** - * The "mcpServers" collection of methods. + * The "findings" collection of methods. */ - public class McpServers { + public class Findings { /** - * Gets details of a single McpServer. + * Gets details of a single Finding. * - * Create a request for the method "mcpServers.get". + * Create a request for the method "findings.get". * * This request holds the parameters needed by the agentregistry server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. Name of the resource + * @param name Required. The name of the Finding to retrieve. Format: + * `projects/{project}/locations/{location}/findings/{finding}`. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -4659,33 +4660,34 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends AgentRegistryRequest { + public class Get extends AgentRegistryRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/mcpServers/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/findings/[^/]+$"); /** - * Gets details of a single McpServer. + * Gets details of a single Finding. * - * Create a request for the method "mcpServers.get". + * Create a request for the method "findings.get". * * This request holds the parameters needed by the the agentregistry server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* - * @param name Required. Name of the resource + * @param name Required. The name of the Finding to retrieve. Format: + * `projects/{project}/locations/{location}/findings/{finding}`. * @since 1.13 */ protected Get(java.lang.String name) { - super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1.model.McpServer.class); + super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1.model.Finding.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/mcpServers/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/findings/[^/]+$"); } } @@ -4754,22 +4756,29 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** Required. Name of the resource */ + /** + * Required. The name of the Finding to retrieve. Format: + * `projects/{project}/locations/{location}/findings/{finding}`. + */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. Name of the resource + /** Required. The name of the Finding to retrieve. Format: + `projects/{project}/locations/{location}/findings/{finding}`. */ public java.lang.String getName() { return name; } - /** Required. Name of the resource */ + /** + * Required. The name of the Finding to retrieve. Format: + * `projects/{project}/locations/{location}/findings/{finding}`. + */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/mcpServers/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/findings/[^/]+$"); } this.name = name; return this; @@ -4781,14 +4790,14 @@ public Get set(String parameterName, Object value) { } } /** - * Lists McpServers in a given project and location. + * Lists Findings in a given project and location. * - * Create a request for the method "mcpServers.list". + * Create a request for the method "findings.list". * * This request holds the parameters needed by the agentregistry server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. Parent value for ListMcpServersRequest. Format: `projects/{project}/locations/{location}`. + * @param parent Required. Parent value for ListFindingsRequest. Format: `projects/{project}/locations/{location}`. * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -4797,28 +4806,28 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends AgentRegistryRequest { + public class List extends AgentRegistryRequest { - private static final String REST_PATH = "v1/{+parent}/mcpServers"; + private static final String REST_PATH = "v1/{+parent}/findings"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Lists McpServers in a given project and location. + * Lists Findings in a given project and location. * - * Create a request for the method "mcpServers.list". + * Create a request for the method "findings.list". * * This request holds the parameters needed by the the agentregistry server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* - * @param parent Required. Parent value for ListMcpServersRequest. Format: `projects/{project}/locations/{location}`. + * @param parent Required. Parent value for ListFindingsRequest. Format: `projects/{project}/locations/{location}`. * @since 1.13 */ protected List(java.lang.String parent) { - super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1.model.ListMcpServersResponse.class); + super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1.model.ListFindingsResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -4893,21 +4902,20 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. Parent value for ListMcpServersRequest. Format: + * Required. Parent value for ListFindingsRequest. Format: * `projects/{project}/locations/{location}`. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. Parent value for ListMcpServersRequest. Format: - `projects/{project}/locations/{location}`. + /** Required. Parent value for ListFindingsRequest. Format: `projects/{project}/locations/{location}`. */ public java.lang.String getParent() { return parent; } /** - * Required. Parent value for ListMcpServersRequest. Format: + * Required. Parent value for ListFindingsRequest. Format: * `projects/{project}/locations/{location}`. */ public List setParent(java.lang.String parent) { @@ -4996,485 +5004,598 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the McpServers collection. + * + *

The typical use is:

+ *
+       *   {@code AgentRegistry agentregistry = new AgentRegistry(...);}
+       *   {@code AgentRegistry.McpServers.List request = agentregistry.mcpServers().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public McpServers mcpServers() { + return new McpServers(); + } + + /** + * The "mcpServers" collection of methods. + */ + public class McpServers { + /** - * Searches McpServers in a given project and location. + * Gets details of a single McpServer. * - * Create a request for the method "mcpServers.search". + * Create a request for the method "mcpServers.get". * * This request holds the parameters needed by the agentregistry server. After setting any optional - * parameters, call the {@link Search#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param parent Required. Parent value for SearchMcpServersRequest. Format: - * `projects/{project}/locations/{location}`. - * @param content the {@link com.google.api.services.agentregistry.v1.model.SearchMcpServersRequest} + * @param name Required. Name of the resource * @return the request */ - public Search search(java.lang.String parent, com.google.api.services.agentregistry.v1.model.SearchMcpServersRequest content) throws java.io.IOException { - Search result = new Search(parent, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class Search extends AgentRegistryRequest { + public class Get extends AgentRegistryRequest { - private static final String REST_PATH = "v1/{+parent}/mcpServers:search"; + private static final String REST_PATH = "v1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/mcpServers/[^/]+$"); /** - * Searches McpServers in a given project and location. + * Gets details of a single McpServer. * - * Create a request for the method "mcpServers.search". + * Create a request for the method "mcpServers.get". * * This request holds the parameters needed by the the agentregistry server. After setting any - * optional parameters, call the {@link Search#execute()} method to invoke the remote operation. - *

{@link - * Search#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* - * @param parent Required. Parent value for SearchMcpServersRequest. Format: - * `projects/{project}/locations/{location}`. - * @param content the {@link com.google.api.services.agentregistry.v1.model.SearchMcpServersRequest} + * @param name Required. Name of the resource * @since 1.13 */ - protected Search(java.lang.String parent, com.google.api.services.agentregistry.v1.model.SearchMcpServersRequest content) { - super(AgentRegistry.this, "POST", REST_PATH, content, com.google.api.services.agentregistry.v1.model.SearchMcpServersResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Get(java.lang.String name) { + super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1.model.McpServer.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/mcpServers/[^/]+$"); } } @Override - public Search set$Xgafv(java.lang.String $Xgafv) { - return (Search) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Search setAccessToken(java.lang.String accessToken) { - return (Search) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Search setAlt(java.lang.String alt) { - return (Search) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Search setCallback(java.lang.String callback) { - return (Search) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Search setFields(java.lang.String fields) { - return (Search) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Search setKey(java.lang.String key) { - return (Search) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Search setOauthToken(java.lang.String oauthToken) { - return (Search) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Search setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Search) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Search setQuotaUser(java.lang.String quotaUser) { - return (Search) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Search setUploadType(java.lang.String uploadType) { - return (Search) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Search setUploadProtocol(java.lang.String uploadProtocol) { - return (Search) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } - /** - * Required. Parent value for SearchMcpServersRequest. Format: - * `projects/{project}/locations/{location}`. - */ + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Name of the resource */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. Parent value for SearchMcpServersRequest. Format: - `projects/{project}/locations/{location}`. + /** Required. Name of the resource */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** - * Required. Parent value for SearchMcpServersRequest. Format: - * `projects/{project}/locations/{location}`. - */ - public Search setParent(java.lang.String parent) { + /** Required. Name of the resource */ + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/mcpServers/[^/]+$"); } - this.parent = parent; + this.name = name; return this; } @Override - public Search set(String parameterName, Object value) { - return (Search) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the Operations collection. - * - *

The typical use is:

- *
-       *   {@code AgentRegistry agentregistry = new AgentRegistry(...);}
-       *   {@code AgentRegistry.Operations.List request = agentregistry.operations().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public Operations operations() { - return new Operations(); - } - - /** - * The "operations" collection of methods. - */ - public class Operations { - /** - * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to - * cancel the operation, but success is not guaranteed. If the server doesn't support this method, - * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other - * methods to check whether the cancellation succeeded or whether the operation completed despite - * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an - * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to - * `Code.CANCELLED`. + * Lists McpServers in a given project and location. * - * Create a request for the method "operations.cancel". + * Create a request for the method "mcpServers.list". * * This request holds the parameters needed by the agentregistry server. After setting any optional - * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to be cancelled. - * @param content the {@link com.google.api.services.agentregistry.v1.model.CancelOperationRequest} + * @param parent Required. Parent value for ListMcpServersRequest. Format: `projects/{project}/locations/{location}`. * @return the request */ - public Cancel cancel(java.lang.String name, com.google.api.services.agentregistry.v1.model.CancelOperationRequest content) throws java.io.IOException { - Cancel result = new Cancel(name, content); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Cancel extends AgentRegistryRequest { + public class List extends AgentRegistryRequest { - private static final String REST_PATH = "v1/{+name}:cancel"; + private static final String REST_PATH = "v1/{+parent}/mcpServers"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to - * cancel the operation, but success is not guaranteed. If the server doesn't support this method, - * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other - * methods to check whether the cancellation succeeded or whether the operation completed despite - * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an - * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to - * `Code.CANCELLED`. + * Lists McpServers in a given project and location. * - * Create a request for the method "operations.cancel". + * Create a request for the method "mcpServers.list". * * This request holds the parameters needed by the the agentregistry server. After setting any - * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. - *

{@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* - * @param name The name of the operation resource to be cancelled. - * @param content the {@link com.google.api.services.agentregistry.v1.model.CancelOperationRequest} + * @param parent Required. Parent value for ListMcpServersRequest. Format: `projects/{project}/locations/{location}`. * @since 1.13 */ - protected Cancel(java.lang.String name, com.google.api.services.agentregistry.v1.model.CancelOperationRequest content) { - super(AgentRegistry.this, "POST", REST_PATH, content, com.google.api.services.agentregistry.v1.model.Empty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected List(java.lang.String parent) { + super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1.model.ListMcpServersResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - /** The name of the operation resource to be cancelled. */ + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Parent value for ListMcpServersRequest. Format: + * `projects/{project}/locations/{location}`. + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** The name of the operation resource to be cancelled. + /** Required. Parent value for ListMcpServersRequest. Format: + `projects/{project}/locations/{location}`. */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } - /** The name of the operation resource to be cancelled. */ - public Cancel setName(java.lang.String name) { + /** + * Required. Parent value for ListMcpServersRequest. Format: + * `projects/{project}/locations/{location}`. + */ + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.name = name; + this.parent = parent; + return this; + } + + /** Optional. Filtering results */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filtering results + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. Filtering results */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** Optional. Hint for how to order the results */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Hint for how to order the results + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** Optional. Hint for how to order the results */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. A token identifying a page of results the server should return. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A token identifying a page of results the server should return. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. A token identifying a page of results the server should return. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * Searches McpServers in a given project and location. * - * Create a request for the method "operations.delete". + * Create a request for the method "mcpServers.search". * * This request holds the parameters needed by the agentregistry server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link Search#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to be deleted. + * @param parent Required. Parent value for SearchMcpServersRequest. Format: + * `projects/{project}/locations/{location}`. + * @param content the {@link com.google.api.services.agentregistry.v1.model.SearchMcpServersRequest} * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public Search search(java.lang.String parent, com.google.api.services.agentregistry.v1.model.SearchMcpServersRequest content) throws java.io.IOException { + Search result = new Search(parent, content); initialize(result); return result; } - public class Delete extends AgentRegistryRequest { + public class Search extends AgentRegistryRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+parent}/mcpServers:search"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * Searches McpServers in a given project and location. * - * Create a request for the method "operations.delete". + * Create a request for the method "mcpServers.search". * * This request holds the parameters needed by the the agentregistry server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Search#execute()} method to invoke the remote operation. *

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Search#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* - * @param name The name of the operation resource to be deleted. + * @param parent Required. Parent value for SearchMcpServersRequest. Format: + * `projects/{project}/locations/{location}`. + * @param content the {@link com.google.api.services.agentregistry.v1.model.SearchMcpServersRequest} * @since 1.13 */ - protected Delete(java.lang.String name) { - super(AgentRegistry.this, "DELETE", REST_PATH, null, com.google.api.services.agentregistry.v1.model.Empty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected Search(java.lang.String parent, com.google.api.services.agentregistry.v1.model.SearchMcpServersRequest content) { + super(AgentRegistry.this, "POST", REST_PATH, content, com.google.api.services.agentregistry.v1.model.SearchMcpServersResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Search set$Xgafv(java.lang.String $Xgafv) { + return (Search) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Search setAccessToken(java.lang.String accessToken) { + return (Search) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Search setAlt(java.lang.String alt) { + return (Search) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Search setCallback(java.lang.String callback) { + return (Search) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Search setFields(java.lang.String fields) { + return (Search) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Search setKey(java.lang.String key) { + return (Search) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Search setOauthToken(java.lang.String oauthToken) { + return (Search) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Search setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Search) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Search setQuotaUser(java.lang.String quotaUser) { + return (Search) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Search setUploadType(java.lang.String uploadType) { + return (Search) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Search setUploadProtocol(java.lang.String uploadProtocol) { + return (Search) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource to be deleted. */ + /** + * Required. Parent value for SearchMcpServersRequest. Format: + * `projects/{project}/locations/{location}`. + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** The name of the operation resource to be deleted. + /** Required. Parent value for SearchMcpServersRequest. Format: + `projects/{project}/locations/{location}`. */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } - /** The name of the operation resource to be deleted. */ - public Delete setName(java.lang.String name) { + /** + * Required. Parent value for SearchMcpServersRequest. Format: + * `projects/{project}/locations/{location}`. + */ + public Search setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.name = name; + this.parent = parent; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Search set(String parameterName, Object value) { + return (Search) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the Operations collection. + * + *

The typical use is:

+ *
+       *   {@code AgentRegistry agentregistry = new AgentRegistry(...);}
+       *   {@code AgentRegistry.Operations.List request = agentregistry.operations().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Operations operations() { + return new Operations(); + } + + /** + * The "operations" collection of methods. + */ + public class Operations { + /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. * - * Create a request for the method "operations.get". + * Create a request for the method "operations.cancel". * * This request holds the parameters needed by the agentregistry server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource. + * @param name The name of the operation resource to be cancelled. + * @param content the {@link com.google.api.services.agentregistry.v1.model.CancelOperationRequest} * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Cancel cancel(java.lang.String name, com.google.api.services.agentregistry.v1.model.CancelOperationRequest content) throws java.io.IOException { + Cancel result = new Cancel(name, content); initialize(result); return result; } - public class Get extends AgentRegistryRequest { + public class Cancel extends AgentRegistryRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+name}:cancel"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. * - * Create a request for the method "operations.get". + * Create a request for the method "operations.cancel". * * This request holds the parameters needed by the the agentregistry server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + *

{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* - * @param name The name of the operation resource. + * @param name The name of the operation resource to be cancelled. + * @param content the {@link com.google.api.services.agentregistry.v1.model.CancelOperationRequest} * @since 1.13 */ - protected Get(java.lang.String name) { - super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1.model.Operation.class); + protected Cancel(java.lang.String name, com.google.api.services.agentregistry.v1.model.CancelOperationRequest content) { + super(AgentRegistry.this, "POST", REST_PATH, content, com.google.api.services.agentregistry.v1.model.Empty.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), @@ -5484,82 +5605,72 @@ protected Get(java.lang.String name) { } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource. */ + /** The name of the operation resource to be cancelled. */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource. + /** The name of the operation resource to be cancelled. */ public java.lang.String getName() { return name; } - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { + /** The name of the operation resource to be cancelled. */ + public Cancel setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + @@ -5570,654 +5681,538 @@ public Get setName(java.lang.String name) { } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); } } /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. * - * Create a request for the method "operations.list". + * Create a request for the method "operations.delete". * * This request holds the parameters needed by the agentregistry server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name The name of the operation's parent resource. + * @param name The name of the operation resource to be deleted. * @return the request */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class List extends AgentRegistryRequest { + public class Delete extends AgentRegistryRequest { - private static final String REST_PATH = "v1/{+name}/operations"; + private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. * - * Create a request for the method "operations.list". + * Create a request for the method "operations.delete". * * This request holds the parameters needed by the the agentregistry server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* - * @param name The name of the operation's parent resource. + * @param name The name of the operation resource to be deleted. * @since 1.13 */ - protected List(java.lang.String name) { - super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1.model.ListOperationsResponse.class); + protected Delete(java.lang.String name) { + super(AgentRegistry.this, "DELETE", REST_PATH, null, com.google.api.services.agentregistry.v1.model.Empty.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } - - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } - - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation's parent resource. */ + /** The name of the operation resource to be deleted. */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation's parent resource. + /** The name of the operation resource to be deleted. */ public java.lang.String getName() { return name; } - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { + /** The name of the operation resource to be deleted. */ + public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } this.name = name; return this; } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } - - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. This - * can only be `true` when reading across collections. For example, when `parent` is set - * to `"projects/example/locations/-"`. This field is not supported by default and will - * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - * service or product specific documentation. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** When set to `true`, operations that are reachable are returned as normal, and those that are - unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` - when reading across collections. For example, when `parent` is set to - `"projects/example/locations/-"`. This field is not supported by default and will result in an - `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific - documentation. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. This - * can only be `true` when reading across collections. For example, when `parent` is set - * to `"projects/example/locations/-"`. This field is not supported by default and will - * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - * service or product specific documentation. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the Services collection. - * - *

The typical use is:

- *
-       *   {@code AgentRegistry agentregistry = new AgentRegistry(...);}
-       *   {@code AgentRegistry.Services.List request = agentregistry.services().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public Services services() { - return new Services(); - } - - /** - * The "services" collection of methods. - */ - public class Services { - /** - * Creates a new Service in a given project and location. + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. * - * Create a request for the method "services.create". + * Create a request for the method "operations.get". * * This request holds the parameters needed by the agentregistry server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param parent Required. The project and location to create the Service in. Expected format: - * `projects/{project}/locations/{location}`. - * @param content the {@link com.google.api.services.agentregistry.v1.model.Service} + * @param name The name of the operation resource. * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.agentregistry.v1.model.Service content) throws java.io.IOException { - Create result = new Create(parent, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class Create extends AgentRegistryRequest { + public class Get extends AgentRegistryRequest { - private static final String REST_PATH = "v1/{+parent}/services"; + private static final String REST_PATH = "v1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); /** - * Creates a new Service in a given project and location. + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. * - * Create a request for the method "services.create". + * Create a request for the method "operations.get". * * This request holds the parameters needed by the the agentregistry server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. - *

{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* - * @param parent Required. The project and location to create the Service in. Expected format: - * `projects/{project}/locations/{location}`. - * @param content the {@link com.google.api.services.agentregistry.v1.model.Service} + * @param name The name of the operation resource. * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.agentregistry.v1.model.Service content) { - super(AgentRegistry.this, "POST", REST_PATH, content, com.google.api.services.agentregistry.v1.model.Operation.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Get(java.lang.String name) { + super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } - /** - * Required. The project and location to create the Service in. Expected format: - * `projects/{project}/locations/{location}`. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The project and location to create the Service in. Expected format: - `projects/{project}/locations/{location}`. - */ - public java.lang.String getParent() { - return parent; + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - /** - * Required. The project and location to create the Service in. Expected format: - * `projects/{project}/locations/{location}`. - */ - public Create setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you - must retry your request, the server will know to ignore the request if it has already been - completed. The server will guarantee that for at least 60 minutes since the first request. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public Create setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } - /** - * 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-/`. - */ + /** The name of the operation resource. */ @com.google.api.client.util.Key - private java.lang.String serviceId; + private java.lang.String name; - /** 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-/`. + /** The name of the operation resource. */ - public java.lang.String getServiceId() { - return serviceId; + public java.lang.String getName() { + return name; } - /** - * 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-/`. - */ - public Create setServiceId(java.lang.String serviceId) { - this.serviceId = serviceId; + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + } + this.name = name; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Deletes a single Service. + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. * - * Create a request for the method "services.delete". + * Create a request for the method "operations.list". * * This request holds the parameters needed by the agentregistry server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param name Required. The name of the Service. Format: - * `projects/{project}/locations/{location}/services/{service}`. + * @param name The name of the operation's parent resource. * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); initialize(result); return result; } - public class Delete extends AgentRegistryRequest { + public class List extends AgentRegistryRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+name}/operations"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/services/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Deletes a single Service. + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. * - * Create a request for the method "services.delete". + * Create a request for the method "operations.list". * * This request holds the parameters needed by the the agentregistry server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - *

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* - * @param name Required. The name of the Service. Format: - * `projects/{project}/locations/{location}/services/{service}`. + * @param name The name of the operation's parent resource. * @since 1.13 */ - protected Delete(java.lang.String name) { - super(AgentRegistry.this, "DELETE", REST_PATH, null, com.google.api.services.agentregistry.v1.model.Operation.class); + protected List(java.lang.String name) { + super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1.model.ListOperationsResponse.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/services/[^/]+$"); + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - /** - * Required. The name of the Service. Format: - * `projects/{project}/locations/{location}/services/{service}`. - */ + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation's parent resource. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the Service. Format: - `projects/{project}/locations/{location}/services/{service}`. + /** The name of the operation's parent resource. */ public java.lang.String getName() { return name; } - /** - * Required. The name of the Service. Format: - * `projects/{project}/locations/{location}/services/{service}`. - */ - public Delete setName(java.lang.String name) { + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/services/[^/]+$"); + "^projects/[^/]+/locations/[^/]+$"); } this.name = name; return this; } - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * after the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ + /** The standard list filter. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String filter; - /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you - must retry your request, the server will know to ignore the request if it has already been - completed. The server will guarantee that for at least 60 minutes after the first request. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + /** The standard list filter. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getFilter() { + return filter; } - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * after the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; return this; } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets details of a single Service. - * - * Create a request for the method "services.get". + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Publishers collection. + * + *

The typical use is:

+ *
+       *   {@code AgentRegistry agentregistry = new AgentRegistry(...);}
+       *   {@code AgentRegistry.Publishers.List request = agentregistry.publishers().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Publishers publishers() { + return new Publishers(); + } + + /** + * The "publishers" collection of methods. + */ + public class Publishers { + + /** + * Fetches details of a specific Publisher. + * + * Create a request for the method "publishers.get". * * This request holds the parameters needed by the agentregistry server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. The name of the Service. Format: - * `projects/{project}/locations/{location}/services/{service}`. + * @param name Required. Target publisher resource name. Format: + * `projects/{project}/locations/{location}/publishers/{publisher}` * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -6226,34 +6221,34 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends AgentRegistryRequest { + public class Get extends AgentRegistryRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/services/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/publishers/[^/]+$"); /** - * Gets details of a single Service. + * Fetches details of a specific Publisher. * - * Create a request for the method "services.get". + * Create a request for the method "publishers.get". * * This request holds the parameters needed by the the agentregistry server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* - * @param name Required. The name of the Service. Format: - * `projects/{project}/locations/{location}/services/{service}`. + * @param name Required. Target publisher resource name. Format: + * `projects/{project}/locations/{location}/publishers/{publisher}` * @since 1.13 */ protected Get(java.lang.String name) { - super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1.model.Service.class); + super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1.model.Publisher.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/services/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/publishers/[^/]+$"); } } @@ -6323,28 +6318,28 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The name of the Service. Format: - * `projects/{project}/locations/{location}/services/{service}`. + * Required. Target publisher resource name. Format: + * `projects/{project}/locations/{location}/publishers/{publisher}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the Service. Format: - `projects/{project}/locations/{location}/services/{service}`. + /** Required. Target publisher resource name. Format: + `projects/{project}/locations/{location}/publishers/{publisher}` */ public java.lang.String getName() { return name; } /** - * Required. The name of the Service. Format: - * `projects/{project}/locations/{location}/services/{service}`. + * Required. Target publisher resource name. Format: + * `projects/{project}/locations/{location}/publishers/{publisher}` */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/services/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/publishers/[^/]+$"); } this.name = name; return this; @@ -6356,15 +6351,14 @@ public Get set(String parameterName, Object value) { } } /** - * Lists Services in a given project and location. + * Lists all Publishers in a location. * - * Create a request for the method "services.list". + * Create a request for the method "publishers.list". * * This request holds the parameters needed by the agentregistry server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The project and location to list services in. Expected format: - * `projects/{project}/locations/{location}`. + * @param parent Required. Parent location to query. Format: `projects/{project}/locations/{location}` * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -6373,29 +6367,28 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends AgentRegistryRequest { + public class List extends AgentRegistryRequest { - private static final String REST_PATH = "v1/{+parent}/services"; + private static final String REST_PATH = "v1/{+parent}/publishers"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Lists Services in a given project and location. + * Lists all Publishers in a location. * - * Create a request for the method "services.list". + * Create a request for the method "publishers.list". * * This request holds the parameters needed by the the agentregistry server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* - * @param parent Required. The project and location to list services in. Expected format: - * `projects/{project}/locations/{location}`. + * @param parent Required. Parent location to query. Format: `projects/{project}/locations/{location}` * @since 1.13 */ protected List(java.lang.String parent) { - super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1.model.ListServicesResponse.class); + super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1.model.ListPublishersResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -6470,22 +6463,19 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The project and location to list services in. Expected format: - * `projects/{project}/locations/{location}`. + * Required. Parent location to query. Format: `projects/{project}/locations/{location}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The project and location to list services in. Expected format: - `projects/{project}/locations/{location}`. + /** Required. Parent location to query. Format: `projects/{project}/locations/{location}` */ public java.lang.String getParent() { return parent; } /** - * Required. The project and location to list services in. Expected format: - * `projects/{project}/locations/{location}`. + * Required. Parent location to query. Format: `projects/{project}/locations/{location}` */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -6497,71 +6487,33 @@ public List setParent(java.lang.String parent) { return this; } - /** - * Optional. A query string used to filter the list of services returned. The filter - * expression must follow AIP-160 syntax. Filtering is supported on the `name`, - * `display_name`, `description`, and `labels` fields. Some examples: * `name = - * "projects/p1/locations/l1/services/s1"` * `display_name = "my-service"` * `description - * : "myservice description"` * `labels.env = "prod"` - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. A query string used to filter the list of services returned. The filter expression must - follow AIP-160 syntax. Filtering is supported on the `name`, `display_name`, `description`, and - `labels` fields. Some examples: * `name = "projects/p1/locations/l1/services/s1"` * `display_name = - "my-service"` * `description : "myservice description"` * `labels.env = "prod"` - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * Optional. A query string used to filter the list of services returned. The filter - * expression must follow AIP-160 syntax. Filtering is supported on the `name`, - * `display_name`, `description`, and `labels` fields. Some examples: * `name = - * "projects/p1/locations/l1/services/s1"` * `display_name = "my-service"` * `description - * : "myservice description"` * `labels.env = "prod"` - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Optional. Requested page size. Server may return fewer items than requested. If - * unspecified, server will pick an appropriate default. - */ + /** Optional. Page limit size. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server - will pick an appropriate default. + /** Optional. Page limit size. */ public java.lang.Integer getPageSize() { return pageSize; } - /** - * Optional. Requested page size. Server may return fewer items than requested. If - * unspecified, server will pick an appropriate default. - */ + /** Optional. Page limit size. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } - /** Optional. A token identifying a page of results the server should return. */ + /** Optional. Page offset token. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** Optional. A token identifying a page of results the server should return. + /** Optional. Page offset token. */ public java.lang.String getPageToken() { return pageToken; } - /** Optional. A token identifying a page of results the server should return. */ + /** Optional. Page offset token. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; @@ -6572,138 +6524,160 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the Services collection. + * + *

The typical use is:

+ *
+       *   {@code AgentRegistry agentregistry = new AgentRegistry(...);}
+       *   {@code AgentRegistry.Services.List request = agentregistry.services().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Services services() { + return new Services(); + } + + /** + * The "services" collection of methods. + */ + public class Services { + /** - * Updates the parameters of a single Service. + * Creates a new Service in a given project and location. * - * Create a request for the method "services.patch". + * Create a request for the method "services.create". * * This request holds the parameters needed by the agentregistry server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param name Identifier. The resource name of the Service. Format: - * `projects/{project}/locations/{location}/services/{service}`. + * @param parent Required. The project and location to create the Service in. Expected format: + * `projects/{project}/locations/{location}`. * @param content the {@link com.google.api.services.agentregistry.v1.model.Service} * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.agentregistry.v1.model.Service content) throws java.io.IOException { - Patch result = new Patch(name, content); + public Create create(java.lang.String parent, com.google.api.services.agentregistry.v1.model.Service content) throws java.io.IOException { + Create result = new Create(parent, content); initialize(result); return result; } - public class Patch extends AgentRegistryRequest { + public class Create extends AgentRegistryRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+parent}/services"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/services/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Updates the parameters of a single Service. + * Creates a new Service in a given project and location. * - * Create a request for the method "services.patch". + * Create a request for the method "services.create". * * This request holds the parameters needed by the the agentregistry server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. *

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* - * @param name Identifier. The resource name of the Service. Format: - * `projects/{project}/locations/{location}/services/{service}`. + * @param parent Required. The project and location to create the Service in. Expected format: + * `projects/{project}/locations/{location}`. * @param content the {@link com.google.api.services.agentregistry.v1.model.Service} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.agentregistry.v1.model.Service content) { - super(AgentRegistry.this, "PATCH", REST_PATH, content, com.google.api.services.agentregistry.v1.model.Operation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected Create(java.lang.String parent, com.google.api.services.agentregistry.v1.model.Service content) { + super(AgentRegistry.this, "POST", REST_PATH, content, com.google.api.services.agentregistry.v1.model.Operation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/services/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } /** - * Identifier. The resource name of the Service. Format: - * `projects/{project}/locations/{location}/services/{service}`. + * Required. The project and location to create the Service in. Expected format: + * `projects/{project}/locations/{location}`. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** Identifier. The resource name of the Service. Format: - `projects/{project}/locations/{location}/services/{service}`. + /** Required. The project and location to create the Service in. Expected format: + `projects/{project}/locations/{location}`. */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } /** - * Identifier. The resource name of the Service. Format: - * `projects/{project}/locations/{location}/services/{service}`. + * Required. The project and location to create the Service in. Expected format: + * `projects/{project}/locations/{location}`. */ - public Patch setName(java.lang.String name) { + public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/services/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.name = name; + this.parent = parent; return this; } @@ -6745,566 +6719,3237 @@ public java.lang.String getRequestId() { * creating duplicate commitments. The request ID must be a valid UUID with the exception * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */ - public Patch setRequestId(java.lang.String requestId) { + public Create setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } /** - * 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. + * 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-/`. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String serviceId; - /** 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. + /** 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-/`. */ - public String getUpdateMask() { - return updateMask; + public java.lang.String getServiceId() { + return serviceId; } /** - * 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. + * 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-/`. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; + public Create setServiceId(java.lang.String serviceId) { + this.serviceId = serviceId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the Skills collection. - * - *

The typical use is:

- *
-       *   {@code AgentRegistry agentregistry = new AgentRegistry(...);}
-       *   {@code AgentRegistry.Skills.List request = agentregistry.skills().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public Skills skills() { - return new Skills(); - } - - /** - * The "skills" collection of methods. - */ - public class Skills { - /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists and - * does not have a policy set. + * Deletes a single Service. * - * Create a request for the method "skills.getIamPolicy". + * Create a request for the method "services.delete". * * This request holds the parameters needed by the agentregistry server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. + * @param name Required. The name of the Service. Format: + * `projects/{project}/locations/{location}/services/{service}`. * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class GetIamPolicy extends AgentRegistryRequest { + public class Delete extends AgentRegistryRequest { - private static final String REST_PATH = "v1/{+resource}:getIamPolicy"; + private static final String REST_PATH = "v1/{+name}"; - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/services/[^/]+$"); /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists - * and does not have a policy set. + * Deletes a single Service. * - * Create a request for the method "skills.getIamPolicy". + * Create a request for the method "services.delete". * * This request holds the parameters needed by the the agentregistry server. After setting any - * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote - * operation.

{@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. + * @param name Required. The name of the Service. Format: + * `projects/{project}/locations/{location}/services/{service}`. * @since 1.13 */ - protected GetIamPolicy(java.lang.String resource) { - super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1.model.GoogleIamV1Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + protected Delete(java.lang.String name) { + super(AgentRegistry.this, "DELETE", REST_PATH, null, com.google.api.services.agentregistry.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/services/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. The name of the Service. Format: + * `projects/{project}/locations/{location}/services/{service}`. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String name; - /** REQUIRED: The resource for which the policy is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** Required. The name of the Service. Format: + `projects/{project}/locations/{location}/services/{service}`. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getName() { + return name; } /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. The name of the Service. Format: + * `projects/{project}/locations/{location}/services/{service}`. */ - public GetIamPolicy setResource(java.lang.String resource) { + public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/services/[^/]+$"); } - this.resource = resource; + this.name = name; return this; } /** - * Optional. The maximum policy version that will be used to format the policy. Valid - * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests - * for policies with any conditional role bindings must specify version 3. Policies with - * no conditional role bindings may specify any valid value or leave the field unset. The - * policy in the response might use the policy version that you specified, or it might use - * a lower policy version. For example, if you specify version 3, but the policy has no - * conditional role bindings, the response uses version 1. To learn which resources - * support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */ - @com.google.api.client.util.Key("options.requestedPolicyVersion") - private java.lang.Integer optionsRequestedPolicyVersion; + @com.google.api.client.util.Key + private java.lang.String requestId; - /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, - and 3. Requests specifying an invalid value will be rejected. Requests for policies with any - conditional role bindings must specify version 3. Policies with no conditional role bindings may - specify any valid value or leave the field unset. The policy in the response might use the policy - version that you specified, or it might use a lower policy version. For example, if you specify - version 3, but the policy has no conditional role bindings, the response uses version 1. To learn - which resources support conditions in their IAM policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server will know to ignore the request if it has already been + completed. The server will guarantee that for at least 60 minutes after the first request. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getRequestId() { + return requestId; } /** - * Optional. The maximum policy version that will be used to format the policy. Valid - * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests - * for policies with any conditional role bindings must specify version 3. Policies with - * no conditional role bindings may specify any valid value or leave the field unset. The - * policy in the response might use the policy version that you specified, or it might use - * a lower policy version. For example, if you specify version 3, but the policy has no - * conditional role bindings, the response uses version 1. To learn which resources - * support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * Gets details of a single Service. * - * Create a request for the method "skills.setIamPolicy". + * Create a request for the method "services.get". * * This request holds the parameters needed by the agentregistry server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.agentregistry.v1.model.GoogleIamV1SetIamPolicyRequest} + * @param name Required. The name of the Service. Format: + * `projects/{project}/locations/{location}/services/{service}`. * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.agentregistry.v1.model.GoogleIamV1SetIamPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(resource, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class SetIamPolicy extends AgentRegistryRequest { + public class Get extends AgentRegistryRequest { - private static final String REST_PATH = "v1/{+resource}:setIamPolicy"; + private static final String REST_PATH = "v1/{+name}"; - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/services/[^/]+$"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * Gets details of a single Service. * - * Create a request for the method "skills.setIamPolicy". + * Create a request for the method "services.get". * * This request holds the parameters needed by the the agentregistry server. After setting any - * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote - * operation.

{@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.agentregistry.v1.model.GoogleIamV1SetIamPolicyRequest} + * @param name Required. The name of the Service. Format: + * `projects/{project}/locations/{location}/services/{service}`. * @since 1.13 */ - protected SetIamPolicy(java.lang.String resource, com.google.api.services.agentregistry.v1.model.GoogleIamV1SetIamPolicyRequest content) { - super(AgentRegistry.this, "POST", REST_PATH, content, com.google.api.services.agentregistry.v1.model.GoogleIamV1Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + protected Get(java.lang.String name) { + super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1.model.Service.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/services/[^/]+$"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. The name of the Service. Format: + * `projects/{project}/locations/{location}/services/{service}`. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String name; - /** REQUIRED: The resource for which the policy is being specified. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** Required. The name of the Service. Format: + `projects/{project}/locations/{location}/services/{service}`. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getName() { + return name; } /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. The name of the Service. Format: + * `projects/{project}/locations/{location}/services/{service}`. */ - public SetIamPolicy setResource(java.lang.String resource) { + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/services/[^/]+$"); } - this.resource = resource; + this.name = name; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. If the resource does not exist, - * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is - * designed to be used for building permission-aware UIs and command-line tools, not for - * authorization checking. This operation may "fail open" without warning. + * Lists Services in a given project and location. * - * Create a request for the method "skills.testIamPermissions". + * Create a request for the method "services.list". * * This request holds the parameters needed by the agentregistry server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.agentregistry.v1.model.GoogleIamV1TestIamPermissionsRequest} + * @param parent Required. The project and location to list services in. Expected format: + * `projects/{project}/locations/{location}`. * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.agentregistry.v1.model.GoogleIamV1TestIamPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(resource, content); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class TestIamPermissions extends AgentRegistryRequest { + public class List extends AgentRegistryRequest { - private static final String REST_PATH = "v1/{+resource}:testIamPermissions"; + private static final String REST_PATH = "v1/{+parent}/services"; - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This - * operation is designed to be used for building permission-aware UIs and command-line tools, not - * for authorization checking. This operation may "fail open" without warning. + * Lists Services in a given project and location. * - * Create a request for the method "skills.testIamPermissions". + * Create a request for the method "services.list". * * This request holds the parameters needed by the the agentregistry server. After setting any - * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.agentregistry.v1.model.GoogleIamV1TestIamPermissionsRequest} + * @param parent Required. The project and location to list services in. Expected format: + * `projects/{project}/locations/{location}`. * @since 1.13 */ - protected TestIamPermissions(java.lang.String resource, com.google.api.services.agentregistry.v1.model.GoogleIamV1TestIamPermissionsRequest content) { - super(AgentRegistry.this, "POST", REST_PATH, content, com.google.api.services.agentregistry.v1.model.GoogleIamV1TestIamPermissionsResponse.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + protected List(java.lang.String parent) { + super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1.model.ListServicesResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. The project and location to list services in. Expected format: + * `projects/{project}/locations/{location}`. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String parent; - /** REQUIRED: The resource for which the policy detail is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** Required. The project and location to list services in. Expected format: + `projects/{project}/locations/{location}`. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getParent() { + return parent; } /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. The project and location to list services in. Expected format: + * `projects/{project}/locations/{location}`. */ - public TestIamPermissions setResource(java.lang.String resource) { + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.resource = resource; + this.parent = parent; + return this; + } + + /** + * Optional. A query string used to filter the list of services returned. The filter + * expression must follow AIP-160 syntax. Filtering is supported on the `name`, + * `display_name`, `description`, and `labels` fields. Some examples: * `name = + * "projects/p1/locations/l1/services/s1"` * `display_name = "my-service"` * `description + * : "myservice description"` * `labels.env = "prod"` + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. A query string used to filter the list of services returned. The filter expression must + follow AIP-160 syntax. Filtering is supported on the `name`, `display_name`, `description`, and + `labels` fields. Some examples: * `name = "projects/p1/locations/l1/services/s1"` * `display_name = + "my-service"` * `description : "myservice description"` * `labels.env = "prod"` + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. A query string used to filter the list of services returned. The filter + * expression must follow AIP-160 syntax. Filtering is supported on the `name`, + * `display_name`, `description`, and `labels` fields. Some examples: * `name = + * "projects/p1/locations/l1/services/s1"` * `display_name = "my-service"` * `description + * : "myservice description"` * `labels.env = "prod"` + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. A token identifying a page of results the server should return. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A token identifying a page of results the server should return. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. A token identifying a page of results the server should return. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + /** + * Updates the parameters of a single Service. + * + * Create a request for the method "services.patch". + * + * This request holds the parameters needed by the agentregistry server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The resource name of the Service. Format: + * `projects/{project}/locations/{location}/services/{service}`. + * @param content the {@link com.google.api.services.agentregistry.v1.model.Service} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.agentregistry.v1.model.Service content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends AgentRegistryRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/services/[^/]+$"); + + /** + * Updates the parameters of a single Service. + * + * Create a request for the method "services.patch". + * + * This request holds the parameters needed by the the agentregistry server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Identifier. The resource name of the Service. Format: + * `projects/{project}/locations/{location}/services/{service}`. + * @param content the {@link com.google.api.services.agentregistry.v1.model.Service} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.agentregistry.v1.model.Service content) { + super(AgentRegistry.this, "PATCH", REST_PATH, content, com.google.api.services.agentregistry.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/services/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. The resource name of the Service. Format: + * `projects/{project}/locations/{location}/services/{service}`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The resource name of the Service. Format: + `projects/{project}/locations/{location}/services/{service}`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the Service. Format: + * `projects/{project}/locations/{location}/services/{service}`. + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/services/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * since the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server will know to ignore the request if it has already been + completed. The server will guarantee that for at least 60 minutes since the first request. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * since the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** + * 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. + */ + @com.google.api.client.util.Key + private String 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. + */ + public String getUpdateMask() { + return 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. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Skills collection. + * + *

The typical use is:

+ *
+       *   {@code AgentRegistry agentregistry = new AgentRegistry(...);}
+       *   {@code AgentRegistry.Skills.List request = agentregistry.skills().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Skills skills() { + return new Skills(); + } + + /** + * The "skills" collection of methods. + */ + public class Skills { + + /** + * ========================================================================= # Skills Collection + * APIs Creates a Skill resource container, optionally publishing the initial SkillRevision inline + * in a single, atomic CRUD roundtrip. + * + * Create a request for the method "skills.create". + * + * This request holds the parameters needed by the agentregistry server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The project and location location to bootstrap. + * @param content the {@link com.google.api.services.agentregistry.v1.model.Skill} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.agentregistry.v1.model.Skill content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends AgentRegistryRequest { + + private static final String REST_PATH = "v1/{+parent}/skills"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * ========================================================================= # Skills Collection + * APIs Creates a Skill resource container, optionally publishing the initial SkillRevision inline + * in a single, atomic CRUD roundtrip. + * + * Create a request for the method "skills.create". + * + * This request holds the parameters needed by the the agentregistry server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *

{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The project and location location to bootstrap. + * @param content the {@link com.google.api.services.agentregistry.v1.model.Skill} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.agentregistry.v1.model.Skill content) { + super(AgentRegistry.this, "POST", REST_PATH, content, com.google.api.services.agentregistry.v1.model.Operation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The project and location location to bootstrap. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The project and location location to bootstrap. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The project and location location to bootstrap. */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. Signed UUID request idempotency token. */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. Signed UUID request idempotency token. + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** Optional. Signed UUID request idempotency token. */ + public Create setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** + * 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-/`. + */ + @com.google.api.client.util.Key + private java.lang.String 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-/`. + */ + public java.lang.String getSkillId() { + return 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-/`. + */ + public Create setSkillId(java.lang.String skillId) { + this.skillId = skillId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a Skill container along with all its revisions. + * + * Create a request for the method "skills.delete". + * + * This request holds the parameters needed by the agentregistry server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. Target Skill container name to remove. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends AgentRegistryRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + + /** + * Deletes a Skill container along with all its revisions. + * + * Create a request for the method "skills.delete". + * + * This request holds the parameters needed by the the agentregistry server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Target Skill container name to remove. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(AgentRegistry.this, "DELETE", REST_PATH, null, com.google.api.services.agentregistry.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Target Skill container name to remove. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Target Skill container name to remove. + */ + public java.lang.String getName() { + return name; + } + + /** Required. Target Skill container name to remove. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. If set to true, any child SkillRevisions under this Skill will also be + * deleted. Otherwise, the request will only succeed if the Skill has no child + * SkillRevisions. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. If set to true, any child SkillRevisions under this Skill will also be deleted. + Otherwise, the request will only succeed if the Skill has no child SkillRevisions. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. If set to true, any child SkillRevisions under this Skill will also be + * deleted. Otherwise, the request will only succeed if the Skill has no child + * SkillRevisions. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + /** Optional. Signed UUID request idempotency token. */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. Signed UUID request idempotency token. + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** Optional. Signed UUID request idempotency token. */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Fetches the active configuration and metadata of a Skill. + * + * Create a request for the method "skills.get". + * + * This request holds the parameters needed by the agentregistry server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Target resource container name. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends AgentRegistryRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + + /** + * Fetches the active configuration and metadata of a Skill. + * + * Create a request for the method "skills.get". + * + * This request holds the parameters needed by the the agentregistry server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Target resource container name. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1.model.Skill.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + } + initializeMediaDownload(); + } + + @Override + public void executeMediaAndDownloadTo(java.io.OutputStream outputStream) throws java.io.IOException { + super.executeMediaAndDownloadTo(outputStream); + } + + @Override + public java.io.InputStream executeMediaAsInputStream() throws java.io.IOException { + return super.executeMediaAsInputStream(); + } + + @Override + public com.google.api.client.http.HttpResponse executeMedia() throws java.io.IOException { + return super.executeMedia(); + } + + @Override + public com.google.api.client.http.GenericUrl buildHttpRequestUrl() { + java.lang.String baseUrl = ("media".equals(get("alt")) && getMediaHttpUploader() == null) + ? getRootUrl() + "download/" + getServicePath() : getBaseUrl(); + return new com.google.api.client.http.GenericUrl( + com.google.api.client.http.UriTemplate.expand(baseUrl, getUriTemplate(), this, true)); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Target resource container name. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Target resource container name. + */ + public java.lang.String getName() { + return name; + } + + /** Required. Target resource container name. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists and + * does not have a policy set. + * + * Create a request for the method "skills.getIamPolicy". + * + * This request holds the parameters needed by the agentregistry server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends AgentRegistryRequest { + + private static final String REST_PATH = "v1/{+resource}:getIamPolicy"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + * Create a request for the method "skills.getIamPolicy". + * + * This request holds the parameters needed by the the agentregistry server. After setting any + * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote + * operation.

{@link + * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String resource) { + super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1.model.GoogleIamV1Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + } + this.resource = resource; + return this; + } + + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, + and 3. Requests specifying an invalid value will be rejected. Requests for policies with any + conditional role bindings must specify version 3. Policies with no conditional role bindings may + specify any valid value or leave the field unset. The policy in the response might use the policy + version that you specified, or it might use a lower policy version. For example, if you specify + version 3, but the policy has no conditional role bindings, the response uses version 1. To learn + which resources support conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } + /** + * Lists logical Skills available in a project. + * + * Create a request for the method "skills.list". + * + * This request holds the parameters needed by the agentregistry server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. Parent value for ListSkillsRequest + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends AgentRegistryRequest { + + private static final String REST_PATH = "v1/{+parent}/skills"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists logical Skills available in a project. + * + * Create a request for the method "skills.list". + * + * This request holds the parameters needed by the the agentregistry server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. Parent value for ListSkillsRequest + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1.model.ListSkillsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Parent value for ListSkillsRequest */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Parent value for ListSkillsRequest + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. Parent value for ListSkillsRequest */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Use this field to specify filter criteria on list results. Filter expressions + * can be used to restrict results based upon filterable fields, where equality operators + * can be used. See [instructions](https://docs.cloud.google.com/agent-registry/search- + * agents-and-tools) for more details. Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, + * `OR`, and `()`. | Field | `=` | `<`, `>` | |--------------|-----|----------| | state | + * Yes | No | | targetState | Yes | No | | createTime | Yes | Yes | | updateTime | Yes | + * Yes | Examples: * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Use this field to specify filter criteria on list results. Filter expressions can be used + to restrict results based upon filterable fields, where equality operators can be used. See + [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools) for more + details. Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, `OR`, and `()`. | Field | `=` | `<`, `>` | + |--------------|-----|----------| | state | Yes | No | | targetState | Yes | No | | createTime | + Yes | Yes | | updateTime | Yes | Yes | Examples: * `state=ACTIVE` to restrict results to skills in + the `ACTIVE` state. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Use this field to specify filter criteria on list results. Filter expressions + * can be used to restrict results based upon filterable fields, where equality operators + * can be used. See [instructions](https://docs.cloud.google.com/agent-registry/search- + * agents-and-tools) for more details. Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, + * `OR`, and `()`. | Field | `=` | `<`, `>` | |--------------|-----|----------| | state | + * Yes | No | | targetState | Yes | No | | createTime | Yes | Yes | | updateTime | Yes | + * Yes | Examples: * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** Optional. Hint for how to order the results */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Hint for how to order the results + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** Optional. Hint for how to order the results */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. A token identifying a page of results the server should return. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A token identifying a page of results the server should return. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. A token identifying a page of results the server should return. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates Skill metadata or overrides active pointers/state using REST standard PATCH. + * + * Create a request for the method "skills.patch". + * + * This request holds the parameters needed by the agentregistry server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. Resource name of the Skill. Format: + * `projects/{project}/locations/{location}/skills/{skill}` The `{skill}` segment acts as the + * resource ID. If the skill is associated with a Publisher, this segment typically uses a + * hyphenated namespace prefix corresponding to the publisher (e.g., `google-workspace- + * create-docs`). + * @param content the {@link com.google.api.services.agentregistry.v1.model.Skill} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.agentregistry.v1.model.Skill content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends AgentRegistryRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + + /** + * Updates Skill metadata or overrides active pointers/state using REST standard PATCH. + * + * Create a request for the method "skills.patch". + * + * This request holds the parameters needed by the the agentregistry server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Identifier. Resource name of the Skill. Format: + * `projects/{project}/locations/{location}/skills/{skill}` The `{skill}` segment acts as the + * resource ID. If the skill is associated with a Publisher, this segment typically uses a + * hyphenated namespace prefix corresponding to the publisher (e.g., `google-workspace- + * create-docs`). + * @param content the {@link com.google.api.services.agentregistry.v1.model.Skill} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.agentregistry.v1.model.Skill content) { + super(AgentRegistry.this, "PATCH", REST_PATH, content, com.google.api.services.agentregistry.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. Resource name of the Skill. Format: + * `projects/{project}/locations/{location}/skills/{skill}` The `{skill}` segment acts as + * the resource ID. If the skill is associated with a Publisher, this segment typically + * uses a hyphenated namespace prefix corresponding to the publisher (e.g., `google- + * workspace-create-docs`). + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. Resource name of the Skill. Format: + `projects/{project}/locations/{location}/skills/{skill}` The `{skill}` segment acts as the resource + ID. If the skill is associated with a Publisher, this segment typically uses a hyphenated namespace + prefix corresponding to the publisher (e.g., `google-workspace-create-docs`). + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Resource name of the Skill. Format: + * `projects/{project}/locations/{location}/skills/{skill}` The `{skill}` segment acts as + * the resource ID. If the skill is associated with a Publisher, this segment typically + * uses a hyphenated namespace prefix corresponding to the publisher (e.g., `google- + * workspace-create-docs`). + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + } + this.name = name; + return this; + } + + /** Optional. Signed UUID request idempotency token. */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. Signed UUID request idempotency token. + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** Optional. Signed UUID request idempotency token. */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** Optional. Standard update target mask mapping relative fields. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Standard update target mask mapping relative fields. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Optional. Standard update target mask mapping relative fields. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Custom deep-search method to filter by frontmatter or query SKILL.md text blobs. + * + * Create a request for the method "skills.search". + * + * This request holds the parameters needed by the agentregistry server. After setting any optional + * parameters, call the {@link Search#execute()} method to invoke the remote operation. + * + * @param parent Required. Parent value for SearchSkillsRequest. Format: `projects/{project}/locations/{location}`. + * @return the request + */ + public Search search(java.lang.String parent) throws java.io.IOException { + Search result = new Search(parent); + initialize(result); + return result; + } + + public class Search extends AgentRegistryRequest { + + private static final String REST_PATH = "v1/{+parent}/skills:search"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Custom deep-search method to filter by frontmatter or query SKILL.md text blobs. + * + * Create a request for the method "skills.search". + * + * This request holds the parameters needed by the the agentregistry server. After setting any + * optional parameters, call the {@link Search#execute()} method to invoke the remote operation. + *

{@link + * Search#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. Parent value for SearchSkillsRequest. Format: `projects/{project}/locations/{location}`. + * @since 1.13 + */ + protected Search(java.lang.String parent) { + super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1.model.SearchSkillsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Search set$Xgafv(java.lang.String $Xgafv) { + return (Search) super.set$Xgafv($Xgafv); + } + + @Override + public Search setAccessToken(java.lang.String accessToken) { + return (Search) super.setAccessToken(accessToken); + } + + @Override + public Search setAlt(java.lang.String alt) { + return (Search) super.setAlt(alt); + } + + @Override + public Search setCallback(java.lang.String callback) { + return (Search) super.setCallback(callback); + } + + @Override + public Search setFields(java.lang.String fields) { + return (Search) super.setFields(fields); + } + + @Override + public Search setKey(java.lang.String key) { + return (Search) super.setKey(key); + } + + @Override + public Search setOauthToken(java.lang.String oauthToken) { + return (Search) super.setOauthToken(oauthToken); + } + + @Override + public Search setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Search) super.setPrettyPrint(prettyPrint); + } + + @Override + public Search setQuotaUser(java.lang.String quotaUser) { + return (Search) super.setQuotaUser(quotaUser); + } + + @Override + public Search setUploadType(java.lang.String uploadType) { + return (Search) super.setUploadType(uploadType); + } + + @Override + public Search setUploadProtocol(java.lang.String uploadProtocol) { + return (Search) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Parent value for SearchSkillsRequest. Format: + * `projects/{project}/locations/{location}`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Parent value for SearchSkillsRequest. Format: `projects/{project}/locations/{location}`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Parent value for SearchSkillsRequest. Format: + * `projects/{project}/locations/{location}`. + */ + public Search setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Use this field to specify additional filter criteria on search results. + * Filter expressions can be used to restrict results based upon filterable fields, where + * equality operators can be used. See [instructions](https://docs.cloud.google.com/agent- + * registry/search-agents-and-tools) for more details. Allowed operators: `=`, `<`, `>`, + * `NOT`, `AND`, `OR`, and `()`. | Field | `=` | `<`, `>` | + * |--------------|-----|----------| | state | Yes | No | | targetState | Yes | No | | + * createTime | Yes | Yes | | updateTime | Yes | Yes | Examples: * `state=ACTIVE` to + * restrict results to skills in the `ACTIVE` state. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Use this field to specify additional filter criteria on search results. Filter + expressions can be used to restrict results based upon filterable fields, where equality operators + can be used. See [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and- + tools) for more details. Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, `OR`, and `()`. | Field | + `=` | `<`, `>` | |--------------|-----|----------| | state | Yes | No | | targetState | Yes | No | + | createTime | Yes | Yes | | updateTime | Yes | Yes | Examples: * `state=ACTIVE` to restrict + results to skills in the `ACTIVE` state. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Use this field to specify additional filter criteria on search results. + * Filter expressions can be used to restrict results based upon filterable fields, where + * equality operators can be used. See [instructions](https://docs.cloud.google.com/agent- + * registry/search-agents-and-tools) for more details. Allowed operators: `=`, `<`, `>`, + * `NOT`, `AND`, `OR`, and `()`. | Field | `=` | `<`, `>` | + * |--------------|-----|----------| | state | Yes | No | | targetState | Yes | No | | + * createTime | Yes | Yes | | updateTime | Yes | Yes | Examples: * `state=ACTIVE` to + * restrict results to skills in the `ACTIVE` state. + */ + public Search setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. The maximum number of search results to return per page. The page size is + * capped at `100`, even if a larger value is specified. A negative value will result in + * an `INVALID_ARGUMENT` error. If unspecified or set to `0`, a default value of `20` will + * be used. The server may return fewer results than requested. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of search results to return per page. The page size is capped at + `100`, even if a larger value is specified. A negative value will result in an `INVALID_ARGUMENT` + error. If unspecified or set to `0`, a default value of `20` will be used. The server may return + fewer results than requested. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of search results to return per page. The page size is + * capped at `100`, even if a larger value is specified. A negative value will result in + * an `INVALID_ARGUMENT` error. If unspecified or set to `0`, a default value of `20` will + * be used. The server may return fewer results than requested. + */ + public Search setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. If present, retrieve the next batch of results from the preceding call to + * this method. `page_token` must be the value of `next_page_token` from the previous + * response. The values of all other method parameters, must be identical to those in the + * previous call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. If present, retrieve the next batch of results from the preceding call to this method. + `page_token` must be the value of `next_page_token` from the previous response. The values of all + other method parameters, must be identical to those in the previous call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. If present, retrieve the next batch of results from the preceding call to + * this method. `page_token` must be the value of `next_page_token` from the previous + * response. The values of all other method parameters, must be identical to those in the + * previous call. + */ + public Search setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Optional. Search criteria used to select the Skills to return. If no search criteria is + * specified then all accessible Skills will be returned. Search expressions can be used + * to restrict results based upon searchable fields, where the operators can be used along + * with the suffix wildcard symbol `*`. See + * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools) + * for more details. Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`. Searchable + * fields: | Field | `=` | `:` | `*` | Keyword Search | + * |---------------------------|-----|-----|-----|----------------| | skillId | Yes | Yes + * | Yes | Included | | name | No | Yes | Yes | Included | | displayName | No | Yes | Yes + * | Included | | description | No | Yes | No | Included | | frontmatter.name | No | Yes | + * No | Included | | frontmatter.description | No | Yes | No | Included | | + * frontmatter.compatibility | No | Yes | No | Included | | frontmatter.license | No | Yes + * | No | Included | Examples: * + * `skillId="urn:skill:projects-1234:locations:global:private-important-skill"` to find + * the skill with the specified skill ID. * `name:important` to find skills whose name + * contains `important` as a word. * `displayName:works*` to find skills whose display + * name contains words that start with `works`. + */ + @com.google.api.client.util.Key + private java.lang.String searchString; + + /** Optional. Search criteria used to select the Skills to return. If no search criteria is specified + then all accessible Skills will be returned. Search expressions can be used to restrict results + based upon searchable fields, where the operators can be used along with the suffix wildcard symbol + `*`. See [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools) for + more details. Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`. Searchable fields: | Field + | `=` | `:` | `*` | Keyword Search | + |---------------------------|-----|-----|-----|----------------| | skillId | Yes | Yes | Yes | + Included | | name | No | Yes | Yes | Included | | displayName | No | Yes | Yes | Included | | + description | No | Yes | No | Included | | frontmatter.name | No | Yes | No | Included | | + frontmatter.description | No | Yes | No | Included | | frontmatter.compatibility | No | Yes | No | + Included | | frontmatter.license | No | Yes | No | Included | Examples: * + `skillId="urn:skill:projects-1234:locations:global:private-important-skill"` to find the skill with + the specified skill ID. * `name:important` to find skills whose name contains `important` as a + word. * `displayName:works*` to find skills whose display name contains words that start with + `works`. + */ + public java.lang.String getSearchString() { + return searchString; + } + + /** + * Optional. Search criteria used to select the Skills to return. If no search criteria is + * specified then all accessible Skills will be returned. Search expressions can be used + * to restrict results based upon searchable fields, where the operators can be used along + * with the suffix wildcard symbol `*`. See + * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools) + * for more details. Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`. Searchable + * fields: | Field | `=` | `:` | `*` | Keyword Search | + * |---------------------------|-----|-----|-----|----------------| | skillId | Yes | Yes + * | Yes | Included | | name | No | Yes | Yes | Included | | displayName | No | Yes | Yes + * | Included | | description | No | Yes | No | Included | | frontmatter.name | No | Yes | + * No | Included | | frontmatter.description | No | Yes | No | Included | | + * frontmatter.compatibility | No | Yes | No | Included | | frontmatter.license | No | Yes + * | No | Included | Examples: * + * `skillId="urn:skill:projects-1234:locations:global:private-important-skill"` to find + * the skill with the specified skill ID. * `name:important` to find skills whose name + * contains `important` as a word. * `displayName:works*` to find skills whose display + * name contains words that start with `works`. + */ + public Search setSearchString(java.lang.String searchString) { + this.searchString = searchString; + return this; + } + + /** Optional. The type of search. */ + @com.google.api.client.util.Key + private java.lang.String searchType; + + /** Optional. The type of search. + */ + public java.lang.String getSearchType() { + return searchType; + } + + /** Optional. The type of search. */ + public Search setSearchType(java.lang.String searchType) { + this.searchType = searchType; + return this; + } + + @Override + public Search set(String parameterName, Object value) { + return (Search) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + * Create a request for the method "skills.setIamPolicy". + * + * This request holds the parameters needed by the agentregistry server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.agentregistry.v1.model.GoogleIamV1SetIamPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.agentregistry.v1.model.GoogleIamV1SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends AgentRegistryRequest { + + private static final String REST_PATH = "v1/{+resource}:setIamPolicy"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + * Create a request for the method "skills.setIamPolicy". + * + * This request holds the parameters needed by the the agentregistry server. After setting any + * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote + * operation.

{@link + * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.agentregistry.v1.model.GoogleIamV1SetIamPolicyRequest} + * @since 1.13 + */ + protected SetIamPolicy(java.lang.String resource, com.google.api.services.agentregistry.v1.model.GoogleIamV1SetIamPolicyRequest content) { + super(AgentRegistry.this, "POST", REST_PATH, content, com.google.api.services.agentregistry.v1.model.GoogleIamV1Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + } + } + + @Override + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); + } + + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } + + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } + + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } + + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy is being specified. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + } + this.resource = resource; + return this; + } + + @Override + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. If the resource does not exist, + * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is + * designed to be used for building permission-aware UIs and command-line tools, not for + * authorization checking. This operation may "fail open" without warning. + * + * Create a request for the method "skills.testIamPermissions". + * + * This request holds the parameters needed by the agentregistry server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.agentregistry.v1.model.GoogleIamV1TestIamPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.agentregistry.v1.model.GoogleIamV1TestIamPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends AgentRegistryRequest { + + private static final String REST_PATH = "v1/{+resource}:testIamPermissions"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + + /** + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This + * operation is designed to be used for building permission-aware UIs and command-line tools, not + * for authorization checking. This operation may "fail open" without warning. + * + * Create a request for the method "skills.testIamPermissions". + * + * This request holds the parameters needed by the the agentregistry server. After setting any + * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

+ * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.agentregistry.v1.model.GoogleIamV1TestIamPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String resource, com.google.api.services.agentregistry.v1.model.GoogleIamV1TestIamPermissionsRequest content) { + super(AgentRegistry.this, "POST", REST_PATH, content, com.google.api.services.agentregistry.v1.model.GoogleIamV1TestIamPermissionsResponse.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy detail is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Revisions collection. + * + *

The typical use is:

+ *
+         *   {@code AgentRegistry agentregistry = new AgentRegistry(...);}
+         *   {@code AgentRegistry.Revisions.List request = agentregistry.revisions().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Revisions revisions() { + return new Revisions(); + } + + /** + * The "revisions" collection of methods. + */ + public class Revisions { + + /** + * Creates a new immutable revision and triggers validation pipelines. + * + * Create a request for the method "revisions.create". + * + * This request holds the parameters needed by the agentregistry server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. Parent logical container name. + * @param content the {@link com.google.api.services.agentregistry.v1.model.SkillRevision} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.agentregistry.v1.model.SkillRevision content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends AgentRegistryRequest { + + private static final String REST_PATH = "v1/{+parent}/revisions"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + + /** + * Creates a new immutable revision and triggers validation pipelines. + * + * Create a request for the method "revisions.create". + * + * This request holds the parameters needed by the the agentregistry server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *

{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. Parent logical container name. + * @param content the {@link com.google.api.services.agentregistry.v1.model.SkillRevision} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.agentregistry.v1.model.SkillRevision content) { + super(AgentRegistry.this, "POST", REST_PATH, content, com.google.api.services.agentregistry.v1.model.Operation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Parent logical container name. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Parent logical container name. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. Parent logical container name. */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. Signed UUID request idempotency token. */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. Signed UUID request idempotency token. + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** Optional. Signed UUID request idempotency token. */ + public Create setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Optional. Custom, user-defined unique revision identifier. Format: 4-63 characters, + * matching regex `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` + */ + @com.google.api.client.util.Key + private java.lang.String skillRevisionId; + + /** Optional. Custom, user-defined unique revision identifier. Format: 4-63 characters, matching regex + `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` + */ + public java.lang.String getSkillRevisionId() { + return skillRevisionId; + } + + /** + * Optional. Custom, user-defined unique revision identifier. Format: 4-63 characters, + * matching regex `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` + */ + public Create setSkillRevisionId(java.lang.String skillRevisionId) { + this.skillRevisionId = skillRevisionId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a specific revision (restricted to admins to purge accidentally committed secrets). + * + * Create a request for the method "revisions.delete". + * + * This request holds the parameters needed by the agentregistry server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. Target revision name to remove. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends AgentRegistryRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/skills/[^/]+/revisions/[^/]+$"); + + /** + * Deletes a specific revision (restricted to admins to purge accidentally committed secrets). + * + * Create a request for the method "revisions.delete". + * + * This request holds the parameters needed by the the agentregistry server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Target revision name to remove. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(AgentRegistry.this, "DELETE", REST_PATH, null, com.google.api.services.agentregistry.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+/revisions/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Target revision name to remove. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Target revision name to remove. + */ + public java.lang.String getName() { + return name; + } + + /** Required. Target revision name to remove. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+/revisions/[^/]+$"); + } + this.name = name; + return this; + } + + /** Optional. Signed UUID request idempotency token. */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. Signed UUID request idempotency token. + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** Optional. Signed UUID request idempotency token. */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of a single immutable Revision. + * + * Create a request for the method "revisions.get". + * + * This request holds the parameters needed by the agentregistry server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Target revision name. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends AgentRegistryRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/skills/[^/]+/revisions/[^/]+$"); + + /** + * Gets details of a single immutable Revision. + * + * Create a request for the method "revisions.get". + * + * This request holds the parameters needed by the the agentregistry server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Target revision name. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1.model.SkillRevision.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+/revisions/[^/]+$"); + } + initializeMediaDownload(); + } + + @Override + public void executeMediaAndDownloadTo(java.io.OutputStream outputStream) throws java.io.IOException { + super.executeMediaAndDownloadTo(outputStream); + } + + @Override + public java.io.InputStream executeMediaAsInputStream() throws java.io.IOException { + return super.executeMediaAsInputStream(); + } + + @Override + public com.google.api.client.http.HttpResponse executeMedia() throws java.io.IOException { + return super.executeMedia(); + } + + @Override + public com.google.api.client.http.GenericUrl buildHttpRequestUrl() { + java.lang.String baseUrl = ("media".equals(get("alt")) && getMediaHttpUploader() == null) + ? getRootUrl() + "download/" + getServicePath() : getBaseUrl(); + return new com.google.api.client.http.GenericUrl( + com.google.api.client.http.UriTemplate.expand(baseUrl, getUriTemplate(), this, true)); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Target revision name. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Target revision name. + */ + public java.lang.String getName() { + return name; + } + + /** Required. Target revision name. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+/revisions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists all revisions belonging to a parent Skill. + * + * Create a request for the method "revisions.list". + * + * This request holds the parameters needed by the agentregistry server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. Parent logical container name to query. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends AgentRegistryRequest { + + private static final String REST_PATH = "v1/{+parent}/revisions"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + + /** + * Lists all revisions belonging to a parent Skill. + * + * Create a request for the method "revisions.list". + * + * This request holds the parameters needed by the the agentregistry server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. Parent logical container name to query. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1.model.ListSkillRevisionsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Parent logical container name to query. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Parent logical container name to query. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. Parent logical container name to query. */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. Page limit size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Page limit size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Optional. Page limit size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. Page offset token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. Page offset token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. Page offset token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } } } } diff --git a/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ArchiveUploadSource.java b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ArchiveUploadSource.java new file mode 100644 index 00000000000..d9af344ffd1 --- /dev/null +++ b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ArchiveUploadSource.java @@ -0,0 +1,99 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentregistry.v1.model; + +/** + * Direct write-only raw archive payload upload. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Registry API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ArchiveUploadSource extends com.google.api.client.json.GenericJson { + + /** + * Required. Input only. Write-only raw ZIP/TAR archive payload bytes containing the skill + * package. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String archiveContent; + + /** + * Required. Input only. Write-only raw ZIP/TAR archive payload bytes containing the skill + * package. + * @see #decodeArchiveContent() + * @return value or {@code null} for none + */ + public java.lang.String getArchiveContent() { + return archiveContent; + } + + /** + * Required. Input only. Write-only raw ZIP/TAR archive payload bytes containing the skill + * package. + * @see #getArchiveContent() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeArchiveContent() { + return com.google.api.client.util.Base64.decodeBase64(archiveContent); + } + + /** + * Required. Input only. Write-only raw ZIP/TAR archive payload bytes containing the skill + * package. + * @see #encodeArchiveContent() + * @param archiveContent archiveContent or {@code null} for none + */ + public ArchiveUploadSource setArchiveContent(java.lang.String archiveContent) { + this.archiveContent = archiveContent; + return this; + } + + /** + * Required. Input only. Write-only raw ZIP/TAR archive payload bytes containing the skill + * package. + * @see #setArchiveContent() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public ArchiveUploadSource encodeArchiveContent(byte[] archiveContent) { + this.archiveContent = com.google.api.client.util.Base64.encodeBase64URLSafeString(archiveContent); + return this; + } + + @Override + public ArchiveUploadSource set(String fieldName, Object value) { + return (ArchiveUploadSource) super.set(fieldName, value); + } + + @Override + public ArchiveUploadSource clone() { + return (ArchiveUploadSource) super.clone(); + } + +} diff --git a/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/File.java b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/File.java new file mode 100644 index 00000000000..bba5f2a9692 --- /dev/null +++ b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/File.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentregistry.v1.model; + +/** + * File location of the finding. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Registry API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class File extends com.google.api.client.json.GenericJson { + + /** + * Optional. Line number (1-based), or 0 if whole File / unknown. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long lineNumber; + + /** + * Optional. Relative path of the file containing the finding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** + * Optional. Line number (1-based), or 0 if whole File / unknown. + * @return value or {@code null} for none + */ + public java.lang.Long getLineNumber() { + return lineNumber; + } + + /** + * Optional. Line number (1-based), or 0 if whole File / unknown. + * @param lineNumber lineNumber or {@code null} for none + */ + public File setLineNumber(java.lang.Long lineNumber) { + this.lineNumber = lineNumber; + return this; + } + + /** + * Optional. Relative path of the file containing the finding. + * @return value or {@code null} for none + */ + public java.lang.String getPath() { + return path; + } + + /** + * Optional. Relative path of the file containing the finding. + * @param path path or {@code null} for none + */ + public File setPath(java.lang.String path) { + this.path = path; + return this; + } + + @Override + public File set(String fieldName, Object value) { + return (File) super.set(fieldName, value); + } + + @Override + public File clone() { + return (File) super.clone(); + } + +} diff --git a/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/Finding.java b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/Finding.java new file mode 100644 index 00000000000..9e1532b3a4f --- /dev/null +++ b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/Finding.java @@ -0,0 +1,291 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentregistry.v1.model; + +/** + * Represents a security Finding. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Registry API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Finding extends com.google.api.client.json.GenericJson { + + /** + * Optional. Category of the finding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String category; + + /** + * Output only. Create time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. Detailed description of the finding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String detail; + + /** + * Optional. File associated with the finding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List files; + + static { + // hack to force ProGuard to consider File used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(File.class); + } + + /** + * Optional. Class of the finding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String findingClass; + + /** + * Identifier. Resource name of the Finding. Format: + * `projects/{project}/locations/{location}/findings/{finding}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. The resource that the finding is associated with. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** + * Optional. Severity of the finding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String severity; + + /** + * Output only. Universally unique identifier (UUID4) for the Finding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uid; + + /** + * Output only. Update time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Optional. Category of the finding. + * @return value or {@code null} for none + */ + public java.lang.String getCategory() { + return category; + } + + /** + * Optional. Category of the finding. + * @param category category or {@code null} for none + */ + public Finding setCategory(java.lang.String category) { + this.category = category; + return this; + } + + /** + * Output only. Create time. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Create time. + * @param createTime createTime or {@code null} for none + */ + public Finding setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. Detailed description of the finding. + * @return value or {@code null} for none + */ + public java.lang.String getDetail() { + return detail; + } + + /** + * Optional. Detailed description of the finding. + * @param detail detail or {@code null} for none + */ + public Finding setDetail(java.lang.String detail) { + this.detail = detail; + return this; + } + + /** + * Optional. File associated with the finding. + * @return value or {@code null} for none + */ + public java.util.List getFiles() { + return files; + } + + /** + * Optional. File associated with the finding. + * @param files files or {@code null} for none + */ + public Finding setFiles(java.util.List files) { + this.files = files; + return this; + } + + /** + * Optional. Class of the finding. + * @return value or {@code null} for none + */ + public java.lang.String getFindingClass() { + return findingClass; + } + + /** + * Optional. Class of the finding. + * @param findingClass findingClass or {@code null} for none + */ + public Finding setFindingClass(java.lang.String findingClass) { + this.findingClass = findingClass; + return this; + } + + /** + * Identifier. Resource name of the Finding. Format: + * `projects/{project}/locations/{location}/findings/{finding}`. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Resource name of the Finding. Format: + * `projects/{project}/locations/{location}/findings/{finding}`. + * @param name name or {@code null} for none + */ + public Finding setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. The resource that the finding is associated with. + * @return value or {@code null} for none + */ + public java.lang.String getResource() { + return resource; + } + + /** + * Optional. The resource that the finding is associated with. + * @param resource resource or {@code null} for none + */ + public Finding setResource(java.lang.String resource) { + this.resource = resource; + return this; + } + + /** + * Optional. Severity of the finding. + * @return value or {@code null} for none + */ + public java.lang.String getSeverity() { + return severity; + } + + /** + * Optional. Severity of the finding. + * @param severity severity or {@code null} for none + */ + public Finding setSeverity(java.lang.String severity) { + this.severity = severity; + return this; + } + + /** + * Output only. Universally unique identifier (UUID4) for the Finding. + * @return value or {@code null} for none + */ + public java.lang.String getUid() { + return uid; + } + + /** + * Output only. Universally unique identifier (UUID4) for the Finding. + * @param uid uid or {@code null} for none + */ + public Finding setUid(java.lang.String uid) { + this.uid = uid; + return this; + } + + /** + * Output only. Update time. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Update time. + * @param updateTime updateTime or {@code null} for none + */ + public Finding setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public Finding set(String fieldName, Object value) { + return (Finding) super.set(fieldName, value); + } + + @Override + public Finding clone() { + return (Finding) super.clone(); + } + +} diff --git a/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/Frontmatter.java b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/Frontmatter.java new file mode 100644 index 00000000000..c8e72546505 --- /dev/null +++ b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/Frontmatter.java @@ -0,0 +1,162 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentregistry.v1.model; + +/** + * Structured metadata attributes extracted from the package's local SKILL.md frontmatter. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Registry API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Frontmatter extends com.google.api.client.json.GenericJson { + + /** + * Optional. Environmental dependencies or local sidecars. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String compatibility; + + /** + * Required. Functional description. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. License. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String license; + + /** + * Optional. Extensible flattened map mapping custom tags, authors, and version parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadata; + + /** + * Required. The name of the skill. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. Environmental dependencies or local sidecars. + * @return value or {@code null} for none + */ + public java.lang.String getCompatibility() { + return compatibility; + } + + /** + * Optional. Environmental dependencies or local sidecars. + * @param compatibility compatibility or {@code null} for none + */ + public Frontmatter setCompatibility(java.lang.String compatibility) { + this.compatibility = compatibility; + return this; + } + + /** + * Required. Functional description. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Required. Functional description. + * @param description description or {@code null} for none + */ + public Frontmatter setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. License. + * @return value or {@code null} for none + */ + public java.lang.String getLicense() { + return license; + } + + /** + * Optional. License. + * @param license license or {@code null} for none + */ + public Frontmatter setLicense(java.lang.String license) { + this.license = license; + return this; + } + + /** + * Optional. Extensible flattened map mapping custom tags, authors, and version parameters. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Optional. Extensible flattened map mapping custom tags, authors, and version parameters. + * @param metadata metadata or {@code null} for none + */ + public Frontmatter setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * Required. The name of the skill. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the skill. + * @param name name or {@code null} for none + */ + public Frontmatter setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public Frontmatter set(String fieldName, Object value) { + return (Frontmatter) super.set(fieldName, value); + } + + @Override + public Frontmatter clone() { + return (Frontmatter) super.clone(); + } + +} diff --git a/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/GcsSource.java b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/GcsSource.java new file mode 100644 index 00000000000..ce522e89422 --- /dev/null +++ b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/GcsSource.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentregistry.v1.model; + +/** + * Specifications for Cloud Storage objects. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Registry API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GcsSource extends com.google.api.client.json.GenericJson { + + /** + * Optional. Cloud Storage object generation ID. If not specified, the latest generation is used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long generation; + + /** + * Required. Cloud Storage object URI. Format: `gs://{bucket_name}/{object_name}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * Optional. Cloud Storage object generation ID. If not specified, the latest generation is used. + * @return value or {@code null} for none + */ + public java.lang.Long getGeneration() { + return generation; + } + + /** + * Optional. Cloud Storage object generation ID. If not specified, the latest generation is used. + * @param generation generation or {@code null} for none + */ + public GcsSource setGeneration(java.lang.Long generation) { + this.generation = generation; + return this; + } + + /** + * Required. Cloud Storage object URI. Format: `gs://{bucket_name}/{object_name}` + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * Required. Cloud Storage object URI. Format: `gs://{bucket_name}/{object_name}` + * @param uri uri or {@code null} for none + */ + public GcsSource setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public GcsSource set(String fieldName, Object value) { + return (GcsSource) super.set(fieldName, value); + } + + @Override + public GcsSource clone() { + return (GcsSource) super.clone(); + } + +} diff --git a/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ListFindingsResponse.java b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ListFindingsResponse.java new file mode 100644 index 00000000000..e97666bd9fa --- /dev/null +++ b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ListFindingsResponse.java @@ -0,0 +1,96 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentregistry.v1.model; + +/** + * Message for response to listing Findings. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Registry API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListFindingsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of Findings. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List findings; + + static { + // hack to force ProGuard to consider Finding used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Finding.class); + } + + /** + * A token identifying a page of results the server should return. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of Findings. + * @return value or {@code null} for none + */ + public java.util.List getFindings() { + return findings; + } + + /** + * The list of Findings. + * @param findings findings or {@code null} for none + */ + public ListFindingsResponse setFindings(java.util.List findings) { + this.findings = findings; + return this; + } + + /** + * A token identifying a page of results the server should return. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token identifying a page of results the server should return. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListFindingsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListFindingsResponse set(String fieldName, Object value) { + return (ListFindingsResponse) super.set(fieldName, value); + } + + @Override + public ListFindingsResponse clone() { + return (ListFindingsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ListPublishersResponse.java b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ListPublishersResponse.java new file mode 100644 index 00000000000..576b2bcaf3f --- /dev/null +++ b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ListPublishersResponse.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentregistry.v1.model; + +/** + * Response listing Publishers. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Registry API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListPublishersResponse extends com.google.api.client.json.GenericJson { + + /** + * Page offset continuation token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The returned list of Publishers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List publishers; + + /** + * Page offset continuation token. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Page offset continuation token. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListPublishersResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The returned list of Publishers. + * @return value or {@code null} for none + */ + public java.util.List getPublishers() { + return publishers; + } + + /** + * The returned list of Publishers. + * @param publishers publishers or {@code null} for none + */ + public ListPublishersResponse setPublishers(java.util.List publishers) { + this.publishers = publishers; + return this; + } + + @Override + public ListPublishersResponse set(String fieldName, Object value) { + return (ListPublishersResponse) super.set(fieldName, value); + } + + @Override + public ListPublishersResponse clone() { + return (ListPublishersResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ListSkillRevisionsResponse.java b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ListSkillRevisionsResponse.java new file mode 100644 index 00000000000..d35b6146b84 --- /dev/null +++ b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ListSkillRevisionsResponse.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentregistry.v1.model; + +/** + * Response listing Revisions. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Registry API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListSkillRevisionsResponse extends com.google.api.client.json.GenericJson { + + /** + * Page offset continuation token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Returned version snapshot list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List skillRevisions; + + /** + * Page offset continuation token. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Page offset continuation token. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListSkillRevisionsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Returned version snapshot list. + * @return value or {@code null} for none + */ + public java.util.List getSkillRevisions() { + return skillRevisions; + } + + /** + * Returned version snapshot list. + * @param skillRevisions skillRevisions or {@code null} for none + */ + public ListSkillRevisionsResponse setSkillRevisions(java.util.List skillRevisions) { + this.skillRevisions = skillRevisions; + return this; + } + + @Override + public ListSkillRevisionsResponse set(String fieldName, Object value) { + return (ListSkillRevisionsResponse) super.set(fieldName, value); + } + + @Override + public ListSkillRevisionsResponse clone() { + return (ListSkillRevisionsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ListSkillsResponse.java b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ListSkillsResponse.java new file mode 100644 index 00000000000..07618a3abcd --- /dev/null +++ b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ListSkillsResponse.java @@ -0,0 +1,114 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentregistry.v1.model; + +/** + * Response structure listing logical Skills. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Registry API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListSkillsResponse extends com.google.api.client.json.GenericJson { + + /** + * Page continuation continuation token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Returned container list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List skills; + + /** + * Unreachable locations or failures. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * Page continuation continuation token. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Page continuation continuation token. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListSkillsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Returned container list. + * @return value or {@code null} for none + */ + public java.util.List getSkills() { + return skills; + } + + /** + * Returned container list. + * @param skills skills or {@code null} for none + */ + public ListSkillsResponse setSkills(java.util.List skills) { + this.skills = skills; + return this; + } + + /** + * Unreachable locations or failures. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unreachable locations or failures. + * @param unreachable unreachable or {@code null} for none + */ + public ListSkillsResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListSkillsResponse set(String fieldName, Object value) { + return (ListSkillsResponse) super.set(fieldName, value); + } + + @Override + public ListSkillsResponse clone() { + return (ListSkillsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/Publisher.java b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/Publisher.java new file mode 100644 index 00000000000..10c1f38319e --- /dev/null +++ b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/Publisher.java @@ -0,0 +1,196 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentregistry.v1.model; + +/** + * Represents a verified Publisher of Skills. Prepopulated publishers include + * `publishers/cloud.google.com` and `publishers/workspace.google.com`. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Registry API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Publisher extends com.google.api.client.json.GenericJson { + + /** + * Optional. Human readable display name of the publisher. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Optional. URI pointing to official publisher documentation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String documentationUri; + + /** + * Identifier. Resource name of the publisher. Format: + * `projects/{project}/locations/{location}/publishers/{publisher}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The curation tier of the publisher. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String publisherTier; + + /** + * Optional. URI pointing to the support portal or email. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String supportUri; + + /** + * Required. The verified prefix (e.g. "snowflake-", "google-") associated with this publisher. + * The system uses this prefix to enforce name-squatting rules during Skill registration. Must be + * globally unique across all publishers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verifiedPrefix; + + /** + * Optional. Human readable display name of the publisher. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. Human readable display name of the publisher. + * @param displayName displayName or {@code null} for none + */ + public Publisher setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Optional. URI pointing to official publisher documentation. + * @return value or {@code null} for none + */ + public java.lang.String getDocumentationUri() { + return documentationUri; + } + + /** + * Optional. URI pointing to official publisher documentation. + * @param documentationUri documentationUri or {@code null} for none + */ + public Publisher setDocumentationUri(java.lang.String documentationUri) { + this.documentationUri = documentationUri; + return this; + } + + /** + * Identifier. Resource name of the publisher. Format: + * `projects/{project}/locations/{location}/publishers/{publisher}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Resource name of the publisher. Format: + * `projects/{project}/locations/{location}/publishers/{publisher}` + * @param name name or {@code null} for none + */ + public Publisher setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The curation tier of the publisher. + * @return value or {@code null} for none + */ + public java.lang.String getPublisherTier() { + return publisherTier; + } + + /** + * Output only. The curation tier of the publisher. + * @param publisherTier publisherTier or {@code null} for none + */ + public Publisher setPublisherTier(java.lang.String publisherTier) { + this.publisherTier = publisherTier; + return this; + } + + /** + * Optional. URI pointing to the support portal or email. + * @return value or {@code null} for none + */ + public java.lang.String getSupportUri() { + return supportUri; + } + + /** + * Optional. URI pointing to the support portal or email. + * @param supportUri supportUri or {@code null} for none + */ + public Publisher setSupportUri(java.lang.String supportUri) { + this.supportUri = supportUri; + return this; + } + + /** + * Required. The verified prefix (e.g. "snowflake-", "google-") associated with this publisher. + * The system uses this prefix to enforce name-squatting rules during Skill registration. Must be + * globally unique across all publishers. + * @return value or {@code null} for none + */ + public java.lang.String getVerifiedPrefix() { + return verifiedPrefix; + } + + /** + * Required. The verified prefix (e.g. "snowflake-", "google-") associated with this publisher. + * The system uses this prefix to enforce name-squatting rules during Skill registration. Must be + * globally unique across all publishers. + * @param verifiedPrefix verifiedPrefix or {@code null} for none + */ + public Publisher setVerifiedPrefix(java.lang.String verifiedPrefix) { + this.verifiedPrefix = verifiedPrefix; + return this; + } + + @Override + public Publisher set(String fieldName, Object value) { + return (Publisher) super.set(fieldName, value); + } + + @Override + public Publisher clone() { + return (Publisher) super.clone(); + } + +} diff --git a/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ScanResult.java b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ScanResult.java new file mode 100644 index 00000000000..85b9353a60a --- /dev/null +++ b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ScanResult.java @@ -0,0 +1,138 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentregistry.v1.model; + +/** + * Scan result of the skill revision. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Registry API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ScanResult extends com.google.api.client.json.GenericJson { + + /** + * Output only. The error message if the scan failed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String errorMessage; + + /** + * Output only. The finding resource names for the skill revision. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List findings; + + /** + * Output only. The state of the vulnerability check. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String scanState; + + /** + * Output only. The time when the scan was completed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String scanTime; + + /** + * Output only. The error message if the scan failed. + * @return value or {@code null} for none + */ + public java.lang.String getErrorMessage() { + return errorMessage; + } + + /** + * Output only. The error message if the scan failed. + * @param errorMessage errorMessage or {@code null} for none + */ + public ScanResult setErrorMessage(java.lang.String errorMessage) { + this.errorMessage = errorMessage; + return this; + } + + /** + * Output only. The finding resource names for the skill revision. + * @return value or {@code null} for none + */ + public java.util.List getFindings() { + return findings; + } + + /** + * Output only. The finding resource names for the skill revision. + * @param findings findings or {@code null} for none + */ + public ScanResult setFindings(java.util.List findings) { + this.findings = findings; + return this; + } + + /** + * Output only. The state of the vulnerability check. + * @return value or {@code null} for none + */ + public java.lang.String getScanState() { + return scanState; + } + + /** + * Output only. The state of the vulnerability check. + * @param scanState scanState or {@code null} for none + */ + public ScanResult setScanState(java.lang.String scanState) { + this.scanState = scanState; + return this; + } + + /** + * Output only. The time when the scan was completed. + * @return value or {@code null} for none + */ + public String getScanTime() { + return scanTime; + } + + /** + * Output only. The time when the scan was completed. + * @param scanTime scanTime or {@code null} for none + */ + public ScanResult setScanTime(String scanTime) { + this.scanTime = scanTime; + return this; + } + + @Override + public ScanResult set(String fieldName, Object value) { + return (ScanResult) super.set(fieldName, value); + } + + @Override + public ScanResult clone() { + return (ScanResult) super.clone(); + } + +} diff --git a/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ScanningConfig.java b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ScanningConfig.java new file mode 100644 index 00000000000..0959f6d895a --- /dev/null +++ b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/ScanningConfig.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentregistry.v1.model; + +/** + * Configuration for scanning of the skill. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Registry API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ScanningConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The security scanning policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String policy; + + /** + * Optional. The security scanning policy. + * @return value or {@code null} for none + */ + public java.lang.String getPolicy() { + return policy; + } + + /** + * Optional. The security scanning policy. + * @param policy policy or {@code null} for none + */ + public ScanningConfig setPolicy(java.lang.String policy) { + this.policy = policy; + return this; + } + + @Override + public ScanningConfig set(String fieldName, Object value) { + return (ScanningConfig) super.set(fieldName, value); + } + + @Override + public ScanningConfig clone() { + return (ScanningConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/SearchSkillsRequest.java b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/SearchSkillsRequest.java new file mode 100644 index 00000000000..2629b589ca2 --- /dev/null +++ b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/SearchSkillsRequest.java @@ -0,0 +1,237 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentregistry.v1.model; + +/** + * Requesting a deep search of Skills. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Registry API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SearchSkillsRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. Use this field to specify additional filter criteria on search results. Filter + * expressions can be used to restrict results based upon filterable fields, where equality + * operators can be used. See [instructions](https://docs.cloud.google.com/agent-registry/search- + * agents-and-tools) for more details. Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, `OR`, and + * `()`. | Field | `=` | `<`, `>` | |--------------|-----|----------| | state | Yes | No | | + * targetState | Yes | No | | createTime | Yes | Yes | | updateTime | Yes | Yes | Examples: * + * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** + * Optional. The maximum number of search results to return per page. The page size is capped at + * `100`, even if a larger value is specified. A negative value will result in an + * `INVALID_ARGUMENT` error. If unspecified or set to `0`, a default value of `20` will be used. + * The server may return fewer results than requested. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** + * Optional. If present, retrieve the next batch of results from the preceding call to this + * method. `page_token` must be the value of `next_page_token` from the previous response. The + * values of all other method parameters, must be identical to those in the previous call. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** + * Optional. Search criteria used to select the Skills to return. If no search criteria is + * specified then all accessible Skills will be returned. Search expressions can be used to + * restrict results based upon searchable fields, where the operators can be used along with the + * suffix wildcard symbol `*`. See [instructions](https://docs.cloud.google.com/agent- + * registry/search-agents-and-tools) for more details. Allowed operators: `=`, `:`, `NOT`, `AND`, + * `OR`, and `()`. Searchable fields: | Field | `=` | `:` | `*` | Keyword Search | + * |---------------------------|-----|-----|-----|----------------| | skillId | Yes | Yes | Yes | + * Included | | name | No | Yes | Yes | Included | | displayName | No | Yes | Yes | Included | | + * description | No | Yes | No | Included | | frontmatter.name | No | Yes | No | Included | | + * frontmatter.description | No | Yes | No | Included | | frontmatter.compatibility | No | Yes | + * No | Included | | frontmatter.license | No | Yes | No | Included | Examples: * + * `skillId="urn:skill:projects-1234:locations:global:private-important-skill"` to find the skill + * with the specified skill ID. * `name:important` to find skills whose name contains `important` + * as a word. * `displayName:works*` to find skills whose display name contains words that start + * with `works`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String searchString; + + /** + * Optional. The type of search. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String searchType; + + /** + * Optional. Use this field to specify additional filter criteria on search results. Filter + * expressions can be used to restrict results based upon filterable fields, where equality + * operators can be used. See [instructions](https://docs.cloud.google.com/agent-registry/search- + * agents-and-tools) for more details. Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, `OR`, and + * `()`. | Field | `=` | `<`, `>` | |--------------|-----|----------| | state | Yes | No | | + * targetState | Yes | No | | createTime | Yes | Yes | | updateTime | Yes | Yes | Examples: * + * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state. + * @return value or {@code null} for none + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Use this field to specify additional filter criteria on search results. Filter + * expressions can be used to restrict results based upon filterable fields, where equality + * operators can be used. See [instructions](https://docs.cloud.google.com/agent-registry/search- + * agents-and-tools) for more details. Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, `OR`, and + * `()`. | Field | `=` | `<`, `>` | |--------------|-----|----------| | state | Yes | No | | + * targetState | Yes | No | | createTime | Yes | Yes | | updateTime | Yes | Yes | Examples: * + * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state. + * @param filter filter or {@code null} for none + */ + public SearchSkillsRequest setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. The maximum number of search results to return per page. The page size is capped at + * `100`, even if a larger value is specified. A negative value will result in an + * `INVALID_ARGUMENT` error. If unspecified or set to `0`, a default value of `20` will be used. + * The server may return fewer results than requested. + * @return value or {@code null} for none + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of search results to return per page. The page size is capped at + * `100`, even if a larger value is specified. A negative value will result in an + * `INVALID_ARGUMENT` error. If unspecified or set to `0`, a default value of `20` will be used. + * The server may return fewer results than requested. + * @param pageSize pageSize or {@code null} for none + */ + public SearchSkillsRequest setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. If present, retrieve the next batch of results from the preceding call to this + * method. `page_token` must be the value of `next_page_token` from the previous response. The + * values of all other method parameters, must be identical to those in the previous call. + * @return value or {@code null} for none + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. If present, retrieve the next batch of results from the preceding call to this + * method. `page_token` must be the value of `next_page_token` from the previous response. The + * values of all other method parameters, must be identical to those in the previous call. + * @param pageToken pageToken or {@code null} for none + */ + public SearchSkillsRequest setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Optional. Search criteria used to select the Skills to return. If no search criteria is + * specified then all accessible Skills will be returned. Search expressions can be used to + * restrict results based upon searchable fields, where the operators can be used along with the + * suffix wildcard symbol `*`. See [instructions](https://docs.cloud.google.com/agent- + * registry/search-agents-and-tools) for more details. Allowed operators: `=`, `:`, `NOT`, `AND`, + * `OR`, and `()`. Searchable fields: | Field | `=` | `:` | `*` | Keyword Search | + * |---------------------------|-----|-----|-----|----------------| | skillId | Yes | Yes | Yes | + * Included | | name | No | Yes | Yes | Included | | displayName | No | Yes | Yes | Included | | + * description | No | Yes | No | Included | | frontmatter.name | No | Yes | No | Included | | + * frontmatter.description | No | Yes | No | Included | | frontmatter.compatibility | No | Yes | + * No | Included | | frontmatter.license | No | Yes | No | Included | Examples: * + * `skillId="urn:skill:projects-1234:locations:global:private-important-skill"` to find the skill + * with the specified skill ID. * `name:important` to find skills whose name contains `important` + * as a word. * `displayName:works*` to find skills whose display name contains words that start + * with `works`. + * @return value or {@code null} for none + */ + public java.lang.String getSearchString() { + return searchString; + } + + /** + * Optional. Search criteria used to select the Skills to return. If no search criteria is + * specified then all accessible Skills will be returned. Search expressions can be used to + * restrict results based upon searchable fields, where the operators can be used along with the + * suffix wildcard symbol `*`. See [instructions](https://docs.cloud.google.com/agent- + * registry/search-agents-and-tools) for more details. Allowed operators: `=`, `:`, `NOT`, `AND`, + * `OR`, and `()`. Searchable fields: | Field | `=` | `:` | `*` | Keyword Search | + * |---------------------------|-----|-----|-----|----------------| | skillId | Yes | Yes | Yes | + * Included | | name | No | Yes | Yes | Included | | displayName | No | Yes | Yes | Included | | + * description | No | Yes | No | Included | | frontmatter.name | No | Yes | No | Included | | + * frontmatter.description | No | Yes | No | Included | | frontmatter.compatibility | No | Yes | + * No | Included | | frontmatter.license | No | Yes | No | Included | Examples: * + * `skillId="urn:skill:projects-1234:locations:global:private-important-skill"` to find the skill + * with the specified skill ID. * `name:important` to find skills whose name contains `important` + * as a word. * `displayName:works*` to find skills whose display name contains words that start + * with `works`. + * @param searchString searchString or {@code null} for none + */ + public SearchSkillsRequest setSearchString(java.lang.String searchString) { + this.searchString = searchString; + return this; + } + + /** + * Optional. The type of search. + * @return value or {@code null} for none + */ + public java.lang.String getSearchType() { + return searchType; + } + + /** + * Optional. The type of search. + * @param searchType searchType or {@code null} for none + */ + public SearchSkillsRequest setSearchType(java.lang.String searchType) { + this.searchType = searchType; + return this; + } + + @Override + public SearchSkillsRequest set(String fieldName, Object value) { + return (SearchSkillsRequest) super.set(fieldName, value); + } + + @Override + public SearchSkillsRequest clone() { + return (SearchSkillsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/SearchSkillsResponse.java b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/SearchSkillsResponse.java new file mode 100644 index 00000000000..327291b6e99 --- /dev/null +++ b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/SearchSkillsResponse.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentregistry.v1.model; + +/** + * Response listing searched Skills. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Registry API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SearchSkillsResponse extends com.google.api.client.json.GenericJson { + + /** + * Query page offset continuation token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Matched Skills list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List skills; + + /** + * Query page offset continuation token. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Query page offset continuation token. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public SearchSkillsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Matched Skills list. + * @return value or {@code null} for none + */ + public java.util.List getSkills() { + return skills; + } + + /** + * Matched Skills list. + * @param skills skills or {@code null} for none + */ + public SearchSkillsResponse setSkills(java.util.List skills) { + this.skills = skills; + return this; + } + + @Override + public SearchSkillsResponse set(String fieldName, Object value) { + return (SearchSkillsResponse) super.set(fieldName, value); + } + + @Override + public SearchSkillsResponse clone() { + return (SearchSkillsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/Skill.java b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/Skill.java new file mode 100644 index 00000000000..18ff4923304 --- /dev/null +++ b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/Skill.java @@ -0,0 +1,448 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentregistry.v1.model; + +/** + * Represents an Executable Agent Skill or a Composite Tool Suite (Bundle). Sibling resource with + * Agent and McpServer under agentregistry.googleapis.com. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Registry API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Skill extends com.google.api.client.json.GenericJson { + + /** + * Output only. Create time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. The full resource name of the revision currently served by default (floating track). + * Format: `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultRevision; + + /** + * Optional. Brief summary describing the capabilities of the skill. Maximum length is 2048 + * characters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. Human-readable display name of the skill. Maximum length is 128 characters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. Lightweight frontmatter metadata attributes copied from the default revision. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Frontmatter frontmatter; + + /** + * Optional. Input only. Optional nested initial revision payload to support standard one-shot + * creation. The server processes this field on input during creation but must never return it in + * responses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SkillRevision initialRevision; + + /** + * Identifier. Resource name of the Skill. Format: + * `projects/{project}/locations/{location}/skills/{skill}` The `{skill}` segment acts as the + * resource ID. If the skill is associated with a Publisher, this segment typically uses a + * hyphenated namespace prefix corresponding to the publisher (e.g., `google-workspace-create- + * docs`). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. The publisher resource associated with this skill. Format: + * `projects/{project}/locations/{location}/publishers/{publisher}` The publisher dictates the + * allowed namespace prefixes for the skill's name and logical `skill_id` (e.g., Publisher + * `google` authorizes the `google-*` prefix). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String publisher; + + /** + * Optional. Optional. Scanning configuration for the skill. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ScanningConfig scanningConfig; + + /** + * Output only. A stable, globally unique logical identifier for the skill. It is securely + * constructed by the backend by combining the associated `publisher`'s verified namespace and the + * skill's resource ID to enforce strict ownership. For example, the prefix `google-` is reserved + * exclusively for first-party Google publishers to prevent namespace squatting. Example: + * `urn:skill:google-workspace:create-docs` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String skillId; + + /** + * Output only. The system-managed state of the skill. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Required. User-managed target state of the skill. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetState; + + /** + * Required. Structural deployment type (SIMPLE leaf vs COMPOSITE bundle). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. Universally unique identifier (UUID4) for the logical container. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uid; + + /** + * Output only. Update time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. Create time. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Create time. + * @param createTime createTime or {@code null} for none + */ + public Skill setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. The full resource name of the revision currently served by default (floating track). + * Format: `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}` + * @return value or {@code null} for none + */ + public java.lang.String getDefaultRevision() { + return defaultRevision; + } + + /** + * Optional. The full resource name of the revision currently served by default (floating track). + * Format: `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}` + * @param defaultRevision defaultRevision or {@code null} for none + */ + public Skill setDefaultRevision(java.lang.String defaultRevision) { + this.defaultRevision = defaultRevision; + return this; + } + + /** + * Optional. Brief summary describing the capabilities of the skill. Maximum length is 2048 + * characters. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Brief summary describing the capabilities of the skill. Maximum length is 2048 + * characters. + * @param description description or {@code null} for none + */ + public Skill setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. Human-readable display name of the skill. Maximum length is 128 characters. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. Human-readable display name of the skill. Maximum length is 128 characters. + * @param displayName displayName or {@code null} for none + */ + public Skill setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. Lightweight frontmatter metadata attributes copied from the default revision. + * @return value or {@code null} for none + */ + public Frontmatter getFrontmatter() { + return frontmatter; + } + + /** + * Output only. Lightweight frontmatter metadata attributes copied from the default revision. + * @param frontmatter frontmatter or {@code null} for none + */ + public Skill setFrontmatter(Frontmatter frontmatter) { + this.frontmatter = frontmatter; + return this; + } + + /** + * Optional. Input only. Optional nested initial revision payload to support standard one-shot + * creation. The server processes this field on input during creation but must never return it in + * responses. + * @return value or {@code null} for none + */ + public SkillRevision getInitialRevision() { + return initialRevision; + } + + /** + * Optional. Input only. Optional nested initial revision payload to support standard one-shot + * creation. The server processes this field on input during creation but must never return it in + * responses. + * @param initialRevision initialRevision or {@code null} for none + */ + public Skill setInitialRevision(SkillRevision initialRevision) { + this.initialRevision = initialRevision; + return this; + } + + /** + * Identifier. Resource name of the Skill. Format: + * `projects/{project}/locations/{location}/skills/{skill}` The `{skill}` segment acts as the + * resource ID. If the skill is associated with a Publisher, this segment typically uses a + * hyphenated namespace prefix corresponding to the publisher (e.g., `google-workspace-create- + * docs`). + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Resource name of the Skill. Format: + * `projects/{project}/locations/{location}/skills/{skill}` The `{skill}` segment acts as the + * resource ID. If the skill is associated with a Publisher, this segment typically uses a + * hyphenated namespace prefix corresponding to the publisher (e.g., `google-workspace-create- + * docs`). + * @param name name or {@code null} for none + */ + public Skill setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. The publisher resource associated with this skill. Format: + * `projects/{project}/locations/{location}/publishers/{publisher}` The publisher dictates the + * allowed namespace prefixes for the skill's name and logical `skill_id` (e.g., Publisher + * `google` authorizes the `google-*` prefix). + * @return value or {@code null} for none + */ + public java.lang.String getPublisher() { + return publisher; + } + + /** + * Optional. The publisher resource associated with this skill. Format: + * `projects/{project}/locations/{location}/publishers/{publisher}` The publisher dictates the + * allowed namespace prefixes for the skill's name and logical `skill_id` (e.g., Publisher + * `google` authorizes the `google-*` prefix). + * @param publisher publisher or {@code null} for none + */ + public Skill setPublisher(java.lang.String publisher) { + this.publisher = publisher; + return this; + } + + /** + * Optional. Optional. Scanning configuration for the skill. + * @return value or {@code null} for none + */ + public ScanningConfig getScanningConfig() { + return scanningConfig; + } + + /** + * Optional. Optional. Scanning configuration for the skill. + * @param scanningConfig scanningConfig or {@code null} for none + */ + public Skill setScanningConfig(ScanningConfig scanningConfig) { + this.scanningConfig = scanningConfig; + return this; + } + + /** + * Output only. A stable, globally unique logical identifier for the skill. It is securely + * constructed by the backend by combining the associated `publisher`'s verified namespace and the + * skill's resource ID to enforce strict ownership. For example, the prefix `google-` is reserved + * exclusively for first-party Google publishers to prevent namespace squatting. Example: + * `urn:skill:google-workspace:create-docs` + * @return value or {@code null} for none + */ + public java.lang.String getSkillId() { + return skillId; + } + + /** + * Output only. A stable, globally unique logical identifier for the skill. It is securely + * constructed by the backend by combining the associated `publisher`'s verified namespace and the + * skill's resource ID to enforce strict ownership. For example, the prefix `google-` is reserved + * exclusively for first-party Google publishers to prevent namespace squatting. Example: + * `urn:skill:google-workspace:create-docs` + * @param skillId skillId or {@code null} for none + */ + public Skill setSkillId(java.lang.String skillId) { + this.skillId = skillId; + return this; + } + + /** + * Output only. The system-managed state of the skill. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The system-managed state of the skill. + * @param state state or {@code null} for none + */ + public Skill setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Required. User-managed target state of the skill. + * @return value or {@code null} for none + */ + public java.lang.String getTargetState() { + return targetState; + } + + /** + * Required. User-managed target state of the skill. + * @param targetState targetState or {@code null} for none + */ + public Skill setTargetState(java.lang.String targetState) { + this.targetState = targetState; + return this; + } + + /** + * Required. Structural deployment type (SIMPLE leaf vs COMPOSITE bundle). + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Required. Structural deployment type (SIMPLE leaf vs COMPOSITE bundle). + * @param type type or {@code null} for none + */ + public Skill setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * Output only. Universally unique identifier (UUID4) for the logical container. + * @return value or {@code null} for none + */ + public java.lang.String getUid() { + return uid; + } + + /** + * Output only. Universally unique identifier (UUID4) for the logical container. + * @param uid uid or {@code null} for none + */ + public Skill setUid(java.lang.String uid) { + this.uid = uid; + return this; + } + + /** + * Output only. Update time. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Update time. + * @param updateTime updateTime or {@code null} for none + */ + public Skill setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public Skill set(String fieldName, Object value) { + return (Skill) super.set(fieldName, value); + } + + @Override + public Skill clone() { + return (Skill) super.clone(); + } + +} diff --git a/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/SkillRevision.java b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/SkillRevision.java new file mode 100644 index 00000000000..db1ab135d20 --- /dev/null +++ b/clients/google-api-services-agentregistry/v1/2.0.0/com/google/api/services/agentregistry/v1/model/SkillRevision.java @@ -0,0 +1,285 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentregistry.v1.model; + +/** + * Represents an immutable, versioned snapshot of a Skill package. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Registry API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SkillRevision extends com.google.api.client.json.GenericJson { + + /** + * Optional. Immutable. Direct write-only raw archive upload source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ArchiveUploadSource archiveUploadSource; + + /** + * Output only. Revision creation timestamp. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. Extracted YAML frontmatter configuration snapshot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Frontmatter frontmatter; + + /** + * Optional. Immutable. Cloud Storage object generation URI. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GcsSource gcsSource; + + /** + * Identifier. Resource name of the SkillRevision. Format: + * `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Scan result of the skill revision. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ScanResult scanResult; + + /** + * Output only. Cryptographic SHA-256 integrity and deduplication digest of the payload zip. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sha256Hash; + + /** + * Output only. Size of the compiled zip payload in bytes (assists client download progress). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long sizeBytes; + + /** + * Output only. The system-managed lifecycle state of this revision. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. Universally unique identifier (UUID4) for the skill revision. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uid; + + /** + * Optional. Immutable. Direct write-only raw archive upload source. + * @return value or {@code null} for none + */ + public ArchiveUploadSource getArchiveUploadSource() { + return archiveUploadSource; + } + + /** + * Optional. Immutable. Direct write-only raw archive upload source. + * @param archiveUploadSource archiveUploadSource or {@code null} for none + */ + public SkillRevision setArchiveUploadSource(ArchiveUploadSource archiveUploadSource) { + this.archiveUploadSource = archiveUploadSource; + return this; + } + + /** + * Output only. Revision creation timestamp. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Revision creation timestamp. + * @param createTime createTime or {@code null} for none + */ + public SkillRevision setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. Extracted YAML frontmatter configuration snapshot. + * @return value or {@code null} for none + */ + public Frontmatter getFrontmatter() { + return frontmatter; + } + + /** + * Output only. Extracted YAML frontmatter configuration snapshot. + * @param frontmatter frontmatter or {@code null} for none + */ + public SkillRevision setFrontmatter(Frontmatter frontmatter) { + this.frontmatter = frontmatter; + return this; + } + + /** + * Optional. Immutable. Cloud Storage object generation URI. + * @return value or {@code null} for none + */ + public GcsSource getGcsSource() { + return gcsSource; + } + + /** + * Optional. Immutable. Cloud Storage object generation URI. + * @param gcsSource gcsSource or {@code null} for none + */ + public SkillRevision setGcsSource(GcsSource gcsSource) { + this.gcsSource = gcsSource; + return this; + } + + /** + * Identifier. Resource name of the SkillRevision. Format: + * `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Resource name of the SkillRevision. Format: + * `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}` + * @param name name or {@code null} for none + */ + public SkillRevision setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Scan result of the skill revision. + * @return value or {@code null} for none + */ + public ScanResult getScanResult() { + return scanResult; + } + + /** + * Output only. Scan result of the skill revision. + * @param scanResult scanResult or {@code null} for none + */ + public SkillRevision setScanResult(ScanResult scanResult) { + this.scanResult = scanResult; + return this; + } + + /** + * Output only. Cryptographic SHA-256 integrity and deduplication digest of the payload zip. + * @return value or {@code null} for none + */ + public java.lang.String getSha256Hash() { + return sha256Hash; + } + + /** + * Output only. Cryptographic SHA-256 integrity and deduplication digest of the payload zip. + * @param sha256Hash sha256Hash or {@code null} for none + */ + public SkillRevision setSha256Hash(java.lang.String sha256Hash) { + this.sha256Hash = sha256Hash; + return this; + } + + /** + * Output only. Size of the compiled zip payload in bytes (assists client download progress). + * @return value or {@code null} for none + */ + public java.lang.Long getSizeBytes() { + return sizeBytes; + } + + /** + * Output only. Size of the compiled zip payload in bytes (assists client download progress). + * @param sizeBytes sizeBytes or {@code null} for none + */ + public SkillRevision setSizeBytes(java.lang.Long sizeBytes) { + this.sizeBytes = sizeBytes; + return this; + } + + /** + * Output only. The system-managed lifecycle state of this revision. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The system-managed lifecycle state of this revision. + * @param state state or {@code null} for none + */ + public SkillRevision setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. Universally unique identifier (UUID4) for the skill revision. + * @return value or {@code null} for none + */ + public java.lang.String getUid() { + return uid; + } + + /** + * Output only. Universally unique identifier (UUID4) for the skill revision. + * @param uid uid or {@code null} for none + */ + public SkillRevision setUid(java.lang.String uid) { + this.uid = uid; + return this; + } + + @Override + public SkillRevision set(String fieldName, Object value) { + return (SkillRevision) super.set(fieldName, value); + } + + @Override + public SkillRevision clone() { + return (SkillRevision) super.clone(); + } + +} diff --git a/clients/google-api-services-agentregistry/v1/2.0.0/pom.xml b/clients/google-api-services-agentregistry/v1/2.0.0/pom.xml index 211fd1355e7..5968f21934d 100644 --- a/clients/google-api-services-agentregistry/v1/2.0.0/pom.xml +++ b/clients/google-api-services-agentregistry/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-agentregistry - v1-rev20261014-2.0.0 - Agent Registry API v1-rev20261014-2.0.0 + v1-rev20261021-2.0.0 + Agent Registry API v1-rev20261021-2.0.0 jar 2011 diff --git a/clients/google-api-services-agentregistry/v1/README.md b/clients/google-api-services-agentregistry/v1/README.md index aaa424c2ccd..9f49bc038b1 100644 --- a/clients/google-api-services-agentregistry/v1/README.md +++ b/clients/google-api-services-agentregistry/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-agentregistry - v1-rev20261014-2.0.0 + v1-rev20261021-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-agentregistry:v1-rev20261014-2.0.0' + implementation 'com.google.apis:google-api-services-agentregistry:v1-rev20261021-2.0.0' } ```