diff --git a/clients/google-api-services-agentregistry/v1alpha/2.0.0/README.md b/clients/google-api-services-agentregistry/v1alpha/2.0.0/README.md index 8f3f46755f7..20b75dd4ef5 100644 --- a/clients/google-api-services-agentregistry/v1alpha/2.0.0/README.md +++ b/clients/google-api-services-agentregistry/v1alpha/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 - v1alpha-rev20260608-2.0.0 + v1alpha-rev20260722-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-agentregistry:v1alpha-rev20260608-2.0.0' + implementation 'com.google.apis:google-api-services-agentregistry:v1alpha-rev20260722-2.0.0' } ``` diff --git a/clients/google-api-services-agentregistry/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/AgentRegistry.java b/clients/google-api-services-agentregistry/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/AgentRegistry.java index 30ee488cb45..3dc90eecfda 100644 --- a/clients/google-api-services-agentregistry/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/AgentRegistry.java +++ b/clients/google-api-services-agentregistry/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/AgentRegistry.java @@ -3851,798 +3851,776 @@ public List set(String parameterName, Object value) { } /** - * An accessor for creating requests from the Services collection. + * An accessor for creating requests from the Publishers collection. * *

The typical use is:

*
        *   {@code AgentRegistry agentregistry = new AgentRegistry(...);}
-       *   {@code AgentRegistry.Services.List request = agentregistry.services().list(parameters ...)}
+       *   {@code AgentRegistry.Publishers.List request = agentregistry.publishers().list(parameters ...)}
        * 
* * @return the resource collection */ - public Services services() { - return new Services(); + public Publishers publishers() { + return new Publishers(); } /** - * The "services" collection of methods. + * The "publishers" collection of methods. */ - public class Services { + public class Publishers { /** - * Creates a new Service in a given project and location. + * Fetches details of a specific Publisher. * - * Create a request for the method "services.create". + * 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 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.v1alpha.model.Service} + * @param name Required. Target publisher resource name. Format: + * `projects/{project}/locations/{location}/publishers/{publisher}` * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.agentregistry.v1alpha.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 = "v1alpha/{+parent}/services"; + private static final String REST_PATH = "v1alpha/{+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/[^/]+/publishers/[^/]+$"); /** - * Creates a new Service in a given project and location. + * Fetches details of a specific Publisher. * - * Create a request for the method "services.create". + * 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 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.v1alpha.model.Service} + * @param name Required. Target publisher resource name. Format: + * `projects/{project}/locations/{location}/publishers/{publisher}` * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.agentregistry.v1alpha.model.Service content) { - super(AgentRegistry.this, "POST", REST_PATH, content, com.google.api.services.agentregistry.v1alpha.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.v1alpha.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(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/[^/]+/publishers/[^/]+$"); } } @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); - } - - /** - * 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; - } - - /** - * 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; + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } - /** - * 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; + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - /** - * 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-/`. + * Required. Target publisher resource name. Format: + * `projects/{project}/locations/{location}/publishers/{publisher}` */ @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-/`. + /** Required. Target publisher resource name. Format: + `projects/{project}/locations/{location}/publishers/{publisher}` */ - 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-/`. + * Required. Target publisher resource name. Format: + * `projects/{project}/locations/{location}/publishers/{publisher}` */ - public Create setServiceId(java.lang.String serviceId) { - this.serviceId = serviceId; + 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/[^/]+/publishers/[^/]+$"); + } + 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 all Publishers in a location. * - * Create a request for the method "services.delete". + * 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 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 parent Required. Parent location to query. Format: `projects/{project}/locations/{location}` * @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 parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Delete extends AgentRegistryRequest { + public class List extends AgentRegistryRequest { - private static final String REST_PATH = "v1alpha/{+name}"; + private static final String REST_PATH = "v1alpha/{+parent}/publishers"; - 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/[^/]+$"); /** - * Deletes a single Service. + * Lists all Publishers in a location. * - * Create a request for the method "services.delete". + * 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 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 parent Required. Parent location to query. Format: `projects/{project}/locations/{location}` * @since 1.13 */ - protected Delete(java.lang.String name) { - super(AgentRegistry.this, "DELETE", REST_PATH, null, com.google.api.services.agentregistry.v1alpha.model.Operation.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.v1alpha.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(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 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); + } + + @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 name of the Service. Format: - * `projects/{project}/locations/{location}/services/{service}`. + * Required. Parent location to query. Format: `projects/{project}/locations/{location}` */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** Required. The name of the Service. Format: - `projects/{project}/locations/{location}/services/{service}`. + /** Required. Parent location to query. Format: `projects/{project}/locations/{location}` */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } /** - * Required. The name of the Service. Format: - * `projects/{project}/locations/{location}/services/{service}`. + * Required. Parent location to query. Format: `projects/{project}/locations/{location}` */ - public Delete setName(java.lang.String name) { + 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/[^/]+/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; } - /** - * 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). - */ + /** Optional. Page limit size. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.Integer pageSize; - /** 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). + /** Optional. Page limit size. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Integer getPageSize() { + return pageSize; } - /** - * 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). + /** 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + 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 Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + 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 { + /** - * Gets details of a single Service. + * Creates a new Service in a given project and location. * - * Create a request for the method "services.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param name Required. The 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.v1alpha.model.Service} * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Create create(java.lang.String parent, com.google.api.services.agentregistry.v1alpha.model.Service content) throws java.io.IOException { + Create result = new Create(parent, content); initialize(result); return result; } - public class Get extends AgentRegistryRequest { + public class Create extends AgentRegistryRequest { - private static final String REST_PATH = "v1alpha/{+name}"; + private static final String REST_PATH = "v1alpha/{+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/[^/]+$"); /** - * Gets details of a single Service. + * Creates a new Service in a given project and location. * - * Create a request for the method "services.get". + * 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 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 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 name Required. The 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.v1alpha.model.Service} * @since 1.13 */ - protected Get(java.lang.String name) { - super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1alpha.model.Service.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.v1alpha.model.Service content) { + super(AgentRegistry.this, "POST", REST_PATH, content, com.google.api.services.agentregistry.v1alpha.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 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 Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } /** - * Required. The 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; - /** Required. The 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; } /** - * Required. The 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 Get 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; + } + + /** + * 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; + } + + /** + * 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 java.lang.String serviceId; + + /** Required. The ID to use for the service, which will become the final component of the service's + resource name. This value should be 4-63 characters, and valid characters are `/a-z-/`. + */ + public java.lang.String getServiceId() { + return serviceId; + } + + /** + * Required. The ID to use for the service, which will become the final component of the + * service's resource name. This value should be 4-63 characters, and valid characters are + * `/a-z-/`. + */ + public Create setServiceId(java.lang.String serviceId) { + this.serviceId = serviceId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Lists Services in a given project and location. + * Deletes a single Service. * - * Create a request for the method "services.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#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 name Required. The name of the Service. Format: + * `projects/{project}/locations/{location}/services/{service}`. * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + 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 = "v1alpha/{+parent}/services"; + private static final String REST_PATH = "v1alpha/{+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/[^/]+/services/[^/]+$"); /** - * Lists Services in a given project and location. + * Deletes a single Service. * - * Create a request for the method "services.list". + * 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 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 parent Required. The project and location to list services in. Expected format: - * `projects/{project}/locations/{location}`. + * @param name Required. The name of the Service. Format: + * `projects/{project}/locations/{location}/services/{service}`. * @since 1.13 */ - protected List(java.lang.String parent) { - super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1alpha.model.ListServicesResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Delete(java.lang.String name) { + super(AgentRegistry.this, "DELETE", REST_PATH, null, com.google.api.services.agentregistry.v1alpha.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/[^/]+/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 List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) 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); } /** - * Required. The project and location to list services in. Expected format: - * `projects/{project}/locations/{location}`. + * Required. The name of the Service. Format: + * `projects/{project}/locations/{location}/services/{service}`. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The project and location to list services in. Expected format: - `projects/{project}/locations/{location}`. + /** Required. The name of the Service. Format: + `projects/{project}/locations/{location}/services/{service}`. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } /** - * Required. The project and location to list services in. Expected format: - * `projects/{project}/locations/{location}`. + * Required. The name of the Service. Format: + * `projects/{project}/locations/{location}/services/{service}`. */ - public List setParent(java.lang.String parent) { + public Delete 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/[^/]+/services/[^/]+$"); } - this.parent = parent; + this.name = name; 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"` + * 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 - private java.lang.String filter; + private java.lang.String requestId; - /** 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"` + /** 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.String getFilter() { - return filter; + public java.lang.String getRequestId() { + return requestId; } /** - * 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"` + * 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 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; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; 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); } } /** - * Updates the parameters of a single Service. + * Gets details of a single Service. * - * Create a request for the method "services.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Identifier. The resource name of the Service. Format: + * @param name Required. The name of the Service. Format: * `projects/{project}/locations/{location}/services/{service}`. - * @param content the {@link com.google.api.services.agentregistry.v1alpha.model.Service} * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.agentregistry.v1alpha.model.Service content) throws java.io.IOException { - Patch result = new Patch(name, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class Patch extends AgentRegistryRequest { + public class Get extends AgentRegistryRequest { private static final String REST_PATH = "v1alpha/{+name}"; @@ -4650,23 +4628,21 @@ public class Patch extends AgentRegistryRequest {@link - * Patch#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 name Identifier. The resource name of the Service. Format: + * @param name Required. The name of the Service. Format: * `projects/{project}/locations/{location}/services/{service}`. - * @param content the {@link com.google.api.services.agentregistry.v1alpha.model.Service} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.agentregistry.v1alpha.model.Service content) { - super(AgentRegistry.this, "PATCH", REST_PATH, content, com.google.api.services.agentregistry.v1alpha.model.Operation.class); + protected Get(java.lang.String name) { + super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1alpha.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(NAME_PATTERN.matcher(name).matches(), @@ -4676,68 +4652,78 @@ protected Patch(java.lang.String name, com.google.api.services.agentregistry.v1a } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) 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); } /** - * Identifier. The resource name of the Service. Format: + * Required. The 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: + /** Required. The name of the Service. Format: `projects/{project}/locations/{location}/services/{service}`. */ public java.lang.String getName() { @@ -4745,10 +4731,10 @@ public java.lang.String getName() { } /** - * Identifier. The resource name of the Service. Format: + * Required. The name of the Service. Format: * `projects/{project}/locations/{location}/services/{service}`. */ - public Patch setName(java.lang.String 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 " + @@ -4758,86 +4744,2359 @@ public Patch setName(java.lang.String 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; + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } + } + /** + * Lists Services in a given project and location. + * + * 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 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}`. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } - /** - * 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; - } + public class List extends AgentRegistryRequest { - /** - * 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; + private static final String REST_PATH = "v1alpha/{+parent}/services"; - /** 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; - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * 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. + * Lists Services in a given project and location. + * + * 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 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}`. + * @since 1.13 */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; + protected List(java.lang.String parent) { + super(AgentRegistry.this, "GET", REST_PATH, null, com.google.api.services.agentregistry.v1alpha.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 Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + 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. The project and location to list services in. Expected 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}`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The project and location to list services in. Expected format: + * `projects/{project}/locations/{location}`. + */ + 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. 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 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.v1alpha.model.Service} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.agentregistry.v1alpha.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 = "v1alpha/{+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.v1alpha.model.Service} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.agentregistry.v1alpha.model.Service content) { + super(AgentRegistry.this, "PATCH", REST_PATH, content, com.google.api.services.agentregistry.v1alpha.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.v1alpha.model.Skill} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.agentregistry.v1alpha.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 = "v1alpha/{+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.v1alpha.model.Skill} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.agentregistry.v1alpha.model.Skill content) { + super(AgentRegistry.this, "POST", REST_PATH, content, com.google.api.services.agentregistry.v1alpha.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-63 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-63 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-63 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 = "v1alpha/{+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.v1alpha.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 = "v1alpha/{+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.v1alpha.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/[^/]+$"); + } + } + + @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); + } + } + /** + * 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 = "v1alpha/{+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.v1alpha.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.v1alpha.model.Skill} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.agentregistry.v1alpha.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 = "v1alpha/{+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.v1alpha.model.Skill} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.agentregistry.v1alpha.model.Skill content) { + super(AgentRegistry.this, "PATCH", REST_PATH, content, com.google.api.services.agentregistry.v1alpha.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 = "v1alpha/{+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.v1alpha.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); + } + } + + /** + * 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.v1alpha.model.SkillRevision} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.agentregistry.v1alpha.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 = "v1alpha/{+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.v1alpha.model.SkillRevision} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.agentregistry.v1alpha.model.SkillRevision content) { + super(AgentRegistry.this, "POST", REST_PATH, content, com.google.api.services.agentregistry.v1alpha.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 = "v1alpha/{+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.v1alpha.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 = "v1alpha/{+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.v1alpha.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 = "v1alpha/{+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.v1alpha.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/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/model/ArchiveUploadSource.java b/clients/google-api-services-agentregistry/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/model/ArchiveUploadSource.java new file mode 100644 index 00000000000..65a46a37383 --- /dev/null +++ b/clients/google-api-services-agentregistry/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/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.v1alpha.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/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/model/Frontmatter.java b/clients/google-api-services-agentregistry/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/model/Frontmatter.java new file mode 100644 index 00000000000..74e5054439f --- /dev/null +++ b/clients/google-api-services-agentregistry/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/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.v1alpha.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/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/model/GcsSource.java b/clients/google-api-services-agentregistry/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/model/GcsSource.java new file mode 100644 index 00000000000..9f53543fbda --- /dev/null +++ b/clients/google-api-services-agentregistry/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/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.v1alpha.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/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/model/ListPublishersResponse.java b/clients/google-api-services-agentregistry/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/model/ListPublishersResponse.java new file mode 100644 index 00000000000..2b917ec2c2c --- /dev/null +++ b/clients/google-api-services-agentregistry/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/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.v1alpha.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/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/model/ListSkillRevisionsResponse.java b/clients/google-api-services-agentregistry/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/model/ListSkillRevisionsResponse.java new file mode 100644 index 00000000000..3c76a8ac39c --- /dev/null +++ b/clients/google-api-services-agentregistry/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/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.v1alpha.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/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/model/ListSkillsResponse.java b/clients/google-api-services-agentregistry/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/model/ListSkillsResponse.java new file mode 100644 index 00000000000..e6315a25a03 --- /dev/null +++ b/clients/google-api-services-agentregistry/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/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.v1alpha.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/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/model/Publisher.java b/clients/google-api-services-agentregistry/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/model/Publisher.java new file mode 100644 index 00000000000..09dba214a48 --- /dev/null +++ b/clients/google-api-services-agentregistry/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/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.v1alpha.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/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/model/SearchSkillsResponse.java b/clients/google-api-services-agentregistry/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/model/SearchSkillsResponse.java new file mode 100644 index 00000000000..33542957287 --- /dev/null +++ b/clients/google-api-services-agentregistry/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/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.v1alpha.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/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/model/Skill.java b/clients/google-api-services-agentregistry/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/model/Skill.java new file mode 100644 index 00000000000..11eb7934038 --- /dev/null +++ b/clients/google-api-services-agentregistry/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/model/Skill.java @@ -0,0 +1,424 @@ +/* + * 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.v1alpha.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; + + /** + * 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; + } + + /** + * 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/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/model/SkillRevision.java b/clients/google-api-services-agentregistry/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/model/SkillRevision.java new file mode 100644 index 00000000000..d751909bf4f --- /dev/null +++ b/clients/google-api-services-agentregistry/v1alpha/2.0.0/com/google/api/services/agentregistry/v1alpha/model/SkillRevision.java @@ -0,0 +1,261 @@ +/* + * 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.v1alpha.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. 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. 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/v1alpha/2.0.0/pom.xml b/clients/google-api-services-agentregistry/v1alpha/2.0.0/pom.xml index 387d2ee4f2a..55c7d2ec070 100644 --- a/clients/google-api-services-agentregistry/v1alpha/2.0.0/pom.xml +++ b/clients/google-api-services-agentregistry/v1alpha/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-agentregistry - v1alpha-rev20260608-2.0.0 - Agent Registry API v1alpha-rev20260608-2.0.0 + v1alpha-rev20260722-2.0.0 + Agent Registry API v1alpha-rev20260722-2.0.0 jar 2011 diff --git a/clients/google-api-services-agentregistry/v1alpha/README.md b/clients/google-api-services-agentregistry/v1alpha/README.md index 8f3f46755f7..20b75dd4ef5 100644 --- a/clients/google-api-services-agentregistry/v1alpha/README.md +++ b/clients/google-api-services-agentregistry/v1alpha/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-agentregistry - v1alpha-rev20260608-2.0.0 + v1alpha-rev20260722-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-agentregistry:v1alpha-rev20260608-2.0.0' + implementation 'com.google.apis:google-api-services-agentregistry:v1alpha-rev20260722-2.0.0' } ```