diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/README.md b/clients/google-api-services-aiplatform/v1/2.0.0/README.md index d083af4a5cf..9348272be8e 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/README.md +++ b/clients/google-api-services-aiplatform/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-aiplatform - v1-rev20261028-2.9.2 + v1-rev20261106-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20261028-2.9.2' + implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20261106-2.9.2' } ``` diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/Aiplatform.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/Aiplatform.java index c4f9b498a74..9320db17f88 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/Aiplatform.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/Aiplatform.java @@ -37469,29 +37469,6 @@ public Create setParent(java.lang.String parent) { return this; } - /** - * Optional. Optional. One-time cryptographic nonce issued by the trusted IdP provisioning - * iframe for session and device non-repudiation. - */ - @com.google.api.client.util.Key - private java.lang.String idpNonce; - - /** Optional. Optional. One-time cryptographic nonce issued by the trusted IdP provisioning iframe for - session and device non-repudiation. - */ - public java.lang.String getIdpNonce() { - return idpNonce; - } - - /** - * Optional. Optional. One-time cryptographic nonce issued by the trusted IdP provisioning - * iframe for session and device non-repudiation. - */ - public Create setIdpNonce(java.lang.String idpNonce) { - this.idpNonce = idpNonce; - return this; - } - @Override public Create set(String parameterName, Object value) { return (Create) super.set(parameterName, value); @@ -112342,6 +112319,146 @@ public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } + /** + * Sets the default NotebookRuntimeTemplate for a Location. + * + * Create a request for the method "notebookRuntimeTemplates.setDefault". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link SetDefault#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the Location to set the default NotebookRuntimeTemplate. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1SetDefaultNotebookRuntimeTemplateRequest} + * @return the request + */ + public SetDefault setDefault(java.lang.String parent, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1SetDefaultNotebookRuntimeTemplateRequest content) throws java.io.IOException { + SetDefault result = new SetDefault(parent, content); + initialize(result); + return result; + } + + public class SetDefault extends AiplatformRequest { + + private static final String REST_PATH = "v1/{+parent}/notebookRuntimeTemplates:setDefault"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Sets the default NotebookRuntimeTemplate for a Location. + * + * Create a request for the method "notebookRuntimeTemplates.setDefault". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link SetDefault#execute()} method to invoke the remote + * operation.

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

+ * + * @param parent Required. The resource name of the Location to set the default NotebookRuntimeTemplate. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1SetDefaultNotebookRuntimeTemplateRequest} + * @since 1.13 + */ + protected SetDefault(java.lang.String parent, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1SetDefaultNotebookRuntimeTemplateRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1SetDefaultNotebookRuntimeTemplateResponse.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 SetDefault set$Xgafv(java.lang.String $Xgafv) { + return (SetDefault) super.set$Xgafv($Xgafv); + } + + @Override + public SetDefault setAccessToken(java.lang.String accessToken) { + return (SetDefault) super.setAccessToken(accessToken); + } + + @Override + public SetDefault setAlt(java.lang.String alt) { + return (SetDefault) super.setAlt(alt); + } + + @Override + public SetDefault setCallback(java.lang.String callback) { + return (SetDefault) super.setCallback(callback); + } + + @Override + public SetDefault setFields(java.lang.String fields) { + return (SetDefault) super.setFields(fields); + } + + @Override + public SetDefault setKey(java.lang.String key) { + return (SetDefault) super.setKey(key); + } + + @Override + public SetDefault setOauthToken(java.lang.String oauthToken) { + return (SetDefault) super.setOauthToken(oauthToken); + } + + @Override + public SetDefault setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetDefault) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetDefault setQuotaUser(java.lang.String quotaUser) { + return (SetDefault) super.setQuotaUser(quotaUser); + } + + @Override + public SetDefault setUploadType(java.lang.String uploadType) { + return (SetDefault) super.setUploadType(uploadType); + } + + @Override + public SetDefault setUploadProtocol(java.lang.String uploadProtocol) { + return (SetDefault) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the Location to set the default NotebookRuntimeTemplate. + * Format: `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the Location to set the default NotebookRuntimeTemplate. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the Location to set the default NotebookRuntimeTemplate. + * Format: `projects/{project}/locations/{location}` + */ + public SetDefault 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; + } + + @Override + public SetDefault set(String parameterName, Object value) { + return (SetDefault) super.set(parameterName, value); + } + } /** * Sets the access control policy on the specified resource. Replaces any existing policy. Can * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. @@ -122799,32 +122916,6 @@ public List setPublishersId(java.lang.String publishersId) { return this; } - /** - * Optional. Batch fetch: return only these files, up to 100 IDs after de-duplication. - * Mutually exclusive with both `page` and `limit`. Serialised as a repeated `ids` query - * parameter, one occurrence per ID. - */ - @com.google.api.client.util.Key - private java.util.List ids; - - /** Optional. Batch fetch: return only these files, up to 100 IDs after de-duplication. Mutually - exclusive with both `page` and `limit`. Serialised as a repeated `ids` query parameter, one - occurrence per ID. - */ - public java.util.List getIds() { - return ids; - } - - /** - * Optional. Batch fetch: return only these files, up to 100 IDs after de-duplication. - * Mutually exclusive with both `page` and `limit`. Serialised as a repeated `ids` query - * parameter, one occurrence per ID. - */ - public List setIds(java.util.List ids) { - this.ids = ids; - return this; - } - /** * Optional. The number of files to return per page. Defaults to 20 if unset, maximum * 1000. Mutually exclusive with `ids`. diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Function.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Function.java index 0099121903e..8b094ecd39e 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Function.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Function.java @@ -44,7 +44,9 @@ public final class GenaiVertexV1Function extends com.google.api.client.json.Gene private java.lang.String name; /** - * The JSON Schema for the function's parameters. + * The JSON Schema for the function's parameters. Supports a subset of JSON Schema. `minLength`, + * `maxLength`, `minProperties`, `maxProperties`, `uniqueItems`, `contains`, `minContains`, and + * `maxContains` are ignored and not enforced. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -85,7 +87,9 @@ public GenaiVertexV1Function setName(java.lang.String name) { } /** - * The JSON Schema for the function's parameters. + * The JSON Schema for the function's parameters. Supports a subset of JSON Schema. `minLength`, + * `maxLength`, `minProperties`, `maxProperties`, `uniqueItems`, `contains`, `minContains`, and + * `maxContains` are ignored and not enforced. * @return value or {@code null} for none */ public GenaiVertexV1Value getParameters() { @@ -93,7 +97,9 @@ public GenaiVertexV1Value getParameters() { } /** - * The JSON Schema for the function's parameters. + * The JSON Schema for the function's parameters. Supports a subset of JSON Schema. `minLength`, + * `maxLength`, `minProperties`, `maxProperties`, `uniqueItems`, `contains`, `minContains`, and + * `maxContains` are ignored and not enforced. * @param parameters parameters or {@code null} for none */ public GenaiVertexV1Function setParameters(GenaiVertexV1Value parameters) { diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1InteractionUsage.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1InteractionUsage.java index ae1b2d128af..426f799344e 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1InteractionUsage.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1InteractionUsage.java @@ -43,6 +43,13 @@ public final class GenaiVertexV1InteractionUsage extends com.google.api.client.j @com.google.api.client.util.Key private java.util.List groundingToolCount; + /** + * Number of input tokens used in the first turn of this interaction. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer initialInputTokens; + /** * A breakdown of input token usage by modality. * The value may be {@code null}. @@ -140,6 +147,23 @@ public GenaiVertexV1InteractionUsage setGroundingToolCount(java.util.ListA2 transition). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1AgentIdentity agentIdentity; + /** * Output only. The resource name of the AI Application provisioned for this agent. Format: * `projects/{project}/locations/{location}/aiApplications/{ai_application}`. @@ -37,6 +46,15 @@ public final class GoogleCloudAiplatformV1Agent extends com.google.api.client.js @com.google.api.client.util.Key private java.lang.String aiApplication; + /** + * Optional. The identities this agent is allowed to contact outbound (for example over Gmail or + * Chat). Stored on the agent and always returned by `GetAgent`; see the field comments on + * `AllowedTeammates`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1AllowedTeammates allowedTeammates; + /** * Required. Immutable. The base agent for the agent. Supported values: * `antigravity- * preview-05-2026` Immutable: `UpdateAgent` rejects a change, including clearing it. The kind of @@ -77,6 +95,15 @@ public final class GoogleCloudAiplatformV1Agent extends com.google.api.client.js @com.google.api.client.util.Key private java.lang.String effectiveIdentity; + /** + * Optional. Immutable. Customer-managed encryption key spec for an Agent. If set, this agent's + * user data will be secured by this key; if not set, it is secured by a Google-managed key. + * Cannot be changed after the agent is created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1EncryptionSpec encryptionSpec; + /** * Immutable. The user-specified ID for the agent. This ID becomes the final component of the * agent resource name. If not provided, Vertex AI will generate a value for this ID. The ID can @@ -86,6 +113,13 @@ public final class GoogleCloudAiplatformV1Agent extends com.google.api.client.js @com.google.api.client.util.Key private java.lang.String id; + /** + * Optional. Memory settings for the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1AgentMemoryConfig memoryConfig; + /** * Optional. The metadata for the agent. * The value may be {@code null}. @@ -123,6 +157,38 @@ public final class GoogleCloudAiplatformV1Agent extends com.google.api.client.js @com.google.api.client.util.Key private GoogleCloudAiplatformV1ObservabilityConfig observabilityConfig; + /** + * Optional. The human owner (principal) the agent acts on behalf of (A1 Personal). Mutable by + * design: ownership is meant to be reassignable (e.g. by an admin). On create an A1 (Personal) + * agent may omit it and the control plane defaults it to the caller; an A2 (CoWorker) agent must + * set it explicitly. `owner.id` must be an *obfuscated* Gaia id. A raw Gaia id is rejected with + * INVALID_ARGUMENT naming the rule -- both forms are strings of decimal digits, so the surface + * would otherwise have two indistinguishable spellings of one identity. Not yet: `UpdateAgent` + * currently rejects a change to this field. The control plane authorizes every agent method + * against the owner Gaia id it persists internally at create time, and the update path does not + * maintain that copy — so a field write here would move the reported owner without moving the one + * access control uses. The guard comes out once reassignment moves both, along with the Workspace + * identity provisioned under the owner. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1Principal owner; + + /** + * Optional. The persona (presentation) of the agent. Mutable: presentation only, not an + * archetype-derivation signal. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1Persona persona; + + /** + * Output only. The current operational state of the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1AgentStatus status; + /** * Optional. The instructions for the agent to follow. These instructions are passed to the LLM as * a system instruction. @@ -145,6 +211,27 @@ public final class GoogleCloudAiplatformV1Agent extends com.google.api.client.js @com.google.api.client.util.Key private String updated; + /** + * Optional. Immutable. The identity configuration of the agent. Immutable: the agent's own + * identity determines the A2 (CoWorker) archetype and the minted SPIFFE, so it cannot change + * after creation (no A1<->A2 transition). + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1AgentIdentity getAgentIdentity() { + return agentIdentity; + } + + /** + * Optional. Immutable. The identity configuration of the agent. Immutable: the agent's own + * identity determines the A2 (CoWorker) archetype and the minted SPIFFE, so it cannot change + * after creation (no A1<->A2 transition). + * @param agentIdentity agentIdentity or {@code null} for none + */ + public GoogleCloudAiplatformV1Agent setAgentIdentity(GoogleCloudAiplatformV1AgentIdentity agentIdentity) { + this.agentIdentity = agentIdentity; + return this; + } + /** * Output only. The resource name of the AI Application provisioned for this agent. Format: * `projects/{project}/locations/{location}/aiApplications/{ai_application}`. @@ -164,6 +251,27 @@ public GoogleCloudAiplatformV1Agent setAiApplication(java.lang.String aiApplicat return this; } + /** + * Optional. The identities this agent is allowed to contact outbound (for example over Gmail or + * Chat). Stored on the agent and always returned by `GetAgent`; see the field comments on + * `AllowedTeammates`. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1AllowedTeammates getAllowedTeammates() { + return allowedTeammates; + } + + /** + * Optional. The identities this agent is allowed to contact outbound (for example over Gmail or + * Chat). Stored on the agent and always returned by `GetAgent`; see the field comments on + * `AllowedTeammates`. + * @param allowedTeammates allowedTeammates or {@code null} for none + */ + public GoogleCloudAiplatformV1Agent setAllowedTeammates(GoogleCloudAiplatformV1AllowedTeammates allowedTeammates) { + this.allowedTeammates = allowedTeammates; + return this; + } + /** * Required. Immutable. The base agent for the agent. Supported values: * `antigravity- * preview-05-2026` Immutable: `UpdateAgent` rejects a change, including clearing it. The kind of @@ -259,6 +367,27 @@ public GoogleCloudAiplatformV1Agent setEffectiveIdentity(java.lang.String effect return this; } + /** + * Optional. Immutable. Customer-managed encryption key spec for an Agent. If set, this agent's + * user data will be secured by this key; if not set, it is secured by a Google-managed key. + * Cannot be changed after the agent is created. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1EncryptionSpec getEncryptionSpec() { + return encryptionSpec; + } + + /** + * Optional. Immutable. Customer-managed encryption key spec for an Agent. If set, this agent's + * user data will be secured by this key; if not set, it is secured by a Google-managed key. + * Cannot be changed after the agent is created. + * @param encryptionSpec encryptionSpec or {@code null} for none + */ + public GoogleCloudAiplatformV1Agent setEncryptionSpec(GoogleCloudAiplatformV1EncryptionSpec encryptionSpec) { + this.encryptionSpec = encryptionSpec; + return this; + } + /** * Immutable. The user-specified ID for the agent. This ID becomes the final component of the * agent resource name. If not provided, Vertex AI will generate a value for this ID. The ID can @@ -280,6 +409,23 @@ public GoogleCloudAiplatformV1Agent setId(java.lang.String id) { return this; } + /** + * Optional. Memory settings for the agent. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1AgentMemoryConfig getMemoryConfig() { + return memoryConfig; + } + + /** + * Optional. Memory settings for the agent. + * @param memoryConfig memoryConfig or {@code null} for none + */ + public GoogleCloudAiplatformV1Agent setMemoryConfig(GoogleCloudAiplatformV1AgentMemoryConfig memoryConfig) { + this.memoryConfig = memoryConfig; + return this; + } + /** * Optional. The metadata for the agent. * @return value or {@code null} for none @@ -369,6 +515,79 @@ public GoogleCloudAiplatformV1Agent setObservabilityConfig(GoogleCloudAiplatform return this; } + /** + * Optional. The human owner (principal) the agent acts on behalf of (A1 Personal). Mutable by + * design: ownership is meant to be reassignable (e.g. by an admin). On create an A1 (Personal) + * agent may omit it and the control plane defaults it to the caller; an A2 (CoWorker) agent must + * set it explicitly. `owner.id` must be an *obfuscated* Gaia id. A raw Gaia id is rejected with + * INVALID_ARGUMENT naming the rule -- both forms are strings of decimal digits, so the surface + * would otherwise have two indistinguishable spellings of one identity. Not yet: `UpdateAgent` + * currently rejects a change to this field. The control plane authorizes every agent method + * against the owner Gaia id it persists internally at create time, and the update path does not + * maintain that copy — so a field write here would move the reported owner without moving the one + * access control uses. The guard comes out once reassignment moves both, along with the Workspace + * identity provisioned under the owner. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1Principal getOwner() { + return owner; + } + + /** + * Optional. The human owner (principal) the agent acts on behalf of (A1 Personal). Mutable by + * design: ownership is meant to be reassignable (e.g. by an admin). On create an A1 (Personal) + * agent may omit it and the control plane defaults it to the caller; an A2 (CoWorker) agent must + * set it explicitly. `owner.id` must be an *obfuscated* Gaia id. A raw Gaia id is rejected with + * INVALID_ARGUMENT naming the rule -- both forms are strings of decimal digits, so the surface + * would otherwise have two indistinguishable spellings of one identity. Not yet: `UpdateAgent` + * currently rejects a change to this field. The control plane authorizes every agent method + * against the owner Gaia id it persists internally at create time, and the update path does not + * maintain that copy — so a field write here would move the reported owner without moving the one + * access control uses. The guard comes out once reassignment moves both, along with the Workspace + * identity provisioned under the owner. + * @param owner owner or {@code null} for none + */ + public GoogleCloudAiplatformV1Agent setOwner(GoogleCloudAiplatformV1Principal owner) { + this.owner = owner; + return this; + } + + /** + * Optional. The persona (presentation) of the agent. Mutable: presentation only, not an + * archetype-derivation signal. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1Persona getPersona() { + return persona; + } + + /** + * Optional. The persona (presentation) of the agent. Mutable: presentation only, not an + * archetype-derivation signal. + * @param persona persona or {@code null} for none + */ + public GoogleCloudAiplatformV1Agent setPersona(GoogleCloudAiplatformV1Persona persona) { + this.persona = persona; + return this; + } + + /** + * Output only. The current operational state of the agent. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1AgentStatus getStatus() { + return status; + } + + /** + * Output only. The current operational state of the agent. + * @param status status or {@code null} for none + */ + public GoogleCloudAiplatformV1Agent setStatus(GoogleCloudAiplatformV1AgentStatus status) { + this.status = status; + return this; + } + /** * Optional. The instructions for the agent to follow. These instructions are passed to the LLM as * a system instruction. diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AgentIdentity.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AgentIdentity.java new file mode 100644 index 00000000000..97ab891d640 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AgentIdentity.java @@ -0,0 +1,135 @@ +/* + * 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.aiplatform.v1.model; + +/** + * Identity configuration for an agent. + * + *

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 Platform 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 GoogleCloudAiplatformV1AgentIdentity extends com.google.api.client.json.GenericJson { + + /** + * Optional. The email address representing the agent's principal identity. For Google Workspace + * agents, the email should be on a verified customer domain. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String email; + + /** + * Output only. The agent's own obfuscated Gaia id. Set only for an A2 (CoWorker) agent, which is + * the only kind that has a first-class Gaia account of its own. An A1 (Personal) agent has no + * `AgentIdentity` at all: it acts on behalf of its owner, so the identity it runs as is + * `Agent.owner`, and there is no separate Gaia account to name. Populated asynchronously once the + * agent identity is provisioned, so it may be absent from the `CreateAgent` LRO response and + * present on `GetAgent`/`ListAgents`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gaiaId; + + /** + * Optional. The tenant / customer context under which this agent runs. For Google Workspace , + * this is the obfuscated Customer ID (e.g. "C0123abcd"). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1Tenant tenant; + + /** + * Optional. The email address representing the agent's principal identity. For Google Workspace + * agents, the email should be on a verified customer domain. + * @return value or {@code null} for none + */ + public java.lang.String getEmail() { + return email; + } + + /** + * Optional. The email address representing the agent's principal identity. For Google Workspace + * agents, the email should be on a verified customer domain. + * @param email email or {@code null} for none + */ + public GoogleCloudAiplatformV1AgentIdentity setEmail(java.lang.String email) { + this.email = email; + return this; + } + + /** + * Output only. The agent's own obfuscated Gaia id. Set only for an A2 (CoWorker) agent, which is + * the only kind that has a first-class Gaia account of its own. An A1 (Personal) agent has no + * `AgentIdentity` at all: it acts on behalf of its owner, so the identity it runs as is + * `Agent.owner`, and there is no separate Gaia account to name. Populated asynchronously once the + * agent identity is provisioned, so it may be absent from the `CreateAgent` LRO response and + * present on `GetAgent`/`ListAgents`. + * @return value or {@code null} for none + */ + public java.lang.String getGaiaId() { + return gaiaId; + } + + /** + * Output only. The agent's own obfuscated Gaia id. Set only for an A2 (CoWorker) agent, which is + * the only kind that has a first-class Gaia account of its own. An A1 (Personal) agent has no + * `AgentIdentity` at all: it acts on behalf of its owner, so the identity it runs as is + * `Agent.owner`, and there is no separate Gaia account to name. Populated asynchronously once the + * agent identity is provisioned, so it may be absent from the `CreateAgent` LRO response and + * present on `GetAgent`/`ListAgents`. + * @param gaiaId gaiaId or {@code null} for none + */ + public GoogleCloudAiplatformV1AgentIdentity setGaiaId(java.lang.String gaiaId) { + this.gaiaId = gaiaId; + return this; + } + + /** + * Optional. The tenant / customer context under which this agent runs. For Google Workspace , + * this is the obfuscated Customer ID (e.g. "C0123abcd"). + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1Tenant getTenant() { + return tenant; + } + + /** + * Optional. The tenant / customer context under which this agent runs. For Google Workspace , + * this is the obfuscated Customer ID (e.g. "C0123abcd"). + * @param tenant tenant or {@code null} for none + */ + public GoogleCloudAiplatformV1AgentIdentity setTenant(GoogleCloudAiplatformV1Tenant tenant) { + this.tenant = tenant; + return this; + } + + @Override + public GoogleCloudAiplatformV1AgentIdentity set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1AgentIdentity) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1AgentIdentity clone() { + return (GoogleCloudAiplatformV1AgentIdentity) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AgentMemoryConfig.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AgentMemoryConfig.java new file mode 100644 index 00000000000..6aec0cee003 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AgentMemoryConfig.java @@ -0,0 +1,93 @@ +/* + * 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.aiplatform.v1.model; + +/** + * Agent-level memory settings. These apply across every task the agent runs and every user of the + * agent: this is an agent-wide control, not a per-user one. To turn memory off for a single end + * user of a shared agent, the calling surface sets `TaskSpec.scope.memory_config.disable_memory` on + * that user's tasks. + * + *

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 Platform 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 GoogleCloudAiplatformV1AgentMemoryConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. If true, memory is disabled for the agent as a whole: across every task it runs, the + * agent neither reads existing memories into the prompt nor forms new ones. Memory is on by + * default, and this is the setting that wins. A task may turn memory off for itself alone with + * `TaskSpec.scope.memory_config.disable_memory`, but cannot turn it back on while this is true; + * the two are OR'ed. This level wins because it is the mutable one. Turning it on has to cover + * the tasks that already exist, whose stored specs still say whatever they were created with, so + * the agent's current value is re-applied every time a session opens, including on a resume. + * Memories already stored are retained and stay readable by the agent's users; this governs only + * whether the agent can access and modify them. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disableMemory; + + /** + * Optional. If true, memory is disabled for the agent as a whole: across every task it runs, the + * agent neither reads existing memories into the prompt nor forms new ones. Memory is on by + * default, and this is the setting that wins. A task may turn memory off for itself alone with + * `TaskSpec.scope.memory_config.disable_memory`, but cannot turn it back on while this is true; + * the two are OR'ed. This level wins because it is the mutable one. Turning it on has to cover + * the tasks that already exist, whose stored specs still say whatever they were created with, so + * the agent's current value is re-applied every time a session opens, including on a resume. + * Memories already stored are retained and stay readable by the agent's users; this governs only + * whether the agent can access and modify them. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisableMemory() { + return disableMemory; + } + + /** + * Optional. If true, memory is disabled for the agent as a whole: across every task it runs, the + * agent neither reads existing memories into the prompt nor forms new ones. Memory is on by + * default, and this is the setting that wins. A task may turn memory off for itself alone with + * `TaskSpec.scope.memory_config.disable_memory`, but cannot turn it back on while this is true; + * the two are OR'ed. This level wins because it is the mutable one. Turning it on has to cover + * the tasks that already exist, whose stored specs still say whatever they were created with, so + * the agent's current value is re-applied every time a session opens, including on a resume. + * Memories already stored are retained and stay readable by the agent's users; this governs only + * whether the agent can access and modify them. + * @param disableMemory disableMemory or {@code null} for none + */ + public GoogleCloudAiplatformV1AgentMemoryConfig setDisableMemory(java.lang.Boolean disableMemory) { + this.disableMemory = disableMemory; + return this; + } + + @Override + public GoogleCloudAiplatformV1AgentMemoryConfig set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1AgentMemoryConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1AgentMemoryConfig clone() { + return (GoogleCloudAiplatformV1AgentMemoryConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AgentStatus.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AgentStatus.java new file mode 100644 index 00000000000..ac9b44fd16d --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AgentStatus.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.aiplatform.v1.model; + +/** + * Operational state of the agent. + * + *

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 Platform 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 GoogleCloudAiplatformV1AgentStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time at which the agent was soft-deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String deleteTime; + + /** + * Output only. The current state of the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. Context about the current active suspension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1AgentStatusSuspensionReason suspensionReason; + + /** + * Output only. The time at which the agent was soft-deleted. + * @return value or {@code null} for none + */ + public String getDeleteTime() { + return deleteTime; + } + + /** + * Output only. The time at which the agent was soft-deleted. + * @param deleteTime deleteTime or {@code null} for none + */ + public GoogleCloudAiplatformV1AgentStatus setDeleteTime(String deleteTime) { + this.deleteTime = deleteTime; + return this; + } + + /** + * Output only. The current state of the agent. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The current state of the agent. + * @param state state or {@code null} for none + */ + public GoogleCloudAiplatformV1AgentStatus setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. Context about the current active suspension. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1AgentStatusSuspensionReason getSuspensionReason() { + return suspensionReason; + } + + /** + * Output only. Context about the current active suspension. + * @param suspensionReason suspensionReason or {@code null} for none + */ + public GoogleCloudAiplatformV1AgentStatus setSuspensionReason(GoogleCloudAiplatformV1AgentStatusSuspensionReason suspensionReason) { + this.suspensionReason = suspensionReason; + return this; + } + + @Override + public GoogleCloudAiplatformV1AgentStatus set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1AgentStatus) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1AgentStatus clone() { + return (GoogleCloudAiplatformV1AgentStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AgentStatusSuspensionReason.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AgentStatusSuspensionReason.java new file mode 100644 index 00000000000..e5980ce9f49 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AgentStatusSuspensionReason.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.aiplatform.v1.model; + +/** + * Details about the active suspension. This message is only populated if the state is SUSPENDED. + * + *

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 Platform 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 GoogleCloudAiplatformV1AgentStatusSuspensionReason extends com.google.api.client.json.GenericJson { + + /** + * Output only. The reason for the current suspension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String reason; + + /** + * Output only. The time when the current suspension was applied. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String suspensionTime; + + /** + * Output only. The reason for the current suspension. + * @return value or {@code null} for none + */ + public java.lang.String getReason() { + return reason; + } + + /** + * Output only. The reason for the current suspension. + * @param reason reason or {@code null} for none + */ + public GoogleCloudAiplatformV1AgentStatusSuspensionReason setReason(java.lang.String reason) { + this.reason = reason; + return this; + } + + /** + * Output only. The time when the current suspension was applied. + * @return value or {@code null} for none + */ + public String getSuspensionTime() { + return suspensionTime; + } + + /** + * Output only. The time when the current suspension was applied. + * @param suspensionTime suspensionTime or {@code null} for none + */ + public GoogleCloudAiplatformV1AgentStatusSuspensionReason setSuspensionTime(String suspensionTime) { + this.suspensionTime = suspensionTime; + return this; + } + + @Override + public GoogleCloudAiplatformV1AgentStatusSuspensionReason set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1AgentStatusSuspensionReason) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1AgentStatusSuspensionReason clone() { + return (GoogleCloudAiplatformV1AgentStatusSuspensionReason) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AgentTool.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AgentTool.java index ab3cdcd3c81..00694f51153 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AgentTool.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AgentTool.java @@ -50,8 +50,9 @@ public final class GoogleCloudAiplatformV1AgentTool extends com.google.api.clien private java.lang.String name; /** - * Required. The type of the tool. Supported types: * `code_execution` * `endpoint` * `filesystem` - * * `google_search` * `mcp_server` * `url_context` + * Required. The type of the tool. Supported types: * `audio_generation` * `code_execution` * + * `endpoint` * `filesystem` * `google_search` * `image_generation` * `mcp_server` * + * `speech_generation` * `url_context` * `video_generation` * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,8 +111,9 @@ public GoogleCloudAiplatformV1AgentTool setName(java.lang.String name) { } /** - * Required. The type of the tool. Supported types: * `code_execution` * `endpoint` * `filesystem` - * * `google_search` * `mcp_server` * `url_context` + * Required. The type of the tool. Supported types: * `audio_generation` * `code_execution` * + * `endpoint` * `filesystem` * `google_search` * `image_generation` * `mcp_server` * + * `speech_generation` * `url_context` * `video_generation` * @return value or {@code null} for none */ public java.lang.String getType() { @@ -119,8 +121,9 @@ public java.lang.String getType() { } /** - * Required. The type of the tool. Supported types: * `code_execution` * `endpoint` * `filesystem` - * * `google_search` * `mcp_server` * `url_context` + * Required. The type of the tool. Supported types: * `audio_generation` * `code_execution` * + * `endpoint` * `filesystem` * `google_search` * `image_generation` * `mcp_server` * + * `speech_generation` * `url_context` * `video_generation` * @param type type or {@code null} for none */ public GoogleCloudAiplatformV1AgentTool setType(java.lang.String type) { diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AllowedTeammates.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AllowedTeammates.java new file mode 100644 index 00000000000..7a305f58887 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AllowedTeammates.java @@ -0,0 +1,83 @@ +/* + * 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.aiplatform.v1.model; + +/** + * The set of identities an agent is allowed to contact outbound -- who the agent may talk to, not + * who may talk to the agent (that is IAM's job). The membership is stored on the agent, so the + * Agents API is authoritative for what this field reports. + * + *

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 Platform 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 GoogleCloudAiplatformV1AllowedTeammates extends com.google.api.client.json.GenericJson { + + /** + * Optional. The teammates the agent is permitted to contact. At most 500. OUTPUT: always + * returned. An empty list means the agent has no teammates, not that the field went unread. + * INPUT: the complete desired set, not a delta -- teammates absent from it are removed. The + * backing roster is updated asynchronously and best-effort after the write returns, so it may + * briefly lag what `GetAgent` reports. What the agent is actually able to reach follows the + * roster, not this field, until the two converge. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List teammates; + + /** + * Optional. The teammates the agent is permitted to contact. At most 500. OUTPUT: always + * returned. An empty list means the agent has no teammates, not that the field went unread. + * INPUT: the complete desired set, not a delta -- teammates absent from it are removed. The + * backing roster is updated asynchronously and best-effort after the write returns, so it may + * briefly lag what `GetAgent` reports. What the agent is actually able to reach follows the + * roster, not this field, until the two converge. + * @return value or {@code null} for none + */ + public java.util.List getTeammates() { + return teammates; + } + + /** + * Optional. The teammates the agent is permitted to contact. At most 500. OUTPUT: always + * returned. An empty list means the agent has no teammates, not that the field went unread. + * INPUT: the complete desired set, not a delta -- teammates absent from it are removed. The + * backing roster is updated asynchronously and best-effort after the write returns, so it may + * briefly lag what `GetAgent` reports. What the agent is actually able to reach follows the + * roster, not this field, until the two converge. + * @param teammates teammates or {@code null} for none + */ + public GoogleCloudAiplatformV1AllowedTeammates setTeammates(java.util.List teammates) { + this.teammates = teammates; + return this; + } + + @Override + public GoogleCloudAiplatformV1AllowedTeammates set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1AllowedTeammates) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1AllowedTeammates clone() { + return (GoogleCloudAiplatformV1AllowedTeammates) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AudioTranscriptionConfig.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AudioTranscriptionConfig.java index 7c4723f2ab8..dace3134121 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AudioTranscriptionConfig.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AudioTranscriptionConfig.java @@ -87,6 +87,15 @@ public final class GoogleCloudAiplatformV1AudioTranscriptionConfig extends com.g @com.google.api.client.util.Key private java.lang.String mode; + /** + * Optional. The source text to be edited or rewritten via voice instructions. When provided in + * `SMART` mode, the model evaluates the audio input against this text and emits the complete + * replacement text in the candidate response rather than appending to it. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceText; + /** * Optional. Configures word-level timestamp generation. * The value may be {@code null}. @@ -231,6 +240,27 @@ public GoogleCloudAiplatformV1AudioTranscriptionConfig setMode(java.lang.String return this; } + /** + * Optional. The source text to be edited or rewritten via voice instructions. When provided in + * `SMART` mode, the model evaluates the audio input against this text and emits the complete + * replacement text in the candidate response rather than appending to it. + * @return value or {@code null} for none + */ + public java.lang.String getSourceText() { + return sourceText; + } + + /** + * Optional. The source text to be edited or rewritten via voice instructions. When provided in + * `SMART` mode, the model evaluates the audio input against this text and emits the complete + * replacement text in the candidate response rather than appending to it. + * @param sourceText sourceText or {@code null} for none + */ + public GoogleCloudAiplatformV1AudioTranscriptionConfig setSourceText(java.lang.String sourceText) { + this.sourceText = sourceText; + return this; + } + /** * Optional. Configures word-level timestamp generation. * @return value or {@code null} for none diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1DataAgentConfig.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1DataAgentConfig.java new file mode 100644 index 00000000000..f45ce4dfdda --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1DataAgentConfig.java @@ -0,0 +1,72 @@ +/* + * 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.aiplatform.v1.model; + +/** + * Config for scraping a Gemini Data Analytics data agent. + * + *

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 Platform 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 GoogleCloudAiplatformV1DataAgentConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. The resource name of the Gemini Data Analytics data agent. Format: + * `projects/{project}/locations/{location}/dataAgents/{data_agent}`. For example: + * `projects/123/locations/us-central1/dataAgents/my-agent`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dataAgent; + + /** + * Required. The resource name of the Gemini Data Analytics data agent. Format: + * `projects/{project}/locations/{location}/dataAgents/{data_agent}`. For example: + * `projects/123/locations/us-central1/dataAgents/my-agent`. + * @return value or {@code null} for none + */ + public java.lang.String getDataAgent() { + return dataAgent; + } + + /** + * Required. The resource name of the Gemini Data Analytics data agent. Format: + * `projects/{project}/locations/{location}/dataAgents/{data_agent}`. For example: + * `projects/123/locations/us-central1/dataAgents/my-agent`. + * @param dataAgent dataAgent or {@code null} for none + */ + public GoogleCloudAiplatformV1DataAgentConfig setDataAgent(java.lang.String dataAgent) { + this.dataAgent = dataAgent; + return this; + } + + @Override + public GoogleCloudAiplatformV1DataAgentConfig set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1DataAgentConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1DataAgentConfig clone() { + return (GoogleCloudAiplatformV1DataAgentConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluateInstancesRequest.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluateInstancesRequest.java index b45e05952e3..32ab8d1ddcd 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluateInstancesRequest.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluateInstancesRequest.java @@ -29,6 +29,17 @@ @SuppressWarnings("javadoc") public final class GoogleCloudAiplatformV1EvaluateInstancesRequest extends com.google.api.client.json.GenericJson { + /** + * Optional. Allows the evaluation run to use cross region models. When this flag is set, the + * service may route traffic to other regions if a model is unavailable in the current region + * (e.g., to a `global` endpoint). If a fully-qualified model endpoint resource name with a + * different region than the request location is provided elsewhere in the request, this flag must + * be set to true or the request will fail. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean allowCrossRegionModel; + /** * Optional. Autorater config used for evaluation. Not applicable for predefined metrics * (PredefinedMetricSpec); the server uses its own model configuration for predefined metrics and @@ -295,6 +306,31 @@ public final class GoogleCloudAiplatformV1EvaluateInstancesRequest extends com.g @com.google.api.client.util.Key private GoogleCloudAiplatformV1TrajectorySingleToolUseInput trajectorySingleToolUseInput; + /** + * Optional. Allows the evaluation run to use cross region models. When this flag is set, the + * service may route traffic to other regions if a model is unavailable in the current region + * (e.g., to a `global` endpoint). If a fully-qualified model endpoint resource name with a + * different region than the request location is provided elsewhere in the request, this flag must + * be set to true or the request will fail. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAllowCrossRegionModel() { + return allowCrossRegionModel; + } + + /** + * Optional. Allows the evaluation run to use cross region models. When this flag is set, the + * service may route traffic to other regions if a model is unavailable in the current region + * (e.g., to a `global` endpoint). If a fully-qualified model endpoint resource name with a + * different region than the request location is provided elsewhere in the request, this flag must + * be set to true or the request will fail. + * @param allowCrossRegionModel allowCrossRegionModel or {@code null} for none + */ + public GoogleCloudAiplatformV1EvaluateInstancesRequest setAllowCrossRegionModel(java.lang.Boolean allowCrossRegionModel) { + this.allowCrossRegionModel = allowCrossRegionModel; + return this; + } + /** * Optional. Autorater config used for evaluation. Not applicable for predefined metrics * (PredefinedMetricSpec); the server uses its own model configuration for predefined metrics and diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationRun.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationRun.java index 26873fc2cbb..3ed61be9336 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationRun.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationRun.java @@ -129,6 +129,19 @@ public final class GoogleCloudAiplatformV1EvaluationRun extends com.google.api.c @com.google.api.client.util.Key private java.lang.String name; + /** + * Optional. The service account to run the evaluation run as. If set, the run uses this service + * account to access Google Cloud resources. Access is limited to the IAM permissions that you + * grant to the service account. Must be provided if an inference config sets `harbor_run_config`, + * `data_agent_config`. If no inference config requires this field, setting it returns an error. + * The caller must have the `iam.serviceAccounts.actAs` permission on this service account, and + * the project's [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access- + * control#service-agents) must have the `roles/iam.serviceAccountTokenCreator` role on it. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serviceAccount; + /** * Output only. The state of the evaluation run. * The value may be {@code null}. @@ -373,6 +386,35 @@ public GoogleCloudAiplatformV1EvaluationRun setName(java.lang.String name) { return this; } + /** + * Optional. The service account to run the evaluation run as. If set, the run uses this service + * account to access Google Cloud resources. Access is limited to the IAM permissions that you + * grant to the service account. Must be provided if an inference config sets `harbor_run_config`, + * `data_agent_config`. If no inference config requires this field, setting it returns an error. + * The caller must have the `iam.serviceAccounts.actAs` permission on this service account, and + * the project's [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access- + * control#service-agents) must have the `roles/iam.serviceAccountTokenCreator` role on it. + * @return value or {@code null} for none + */ + public java.lang.String getServiceAccount() { + return serviceAccount; + } + + /** + * Optional. The service account to run the evaluation run as. If set, the run uses this service + * account to access Google Cloud resources. Access is limited to the IAM permissions that you + * grant to the service account. Must be provided if an inference config sets `harbor_run_config`, + * `data_agent_config`. If no inference config requires this field, setting it returns an error. + * The caller must have the `iam.serviceAccounts.actAs` permission on this service account, and + * the project's [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access- + * control#service-agents) must have the `roles/iam.serviceAccountTokenCreator` role on it. + * @param serviceAccount serviceAccount or {@code null} for none + */ + public GoogleCloudAiplatformV1EvaluationRun setServiceAccount(java.lang.String serviceAccount) { + this.serviceAccount = serviceAccount; + return this; + } + /** * Output only. The state of the evaluation run. * @return value or {@code null} for none diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationRunInferenceConfigAgentRunConfig.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationRunInferenceConfigAgentRunConfig.java index 8169b3233fc..16e3422b59a 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationRunInferenceConfigAgentRunConfig.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationRunInferenceConfigAgentRunConfig.java @@ -38,6 +38,14 @@ public final class GoogleCloudAiplatformV1EvaluationRunInferenceConfigAgentRunCo @com.google.api.client.util.Key private java.lang.String agentEngine; + /** + * Optional. Config for scraping a Gemini Data Analytics data agent. The scraping service runs the + * agent via the DataChatService Chat API and returns the resulting trajectory for evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1DataAgentConfig dataAgentConfig; + /** * Optional. Config for scraping a Gemini Agent via the Interactions API. The scraping service * creates interactions against the agent and returns the resulting interaction traces for @@ -83,6 +91,25 @@ public GoogleCloudAiplatformV1EvaluationRunInferenceConfigAgentRunConfig setAgen return this; } + /** + * Optional. Config for scraping a Gemini Data Analytics data agent. The scraping service runs the + * agent via the DataChatService Chat API and returns the resulting trajectory for evaluation. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1DataAgentConfig getDataAgentConfig() { + return dataAgentConfig; + } + + /** + * Optional. Config for scraping a Gemini Data Analytics data agent. The scraping service runs the + * agent via the DataChatService Chat API and returns the resulting trajectory for evaluation. + * @param dataAgentConfig dataAgentConfig or {@code null} for none + */ + public GoogleCloudAiplatformV1EvaluationRunInferenceConfigAgentRunConfig setDataAgentConfig(GoogleCloudAiplatformV1DataAgentConfig dataAgentConfig) { + this.dataAgentConfig = dataAgentConfig; + return this; + } + /** * Optional. Config for scraping a Gemini Agent via the Interactions API. The scraping service * creates interactions against the agent and returns the resulting interaction traces for diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ImportEvaluationSetRequest.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ImportEvaluationSetRequest.java index 62ee29b455c..d8767a62611 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ImportEvaluationSetRequest.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ImportEvaluationSetRequest.java @@ -59,8 +59,8 @@ public final class GoogleCloudAiplatformV1ImportEvaluationSetRequest extends com private GoogleCloudAiplatformV1EvaluationSet evaluationSet; /** - * Required. The Cloud Storage location where the resulting EvaluationItem payloads will be - * stored. + * Optional. The Cloud Storage location where the resulting EvaluationItem payloads will be + * stored. Required for every source except `harbor_dataset`, which must not set it. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -158,8 +158,8 @@ public GoogleCloudAiplatformV1ImportEvaluationSetRequest setEvaluationSet(Google } /** - * Required. The Cloud Storage location where the resulting EvaluationItem payloads will be - * stored. + * Optional. The Cloud Storage location where the resulting EvaluationItem payloads will be + * stored. Required for every source except `harbor_dataset`, which must not set it. * @return value or {@code null} for none */ public GoogleCloudAiplatformV1GcsDestination getGcsDestination() { @@ -167,8 +167,8 @@ public GoogleCloudAiplatformV1GcsDestination getGcsDestination() { } /** - * Required. The Cloud Storage location where the resulting EvaluationItem payloads will be - * stored. + * Optional. The Cloud Storage location where the resulting EvaluationItem payloads will be + * stored. Required for every source except `harbor_dataset`, which must not set it. * @param gcsDestination gcsDestination or {@code null} for none */ public GoogleCloudAiplatformV1ImportEvaluationSetRequest setGcsDestination(GoogleCloudAiplatformV1GcsDestination gcsDestination) { diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Persona.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Persona.java new file mode 100644 index 00000000000..da273a6a747 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Persona.java @@ -0,0 +1,138 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1.model; + +/** + * The persona (presentation) of an agent. + * + *

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 Platform 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 GoogleCloudAiplatformV1Persona extends com.google.api.client.json.GenericJson { + + /** + * Optional. The URL of the agent's avatar. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String avatarUrl; + + /** + * Required. The display name of the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Optional. The personality style or behavioral trait of the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String personality; + + /** + * Optional. The role of the agent (e.g., "Financial Analyst"). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String role; + + /** + * Optional. The URL of the agent's avatar. + * @return value or {@code null} for none + */ + public java.lang.String getAvatarUrl() { + return avatarUrl; + } + + /** + * Optional. The URL of the agent's avatar. + * @param avatarUrl avatarUrl or {@code null} for none + */ + public GoogleCloudAiplatformV1Persona setAvatarUrl(java.lang.String avatarUrl) { + this.avatarUrl = avatarUrl; + return this; + } + + /** + * Required. The display name of the agent. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. The display name of the agent. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudAiplatformV1Persona setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Optional. The personality style or behavioral trait of the agent. + * @return value or {@code null} for none + */ + public java.lang.String getPersonality() { + return personality; + } + + /** + * Optional. The personality style or behavioral trait of the agent. + * @param personality personality or {@code null} for none + */ + public GoogleCloudAiplatformV1Persona setPersonality(java.lang.String personality) { + this.personality = personality; + return this; + } + + /** + * Optional. The role of the agent (e.g., "Financial Analyst"). + * @return value or {@code null} for none + */ + public java.lang.String getRole() { + return role; + } + + /** + * Optional. The role of the agent (e.g., "Financial Analyst"). + * @param role role or {@code null} for none + */ + public GoogleCloudAiplatformV1Persona setRole(java.lang.String role) { + this.role = role; + return this; + } + + @Override + public GoogleCloudAiplatformV1Persona set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1Persona) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1Persona clone() { + return (GoogleCloudAiplatformV1Persona) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Principal.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Principal.java new file mode 100644 index 00000000000..996cf25963b --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Principal.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.aiplatform.v1.model; + +/** + * Represents an identity principal (user or service). + * + *

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 Platform 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 GoogleCloudAiplatformV1Principal extends com.google.api.client.json.GenericJson { + + /** + * Optional. The system unique identifier of the principal. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Optional. The type of the principal. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Optional. The system unique identifier of the principal. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Optional. The system unique identifier of the principal. + * @param id id or {@code null} for none + */ + public GoogleCloudAiplatformV1Principal setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Optional. The type of the principal. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Optional. The type of the principal. + * @param type type or {@code null} for none + */ + public GoogleCloudAiplatformV1Principal setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public GoogleCloudAiplatformV1Principal set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1Principal) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1Principal clone() { + return (GoogleCloudAiplatformV1Principal) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpec.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpec.java index a7dbdd85fa5..69bc72cdf33 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpec.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpec.java @@ -43,6 +43,13 @@ public final class GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpec exte @com.google.api.client.util.Key private GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecDeveloperConnectSource developerConnectSource; + /** + * Source code is in a public Git repository. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecGitSource gitSource; + /** * Optional. Configuration for building an image with custom config file. * The value may be {@code null}. @@ -98,6 +105,23 @@ public GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpec setDeveloperConn return this; } + /** + * Source code is in a public Git repository. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecGitSource getGitSource() { + return gitSource; + } + + /** + * Source code is in a public Git repository. + * @param gitSource gitSource or {@code null} for none + */ + public GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpec setGitSource(GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecGitSource gitSource) { + this.gitSource = gitSource; + return this; + } + /** * Optional. Configuration for building an image with custom config file. * @return value or {@code null} for none diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecGitSource.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecGitSource.java new file mode 100644 index 00000000000..9bdc0e77c8f --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecGitSource.java @@ -0,0 +1,117 @@ +/* + * 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.aiplatform.v1.model; + +/** + * Specifies source code to be fetched from a public Git repository. + * + *

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 Platform 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 GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecGitSource extends com.google.api.client.json.GenericJson { + + /** + * Optional. Directory, relative to the source root, in which to run the build. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dir; + + /** + * Required. The revision to fetch from the Git repository: a branch, a tag, or a full commit SHA. + * Abbreviated commit SHAs are not supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String revision; + + /** + * Required. The HTTPS URL of the public Git repository to clone. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * Optional. Directory, relative to the source root, in which to run the build. + * @return value or {@code null} for none + */ + public java.lang.String getDir() { + return dir; + } + + /** + * Optional. Directory, relative to the source root, in which to run the build. + * @param dir dir or {@code null} for none + */ + public GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecGitSource setDir(java.lang.String dir) { + this.dir = dir; + return this; + } + + /** + * Required. The revision to fetch from the Git repository: a branch, a tag, or a full commit SHA. + * Abbreviated commit SHAs are not supported. + * @return value or {@code null} for none + */ + public java.lang.String getRevision() { + return revision; + } + + /** + * Required. The revision to fetch from the Git repository: a branch, a tag, or a full commit SHA. + * Abbreviated commit SHAs are not supported. + * @param revision revision or {@code null} for none + */ + public GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecGitSource setRevision(java.lang.String revision) { + this.revision = revision; + return this; + } + + /** + * Required. The HTTPS URL of the public Git repository to clone. + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * Required. The HTTPS URL of the public Git repository to clone. + * @param url url or {@code null} for none + */ + public GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecGitSource setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecGitSource set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecGitSource) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecGitSource clone() { + return (GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecGitSource) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage.java index 71db357d0d6..68b2874b367 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage.java @@ -59,6 +59,13 @@ public final class GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage extends @com.google.api.client.util.Key private java.lang.String model; + /** + * Optional. Configuration for persisting output assets to external storage. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1SchemaPromptSpecPromptMessageOutputConfig outputConfig; + /** * Per request settings for blocking unsafe content. Enforced on * GenerateContentResponse.candidates. @@ -152,6 +159,23 @@ public GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage setModel(java.lang.S return this; } + /** + * Optional. Configuration for persisting output assets to external storage. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1SchemaPromptSpecPromptMessageOutputConfig getOutputConfig() { + return outputConfig; + } + + /** + * Optional. Configuration for persisting output assets to external storage. + * @param outputConfig outputConfig or {@code null} for none + */ + public GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage setOutputConfig(GoogleCloudAiplatformV1SchemaPromptSpecPromptMessageOutputConfig outputConfig) { + this.outputConfig = outputConfig; + return this; + } + /** * Per request settings for blocking unsafe content. Enforced on * GenerateContentResponse.candidates. diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SchemaPromptSpecPromptMessageOutputConfig.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SchemaPromptSpecPromptMessageOutputConfig.java new file mode 100644 index 00000000000..7316ed99610 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SchemaPromptSpecPromptMessageOutputConfig.java @@ -0,0 +1,69 @@ +/* + * 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.aiplatform.v1.model; + +/** + * Configuration for persisting output assets to external storage. + * + *

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 Platform 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 GoogleCloudAiplatformV1SchemaPromptSpecPromptMessageOutputConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The Cloud Storage URI prefix or directory where generated media assets should be + * written (e.g. `gs://my-bucket/prefix/`). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String outputUriPrefix; + + /** + * Optional. The Cloud Storage URI prefix or directory where generated media assets should be + * written (e.g. `gs://my-bucket/prefix/`). + * @return value or {@code null} for none + */ + public java.lang.String getOutputUriPrefix() { + return outputUriPrefix; + } + + /** + * Optional. The Cloud Storage URI prefix or directory where generated media assets should be + * written (e.g. `gs://my-bucket/prefix/`). + * @param outputUriPrefix outputUriPrefix or {@code null} for none + */ + public GoogleCloudAiplatformV1SchemaPromptSpecPromptMessageOutputConfig setOutputUriPrefix(java.lang.String outputUriPrefix) { + this.outputUriPrefix = outputUriPrefix; + return this; + } + + @Override + public GoogleCloudAiplatformV1SchemaPromptSpecPromptMessageOutputConfig set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1SchemaPromptSpecPromptMessageOutputConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1SchemaPromptSpecPromptMessageOutputConfig clone() { + return (GoogleCloudAiplatformV1SchemaPromptSpecPromptMessageOutputConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SetDefaultNotebookRuntimeTemplateRequest.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SetDefaultNotebookRuntimeTemplateRequest.java new file mode 100644 index 00000000000..1b6a35325be --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SetDefaultNotebookRuntimeTemplateRequest.java @@ -0,0 +1,69 @@ +/* + * 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.aiplatform.v1.model; + +/** + * Request message for NotebookService.SetDefaultNotebookRuntimeTemplate. + * + *

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 Platform 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 GoogleCloudAiplatformV1SetDefaultNotebookRuntimeTemplateRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The resource name of the NotebookRuntimeTemplate to set as default. Format: + * `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The resource name of the NotebookRuntimeTemplate to set as default. Format: + * `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the NotebookRuntimeTemplate to set as default. Format: + * `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}` + * @param name name or {@code null} for none + */ + public GoogleCloudAiplatformV1SetDefaultNotebookRuntimeTemplateRequest setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public GoogleCloudAiplatformV1SetDefaultNotebookRuntimeTemplateRequest set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1SetDefaultNotebookRuntimeTemplateRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1SetDefaultNotebookRuntimeTemplateRequest clone() { + return (GoogleCloudAiplatformV1SetDefaultNotebookRuntimeTemplateRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SetDefaultNotebookRuntimeTemplateResponse.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SetDefaultNotebookRuntimeTemplateResponse.java new file mode 100644 index 00000000000..374524591f8 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SetDefaultNotebookRuntimeTemplateResponse.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1.model; + +/** + * Response message for NotebookService.SetDefaultNotebookRuntimeTemplate. + * + *

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 Platform 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 GoogleCloudAiplatformV1SetDefaultNotebookRuntimeTemplateResponse extends com.google.api.client.json.GenericJson { + + /** + * The NotebookRuntimeTemplate that was set as default. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1NotebookRuntimeTemplate notebookRuntimeTemplate; + + /** + * The NotebookRuntimeTemplate that was set as default. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1NotebookRuntimeTemplate getNotebookRuntimeTemplate() { + return notebookRuntimeTemplate; + } + + /** + * The NotebookRuntimeTemplate that was set as default. + * @param notebookRuntimeTemplate notebookRuntimeTemplate or {@code null} for none + */ + public GoogleCloudAiplatformV1SetDefaultNotebookRuntimeTemplateResponse setNotebookRuntimeTemplate(GoogleCloudAiplatformV1NotebookRuntimeTemplate notebookRuntimeTemplate) { + this.notebookRuntimeTemplate = notebookRuntimeTemplate; + return this; + } + + @Override + public GoogleCloudAiplatformV1SetDefaultNotebookRuntimeTemplateResponse set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1SetDefaultNotebookRuntimeTemplateResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1SetDefaultNotebookRuntimeTemplateResponse clone() { + return (GoogleCloudAiplatformV1SetDefaultNotebookRuntimeTemplateResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Teammate.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Teammate.java new file mode 100644 index 00000000000..aeba053b7e3 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Teammate.java @@ -0,0 +1,124 @@ +/* + * 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.aiplatform.v1.model; + +/** + * One identity an agent is allowed to contact. A message rather than a bare string so a teammate + * can carry more than an address -- a display name, a group rather than a person, a scope limiting + * which surfaces the agent may reach them on -- without a breaking change to `AllowedTeammates`. + * Every field is optional, but a teammate identifying nobody is meaningless: at least one + * identifier must be set, and `UpdateAgent` rejects a teammate with none. + * + *

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 Platform 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 GoogleCloudAiplatformV1Teammate extends com.google.api.client.json.GenericJson { + + /** + * Optional. Email address of the teammate. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String email; + + /** + * Optional. Expansion mode for group or space teammates. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String expansionMode; + + /** + * Optional. Obfuscated Gaia id of the teammate. OBFUSCATED, never a raw Gaia id -- the same form + * as `Principal.id` and every other Gaia id this API surfaces, so the two are comparable. A + * string rather than an int64 for that reason: the obfuscated form is not a number. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gaiaId; + + /** + * Optional. Email address of the teammate. + * @return value or {@code null} for none + */ + public java.lang.String getEmail() { + return email; + } + + /** + * Optional. Email address of the teammate. + * @param email email or {@code null} for none + */ + public GoogleCloudAiplatformV1Teammate setEmail(java.lang.String email) { + this.email = email; + return this; + } + + /** + * Optional. Expansion mode for group or space teammates. + * @return value or {@code null} for none + */ + public java.lang.String getExpansionMode() { + return expansionMode; + } + + /** + * Optional. Expansion mode for group or space teammates. + * @param expansionMode expansionMode or {@code null} for none + */ + public GoogleCloudAiplatformV1Teammate setExpansionMode(java.lang.String expansionMode) { + this.expansionMode = expansionMode; + return this; + } + + /** + * Optional. Obfuscated Gaia id of the teammate. OBFUSCATED, never a raw Gaia id -- the same form + * as `Principal.id` and every other Gaia id this API surfaces, so the two are comparable. A + * string rather than an int64 for that reason: the obfuscated form is not a number. + * @return value or {@code null} for none + */ + public java.lang.String getGaiaId() { + return gaiaId; + } + + /** + * Optional. Obfuscated Gaia id of the teammate. OBFUSCATED, never a raw Gaia id -- the same form + * as `Principal.id` and every other Gaia id this API surfaces, so the two are comparable. A + * string rather than an int64 for that reason: the obfuscated form is not a number. + * @param gaiaId gaiaId or {@code null} for none + */ + public GoogleCloudAiplatformV1Teammate setGaiaId(java.lang.String gaiaId) { + this.gaiaId = gaiaId; + return this; + } + + @Override + public GoogleCloudAiplatformV1Teammate set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1Teammate) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1Teammate clone() { + return (GoogleCloudAiplatformV1Teammate) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Tenant.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Tenant.java new file mode 100644 index 00000000000..e19e92c888e --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Tenant.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.aiplatform.v1.model; + +/** + * Represents an enterprise tenant. + * + *

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 Platform 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 GoogleCloudAiplatformV1Tenant extends com.google.api.client.json.GenericJson { + + /** + * Optional. The unique raw ID of the tenant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Optional. The type of the tenant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Optional. The unique raw ID of the tenant. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Optional. The unique raw ID of the tenant. + * @param id id or {@code null} for none + */ + public GoogleCloudAiplatformV1Tenant setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Optional. The type of the tenant. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Optional. The type of the tenant. + * @param type type or {@code null} for none + */ + public GoogleCloudAiplatformV1Tenant setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public GoogleCloudAiplatformV1Tenant set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1Tenant) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1Tenant clone() { + return (GoogleCloudAiplatformV1Tenant) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/pom.xml b/clients/google-api-services-aiplatform/v1/2.0.0/pom.xml index 79d46c44518..f81bc374490 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/pom.xml +++ b/clients/google-api-services-aiplatform/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-aiplatform - v1-rev20261028-2.9.2 - Agent Platform API v1-rev20261028-2.9.2 + v1-rev20261106-2.9.2 + Agent Platform API v1-rev20261106-2.9.2 jar 2011 diff --git a/clients/google-api-services-aiplatform/v1/README.md b/clients/google-api-services-aiplatform/v1/README.md index d083af4a5cf..9348272be8e 100644 --- a/clients/google-api-services-aiplatform/v1/README.md +++ b/clients/google-api-services-aiplatform/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-aiplatform - v1-rev20261028-2.9.2 + v1-rev20261106-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20261028-2.9.2' + implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20261106-2.9.2' } ``` diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/README.md b/clients/google-api-services-aiplatform/v1beta1/2.0.0/README.md index 6ad82c4d944..be3f061e6fc 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/README.md +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-aiplatform - v1beta1-rev20261028-2.9.2 + v1beta1-rev20261106-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-aiplatform:v1beta1-rev20261028-2.9.2' + implementation 'com.google.apis:google-api-services-aiplatform:v1beta1-rev20261106-2.9.2' } ``` diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/Aiplatform.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/Aiplatform.java index 46caec124cd..936a979ecbc 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/Aiplatform.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/Aiplatform.java @@ -2352,24 +2352,24 @@ public List set(String parameterName, Object value) { } /** - * An accessor for creating requests from the CustomJobs collection. + * An accessor for creating requests from the CollaborativeProjects collection. * *

The typical use is:

*
    *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-   *   {@code Aiplatform.CustomJobs.List request = aiplatform.customJobs().list(parameters ...)}
+   *   {@code Aiplatform.CollaborativeProjects.List request = aiplatform.collaborativeProjects().list(parameters ...)}
    * 
* * @return the resource collection */ - public CustomJobs customJobs() { - return new CustomJobs(); + public CollaborativeProjects collaborativeProjects() { + return new CollaborativeProjects(); } /** - * The "customJobs" collection of methods. + * The "collaborativeProjects" collection of methods. */ - public class CustomJobs { + public class CollaborativeProjects { /** * An accessor for creating requests from the Operations collection. @@ -2419,7 +2419,7 @@ public class Cancel extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}/operations"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^customJobs/[^/]+$"); - - /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. - * - * Create a request for the method "operations.list". - * - * This request holds the parameters needed by the the aiplatform 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 name The name of the operation's parent resource. - * @since 1.13 - */ - protected List(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningListOperationsResponse.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 " + - "^customJobs/[^/]+$"); - } - } - - @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); - } - - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^customJobs/[^/]+$"); - } - this.name = name; - return this; - } - - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } - - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * When set to `true`, operations that are reachable are returned as normal, and those that - * are unreachable are returned in the ListOperationsResponse.unreachable field. This can - * only be `true` when reading across collections. For example, when `parent` is set to - * `"projects/example/locations/-"`. This field is not supported by default and will result - * in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or - * product specific documentation. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** When set to `true`, operations that are reachable are returned as normal, and those that are - unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` - when reading across collections. For example, when `parent` is set to - `"projects/example/locations/-"`. This field is not supported by default and will result in an - `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific - documentation. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * When set to `true`, operations that are reachable are returned as normal, and those that - * are unreachable are returned in the ListOperationsResponse.unreachable field. This can - * only be `true` when reading across collections. For example, when `parent` is set to - * `"projects/example/locations/-"`. This field is not supported by default and will result - * in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or - * product specific documentation. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } /** * Waits until the specified long-running operation is done or reaches at most a specified timeout, * returning the latest state. If the operation is already done, the latest state is immediately @@ -3056,7 +2833,7 @@ public class Wait extends AiplatformRequestThe typical use is:

*
    *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-   *   {@code Aiplatform.DataLabelingJobs.List request = aiplatform.dataLabelingJobs().list(parameters ...)}
+   *   {@code Aiplatform.CustomJobs.List request = aiplatform.customJobs().list(parameters ...)}
    * 
* * @return the resource collection */ - public DataLabelingJobs dataLabelingJobs() { - return new DataLabelingJobs(); + public CustomJobs customJobs() { + return new CustomJobs(); } /** - * The "dataLabelingJobs" collection of methods. + * The "customJobs" collection of methods. */ - public class DataLabelingJobs { + public class CustomJobs { /** * An accessor for creating requests from the Operations collection. @@ -3266,7 +3043,7 @@ public class Cancel extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^customJobs/[^/]+/operations/[^/]+$"); + + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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 " + + "^customJobs/[^/]+/operations/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be deleted. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^customJobs/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^customJobs/[^/]+/operations/[^/]+$"); + + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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 " + + "^customJobs/[^/]+/operations/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^customJobs/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}/operations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^customJobs/[^/]+$"); + + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the the aiplatform 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 name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningListOperationsResponse.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 " + + "^customJobs/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^customJobs/[^/]+$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those that + * are unreachable are returned in the ListOperationsResponse.unreachable field. This can + * only be `true` when reading across collections. For example, when `parent` is set to + * `"projects/example/locations/-"`. This field is not supported by default and will result + * in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or + * product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those that + * are unreachable are returned in the ListOperationsResponse.unreachable field. This can + * only be `true` when reading across collections. For example, when `parent` is set to + * `"projects/example/locations/-"`. This field is not supported by default and will result + * in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or + * product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Waits until the specified long-running operation is done or reaches at most a specified timeout, + * returning the latest state. If the operation is already done, the latest state is immediately + * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + * timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an immediate + * response is no guarantee that the operation is done. + * + * Create a request for the method "operations.wait". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to wait on. + * @return the request + */ + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; + } + + public class Wait extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:wait"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^customJobs/[^/]+/operations/[^/]+$"); + + /** + * Waits until the specified long-running operation is done or reaches at most a specified + * timeout, returning the latest state. If the operation is already done, the latest state is + * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, + * the HTTP/RPC timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an + * immediate response is no guarantee that the operation is done. + * + * Create a request for the method "operations.wait". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

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

+ * + * @param name The name of the operation resource to wait on. + * @since 1.13 + */ + protected Wait(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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 " + + "^customJobs/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } + + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } + + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } + + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } + + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } + + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } + + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } + + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } + + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } + + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } + + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to wait on. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to wait on. */ + public Wait 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 " + + "^customJobs/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at most + * the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also + * specified, the shorter one will be used. + */ + @com.google.api.client.util.Key + private String timeout; + + /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time + permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the + shorter one will be used. + */ + public String getTimeout() { + return timeout; + } + + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at most + * the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also + * specified, the shorter one will be used. + */ + public Wait setTimeout(String timeout) { + this.timeout = timeout; + return this; + } + + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } + } + + } + } + + /** + * An accessor for creating requests from the DataLabelingJobs collection. + * + *

The typical use is:

+ *
+   *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+   *   {@code Aiplatform.DataLabelingJobs.List request = aiplatform.dataLabelingJobs().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public DataLabelingJobs dataLabelingJobs() { + return new DataLabelingJobs(); + } + + /** + * The "dataLabelingJobs" collection of methods. + */ + public class DataLabelingJobs { + + /** + * An accessor for creating requests from the Operations collection. + * + *

The typical use is:

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

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

+ * + * @param name The name of the operation resource to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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 " + + "^dataLabelingJobs/[^/]+/operations/[^/]+$"); } } @@ -28141,6 +28765,853 @@ public GetStream set(String parameterName, Object value) { } + /** + * An accessor for creating requests from the LearningSets collection. + * + *

The typical use is:

+ *
+   *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+   *   {@code Aiplatform.LearningSets.List request = aiplatform.learningSets().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public LearningSets learningSets() { + return new LearningSets(); + } + + /** + * The "learningSets" collection of methods. + */ + public class LearningSets { + + /** + * An accessor for creating requests from the Operations collection. + * + *

The typical use is:

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

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

+ * + * @param name The name of the operation resource to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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 " + + "^learningSets/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be cancelled. */ + public Cancel setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^learningSets/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be deleted. + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^learningSets/[^/]+/operations/[^/]+$"); + + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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 " + + "^learningSets/[^/]+/operations/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be deleted. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^learningSets/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^learningSets/[^/]+/operations/[^/]+$"); + + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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 " + + "^learningSets/[^/]+/operations/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^learningSets/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}/operations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^learningSets/[^/]+$"); + + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the the aiplatform 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 name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningListOperationsResponse.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 " + + "^learningSets/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^learningSets/[^/]+$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those that + * are unreachable are returned in the ListOperationsResponse.unreachable field. This can + * only be `true` when reading across collections. For example, when `parent` is set to + * `"projects/example/locations/-"`. This field is not supported by default and will result + * in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or + * product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those that + * are unreachable are returned in the ListOperationsResponse.unreachable field. This can + * only be `true` when reading across collections. For example, when `parent` is set to + * `"projects/example/locations/-"`. This field is not supported by default and will result + * in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or + * product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Waits until the specified long-running operation is done or reaches at most a specified timeout, + * returning the latest state. If the operation is already done, the latest state is immediately + * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + * timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an immediate + * response is no guarantee that the operation is done. + * + * Create a request for the method "operations.wait". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to wait on. + * @return the request + */ + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; + } + + public class Wait extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:wait"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^learningSets/[^/]+/operations/[^/]+$"); + + /** + * Waits until the specified long-running operation is done or reaches at most a specified + * timeout, returning the latest state. If the operation is already done, the latest state is + * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, + * the HTTP/RPC timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an + * immediate response is no guarantee that the operation is done. + * + * Create a request for the method "operations.wait". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

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

+ * + * @param name The name of the operation resource to wait on. + * @since 1.13 + */ + protected Wait(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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 " + + "^learningSets/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } + + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } + + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } + + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } + + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } + + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } + + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } + + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } + + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } + + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } + + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to wait on. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to wait on. */ + public Wait 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 " + + "^learningSets/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at most + * the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also + * specified, the shorter one will be used. + */ + @com.google.api.client.util.Key + private String timeout; + + /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time + permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the + shorter one will be used. + */ + public String getTimeout() { + return timeout; + } + + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at most + * the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also + * specified, the shorter one will be used. + */ + public Wait setTimeout(String timeout) { + this.timeout = timeout; + return this; + } + + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } + } + + } + } + /** * An accessor for creating requests from the Media collection. * @@ -28162,196 +29633,248 @@ public Media media() { public class Media { /** - * Upload a file into a RagCorpus. + * Downloads a file. The response body is the file's bytes, with the file's own media type as the + * `Content-Type` and a `Content-Disposition` that names the file. Media is the default and only + * representation, so no `alt` parameter is needed. A preview sets `processing_config` and gets a + * rendition of the file in place of the file, such as a PDF of a .pptx: the response body is the + * rendition, with its own media type as the `Content-Type` and a `Content-Disposition` name that + * ends in its extension. Without `processing_config` the response is always the stored file. * - * Create a request for the method "media.upload". + * Create a request for the method "media.download". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Upload#execute()} method to invoke the remote operation. + * parameters, call the {@link Download#execute()} method to invoke the remote operation. * - * @param parent Required. The name of the RagCorpus resource into which to upload the file. Format: - * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadRagFileRequest} + * @param name Required. The task or collaborative project to download from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} * @return the request */ - public Upload upload(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadRagFileRequest content) throws java.io.IOException { - Upload result = new Upload(parent, content); + public Download download(java.lang.String name) throws java.io.IOException { + Download result = new Download(name); initialize(result); return result; } - /** - * Upload a file into a RagCorpus. - * - * Create a request for the method "media.upload". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. - * - *

- * This method should be used for uploading media content. - *

- * - * @param parent Required. The name of the RagCorpus resource into which to upload the file. Format: - * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadRagFileRequest} media metadata or {@code null} if none - * @param mediaContent The media HTTP content. - * @return the request - * @throws java.io.IOException if the initialization of the request fails - */ - public Upload upload(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadRagFileRequest content, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { - Upload result = new Upload(parent, content, mediaContent); - initialize(result); - return result; - } - - public class Upload extends AiplatformRequest { + public class Download extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/ragFiles:upload"; + private static final String REST_PATH = "v1beta1/{+name}:download"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+$"); /** - * Upload a file into a RagCorpus. + * Downloads a file. The response body is the file's bytes, with the file's own media type as the + * `Content-Type` and a `Content-Disposition` that names the file. Media is the default and only + * representation, so no `alt` parameter is needed. A preview sets `processing_config` and gets a + * rendition of the file in place of the file, such as a PDF of a .pptx: the response body is the + * rendition, with its own media type as the `Content-Type` and a `Content-Disposition` name that + * ends in its extension. Without `processing_config` the response is always the stored file. * - * Create a request for the method "media.upload". + * Create a request for the method "media.download". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Download#execute()} method to invoke the remote operation. *

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

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

* - * @param parent Required. The name of the RagCorpus resource into which to upload the file. Format: - * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadRagFileRequest} + * @param name Required. The task or collaborative project to download from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} * @since 1.13 */ - protected Upload(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadRagFileRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadRagFileResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Download(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GdataMedia.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/[^/]+/ragCorpora/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+$"); } + initializeMediaDownload(); } - /** - * Upload a file into a RagCorpus. - * - * Create a request for the method "media.upload". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. - *

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

- * - *

- * This constructor should be used for uploading media content. - *

- * - * @param parent Required. The name of the RagCorpus resource into which to upload the file. Format: - * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadRagFileRequest} media metadata or {@code null} if none - * @param mediaContent The media HTTP content. - * @since 1.13 - */ - protected Upload(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadRagFileRequest content, com.google.api.client.http.AbstractInputStreamContent mediaContent) { - super(Aiplatform.this, "POST", "/upload/" + getServicePath() + REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadRagFileResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified."); - initializeMediaUpload(mediaContent); + @Override + public void executeMediaAndDownloadTo(java.io.OutputStream outputStream) throws java.io.IOException { + super.executeMediaAndDownloadTo(outputStream); } @Override - public Upload set$Xgafv(java.lang.String $Xgafv) { - return (Upload) super.set$Xgafv($Xgafv); + public java.io.InputStream executeMediaAsInputStream() throws java.io.IOException { + return super.executeMediaAsInputStream(); } @Override - public Upload setAccessToken(java.lang.String accessToken) { - return (Upload) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpResponse executeMedia() throws java.io.IOException { + return super.executeMedia(); } @Override - public Upload setAlt(java.lang.String alt) { - return (Upload) super.setAlt(alt); + 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 Upload setCallback(java.lang.String callback) { - return (Upload) super.setCallback(callback); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Upload setFields(java.lang.String fields) { - return (Upload) super.setFields(fields); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Upload setKey(java.lang.String key) { - return (Upload) super.setKey(key); + public Download set$Xgafv(java.lang.String $Xgafv) { + return (Download) super.set$Xgafv($Xgafv); } @Override - public Upload setOauthToken(java.lang.String oauthToken) { - return (Upload) super.setOauthToken(oauthToken); + public Download setAccessToken(java.lang.String accessToken) { + return (Download) super.setAccessToken(accessToken); } @Override - public Upload setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Upload) super.setPrettyPrint(prettyPrint); + public Download setAlt(java.lang.String alt) { + return (Download) super.setAlt(alt); } @Override - public Upload setQuotaUser(java.lang.String quotaUser) { - return (Upload) super.setQuotaUser(quotaUser); + public Download setCallback(java.lang.String callback) { + return (Download) super.setCallback(callback); } @Override - public Upload setUploadType(java.lang.String uploadType) { - return (Upload) super.setUploadType(uploadType); + public Download setFields(java.lang.String fields) { + return (Download) super.setFields(fields); } @Override - public Upload setUploadProtocol(java.lang.String uploadProtocol) { - return (Upload) super.setUploadProtocol(uploadProtocol); + public Download setKey(java.lang.String key) { + return (Download) super.setKey(key); + } + + @Override + public Download setOauthToken(java.lang.String oauthToken) { + return (Download) super.setOauthToken(oauthToken); + } + + @Override + public Download setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Download) super.setPrettyPrint(prettyPrint); + } + + @Override + public Download setQuotaUser(java.lang.String quotaUser) { + return (Download) super.setQuotaUser(quotaUser); + } + + @Override + public Download setUploadType(java.lang.String uploadType) { + return (Download) super.setUploadType(uploadType); + } + + @Override + public Download setUploadProtocol(java.lang.String uploadProtocol) { + return (Download) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the RagCorpus resource into which to upload the file. Format: - * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + * Required. The task or collaborative project to download from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The name of the RagCorpus resource into which to upload the file. Format: - `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + /** Required. The task or collaborative project to download from. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } /** - * Required. The name of the RagCorpus resource into which to upload the file. Format: - * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + * Required. The task or collaborative project to download from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} */ - public Upload setParent(java.lang.String parent) { + public Download 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/[^/]+/ragCorpora/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+$"); } - this.parent = parent; + this.name = name; + return this; + } + + /** + * Required. Absolute path of a file in the task's workspace, e.g. `/workspace/report.md`, or, + * for a collaborative project, under `/workspace/project`, e.g. + * `/workspace/project/report.md`. Must be under `/workspace`, at most 1024 characters, and + * not contain a `..` segment. Accepts `TaskArtifactFile.path` as-is. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** Required. Absolute path of a file in the task's workspace, e.g. `/workspace/report.md`, or, for a + collaborative project, under `/workspace/project`, e.g. `/workspace/project/report.md`. Must be + under `/workspace`, at most 1024 characters, and not contain a `..` segment. Accepts + `TaskArtifactFile.path` as-is. + */ + public java.lang.String getPath() { + return path; + } + + /** + * Required. Absolute path of a file in the task's workspace, e.g. `/workspace/report.md`, or, + * for a collaborative project, under `/workspace/project`, e.g. + * `/workspace/project/report.md`. Must be under `/workspace`, at most 1024 characters, and + * not contain a `..` segment. Accepts `TaskArtifactFile.path` as-is. + */ + public Download setPath(java.lang.String path) { + this.path = path; + return this; + } + + /** + * Required. The media type of the rendition: * `application/pdf`: the file as a PDF, e.g. of + * a .docx, .pptx or .xlsx. * `application/json`: a spreadsheet, e.g. a .xlsx or .csv, as JSON + * describing its sheets and cells, from which a client draws the workbook as a grid. Any + * other value fails with `INVALID_ARGUMENT`. + */ + @com.google.api.client.util.Key("processingConfig.outputMimeType") + private java.lang.String processingConfigOutputMimeType; + + /** Required. The media type of the rendition: * `application/pdf`: the file as a PDF, e.g. of a .docx, + .pptx or .xlsx. * `application/json`: a spreadsheet, e.g. a .xlsx or .csv, as JSON describing its + sheets and cells, from which a client draws the workbook as a grid. Any other value fails with + `INVALID_ARGUMENT`. + */ + public java.lang.String getProcessingConfigOutputMimeType() { + return processingConfigOutputMimeType; + } + + /** + * Required. The media type of the rendition: * `application/pdf`: the file as a PDF, e.g. of + * a .docx, .pptx or .xlsx. * `application/json`: a spreadsheet, e.g. a .xlsx or .csv, as JSON + * describing its sheets and cells, from which a client draws the workbook as a grid. Any + * other value fails with `INVALID_ARGUMENT`. + */ + public Download setProcessingConfigOutputMimeType(java.lang.String processingConfigOutputMimeType) { + this.processingConfigOutputMimeType = processingConfigOutputMimeType; return this; } @Override - public Upload set(String parameterName, Object value) { - return (Upload) super.set(parameterName, value); + public Download set(String parameterName, Object value) { + return (Download) super.set(parameterName, value); } } @@ -50109,29 +51632,6 @@ public Create setParent(java.lang.String parent) { return this; } - /** - * Optional. Optional. One-time cryptographic nonce issued by the trusted IdP provisioning - * iframe for session and device non-repudiation. - */ - @com.google.api.client.util.Key - private java.lang.String idpNonce; - - /** Optional. Optional. One-time cryptographic nonce issued by the trusted IdP provisioning iframe for - session and device non-repudiation. - */ - public java.lang.String getIdpNonce() { - return idpNonce; - } - - /** - * Optional. Optional. One-time cryptographic nonce issued by the trusted IdP provisioning - * iframe for session and device non-repudiation. - */ - public Create setIdpNonce(java.lang.String idpNonce) { - this.idpNonce = idpNonce; - return this; - } - @Override public Create set(String parameterName, Object value) { return (Create) super.set(parameterName, value); @@ -52272,87 +53772,77 @@ public Wait set(String parameterName, Object value) { } } - } - /** - * An accessor for creating requests from the Apps collection. - * - *

The typical use is:

- *
-       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.Apps.List request = aiplatform.apps().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public Apps apps() { - return new Apps(); - } - - /** - * The "apps" collection of methods. - */ - public class Apps { - /** - * An accessor for creating requests from the Operations collection. + * An accessor for creating requests from the Tasks collection. * *

The typical use is:

*
          *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+         *   {@code Aiplatform.Tasks.List request = aiplatform.tasks().list(parameters ...)}
          * 
* * @return the resource collection */ - public Operations operations() { - return new Operations(); + public Tasks tasks() { + return new Tasks(); } /** - * The "operations" collection of methods. + * The "tasks" collection of methods. */ - public class Operations { + public class Tasks { /** - * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to - * cancel the operation, but success is not guaranteed. If the server doesn't support this method, - * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other - * methods to check whether the cancellation succeeded or whether the operation completed despite - * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an - * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to - * `Code.CANCELLED`. + * Deprecated: use `CancelTaskLro` instead. This method keeps the same cancellation semantics but + * returns `Task` directly, which forecloses the future cascade behaviour on recurring parents that + * only an `Operation` return type can express. Cancels a task, out-of-band by id. Drains any in- + * progress work and moves the task to CANCELLED. Use this when there is no active stream (e.g. a + * scheduled or background task) or when a caller other than the streaming client cancels. A task + * may also be cancelled in-band via the bidi cancel_task end_request; the two paths are equivalent. + * Cancellation semantics: * Idempotent: cancelling an already-terminal task is a no-op that returns + * the current Task; concurrent/duplicate cancels collapse to one CANCELLED. * First terminal state + * wins: once the task is CANCELLED/COMPLETED/FAILED, later cancels have no effect. * Cancel takes + * precedence over complete_task: a cancel arriving while (or after) a client half-closes with + * complete_task still drives the task to CANCELLED rather than letting it finish. * - * Create a request for the method "operations.cancel". + * Create a request for the method "tasks.cancel". * * This request holds the parameters needed by the aiplatform server. After setting any optional * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to be cancelled. + * @param name Required. The name of the task to cancel. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelTaskRequest} * @return the request */ - public Cancel cancel(java.lang.String name) throws java.io.IOException { - Cancel result = new Cancel(name); + public Cancel cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelTaskRequest content) throws java.io.IOException { + Cancel result = new Cancel(name, content); initialize(result); return result; } - public class Cancel extends AiplatformRequest { + public class Cancel extends AiplatformRequest { private static final String REST_PATH = "v1beta1/{+name}:cancel"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+$"); - - /** - * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to - * cancel the operation, but success is not guaranteed. If the server doesn't support this method, - * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other - * methods to check whether the cancellation succeeded or whether the operation completed despite - * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an - * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to - * `Code.CANCELLED`. + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); + + /** + * Deprecated: use `CancelTaskLro` instead. This method keeps the same cancellation semantics but + * returns `Task` directly, which forecloses the future cascade behaviour on recurring parents + * that only an `Operation` return type can express. Cancels a task, out-of-band by id. Drains any + * in-progress work and moves the task to CANCELLED. Use this when there is no active stream (e.g. + * a scheduled or background task) or when a caller other than the streaming client cancels. A + * task may also be cancelled in-band via the bidi cancel_task end_request; the two paths are + * equivalent. Cancellation semantics: * Idempotent: cancelling an already-terminal task is a no- + * op that returns the current Task; concurrent/duplicate cancels collapse to one CANCELLED. * + * First terminal state wins: once the task is CANCELLED/COMPLETED/FAILED, later cancels have no + * effect. * Cancel takes precedence over complete_task: a cancel arriving while (or after) a + * client half-closes with complete_task still drives the task to CANCELLED rather than letting it + * finish. * - * Create a request for the method "operations.cancel". + * Create a request for the method "tasks.cancel". * * This request holds the parameters needed by the the aiplatform server. After setting any * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. @@ -52360,16 +53850,18 @@ public class Cancel extends AiplatformRequest * - * @param name The name of the operation resource to be cancelled. + * @param name Required. The name of the task to cancel. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelTaskRequest} * @since 1.13 */ - protected Cancel(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.class); + protected Cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelTaskRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Task.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/[^/]+/apps/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); } } @@ -52428,22 +53920,29 @@ public Cancel setUploadProtocol(java.lang.String uploadProtocol) { return (Cancel) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource to be cancelled. */ + /** + * Required. The name of the task to cancel. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource to be cancelled. + /** Required. The name of the task to cancel. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} */ public java.lang.String getName() { return name; } - /** The name of the operation resource to be cancelled. */ + /** + * Required. The name of the task to cancel. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ public Cancel setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); } this.name = name; return this; @@ -52455,16 +53954,266 @@ public Cancel set(String parameterName, Object value) { } } /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * Creates a task without opening a live channel. Convenient for scheduled/background tasks where + * the caller does not need to drive the execution interactively; observe progress later via + * StreamTask (or by reconnecting to CreateTaskBidiStream with a `subscribe_task` request). * - * Create a request for the method "operations.delete". + * Create a request for the method "tasks.create". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent agent that owns this task. Format: + * projects/{project}/locations/{location}/agents/{agent} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Task} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Task content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/tasks"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); + + /** + * Creates a task without opening a live channel. Convenient for scheduled/background tasks where + * the caller does not need to drive the execution interactively; observe progress later via + * StreamTask (or by reconnecting to CreateTaskBidiStream with a `subscribe_task` request). + * + * Create a request for the method "tasks.create". + * + * This request holds the parameters needed by the the aiplatform 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 parent agent that owns this task. Format: + * projects/{project}/locations/{location}/agents/{agent} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Task} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Task content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Task.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/[^/]+/agents/[^/]+$"); + } + } + + @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 parent agent that owns this task. Format: + * projects/{project}/locations/{location}/agents/{agent} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent agent that owns this task. Format: + projects/{project}/locations/{location}/agents/{agent} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent agent that owns this task. Format: + * projects/{project}/locations/{location}/agents/{agent} + */ + 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/[^/]+/agents/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Optional idempotency token to guarantee the task is created only once. + * Suggest a UUID. A create carrying a token that a live task of the same agent already + * holds fails with `ALREADY_EXISTS`, naming that task in the response. The token is + * free again once that task finishes. + */ + @com.google.api.client.util.Key + private java.lang.String uniqueCreationToken; + + /** Optional. Optional idempotency token to guarantee the task is created only once. Suggest a UUID. A + create carrying a token that a live task of the same agent already holds fails with + `ALREADY_EXISTS`, naming that task in the response. The token is free again once that task + finishes. + */ + public java.lang.String getUniqueCreationToken() { + return uniqueCreationToken; + } + + /** + * Optional. Optional idempotency token to guarantee the task is created only once. + * Suggest a UUID. A create carrying a token that a live task of the same agent already + * holds fails with `ALREADY_EXISTS`, naming that task in the response. The token is + * free again once that task finishes. + */ + public Create setUniqueCreationToken(java.lang.String uniqueCreationToken) { + this.uniqueCreationToken = uniqueCreationToken; + return this; + } + + /** + * Optional. How the user's input reached the agent. Leave unset when the user talks to + * the agent directly in an AI-native interface. + */ + @com.google.api.client.util.Key("userContext.channel") + private java.lang.String userContextChannel; + + /** Optional. How the user's input reached the agent. Leave unset when the user talks to the agent + directly in an AI-native interface. + */ + public java.lang.String getUserContextChannel() { + return userContextChannel; + } + + /** + * Optional. How the user's input reached the agent. Leave unset when the user talks to + * the agent directly in an AI-native interface. + */ + public Create setUserContextChannel(java.lang.String userContextChannel) { + this.userContextChannel = userContextChannel; + return this; + } + + /** + * Optional. The user's coarse, human-readable location, e.g. "Mountain View, CA, US". + * Must be no more precise than city level; never send street addresses, postal codes, + * or coordinates. The agent uses it for location-dependent requests, e.g. weather or + * nearby places. + */ + @com.google.api.client.util.Key("userContext.location") + private java.lang.String userContextLocation; + + /** Optional. The user's coarse, human-readable location, e.g. "Mountain View, CA, US". Must be no more + precise than city level; never send street addresses, postal codes, or coordinates. The agent uses + it for location-dependent requests, e.g. weather or nearby places. + */ + public java.lang.String getUserContextLocation() { + return userContextLocation; + } + + /** + * Optional. The user's coarse, human-readable location, e.g. "Mountain View, CA, US". + * Must be no more precise than city level; never send street addresses, postal codes, + * or coordinates. The agent uses it for location-dependent requests, e.g. weather or + * nearby places. + */ + public Create setUserContextLocation(java.lang.String userContextLocation) { + this.userContextLocation = userContextLocation; + return this; + } + + /** + * Optional. The user's IANA time zone name, e.g. "America/Los_Angeles". The agent uses + * it to interpret and present dates and times, e.g. to resolve "tomorrow morning". + */ + @com.google.api.client.util.Key("userContext.timeZone") + private java.lang.String userContextTimeZone; + + /** Optional. The user's IANA time zone name, e.g. "America/Los_Angeles". The agent uses it to + interpret and present dates and times, e.g. to resolve "tomorrow morning". + */ + public java.lang.String getUserContextTimeZone() { + return userContextTimeZone; + } + + /** + * Optional. The user's IANA time zone name, e.g. "America/Los_Angeles". The agent uses + * it to interpret and present dates and times, e.g. to resolve "tomorrow morning". + */ + public Create setUserContextTimeZone(java.lang.String userContextTimeZone) { + this.userContextTimeZone = userContextTimeZone; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a task. Long-running because deletion cascades: it cancels any active run (WORKING / + * REQUIRES_ACTION / SUSPENDED tasks are cancelled-then-deleted, not rejected), and cleans up the + * task's bound resources -- environment, generated artifacts, and the runtime trajectory/sessions. + * The operation completes when the cascade finishes; on success the response is + * google.protobuf.Empty. + * + * Create a request for the method "tasks.delete". * * This request holds the parameters needed by the aiplatform server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to be deleted. + * @param name Required. The name of the task to delete. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -52473,19 +54222,21 @@ public Delete delete(java.lang.String name) throws java.io.IOException { return result; } - public class Delete extends AiplatformRequest { + public class Delete extends AiplatformRequest { private static final String REST_PATH = "v1beta1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * Deletes a task. Long-running because deletion cascades: it cancels any active run (WORKING / + * REQUIRES_ACTION / SUSPENDED tasks are cancelled-then-deleted, not rejected), and cleans up the + * task's bound resources -- environment, generated artifacts, and the runtime + * trajectory/sessions. The operation completes when the cascade finishes; on success the response + * is google.protobuf.Empty. * - * Create a request for the method "operations.delete". + * Create a request for the method "tasks.delete". * * This request holds the parameters needed by the the aiplatform server. After setting any * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. @@ -52493,16 +54244,17 @@ public class Delete extends AiplatformRequest * - * @param name The name of the operation resource to be deleted. + * @param name Required. The name of the task to delete. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} * @since 1.13 */ protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.class); + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/apps/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); } } @@ -52561,42 +54313,693 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource to be deleted. */ + /** + * Required. The name of the task to delete. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource to be deleted. + /** Required. The name of the task to delete. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} */ public java.lang.String getName() { return name; } - /** The name of the operation resource to be deleted. */ + /** + * Required. The name of the task to delete. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ 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/[^/]+/apps/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); } this.name = name; return this; } + /** + * Optional. Whether to skip cascading deletion to all descendant subtasks. Defaults to + * false (cascades to all descendants by default). Matches + * google.cloud.aiplatform.master.CancelTaskRequest.operate_on_self. Behavior: UNSET or + * false ⇒ cascade: delete this task and every non-terminal descendant (gated by Mendel + * flag sobi_enable_cascading_delete_task; returns FAILED_PRECONDITION when the flag is + * OFF and the task has non-terminal children). true ⇒ delete this task only. Each + * descendant deletion signals the runtime for the live-session case (Actor.OnCancel + * finalizes trajectory + reclaims sandbox VM) before removing the Sobi DB rows, + * matching the single-DeleteTask contract. + */ + @com.google.api.client.util.Key + private java.lang.Boolean operateOnSelf; + + /** Optional. Whether to skip cascading deletion to all descendant subtasks. Defaults to false + (cascades to all descendants by default). Matches + google.cloud.aiplatform.master.CancelTaskRequest.operate_on_self. Behavior: UNSET or false ⇒ + cascade: delete this task and every non-terminal descendant (gated by Mendel flag + sobi_enable_cascading_delete_task; returns FAILED_PRECONDITION when the flag is OFF and the task + has non-terminal children). true ⇒ delete this task only. Each descendant deletion signals the + runtime for the live-session case (Actor.OnCancel finalizes trajectory + reclaims sandbox VM) + before removing the Sobi DB rows, matching the single-DeleteTask contract. + */ + public java.lang.Boolean getOperateOnSelf() { + return operateOnSelf; + } + + /** + * Optional. Whether to skip cascading deletion to all descendant subtasks. Defaults to + * false (cascades to all descendants by default). Matches + * google.cloud.aiplatform.master.CancelTaskRequest.operate_on_self. Behavior: UNSET or + * false ⇒ cascade: delete this task and every non-terminal descendant (gated by Mendel + * flag sobi_enable_cascading_delete_task; returns FAILED_PRECONDITION when the flag is + * OFF and the task has non-terminal children). true ⇒ delete this task only. Each + * descendant deletion signals the runtime for the live-session case (Actor.OnCancel + * finalizes trajectory + reclaims sandbox VM) before removing the Sobi DB rows, + * matching the single-DeleteTask contract. + */ + public Delete setOperateOnSelf(java.lang.Boolean operateOnSelf) { + this.operateOnSelf = operateOnSelf; + return this; + } + @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. + * Deletes a file from a task's workspace. `path` must be an absolute path to a file under + * `/workspace/userdata/` (for example, `/workspace/userdata/input.csv`). Paths outside + * `/workspace/userdata/`, `/workspace/userdata` itself, relative paths, or paths with `.` or `..` + * segments fail with `INVALID_ARGUMENT`. Directory paths and tasks in a terminal state fail with + * `FAILED_PRECONDITION`. A missing file fails with `NOT_FOUND` unless `allow_missing` is true, in + * which case the call succeeds with an empty response. * - * Create a request for the method "operations.get". + * Create a request for the method "tasks.deleteArtifact". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link DeleteArtifact#execute()} method to invoke the remote operation. + * + * @param task Required. The task to delete from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeleteTaskArtifactRequest} + * @return the request + */ + public DeleteArtifact deleteArtifact(java.lang.String task, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeleteTaskArtifactRequest content) throws java.io.IOException { + DeleteArtifact result = new DeleteArtifact(task, content); + initialize(result); + return result; + } + + public class DeleteArtifact extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+task}:deleteArtifact"; + + private final java.util.regex.Pattern TASK_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); + + /** + * Deletes a file from a task's workspace. `path` must be an absolute path to a file under + * `/workspace/userdata/` (for example, `/workspace/userdata/input.csv`). Paths outside + * `/workspace/userdata/`, `/workspace/userdata` itself, relative paths, or paths with `.` or `..` + * segments fail with `INVALID_ARGUMENT`. Directory paths and tasks in a terminal state fail with + * `FAILED_PRECONDITION`. A missing file fails with `NOT_FOUND` unless `allow_missing` is true, in + * which case the call succeeds with an empty response. + * + * Create a request for the method "tasks.deleteArtifact". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link DeleteArtifact#execute()} method to invoke the remote + * operation.

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

+ * + * @param task Required. The task to delete from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeleteTaskArtifactRequest} + * @since 1.13 + */ + protected DeleteArtifact(java.lang.String task, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeleteTaskArtifactRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeleteTaskArtifactResponse.class); + this.task = com.google.api.client.util.Preconditions.checkNotNull(task, "Required parameter task must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TASK_PATTERN.matcher(task).matches(), + "Parameter task must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + } + + @Override + public DeleteArtifact set$Xgafv(java.lang.String $Xgafv) { + return (DeleteArtifact) super.set$Xgafv($Xgafv); + } + + @Override + public DeleteArtifact setAccessToken(java.lang.String accessToken) { + return (DeleteArtifact) super.setAccessToken(accessToken); + } + + @Override + public DeleteArtifact setAlt(java.lang.String alt) { + return (DeleteArtifact) super.setAlt(alt); + } + + @Override + public DeleteArtifact setCallback(java.lang.String callback) { + return (DeleteArtifact) super.setCallback(callback); + } + + @Override + public DeleteArtifact setFields(java.lang.String fields) { + return (DeleteArtifact) super.setFields(fields); + } + + @Override + public DeleteArtifact setKey(java.lang.String key) { + return (DeleteArtifact) super.setKey(key); + } + + @Override + public DeleteArtifact setOauthToken(java.lang.String oauthToken) { + return (DeleteArtifact) super.setOauthToken(oauthToken); + } + + @Override + public DeleteArtifact setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteArtifact) super.setPrettyPrint(prettyPrint); + } + + @Override + public DeleteArtifact setQuotaUser(java.lang.String quotaUser) { + return (DeleteArtifact) super.setQuotaUser(quotaUser); + } + + @Override + public DeleteArtifact setUploadType(java.lang.String uploadType) { + return (DeleteArtifact) super.setUploadType(uploadType); + } + + @Override + public DeleteArtifact setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteArtifact) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The task to delete from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + @com.google.api.client.util.Key + private java.lang.String task; + + /** Required. The task to delete from. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + public java.lang.String getTask() { + return task; + } + + /** + * Required. The task to delete from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + public DeleteArtifact setTask(java.lang.String task) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TASK_PATTERN.matcher(task).matches(), + "Parameter task must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + this.task = task; + return this; + } + + @Override + public DeleteArtifact set(String parameterName, Object value) { + return (DeleteArtifact) super.set(parameterName, value); + } + } + /** + * Downloads a file. The response body is the file's bytes, with the file's own media type as the + * `Content-Type` and a `Content-Disposition` that names the file. Media is the default and only + * representation, so no `alt` parameter is needed. A preview sets `processing_config` and gets a + * rendition of the file in place of the file, such as a PDF of a .pptx: the response body is the + * rendition, with its own media type as the `Content-Type` and a `Content-Disposition` name that + * ends in its extension. Without `processing_config` the response is always the stored file. + * + * Create a request for the method "tasks.download". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Download#execute()} method to invoke the remote operation. + * + * @param name Required. The task or collaborative project to download from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @return the request + */ + public Download download(java.lang.String name) throws java.io.IOException { + Download result = new Download(name); + initialize(result); + return result; + } + + public class Download extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:download"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); + + /** + * Downloads a file. The response body is the file's bytes, with the file's own media type as the + * `Content-Type` and a `Content-Disposition` that names the file. Media is the default and only + * representation, so no `alt` parameter is needed. A preview sets `processing_config` and gets a + * rendition of the file in place of the file, such as a PDF of a .pptx: the response body is the + * rendition, with its own media type as the `Content-Type` and a `Content-Disposition` name that + * ends in its extension. Without `processing_config` the response is always the stored file. + * + * Create a request for the method "tasks.download". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Download#execute()} method to invoke the remote operation. + *

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

+ * + * @param name Required. The task or collaborative project to download from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @since 1.13 + */ + protected Download(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GdataMedia.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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + 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 Download set$Xgafv(java.lang.String $Xgafv) { + return (Download) super.set$Xgafv($Xgafv); + } + + @Override + public Download setAccessToken(java.lang.String accessToken) { + return (Download) super.setAccessToken(accessToken); + } + + @Override + public Download setAlt(java.lang.String alt) { + return (Download) super.setAlt(alt); + } + + @Override + public Download setCallback(java.lang.String callback) { + return (Download) super.setCallback(callback); + } + + @Override + public Download setFields(java.lang.String fields) { + return (Download) super.setFields(fields); + } + + @Override + public Download setKey(java.lang.String key) { + return (Download) super.setKey(key); + } + + @Override + public Download setOauthToken(java.lang.String oauthToken) { + return (Download) super.setOauthToken(oauthToken); + } + + @Override + public Download setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Download) super.setPrettyPrint(prettyPrint); + } + + @Override + public Download setQuotaUser(java.lang.String quotaUser) { + return (Download) super.setQuotaUser(quotaUser); + } + + @Override + public Download setUploadType(java.lang.String uploadType) { + return (Download) super.setUploadType(uploadType); + } + + @Override + public Download setUploadProtocol(java.lang.String uploadProtocol) { + return (Download) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The task or collaborative project to download from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The task or collaborative project to download from. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The task or collaborative project to download from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + public Download 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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Required. Absolute path of a file in the task's workspace, e.g. + * `/workspace/report.md`, or, for a collaborative project, under `/workspace/project`, + * e.g. `/workspace/project/report.md`. Must be under `/workspace`, at most 1024 + * characters, and not contain a `..` segment. Accepts `TaskArtifactFile.path` as-is. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** Required. Absolute path of a file in the task's workspace, e.g. `/workspace/report.md`, or, for a + collaborative project, under `/workspace/project`, e.g. `/workspace/project/report.md`. Must be + under `/workspace`, at most 1024 characters, and not contain a `..` segment. Accepts + `TaskArtifactFile.path` as-is. + */ + public java.lang.String getPath() { + return path; + } + + /** + * Required. Absolute path of a file in the task's workspace, e.g. + * `/workspace/report.md`, or, for a collaborative project, under `/workspace/project`, + * e.g. `/workspace/project/report.md`. Must be under `/workspace`, at most 1024 + * characters, and not contain a `..` segment. Accepts `TaskArtifactFile.path` as-is. + */ + public Download setPath(java.lang.String path) { + this.path = path; + return this; + } + + /** + * Required. The media type of the rendition: * `application/pdf`: the file as a PDF, + * e.g. of a .docx, .pptx or .xlsx. * `application/json`: a spreadsheet, e.g. a .xlsx or + * .csv, as JSON describing its sheets and cells, from which a client draws the workbook + * as a grid. Any other value fails with `INVALID_ARGUMENT`. + */ + @com.google.api.client.util.Key("processingConfig.outputMimeType") + private java.lang.String processingConfigOutputMimeType; + + /** Required. The media type of the rendition: * `application/pdf`: the file as a PDF, e.g. of a .docx, + .pptx or .xlsx. * `application/json`: a spreadsheet, e.g. a .xlsx or .csv, as JSON describing its + sheets and cells, from which a client draws the workbook as a grid. Any other value fails with + `INVALID_ARGUMENT`. + */ + public java.lang.String getProcessingConfigOutputMimeType() { + return processingConfigOutputMimeType; + } + + /** + * Required. The media type of the rendition: * `application/pdf`: the file as a PDF, + * e.g. of a .docx, .pptx or .xlsx. * `application/json`: a spreadsheet, e.g. a .xlsx or + * .csv, as JSON describing its sheets and cells, from which a client draws the workbook + * as a grid. Any other value fails with `INVALID_ARGUMENT`. + */ + public Download setProcessingConfigOutputMimeType(java.lang.String processingConfigOutputMimeType) { + this.processingConfigOutputMimeType = processingConfigOutputMimeType; + return this; + } + + @Override + public Download set(String parameterName, Object value) { + return (Download) super.set(parameterName, value); + } + } + /** + * Downloads a file from a task's workspace as a stream of chunks. A server-streaming RPC. The + * response body is the file's raw bytes, with the file's own media type as the `Content-Type`. At + * most 1 GiB. Like ListTaskArtifacts, reads from the running sandbox when there is one, so a file + * the agent has just written is returned even before it reaches storage. + * + * Create a request for the method "tasks.downloadArtifact". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link DownloadArtifact#execute()} method to invoke the remote operation. + * + * @param task Required. The task to download from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @return the request + */ + public DownloadArtifact downloadArtifact(java.lang.String task) throws java.io.IOException { + DownloadArtifact result = new DownloadArtifact(task); + initialize(result); + return result; + } + + public class DownloadArtifact extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+task}:downloadArtifact"; + + private final java.util.regex.Pattern TASK_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); + + /** + * Downloads a file from a task's workspace as a stream of chunks. A server-streaming RPC. The + * response body is the file's raw bytes, with the file's own media type as the `Content-Type`. At + * most 1 GiB. Like ListTaskArtifacts, reads from the running sandbox when there is one, so a file + * the agent has just written is returned even before it reaches storage. + * + * Create a request for the method "tasks.downloadArtifact". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link DownloadArtifact#execute()} method to invoke the remote + * operation.

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

+ * + * @param task Required. The task to download from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @since 1.13 + */ + protected DownloadArtifact(java.lang.String task) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); + this.task = com.google.api.client.util.Preconditions.checkNotNull(task, "Required parameter task must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TASK_PATTERN.matcher(task).matches(), + "Parameter task must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + } + + @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 DownloadArtifact set$Xgafv(java.lang.String $Xgafv) { + return (DownloadArtifact) super.set$Xgafv($Xgafv); + } + + @Override + public DownloadArtifact setAccessToken(java.lang.String accessToken) { + return (DownloadArtifact) super.setAccessToken(accessToken); + } + + @Override + public DownloadArtifact setAlt(java.lang.String alt) { + return (DownloadArtifact) super.setAlt(alt); + } + + @Override + public DownloadArtifact setCallback(java.lang.String callback) { + return (DownloadArtifact) super.setCallback(callback); + } + + @Override + public DownloadArtifact setFields(java.lang.String fields) { + return (DownloadArtifact) super.setFields(fields); + } + + @Override + public DownloadArtifact setKey(java.lang.String key) { + return (DownloadArtifact) super.setKey(key); + } + + @Override + public DownloadArtifact setOauthToken(java.lang.String oauthToken) { + return (DownloadArtifact) super.setOauthToken(oauthToken); + } + + @Override + public DownloadArtifact setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DownloadArtifact) super.setPrettyPrint(prettyPrint); + } + + @Override + public DownloadArtifact setQuotaUser(java.lang.String quotaUser) { + return (DownloadArtifact) super.setQuotaUser(quotaUser); + } + + @Override + public DownloadArtifact setUploadType(java.lang.String uploadType) { + return (DownloadArtifact) super.setUploadType(uploadType); + } + + @Override + public DownloadArtifact setUploadProtocol(java.lang.String uploadProtocol) { + return (DownloadArtifact) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The task to download from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + @com.google.api.client.util.Key + private java.lang.String task; + + /** Required. The task to download from. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + public java.lang.String getTask() { + return task; + } + + /** + * Required. The task to download from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + public DownloadArtifact setTask(java.lang.String task) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TASK_PATTERN.matcher(task).matches(), + "Parameter task must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + this.task = task; + return this; + } + + /** + * Required. Absolute path of the file to read, e.g. "/workspace/report.md". Must be + * under "/workspace", at most 1024 characters, and not contain a ".." segment. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** Required. Absolute path of the file to read, e.g. "/workspace/report.md". Must be under + "/workspace", at most 1024 characters, and not contain a ".." segment. + */ + public java.lang.String getPath() { + return path; + } + + /** + * Required. Absolute path of the file to read, e.g. "/workspace/report.md". Must be + * under "/workspace", at most 1024 characters, and not contain a ".." segment. + */ + public DownloadArtifact setPath(java.lang.String path) { + this.path = path; + return this; + } + + /** + * Required. The media type to return: * `application/pdf`: the file as a PDF, e.g. a + * .docx or .pptx. * `application/json`: a spreadsheet, e.g. a .xlsx, as JSON describing + * its sheets and cells, from which a client draws the workbook as a grid. Any other + * value fails with `INVALID_ARGUMENT`. + */ + @com.google.api.client.util.Key("processingConfig.outputMimeType") + private java.lang.String processingConfigOutputMimeType; + + /** Required. The media type to return: * `application/pdf`: the file as a PDF, e.g. a .docx or .pptx. + * `application/json`: a spreadsheet, e.g. a .xlsx, as JSON describing its sheets and cells, from + which a client draws the workbook as a grid. Any other value fails with `INVALID_ARGUMENT`. + */ + public java.lang.String getProcessingConfigOutputMimeType() { + return processingConfigOutputMimeType; + } + + /** + * Required. The media type to return: * `application/pdf`: the file as a PDF, e.g. a + * .docx or .pptx. * `application/json`: a spreadsheet, e.g. a .xlsx, as JSON describing + * its sheets and cells, from which a client draws the workbook as a grid. Any other + * value fails with `INVALID_ARGUMENT`. + */ + public DownloadArtifact setProcessingConfigOutputMimeType(java.lang.String processingConfigOutputMimeType) { + this.processingConfigOutputMimeType = processingConfigOutputMimeType; + return this; + } + + @Override + public DownloadArtifact set(String parameterName, Object value) { + return (DownloadArtifact) super.set(parameterName, value); + } + } + /** + * Gets a task. + * + * Create a request for the method "tasks.get". * * This request holds the parameters needed by the aiplatform server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource. + * @param name Required. The name of the task to retrieve. Both name forms are accepted: * + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} * + * projects/{project}/locations/{location}/tasks/{task} * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -52605,34 +55008,35 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends AiplatformRequest { + public class Get extends AiplatformRequest { private static final String REST_PATH = "v1beta1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. + * Gets a task. * - * Create a request for the method "operations.get". + * Create a request for the method "tasks.get". * * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource. + * @param name Required. The name of the task to retrieve. Both name forms are accepted: * + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} * + * projects/{project}/locations/{location}/tasks/{task} * @since 1.13 */ protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Task.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/[^/]+/apps/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); } } @@ -52701,22 +55105,32 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource. */ + /** + * Required. The name of the task to retrieve. Both name forms are accepted: * + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} * + * projects/{project}/locations/{location}/tasks/{task} + */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource. + /** Required. The name of the task to retrieve. Both name forms are accepted: * + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} * + projects/{project}/locations/{location}/tasks/{task} */ public java.lang.String getName() { return name; } - /** The name of the operation resource. */ + /** + * Required. The name of the task to retrieve. Both name forms are accepted: * + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} * + * projects/{project}/locations/{location}/tasks/{task} + */ 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/[^/]+/apps/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); } this.name = name; return this; @@ -52728,51 +55142,55 @@ public Get set(String parameterName, Object value) { } } /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. + * Lists tasks under a parent. Supports filtering (e.g. by status or assigned_agent) so a surface + * can show "my tasks". * - * Create a request for the method "operations.list". + * Create a request for the method "tasks.list". * * This request holds the parameters needed by the aiplatform server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param name The name of the operation's parent resource. + * @param parent Required. The parent to list tasks under. Both forms are accepted and scope the listing differently: + * * projects/{project}/locations/{location}/agents/{agent} -- tasks assigned to that agent. + * * projects/{project}/locations/{location} -- all tasks in the location. * @return the request */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class List extends AiplatformRequest { + public class List extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}/operations"; + private static final String REST_PATH = "v1beta1/{+parent}/tasks"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. + * Lists tasks under a parent. Supports filtering (e.g. by status or assigned_agent) so a surface + * can show "my tasks". * - * Create a request for the method "operations.list". + * Create a request for the method "tasks.list". * * This request holds the parameters needed by the the aiplatform 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 name The name of the operation's parent resource. + * @param parent Required. The parent to list tasks under. Both forms are accepted and scope the listing differently: + * * projects/{project}/locations/{location}/agents/{agent} -- tasks assigned to that agent. + * * projects/{project}/locations/{location} -- all tasks in the location. * @since 1.13 */ - protected List(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningListOperationsResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListTasksResponse.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/[^/]+/apps/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); } } @@ -52841,2786 +55259,2437 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation's parent resource. */ + /** + * Required. The parent to list tasks under. Both forms are accepted and scope the + * listing differently: * projects/{project}/locations/{location}/agents/{agent} -- + * tasks assigned to that agent. * projects/{project}/locations/{location} -- all tasks + * in the location. + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** The name of the operation's parent resource. + /** Required. The parent to list tasks under. Both forms are accepted and scope the listing + differently: * projects/{project}/locations/{location}/agents/{agent} -- tasks assigned to that + agent. * projects/{project}/locations/{location} -- all tasks in the location. */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { + /** + * Required. The parent to list tasks under. Both forms are accepted and scope the + * listing differently: * projects/{project}/locations/{location}/agents/{agent} -- + * tasks assigned to that agent. * projects/{project}/locations/{location} -- all tasks + * in the location. + */ + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); } - this.name = name; + this.parent = parent; return this; } - /** The standard list filter. */ + /** + * Optional. A filter expression, e.g. "status=WORKING". Lineage filters pick how much + * of a task tree to fetch: * "parent_task_id=" -- direct children only (progressive + * disclosure, one level per call). * "root_task_id=" -- the whole tree in one flat + * collection. Label filters support filtering by task labels: * "labels.=" -- match + * tasks with the given label key and value. Multiple label filters can be combined with + * AND. Multiple values for the same key can be combined with OR, e.g., "labels.foo=bar + * OR labels.foo=baz". Status filters restrict the listing to tasks in the given + * statuses: * "status=" -- e.g. "status=WORKING". Multiple statuses can be combined + * with OR, e.g., "status=WORKING OR status=IDLE". Both page normally via + * `page_size`/`page_token`, and both are ordered by `order_by` (default "create_time + * desc"), not by tree shape. A whole-tree page is therefore not a subtree: a child can + * arrive before its parent, so the client buffers by `parent_task_id` and renders as + * parents resolve. + */ @com.google.api.client.util.Key private java.lang.String filter; - /** The standard list filter. + /** Optional. A filter expression, e.g. "status=WORKING". Lineage filters pick how much of a task tree + to fetch: * "parent_task_id=" -- direct children only (progressive disclosure, one level per call). + * "root_task_id=" -- the whole tree in one flat collection. Label filters support filtering by task + labels: * "labels.=" -- match tasks with the given label key and value. Multiple label filters can + be combined with AND. Multiple values for the same key can be combined with OR, e.g., + "labels.foo=bar OR labels.foo=baz". Status filters restrict the listing to tasks in the given + statuses: * "status=" -- e.g. "status=WORKING". Multiple statuses can be combined with OR, e.g., + "status=WORKING OR status=IDLE". Both page normally via `page_size`/`page_token`, and both are + ordered by `order_by` (default "create_time desc"), not by tree shape. A whole-tree page is + therefore not a subtree: a child can arrive before its parent, so the client buffers by + `parent_task_id` and renders as parents resolve. */ public java.lang.String getFilter() { return filter; } - /** The standard list filter. */ + /** + * Optional. A filter expression, e.g. "status=WORKING". Lineage filters pick how much + * of a task tree to fetch: * "parent_task_id=" -- direct children only (progressive + * disclosure, one level per call). * "root_task_id=" -- the whole tree in one flat + * collection. Label filters support filtering by task labels: * "labels.=" -- match + * tasks with the given label key and value. Multiple label filters can be combined with + * AND. Multiple values for the same key can be combined with OR, e.g., "labels.foo=bar + * OR labels.foo=baz". Status filters restrict the listing to tasks in the given + * statuses: * "status=" -- e.g. "status=WORKING". Multiple statuses can be combined + * with OR, e.g., "status=WORKING OR status=IDLE". Both page normally via + * `page_size`/`page_token`, and both are ordered by `order_by` (default "create_time + * desc"), not by tree shape. A whole-tree page is therefore not a subtree: a child can + * arrive before its parent, so the client buffers by `parent_task_id` and renders as + * parents resolve. + */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; } - /** The standard list page size. */ + /** + * Optional. Sort order, e.g. "create_time desc". The sortable fields are `create_time` + * and `update_time`. Defaults to "create_time desc". + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Sort order, e.g. "create_time desc". The sortable fields are `create_time` and + `update_time`. Defaults to "create_time desc". + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Sort order, e.g. "create_time desc". The sortable fields are `create_time` + * and `update_time`. Defaults to "create_time desc". + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. The maximum number of tasks to return. The service may return fewer. If + * unspecified (or <= 0), at most 50 are returned. The maximum is 100; larger values are + * capped to 100. + */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** The standard list page size. + /** Optional. The maximum number of tasks to return. The service may return fewer. If unspecified (or + <= 0), at most 50 are returned. The maximum is 100; larger values are capped to 100. */ public java.lang.Integer getPageSize() { return pageSize; } - /** The standard list page size. */ + /** + * Optional. The maximum number of tasks to return. The service may return fewer. If + * unspecified (or <= 0), at most 50 are returned. The maximum is 100; larger values are + * capped to 100. + */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } - /** The standard list page token. */ + /** Optional. A page token from a previous ListTasks call. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** The standard list page token. + /** Optional. A page token from a previous ListTasks call. */ public java.lang.String getPageToken() { return pageToken; } - /** The standard list page token. */ + /** Optional. A page token from a previous ListTasks call. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. - * This can only be `true` when reading across collections. For example, when `parent` - * is set to `"projects/example/locations/-"`. This field is not supported by default - * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented - * otherwise in service or product specific documentation. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** When set to `true`, operations that are reachable are returned as normal, and those that are - unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` - when reading across collections. For example, when `parent` is set to - `"projects/example/locations/-"`. This field is not supported by default and will result in an - `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific - documentation. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. - * This can only be `true` when reading across collections. For example, when `parent` - * is set to `"projects/example/locations/-"`. This field is not supported by default - * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented - * otherwise in service or product specific documentation. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** - * Waits until the specified long-running operation is done or reaches at most a specified timeout, - * returning the latest state. If the operation is already done, the latest state is immediately - * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - * timeout is used. If the server does not support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return - * the latest state before the specified timeout (including immediately), meaning even an immediate - * response is no guarantee that the operation is done. + * Lists the files in a task's workspace. By default only the immediate children of `path` are + * returned; set `recursive` to descend into subdirectories. Entries are returned in breadth-first + * order. While the task's sandbox is running, paths it writes locally are read from the sandbox so + * the listing reflects files not yet synced to storage; otherwise they are read from storage. Which + * one served a request is not visible to the caller. * - * Create a request for the method "operations.wait". + * Create a request for the method "tasks.listArtifacts". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Wait#execute()} method to invoke the remote operation. + * parameters, call the {@link ListArtifacts#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to wait on. + * @param task Required. The task whose workspace to list. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} * @return the request */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); + public ListArtifacts listArtifacts(java.lang.String task) throws java.io.IOException { + ListArtifacts result = new ListArtifacts(task); initialize(result); return result; } - public class Wait extends AiplatformRequest { + public class ListArtifacts extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}:wait"; + private static final String REST_PATH = "v1beta1/{+task}:listArtifacts"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+$"); + private final java.util.regex.Pattern TASK_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); /** - * Waits until the specified long-running operation is done or reaches at most a specified - * timeout, returning the latest state. If the operation is already done, the latest state is - * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, - * the HTTP/RPC timeout is used. If the server does not support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return - * the latest state before the specified timeout (including immediately), meaning even an - * immediate response is no guarantee that the operation is done. + * Lists the files in a task's workspace. By default only the immediate children of `path` are + * returned; set `recursive` to descend into subdirectories. Entries are returned in breadth-first + * order. While the task's sandbox is running, paths it writes locally are read from the sandbox + * so the listing reflects files not yet synced to storage; otherwise they are read from storage. + * Which one served a request is not visible to the caller. * - * Create a request for the method "operations.wait". + * Create a request for the method "tasks.listArtifacts". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

- * {@link Wait#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 ListArtifacts#execute()} method to invoke the remote + * operation.

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

* - * @param name The name of the operation resource to wait on. + * @param task Required. The task whose workspace to list. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} * @since 1.13 */ - protected Wait(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected ListArtifacts(java.lang.String task) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListTaskArtifactsResponse.class); + this.task = com.google.api.client.util.Preconditions.checkNotNull(task, "Required parameter task 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/[^/]+/apps/[^/]+/operations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(TASK_PATTERN.matcher(task).matches(), + "Parameter task must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); } } @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); + public ListArtifacts set$Xgafv(java.lang.String $Xgafv) { + return (ListArtifacts) super.set$Xgafv($Xgafv); } @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); + public ListArtifacts setAccessToken(java.lang.String accessToken) { + return (ListArtifacts) super.setAccessToken(accessToken); } @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); + public ListArtifacts setAlt(java.lang.String alt) { + return (ListArtifacts) super.setAlt(alt); } @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); + public ListArtifacts setCallback(java.lang.String callback) { + return (ListArtifacts) super.setCallback(callback); } @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); + public ListArtifacts setFields(java.lang.String fields) { + return (ListArtifacts) super.setFields(fields); } @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); + public ListArtifacts setKey(java.lang.String key) { + return (ListArtifacts) super.setKey(key); } @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); + public ListArtifacts setOauthToken(java.lang.String oauthToken) { + return (ListArtifacts) super.setOauthToken(oauthToken); } @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); + public ListArtifacts setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListArtifacts) super.setPrettyPrint(prettyPrint); } @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); + public ListArtifacts setQuotaUser(java.lang.String quotaUser) { + return (ListArtifacts) super.setQuotaUser(quotaUser); } - /** The name of the operation resource to wait on. */ + @Override + public ListArtifacts setUploadType(java.lang.String uploadType) { + return (ListArtifacts) super.setUploadType(uploadType); + } + + @Override + public ListArtifacts setUploadProtocol(java.lang.String uploadProtocol) { + return (ListArtifacts) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The task whose workspace to list. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String task; - /** The name of the operation resource to wait on. + /** Required. The task whose workspace to list. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} */ - public java.lang.String getName() { - return name; + public java.lang.String getTask() { + return task; } - /** The name of the operation resource to wait on. */ - public Wait setName(java.lang.String name) { + /** + * Required. The task whose workspace to list. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + public ListArtifacts setTask(java.lang.String task) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(TASK_PATTERN.matcher(task).matches(), + "Parameter task must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); } - this.name = name; + this.task = task; return this; } /** - * The maximum duration to wait before timing out. If left blank, the wait will be at - * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline - * is also specified, the shorter one will be used. + * Optional. The maximum number of entries to return. The service may return fewer. If + * unspecified (or <= 0), at most 100 are returned. The maximum is 1000; larger values + * are capped to 1000. */ @com.google.api.client.util.Key - private String timeout; + private java.lang.Integer pageSize; - /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time - permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the - shorter one will be used. + /** Optional. The maximum number of entries to return. The service may return fewer. If unspecified (or + <= 0), at most 100 are returned. The maximum is 1000; larger values are capped to 1000. */ - public String getTimeout() { - return timeout; + public java.lang.Integer getPageSize() { + return pageSize; } /** - * The maximum duration to wait before timing out. If left blank, the wait will be at - * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline - * is also specified, the shorter one will be used. + * Optional. The maximum number of entries to return. The service may return fewer. If + * unspecified (or <= 0), at most 100 are returned. The maximum is 1000; larger values + * are capped to 1000. */ - public Wait setTimeout(String timeout) { - this.timeout = timeout; + public ListArtifacts setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; return this; } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); + /** + * Optional. A page token from a previous ListTaskArtifacts call. The workspace is live: + * the agent can write between pages, so a paged listing is not a snapshot. An entry + * added during the walk may or may not appear, and one removed may still be listed and + * then fail to download. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token from a previous ListTaskArtifacts call. The workspace is live: the agent can + write between pages, so a paged listing is not a snapshot. An entry added during the walk may or + may not appear, and one removed may still be listed and then fail to download. + */ + public java.lang.String getPageToken() { + return pageToken; } - } - } - } - /** - * An accessor for creating requests from the BatchPredictionJobs collection. - * - *

The typical use is:

- *
-       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.BatchPredictionJobs.List request = aiplatform.batchPredictionJobs().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public BatchPredictionJobs batchPredictionJobs() { - return new BatchPredictionJobs(); - } + /** + * Optional. A page token from a previous ListTaskArtifacts call. The workspace is live: + * the agent can write between pages, so a paged listing is not a snapshot. An entry + * added during the walk may or may not appear, and one removed may still be listed and + * then fail to download. + */ + public ListArtifacts setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - /** - * The "batchPredictionJobs" collection of methods. - */ - public class BatchPredictionJobs { + /** + * Optional. Absolute path of the directory to list, e.g. "/workspace/userdata". Must be + * "/workspace" or under it, at most 1024 characters, and not contain a ".." segment. + * Defaults to "/workspace". + */ + @com.google.api.client.util.Key + private java.lang.String path; - /** - * Cancels a BatchPredictionJob. Starts asynchronous cancellation on the BatchPredictionJob. The - * server makes the best effort to cancel the job, but success is not guaranteed. Clients can use - * JobService.GetBatchPredictionJob or other methods to check whether the cancellation succeeded or - * whether the job completed despite cancellation. On a successful cancellation, the - * BatchPredictionJob is not deleted;instead its BatchPredictionJob.state is set to `CANCELLED`. Any - * files already outputted by the job are not deleted. - * - * Create a request for the method "batchPredictionJobs.cancel". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the BatchPredictionJob to cancel. Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest} - * @return the request - */ - public Cancel cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest content) throws java.io.IOException { - Cancel result = new Cancel(name, content); - initialize(result); - return result; - } + /** Optional. Absolute path of the directory to list, e.g. "/workspace/userdata". Must be "/workspace" + or under it, at most 1024 characters, and not contain a ".." segment. Defaults to "/workspace". + */ + public java.lang.String getPath() { + return path; + } - public class Cancel extends AiplatformRequest { + /** + * Optional. Absolute path of the directory to list, e.g. "/workspace/userdata". Must be + * "/workspace" or under it, at most 1024 characters, and not contain a ".." segment. + * Defaults to "/workspace". + */ + public ListArtifacts setPath(java.lang.String path) { + this.path = path; + return this; + } - private static final String REST_PATH = "v1beta1/{+name}:cancel"; + /** Optional. If true, descends into subdirectories. Results are breadth-first. */ + @com.google.api.client.util.Key + private java.lang.Boolean recursive; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); + /** Optional. If true, descends into subdirectories. Results are breadth-first. + */ + public java.lang.Boolean getRecursive() { + return recursive; + } + + /** Optional. If true, descends into subdirectories. Results are breadth-first. */ + public ListArtifacts setRecursive(java.lang.Boolean recursive) { + this.recursive = recursive; + return this; + } + @Override + public ListArtifacts set(String parameterName, Object value) { + return (ListArtifacts) super.set(parameterName, value); + } + } /** - * Cancels a BatchPredictionJob. Starts asynchronous cancellation on the BatchPredictionJob. The - * server makes the best effort to cancel the job, but success is not guaranteed. Clients can use - * JobService.GetBatchPredictionJob or other methods to check whether the cancellation succeeded - * or whether the job completed despite cancellation. On a successful cancellation, the - * BatchPredictionJob is not deleted;instead its BatchPredictionJob.state is set to `CANCELLED`. - * Any files already outputted by the job are not deleted. + * Updates a task's mutable fields (e.g. schedule, priority, title). Typically allowed while the + * task is IDLE. * - * Create a request for the method "batchPredictionJobs.cancel". + * Create a request for the method "tasks.patch". * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. - *

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

+ * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param name Required. The name of the BatchPredictionJob to cancel. Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest} - * @since 1.13 + * @param name Identifier. Resource name of the task. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Task} + * @return the request */ - protected Cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/batchPredictionJobs/[^/]+$"); - } + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Task content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + public class Patch extends AiplatformRequest { - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } + /** + * Updates a task's mutable fields (e.g. schedule, priority, title). Typically allowed while the + * task is IDLE. + * + * Create a request for the method "tasks.patch". + * + * This request holds the parameters needed by the the aiplatform 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 task. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Task} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Task content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Task.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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - /** - * Required. The name of the BatchPredictionJob to cancel. Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - /** Required. The name of the BatchPredictionJob to cancel. Format: - `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - */ - public java.lang.String getName() { - return name; - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - /** - * Required. The name of the BatchPredictionJob to cancel. Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - */ - public Cancel setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } - this.name = name; - return this; - } - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); - } - } - /** - * Creates a BatchPredictionJob. A BatchPredictionJob once created will right away be attempted to - * start. - * - * Create a request for the method "batchPredictionJobs.create". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation. - * - * @param parent Required. The resource name of the Location to create the BatchPredictionJob in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchPredictionJob} - * @return the request - */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchPredictionJob content) throws java.io.IOException { - Create result = new Create(parent, content); - initialize(result); - return result; - } + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } - public class Create extends AiplatformRequest { + /** Identifier. Resource name of the task. */ + @com.google.api.client.util.Key + private java.lang.String name; - private static final String REST_PATH = "v1beta1/{+parent}/batchPredictionJobs"; + /** Identifier. Resource name of the task. + */ + public java.lang.String getName() { + return name; + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** Identifier. Resource name of the task. */ + 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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + this.name = name; + return this; + } + + /** Required. The list of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. The list of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Required. The list of fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } /** - * Creates a BatchPredictionJob. A BatchPredictionJob once created will right away be attempted to - * start. + * Resumes a suspended task, transitioning it back to an active state (WORKING or QUEUED). * - * Create a request for the method "batchPredictionJobs.create". + * Create a request for the method "tasks.resume". * - * This request holds the parameters needed by the the aiplatform 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.

+ * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Resume#execute()} method to invoke the remote operation. * - * @param parent Required. The resource name of the Location to create the BatchPredictionJob in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchPredictionJob} - * @since 1.13 + * @param name Required. The name of the task to resume. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ResumeTaskRequest} + * @return the request */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchPredictionJob content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchPredictionJob.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/[^/]+$"); - } + public Resume resume(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ResumeTaskRequest content) throws java.io.IOException { + Resume result = new Resume(name, content); + initialize(result); + return result; } - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } + public class Resume extends AiplatformRequest { - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}:resume"; - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } + /** + * Resumes a suspended task, transitioning it back to an active state (WORKING or QUEUED). + * + * Create a request for the method "tasks.resume". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Resume#execute()} method to invoke the remote operation. + *

{@link + * Resume#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 task to resume. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ResumeTaskRequest} + * @since 1.13 + */ + protected Resume(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ResumeTaskRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Task.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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + } - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } + @Override + public Resume set$Xgafv(java.lang.String $Xgafv) { + return (Resume) super.set$Xgafv($Xgafv); + } - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } + @Override + public Resume setAccessToken(java.lang.String accessToken) { + return (Resume) super.setAccessToken(accessToken); + } - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } + @Override + public Resume setAlt(java.lang.String alt) { + return (Resume) super.setAlt(alt); + } - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } + @Override + public Resume setCallback(java.lang.String callback) { + return (Resume) super.setCallback(callback); + } - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } + @Override + public Resume setFields(java.lang.String fields) { + return (Resume) super.setFields(fields); + } - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } + @Override + public Resume setKey(java.lang.String key) { + return (Resume) super.setKey(key); + } - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } + @Override + public Resume setOauthToken(java.lang.String oauthToken) { + return (Resume) super.setOauthToken(oauthToken); + } - /** - * Required. The resource name of the Location to create the BatchPredictionJob in. - * Format: `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Resume setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Resume) super.setPrettyPrint(prettyPrint); + } - /** Required. The resource name of the Location to create the BatchPredictionJob in. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Resume setQuotaUser(java.lang.String quotaUser) { + return (Resume) super.setQuotaUser(quotaUser); + } - /** - * Required. The resource name of the Location to create the BatchPredictionJob in. - * 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/[^/]+$"); + @Override + public Resume setUploadType(java.lang.String uploadType) { + return (Resume) super.setUploadType(uploadType); } - this.parent = parent; - return this; - } - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a BatchPredictionJob. Can only be called on jobs that already finished. - * - * Create a request for the method "batchPredictionJobs.delete". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the BatchPredictionJob resource to be deleted. Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - * @return the request - */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } + @Override + public Resume setUploadProtocol(java.lang.String uploadProtocol) { + return (Resume) super.setUploadProtocol(uploadProtocol); + } - public class Delete extends AiplatformRequest { + /** + * Required. The name of the task to resume. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + @com.google.api.client.util.Key + private java.lang.String name; - private static final String REST_PATH = "v1beta1/{+name}"; + /** Required. The name of the task to resume. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + public java.lang.String getName() { + return name; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); + /** + * Required. The name of the task to resume. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + public Resume 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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Resume set(String parameterName, Object value) { + return (Resume) super.set(parameterName, value); + } + } /** - * Deletes a BatchPredictionJob. Can only be called on jobs that already finished. + * Read-only server-stream of a task's execution by id: trajectory steps and status changes, + * resumable from a step sequence number. Unlike CreateTaskBidiStream, it does not accept client + * inputs -- use it to observe or replay a task (the trajectory is not stored on the Task resource). + * This is the entry point for *observers*: it tails the trajectory from interaction storage without + * restoring the runtime actor, so it adds no restore latency and continues to follow output that a + * participant driving the task on a CreateTaskBidiStream connection produces. Observe-only clients + * should prefer this over a subscribe_task connect on CreateTaskBidiStream, which restores the + * actor and is meant for clients that will send input. * - * Create a request for the method "batchPredictionJobs.delete". + * Create a request for the method "tasks.stream". * - * This request holds the parameters needed by the the aiplatform 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.

+ * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Stream#execute()} method to invoke the remote operation. * - * @param name Required. The name of the BatchPredictionJob resource to be deleted. Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - * @since 1.13 + * @param name Required. The name of the task to stream. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @return the request */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/batchPredictionJobs/[^/]+$"); - } + public Stream stream(java.lang.String name) throws java.io.IOException { + Stream result = new Stream(name); + initialize(result); + return result; } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + public class Stream extends AiplatformRequest { - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}:stream"; - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + /** + * Read-only server-stream of a task's execution by id: trajectory steps and status changes, + * resumable from a step sequence number. Unlike CreateTaskBidiStream, it does not accept client + * inputs -- use it to observe or replay a task (the trajectory is not stored on the Task + * resource). This is the entry point for *observers*: it tails the trajectory from interaction + * storage without restoring the runtime actor, so it adds no restore latency and continues to + * follow output that a participant driving the task on a CreateTaskBidiStream connection + * produces. Observe-only clients should prefer this over a subscribe_task connect on + * CreateTaskBidiStream, which restores the actor and is meant for clients that will send input. + * + * Create a request for the method "tasks.stream". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Stream#execute()} method to invoke the remote operation. + *

{@link + * Stream#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 task to stream. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @since 1.13 + */ + protected Stream(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1TaskServerEventBatch.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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Stream set$Xgafv(java.lang.String $Xgafv) { + return (Stream) super.set$Xgafv($Xgafv); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Stream setAccessToken(java.lang.String accessToken) { + return (Stream) super.setAccessToken(accessToken); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Stream setAlt(java.lang.String alt) { + return (Stream) super.setAlt(alt); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Stream setCallback(java.lang.String callback) { + return (Stream) super.setCallback(callback); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Stream setFields(java.lang.String fields) { + return (Stream) super.setFields(fields); + } - /** - * Required. The name of the BatchPredictionJob resource to be deleted. Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Stream setKey(java.lang.String key) { + return (Stream) super.setKey(key); + } - /** Required. The name of the BatchPredictionJob resource to be deleted. Format: - `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - */ - public java.lang.String getName() { - return name; - } + @Override + public Stream setOauthToken(java.lang.String oauthToken) { + return (Stream) super.setOauthToken(oauthToken); + } - /** - * Required. The name of the BatchPredictionJob resource to be deleted. Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - */ - 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/[^/]+/batchPredictionJobs/[^/]+$"); + @Override + public Stream setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Stream) super.setPrettyPrint(prettyPrint); } - this.name = name; - return this; - } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets a BatchPredictionJob - * - * Create a request for the method "batchPredictionJobs.get". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the BatchPredictionJob resource. Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } + @Override + public Stream setQuotaUser(java.lang.String quotaUser) { + return (Stream) super.setQuotaUser(quotaUser); + } - public class Get extends AiplatformRequest { + @Override + public Stream setUploadType(java.lang.String uploadType) { + return (Stream) super.setUploadType(uploadType); + } - private static final String REST_PATH = "v1beta1/{+name}"; + @Override + public Stream setUploadProtocol(java.lang.String uploadProtocol) { + return (Stream) super.setUploadProtocol(uploadProtocol); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); + /** + * Required. The name of the task to stream. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the task to stream. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the task to stream. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + public Stream 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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Opaque resume cursor, as issued on TaskServerEvent.continuation_token. + * Replay continues immediately after the event that carried the token. Takes precedence + * over next_step_seq_num when both are set. A token this stream cannot redeem is + * rejected with INVALID_ARGUMENT rather than silently falling back to the numeric + * cursor, so a client cannot mistake a rejected resume for a replay from the start; + * reconnect without a token instead. That covers a malformed token, one issued by a + * connection whose delta streaming differs from this one's (see + * TaskSpec.delta_streaming), one issued while the server derived task status + * differently, and any token on a recurring task. A token names a position in the task + * it was issued on; send it only to that task. It carries no task id, so a token from + * another task is not rejected, and what it returns is undefined. A token whose + * position is past the events stored so far is not an error either, because storage can + * trail the live stream that issued the token: the replay skips everything up to that + * position, so a snapshot may return no events. + */ + @com.google.api.client.util.Key + private java.lang.String continuationToken; + + /** Optional. Opaque resume cursor, as issued on TaskServerEvent.continuation_token. Replay continues + immediately after the event that carried the token. Takes precedence over next_step_seq_num when + both are set. A token this stream cannot redeem is rejected with INVALID_ARGUMENT rather than + silently falling back to the numeric cursor, so a client cannot mistake a rejected resume for a + replay from the start; reconnect without a token instead. That covers a malformed token, one issued + by a connection whose delta streaming differs from this one's (see TaskSpec.delta_streaming), one + issued while the server derived task status differently, and any token on a recurring task. A token + names a position in the task it was issued on; send it only to that task. It carries no task id, so + a token from another task is not rejected, and what it returns is undefined. A token whose position + is past the events stored so far is not an error either, because storage can trail the live stream + that issued the token: the replay skips everything up to that position, so a snapshot may return no + events. + */ + public java.lang.String getContinuationToken() { + return continuationToken; + } + + /** + * Optional. Opaque resume cursor, as issued on TaskServerEvent.continuation_token. + * Replay continues immediately after the event that carried the token. Takes precedence + * over next_step_seq_num when both are set. A token this stream cannot redeem is + * rejected with INVALID_ARGUMENT rather than silently falling back to the numeric + * cursor, so a client cannot mistake a rejected resume for a replay from the start; + * reconnect without a token instead. That covers a malformed token, one issued by a + * connection whose delta streaming differs from this one's (see + * TaskSpec.delta_streaming), one issued while the server derived task status + * differently, and any token on a recurring task. A token names a position in the task + * it was issued on; send it only to that task. It carries no task id, so a token from + * another task is not rejected, and what it returns is undefined. A token whose + * position is past the events stored so far is not an error either, because storage can + * trail the live stream that issued the token: the replay skips everything up to that + * position, so a snapshot may return no events. + */ + public Stream setContinuationToken(java.lang.String continuationToken) { + this.continuationToken = continuationToken; + return this; + } + + /** + * Optional. The next step sequence number to resume from. When zero, streams from the + * beginning of the available trajectory. + */ + @com.google.api.client.util.Key + private java.lang.Long nextStepSeqNum; + + /** Optional. The next step sequence number to resume from. When zero, streams from the beginning of + the available trajectory. + */ + public java.lang.Long getNextStepSeqNum() { + return nextStepSeqNum; + } + /** + * Optional. The next step sequence number to resume from. When zero, streams from the + * beginning of the available trajectory. + */ + public Stream setNextStepSeqNum(java.lang.Long nextStepSeqNum) { + this.nextStepSeqNum = nextStepSeqNum; + return this; + } + + /** + * Optional. If true, streams only the events produced up to the current point in time + * and terminates the stream once all existing events are sent, rather than tailing and + * waiting for future events. + */ + @com.google.api.client.util.Key + private java.lang.Boolean snapshot; + + /** Optional. If true, streams only the events produced up to the current point in time and terminates + the stream once all existing events are sent, rather than tailing and waiting for future events. + */ + public java.lang.Boolean getSnapshot() { + return snapshot; + } + + /** + * Optional. If true, streams only the events produced up to the current point in time + * and terminates the stream once all existing events are sent, rather than tailing and + * waiting for future events. + */ + public Stream setSnapshot(java.lang.Boolean snapshot) { + this.snapshot = snapshot; + return this; + } + + @Override + public Stream set(String parameterName, Object value) { + return (Stream) super.set(parameterName, value); + } + } /** - * Gets a BatchPredictionJob + * Suspends a task, pausing its active turn or scheduling loop and transitioning the status to + * SUSPENDED. The underlying runtime session remains resumable. * - * Create a request for the method "batchPredictionJobs.get". + * Create a request for the method "tasks.suspend". * - * This request holds the parameters needed by the the aiplatform 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.

+ * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Suspend#execute()} method to invoke the remote operation. * - * @param name Required. The name of the BatchPredictionJob resource. Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - * @since 1.13 + * @param name Required. The name of the task to suspend. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SuspendTaskRequest} + * @return the request */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchPredictionJob.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/[^/]+/batchPredictionJobs/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Suspend suspend(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SuspendTaskRequest content) throws java.io.IOException { + Suspend result = new Suspend(name, content); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + public class Suspend extends AiplatformRequest { - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + private static final String REST_PATH = "v1beta1/{+name}:suspend"; - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + /** + * Suspends a task, pausing its active turn or scheduling loop and transitioning the status to + * SUSPENDED. The underlying runtime session remains resumable. + * + * Create a request for the method "tasks.suspend". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Suspend#execute()} method to invoke the remote operation. + *

{@link + * Suspend#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 task to suspend. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SuspendTaskRequest} + * @since 1.13 + */ + protected Suspend(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SuspendTaskRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Suspend set$Xgafv(java.lang.String $Xgafv) { + return (Suspend) super.set$Xgafv($Xgafv); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Suspend setAccessToken(java.lang.String accessToken) { + return (Suspend) super.setAccessToken(accessToken); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Suspend setAlt(java.lang.String alt) { + return (Suspend) super.setAlt(alt); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Suspend setCallback(java.lang.String callback) { + return (Suspend) super.setCallback(callback); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Suspend setFields(java.lang.String fields) { + return (Suspend) super.setFields(fields); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public Suspend setKey(java.lang.String key) { + return (Suspend) super.setKey(key); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Suspend setOauthToken(java.lang.String oauthToken) { + return (Suspend) super.setOauthToken(oauthToken); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Suspend setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Suspend) super.setPrettyPrint(prettyPrint); + } - /** - * Required. The name of the BatchPredictionJob resource. Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Suspend setQuotaUser(java.lang.String quotaUser) { + return (Suspend) super.setQuotaUser(quotaUser); + } - /** Required. The name of the BatchPredictionJob resource. Format: - `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - */ - public java.lang.String getName() { - return name; - } + @Override + public Suspend setUploadType(java.lang.String uploadType) { + return (Suspend) super.setUploadType(uploadType); + } - /** - * Required. The name of the BatchPredictionJob resource. Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - */ - 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/[^/]+/batchPredictionJobs/[^/]+$"); + @Override + public Suspend setUploadProtocol(java.lang.String uploadProtocol) { + return (Suspend) super.setUploadProtocol(uploadProtocol); } - this.name = name; - return this; - } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists BatchPredictionJobs in a Location. - * - * Create a request for the method "batchPredictionJobs.list". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. The resource name of the Location to list the BatchPredictionJobs from. 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; - } + /** + * Required. The name of the task to suspend. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + @com.google.api.client.util.Key + private java.lang.String name; - public class List extends AiplatformRequest { + /** Required. The name of the task to suspend. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + public java.lang.String getName() { + return name; + } - private static final String REST_PATH = "v1beta1/{+parent}/batchPredictionJobs"; + /** + * Required. The name of the task to suspend. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + public Suspend 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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + this.name = name; + return this; + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + @Override + public Suspend set(String parameterName, Object value) { + return (Suspend) super.set(parameterName, value); + } + } + /** + * Uploads a file. The file is sent as media: post it to this method's URL with an `/upload` prefix, + * e.g. `/upload/v1beta1/{name}:upload`, carrying `path` as request metadata and the file's bytes as + * the media content. The task must not be in a terminal state, and an existing file at `path` is + * replaced. At most 10 GiB. + * + * Create a request for the method "tasks.upload". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Upload#execute()} method to invoke the remote operation. + * + * @param name Required. The task or collaborative project to upload to. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadArtifactRequest} + * @return the request + */ + public Upload upload(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadArtifactRequest content) throws java.io.IOException { + Upload result = new Upload(name, content); + initialize(result); + return result; + } /** - * Lists BatchPredictionJobs in a Location. + * Uploads a file. The file is sent as media: post it to this method's URL with an `/upload` prefix, + * e.g. `/upload/v1beta1/{name}:upload`, carrying `path` as request metadata and the file's bytes as + * the media content. The task must not be in a terminal state, and an existing file at `path` is + * replaced. At most 10 GiB. * - * Create a request for the method "batchPredictionJobs.list". + * Create a request for the method "tasks.upload". * * This request holds the parameters needed by the the aiplatform 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 Upload#execute()} method to invoke the remote operation. * - * @param parent Required. The resource name of the Location to list the BatchPredictionJobs from. Format: - * `projects/{project}/locations/{location}` - * @since 1.13 + *

+ * This method should be used for uploading media content. + *

+ * + * @param name Required. The task or collaborative project to upload to. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadArtifactRequest} media metadata or {@code null} if none + * @param mediaContent The media HTTP content. + * @return the request + * @throws java.io.IOException if the initialization of the request fails */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse.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/[^/]+$"); - } + public Upload upload(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadArtifactRequest content, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { + Upload result = new Upload(name, content, mediaContent); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class Upload extends AiplatformRequest { - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + private static final String REST_PATH = "v1beta1/{+name}:upload"; - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + /** + * Uploads a file. The file is sent as media: post it to this method's URL with an `/upload` + * prefix, e.g. `/upload/v1beta1/{name}:upload`, carrying `path` as request metadata and the + * file's bytes as the media content. The task must not be in a terminal state, and an existing + * file at `path` is replaced. At most 10 GiB. + * + * Create a request for the method "tasks.upload". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. + *

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

+ * + * @param name Required. The task or collaborative project to upload to. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadArtifactRequest} + * @since 1.13 + */ + protected Upload(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadArtifactRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadArtifactResponse.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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + /** + * Uploads a file. The file is sent as media: post it to this method's URL with an `/upload` + * prefix, e.g. `/upload/v1beta1/{name}:upload`, carrying `path` as request metadata and the + * file's bytes as the media content. The task must not be in a terminal state, and an existing + * file at `path` is replaced. At most 10 GiB. + * + * Create a request for the method "tasks.upload". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. + *

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

+ * + *

+ * This constructor should be used for uploading media content. + *

+ * + * @param name Required. The task or collaborative project to upload to. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadArtifactRequest} media metadata or {@code null} if none + * @param mediaContent The media HTTP content. + * @since 1.13 + */ + protected Upload(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadArtifactRequest content, com.google.api.client.http.AbstractInputStreamContent mediaContent) { + super(Aiplatform.this, "POST", "/upload/" + getServicePath() + REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadArtifactResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified."); + initializeMediaUpload(mediaContent); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Upload set$Xgafv(java.lang.String $Xgafv) { + return (Upload) super.set$Xgafv($Xgafv); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Upload setAccessToken(java.lang.String accessToken) { + return (Upload) super.setAccessToken(accessToken); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Upload setAlt(java.lang.String alt) { + return (Upload) super.setAlt(alt); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Upload setCallback(java.lang.String callback) { + return (Upload) super.setCallback(callback); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Upload setFields(java.lang.String fields) { + return (Upload) super.setFields(fields); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Upload setKey(java.lang.String key) { + return (Upload) super.setKey(key); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public Upload setOauthToken(java.lang.String oauthToken) { + return (Upload) super.setOauthToken(oauthToken); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public Upload setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Upload) super.setPrettyPrint(prettyPrint); + } - /** - * Required. The resource name of the Location to list the BatchPredictionJobs from. - * Format: `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Upload setQuotaUser(java.lang.String quotaUser) { + return (Upload) super.setQuotaUser(quotaUser); + } - /** Required. The resource name of the Location to list the BatchPredictionJobs from. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Upload setUploadType(java.lang.String uploadType) { + return (Upload) super.setUploadType(uploadType); + } - /** - * Required. The resource name of the Location to list the BatchPredictionJobs from. - * 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/[^/]+$"); + @Override + public Upload setUploadProtocol(java.lang.String uploadProtocol) { + return (Upload) super.setUploadProtocol(uploadProtocol); } - this.parent = parent; - return this; - } - /** - * The standard list filter. Supported fields: * `display_name` supports `=`, `!=` - * comparisons, and `:` wildcard. * `model_display_name` supports `=`, `!=` comparisons. * - * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`<`, - * `<=`,`>`, `>=` comparisons. `create_time` must be in RFC 3339 format. * `labels` - * supports general map functions that is: `labels.key=value` - key:value equality - * `labels.key:* - key existence Some examples of using the filter are: * - * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * `state!="JOB_STATE_FAILED" - * OR display_name="my_job"` * `NOT display_name="my_job"` * - * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` - */ - @com.google.api.client.util.Key - private java.lang.String filter; + /** + * Required. The task or collaborative project to upload to. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and - `:` wildcard. * `model_display_name` supports `=`, `!=` comparisons. * `state` supports `=`, `!=` - comparisons. * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must - be in RFC 3339 format. * `labels` supports general map functions that is: `labels.key=value` - - key:value equality `labels.key:* - key existence Some examples of using the filter are: * - `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * `state!="JOB_STATE_FAILED" OR - display_name="my_job"` * `NOT display_name="my_job"` * `create_time>"2021-05-18T00:00:00Z"` * - `labels.keyA=valueA` * `labels.keyB:*` - */ - public java.lang.String getFilter() { - return filter; - } + /** Required. The task or collaborative project to upload to. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The task or collaborative project to upload to. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + public Upload 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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Upload set(String parameterName, Object value) { + return (Upload) super.set(parameterName, value); + } + } /** - * The standard list filter. Supported fields: * `display_name` supports `=`, `!=` - * comparisons, and `:` wildcard. * `model_display_name` supports `=`, `!=` comparisons. * - * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`<`, - * `<=`,`>`, `>=` comparisons. `create_time` must be in RFC 3339 format. * `labels` - * supports general map functions that is: `labels.key=value` - key:value equality - * `labels.key:* - key existence Some examples of using the filter are: * - * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * `state!="JOB_STATE_FAILED" - * OR display_name="my_job"` * `NOT display_name="my_job"` * - * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` + * Uploads a file into a task's workspace. A client-streaming RPC: the request body is the file's + * raw bytes, relayed to storage a chunk at a time, so neither ESF nor this server holds the whole + * file. A broken connection restarts the upload from zero. `path` must be an absolute path under + * `/workspace/userdata/`. The task must not be in a terminal state. An existing file at `path` is + * replaced. At most 1 GiB. + * + * Create a request for the method "tasks.uploadArtifact". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link UploadArtifact#execute()} method to invoke the remote operation. + * + * @param task Required. The task to upload into. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody} + * @return the request */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; + public UploadArtifact uploadArtifact(java.lang.String task, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) throws java.io.IOException { + UploadArtifact result = new UploadArtifact(task, content); + initialize(result); + return result; } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + public class UploadArtifact extends AiplatformRequest { - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + private static final String REST_PATH = "v1beta1/{+task}:uploadArtifact"; - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + private final java.util.regex.Pattern TASK_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); - /** - * The standard list page token. Typically obtained via - * ListBatchPredictionJobsResponse.next_page_token of the previous - * JobService.ListBatchPredictionJobs call. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** + * Uploads a file into a task's workspace. A client-streaming RPC: the request body is the file's + * raw bytes, relayed to storage a chunk at a time, so neither ESF nor this server holds the whole + * file. A broken connection restarts the upload from zero. `path` must be an absolute path under + * `/workspace/userdata/`. The task must not be in a terminal state. An existing file at `path` is + * replaced. At most 1 GiB. + * + * Create a request for the method "tasks.uploadArtifact". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link UploadArtifact#execute()} method to invoke the remote + * operation.

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

+ * + * @param task Required. The task to upload into. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody} + * @since 1.13 + */ + protected UploadArtifact(java.lang.String task, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1TaskArtifactFile.class); + this.task = com.google.api.client.util.Preconditions.checkNotNull(task, "Required parameter task must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TASK_PATTERN.matcher(task).matches(), + "Parameter task must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + } - /** The standard list page token. Typically obtained via - ListBatchPredictionJobsResponse.next_page_token of the previous JobService.ListBatchPredictionJobs - call. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public UploadArtifact set$Xgafv(java.lang.String $Xgafv) { + return (UploadArtifact) super.set$Xgafv($Xgafv); + } - /** - * The standard list page token. Typically obtained via - * ListBatchPredictionJobsResponse.next_page_token of the previous - * JobService.ListBatchPredictionJobs call. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public UploadArtifact setAccessToken(java.lang.String accessToken) { + return (UploadArtifact) super.setAccessToken(accessToken); + } - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; + @Override + public UploadArtifact setAlt(java.lang.String alt) { + return (UploadArtifact) super.setAlt(alt); + } - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } + @Override + public UploadArtifact setCallback(java.lang.String callback) { + return (UploadArtifact) super.setCallback(callback); + } - /** Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = readMask; - return this; - } + @Override + public UploadArtifact setFields(java.lang.String fields) { + return (UploadArtifact) super.setFields(fields); + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } + @Override + public UploadArtifact setKey(java.lang.String key) { + return (UploadArtifact) super.setKey(key); + } - } - /** - * An accessor for creating requests from the CachedContents collection. - * - *

The typical use is:

- *
-       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.CachedContents.List request = aiplatform.cachedContents().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public CachedContents cachedContents() { - return new CachedContents(); - } + @Override + public UploadArtifact setOauthToken(java.lang.String oauthToken) { + return (UploadArtifact) super.setOauthToken(oauthToken); + } - /** - * The "cachedContents" collection of methods. - */ - public class CachedContents { + @Override + public UploadArtifact setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UploadArtifact) super.setPrettyPrint(prettyPrint); + } - /** - * Creates cached content, this call will initialize the cached content in the data storage, and - * users need to pay for the cache data storage. - * - * Create a request for the method "cachedContents.create". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation. - * - * @param parent Required. The parent resource where the cached content will be created - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent} - * @return the request - */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent content) throws java.io.IOException { - Create result = new Create(parent, content); - initialize(result); - return result; - } + @Override + public UploadArtifact setQuotaUser(java.lang.String quotaUser) { + return (UploadArtifact) super.setQuotaUser(quotaUser); + } - public class Create extends AiplatformRequest { + @Override + public UploadArtifact setUploadType(java.lang.String uploadType) { + return (UploadArtifact) super.setUploadType(uploadType); + } - private static final String REST_PATH = "v1beta1/{+parent}/cachedContents"; + @Override + public UploadArtifact setUploadProtocol(java.lang.String uploadProtocol) { + return (UploadArtifact) super.setUploadProtocol(uploadProtocol); + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** + * Required. The task to upload into. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + @com.google.api.client.util.Key + private java.lang.String task; - /** - * Creates cached content, this call will initialize the cached content in the data storage, and - * users need to pay for the cache data storage. - * - * Create a request for the method "cachedContents.create". - * - * This request holds the parameters needed by the the aiplatform 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 parent resource where the cached content will be created - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent.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/[^/]+$"); + /** Required. The task to upload into. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + public java.lang.String getTask() { + return task; } - } - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } + /** + * Required. The task to upload into. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + public UploadArtifact setTask(java.lang.String task) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TASK_PATTERN.matcher(task).matches(), + "Parameter task must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + this.task = task; + return this; + } - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } + /** + * Required. Absolute destination path, e.g. "/workspace/userdata/input.csv". Must be + * under "/workspace/userdata/" and at most 1024 characters; relative paths and paths + * containing a ".." segment are rejected with INVALID_ARGUMENT. + */ + @com.google.api.client.util.Key + private java.lang.String path; - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } + /** Required. Absolute destination path, e.g. "/workspace/userdata/input.csv". Must be under + "/workspace/userdata/" and at most 1024 characters; relative paths and paths containing a ".." + segment are rejected with INVALID_ARGUMENT. + */ + public java.lang.String getPath() { + return path; + } - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } + /** + * Required. Absolute destination path, e.g. "/workspace/userdata/input.csv". Must be + * under "/workspace/userdata/" and at most 1024 characters; relative paths and paths + * containing a ".." segment are rejected with INVALID_ARGUMENT. + */ + public UploadArtifact setPath(java.lang.String path) { + this.path = path; + return this; + } - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + @Override + public UploadArtifact set(String parameterName, Object value) { + return (UploadArtifact) super.set(parameterName, value); + } } - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + /** + * An accessor for creating requests from the Artifacts collection. + * + *

The typical use is:

+ *
+           *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+           *   {@code Aiplatform.Artifacts.List request = aiplatform.artifacts().list(parameters ...)}
+           * 
+ * + * @return the resource collection + */ + public Artifacts artifacts() { + return new Artifacts(); } - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } + /** + * The "artifacts" collection of methods. + */ + public class Artifacts { - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } + /** + * Adds a file, folder or site stored in Google Drive, OneDrive, SharePoint or another third-party + * store as an artifact. The service persists `link_json_metadata` to Cloud Storage as a JSON + * metadata reference (a `.link.json` file), and links it to a parent resource: a task, named by + * `task`, or a collaborative project, named by `collaborative_project`. This method is idempotent + * with respect to the linked entity, identified by `link_json_metadata.provider` and + * `link_json_metadata.source_artifact_id`, or `link_json_metadata.uri` when `source_artifact_id` is + * unset: adding an entity that the parent already has does not add another artifact, and returns + * the same `artifact_id`. + * + * Create a request for the method "artifacts.add". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Add#execute()} method to invoke the remote operation. + * + * @param task Optional. The task to link the file to. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} Exactly one of `task` + * and `collaborative_project` must be set. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddArtifactRequest} + * @return the request + */ + public Add add(java.lang.String task, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddArtifactRequest content) throws java.io.IOException { + Add result = new Add(task, content); + initialize(result); + return result; + } - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } + public class Add extends AiplatformRequest { - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } + private static final String REST_PATH = "v1beta1/{+task}/artifacts:add"; - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } + private final java.util.regex.Pattern TASK_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); - /** Required. The parent resource where the cached content will be created */ - @com.google.api.client.util.Key - private java.lang.String parent; + /** + * Adds a file, folder or site stored in Google Drive, OneDrive, SharePoint or another third-party + * store as an artifact. The service persists `link_json_metadata` to Cloud Storage as a JSON + * metadata reference (a `.link.json` file), and links it to a parent resource: a task, named by + * `task`, or a collaborative project, named by `collaborative_project`. This method is idempotent + * with respect to the linked entity, identified by `link_json_metadata.provider` and + * `link_json_metadata.source_artifact_id`, or `link_json_metadata.uri` when `source_artifact_id` + * is unset: adding an entity that the parent already has does not add another artifact, and + * returns the same `artifact_id`. + * + * Create a request for the method "artifacts.add". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Add#execute()} method to invoke the remote operation.

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

+ * + * @param task Optional. The task to link the file to. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} Exactly one of `task` + * and `collaborative_project` must be set. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddArtifactRequest} + * @since 1.13 + */ + protected Add(java.lang.String task, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddArtifactRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddArtifactResponse.class); + this.task = com.google.api.client.util.Preconditions.checkNotNull(task, "Required parameter task must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TASK_PATTERN.matcher(task).matches(), + "Parameter task must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + } - /** Required. The parent resource where the cached content will be created - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Add set$Xgafv(java.lang.String $Xgafv) { + return (Add) super.set$Xgafv($Xgafv); + } - /** Required. The parent resource where the cached content will be created */ - 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; - } + @Override + public Add setAccessToken(java.lang.String accessToken) { + return (Add) super.setAccessToken(accessToken); + } - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes cached content - * - * Create a request for the method "cachedContents.delete". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. The resource name referring to the cached content - * @return the request - */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } + @Override + public Add setAlt(java.lang.String alt) { + return (Add) super.setAlt(alt); + } - public class Delete extends AiplatformRequest { + @Override + public Add setCallback(java.lang.String callback) { + return (Add) super.setCallback(callback); + } - private static final String REST_PATH = "v1beta1/{+name}"; + @Override + public Add setFields(java.lang.String fields) { + return (Add) super.setFields(fields); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$"); + @Override + public Add setKey(java.lang.String key) { + return (Add) super.setKey(key); + } - /** - * Deletes cached content - * - * Create a request for the method "cachedContents.delete". - * - * This request holds the parameters needed by the the aiplatform 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. The resource name referring to the cached content - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/cachedContents/[^/]+$"); - } - } + @Override + public Add setOauthToken(java.lang.String oauthToken) { + return (Add) super.setOauthToken(oauthToken); + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @Override + public Add setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Add) super.setPrettyPrint(prettyPrint); + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + @Override + public Add setQuotaUser(java.lang.String quotaUser) { + return (Add) super.setQuotaUser(quotaUser); + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + @Override + public Add setUploadType(java.lang.String uploadType) { + return (Add) super.setUploadType(uploadType); + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + @Override + public Add setUploadProtocol(java.lang.String uploadProtocol) { + return (Add) super.setUploadProtocol(uploadProtocol); + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + /** + * Optional. The task to link the file to. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} Exactly one of + * `task` and `collaborative_project` must be set. + */ + @com.google.api.client.util.Key + private java.lang.String task; - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + /** Optional. The task to link the file to. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} Exactly one of `task` and + `collaborative_project` must be set. + */ + public java.lang.String getTask() { + return task; + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + /** + * Optional. The task to link the file to. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} Exactly one of + * `task` and `collaborative_project` must be set. + */ + public Add setTask(java.lang.String task) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TASK_PATTERN.matcher(task).matches(), + "Parameter task must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + this.task = task; + return this; + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Add set(String parameterName, Object value) { + return (Add) super.set(parameterName, value); + } + } + /** + * Lists the files and directories in a task's workspace. By default only the immediate children of + * `path` are returned; set `recursive` to descend into subdirectories. Entries that match `filter` + * are returned in breadth-first order. While the task's sandbox is running, paths it writes locally + * are read from the sandbox so the listing reflects files not yet synced to storage; otherwise they + * are read from storage. Which one served a request is not visible to the caller. + * + * Create a request for the method "artifacts.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The task or collaborative project whose workspace to list. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + public class List extends AiplatformRequest { - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + private static final String REST_PATH = "v1beta1/{+parent}/artifacts"; - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); - /** Required. The resource name referring to the cached content */ - @com.google.api.client.util.Key - private java.lang.String name; + /** + * Lists the files and directories in a task's workspace. By default only the immediate children + * of `path` are returned; set `recursive` to descend into subdirectories. Entries that match + * `filter` are returned in breadth-first order. While the task's sandbox is running, paths it + * writes locally are read from the sandbox so the listing reflects files not yet synced to + * storage; otherwise they are read from storage. Which one served a request is not visible to the + * caller. + * + * Create a request for the method "artifacts.list". + * + * This request holds the parameters needed by the the aiplatform 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 task or collaborative project whose workspace to list. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListWorkspaceArtifactsResponse.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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + } - /** Required. The resource name referring to the cached content - */ - public java.lang.String getName() { - return name; - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** Required. The resource name referring to the cached content */ - 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/[^/]+/cachedContents/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets cached content configurations - * - * Create a request for the method "cachedContents.get". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name Required. The resource name referring to the cached content - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - public class Get extends AiplatformRequest { + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - private static final String REST_PATH = "v1beta1/{+name}"; + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$"); + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - /** - * Gets cached content configurations - * - * Create a request for the method "cachedContents.get". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

- * - * @param name Required. The resource name referring to the cached content - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent.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/[^/]+/cachedContents/[^/]+$"); - } - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + /** + * Required. The task or collaborative project whose workspace to list. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or projects/{pr + * oject}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + /** Required. The task or collaborative project whose workspace to list. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + public java.lang.String getParent() { + return parent; + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + /** + * Required. The task or collaborative project whose workspace to list. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or projects/{pr + * oject}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + 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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + this.parent = parent; + return this; + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** + * Optional. An AIP-160 filter expression that entries must match, e.g. `type = FILE + * AND mime_type = "image"`. Empty matches every entry. Supported fields: * `type` -- + * `FILE` or `DIRECTORY` (see `TaskArtifactFile.Type`), case-sensitive. * `mime_type` + * -- a media type in double quotes, e.g. `"text/csv"`. `*` is a wildcard, so + * `"image"` matches every image type. Directories have an empty `mime_type`. + * Comparisons use `=` or `!=` and combine with `AND`, `OR`, `NOT` (or `-`) and + * parentheses. A filter that is not valid AIP-160, or that uses another field or + * operator, is rejected with `INVALID_ARGUMENT`. The filter selects which entries are + * returned, not which directories are walked: with `recursive`, `type = FILE` still + * returns the files in subdirectories. + */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** Optional. An AIP-160 filter expression that entries must match, e.g. `type = FILE AND mime_type = + "image"`. Empty matches every entry. Supported fields: * `type` -- `FILE` or `DIRECTORY` (see + `TaskArtifactFile.Type`), case-sensitive. * `mime_type` -- a media type in double quotes, e.g. + `"text/csv"`. `*` is a wildcard, so `"image"` matches every image type. Directories have an empty + `mime_type`. Comparisons use `=` or `!=` and combine with `AND`, `OR`, `NOT` (or `-`) and + parentheses. A filter that is not valid AIP-160, or that uses another field or operator, is + rejected with `INVALID_ARGUMENT`. The filter selects which entries are returned, not which + directories are walked: with `recursive`, `type = FILE` still returns the files in subdirectories. + */ + public java.lang.String getFilter() { + return filter; + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + /** + * Optional. An AIP-160 filter expression that entries must match, e.g. `type = FILE + * AND mime_type = "image"`. Empty matches every entry. Supported fields: * `type` -- + * `FILE` or `DIRECTORY` (see `TaskArtifactFile.Type`), case-sensitive. * `mime_type` + * -- a media type in double quotes, e.g. `"text/csv"`. `*` is a wildcard, so + * `"image"` matches every image type. Directories have an empty `mime_type`. + * Comparisons use `=` or `!=` and combine with `AND`, `OR`, `NOT` (or `-`) and + * parentheses. A filter that is not valid AIP-160, or that uses another field or + * operator, is rejected with `INVALID_ARGUMENT`. The filter selects which entries are + * returned, not which directories are walked: with `recursive`, `type = FILE` still + * returns the files in subdirectories. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + /** + * Optional. The maximum number of entries to return. The service may return fewer + * than this value, including none on a page that is not the last. If unspecified or + * 0, at most 100 are returned. The maximum is 1000; values above 1000 are coerced to + * 1000. A negative value is rejected with `INVALID_ARGUMENT`. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** Required. The resource name referring to the cached content */ - @com.google.api.client.util.Key - private java.lang.String name; + /** Optional. The maximum number of entries to return. The service may return fewer than this value, + including none on a page that is not the last. If unspecified or 0, at most 100 are returned. The + maximum is 1000; values above 1000 are coerced to 1000. A negative value is rejected with + `INVALID_ARGUMENT`. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** Required. The resource name referring to the cached content - */ - public java.lang.String getName() { - return name; - } + /** + * Optional. The maximum number of entries to return. The service may return fewer + * than this value, including none on a page that is not the last. If unspecified or + * 0, at most 100 are returned. The maximum is 1000; values above 1000 are coerced to + * 1000. A negative value is rejected with `INVALID_ARGUMENT`. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** Required. The resource name referring to the cached content */ - 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/[^/]+/cachedContents/[^/]+$"); - } - this.name = name; - return this; - } + /** + * Optional. A page token, received from a previous ListWorkspaceArtifacts call. + * Provide this to retrieve the subsequent page. When paginating, all other fields of + * the request except `page_size` must match the call that provided the page token. + * The workspace is live: the agent can write between pages, so a paged listing is not + * a snapshot. An entry added during the walk may or may not appear, and one removed + * may still be listed and then fail to download. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists cached contents in a project - * - * Create a request for the method "cachedContents.list". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. The parent, which owns this collection of cached contents. - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } + /** Optional. A page token, received from a previous ListWorkspaceArtifacts call. Provide this to + retrieve the subsequent page. When paginating, all other fields of the request except `page_size` + must match the call that provided the page token. The workspace is live: the agent can write + between pages, so a paged listing is not a snapshot. An entry added during the walk may or may not + appear, and one removed may still be listed and then fail to download. + */ + public java.lang.String getPageToken() { + return pageToken; + } - public class List extends AiplatformRequest { + /** + * Optional. A page token, received from a previous ListWorkspaceArtifacts call. + * Provide this to retrieve the subsequent page. When paginating, all other fields of + * the request except `page_size` must match the call that provided the page token. + * The workspace is live: the agent can write between pages, so a paged listing is not + * a snapshot. An entry added during the walk may or may not appear, and one removed + * may still be listed and then fail to download. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - private static final String REST_PATH = "v1beta1/{+parent}/cachedContents"; + /** + * Optional. Absolute path of the directory to list, e.g. `/workspace/userdata`. Must + * be `/workspace` or under it, at most 1024 characters, and not contain a `..` + * segment. Defaults to `/workspace`. + */ + @com.google.api.client.util.Key + private java.lang.String path; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** Optional. Absolute path of the directory to list, e.g. `/workspace/userdata`. Must be `/workspace` + or under it, at most 1024 characters, and not contain a `..` segment. Defaults to `/workspace`. + */ + public java.lang.String getPath() { + return path; + } - /** - * Lists cached contents in a project - * - * Create a request for the method "cachedContents.list". - * - * This request holds the parameters needed by the the aiplatform 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 parent, which owns this collection of cached contents. - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListCachedContentsResponse.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/[^/]+$"); + /** + * Optional. Absolute path of the directory to list, e.g. `/workspace/userdata`. Must + * be `/workspace` or under it, at most 1024 characters, and not contain a `..` + * segment. Defaults to `/workspace`. + */ + public List setPath(java.lang.String path) { + this.path = path; + return this; + } + + /** Optional. If `true`, descends into subdirectories. Results are breadth-first. */ + @com.google.api.client.util.Key + private java.lang.Boolean recursive; + + /** Optional. If `true`, descends into subdirectories. Results are breadth-first. + */ + public java.lang.Boolean getRecursive() { + return recursive; + } + + /** Optional. If `true`, descends into subdirectories. Results are breadth-first. */ + public List setRecursive(java.lang.Boolean recursive) { + this.recursive = recursive; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Returns a file converted for a preview, such as a PDF of a .pptx. A server-streaming RPC. The + * response body is the converted file's bytes, with its media type as the `Content-Type`. The + * server converts the file as it is stored now, on every call, and stores nothing. A PDF asked for + * as a PDF is returned as stored. Fails with `INVALID_ARGUMENT` or `FAILED_PRECONDITION` when the + * file cannot be converted (an unsupported format, too large, or unreadable), with + * `DEADLINE_EXCEEDED` when the conversion takes too long, and with `UNAVAILABLE` when conversion is + * busy or not available; the last two may succeed on a retry. + * + * Create a request for the method "artifacts.preview". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Preview#execute()} method to invoke the remote operation. + * + * @param parent Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @return the request + */ + public Preview preview(java.lang.String parent) throws java.io.IOException { + Preview result = new Preview(parent); + initialize(result); + return result; } - } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class Preview extends AiplatformRequest { - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + private static final String REST_PATH = "v1beta1/{+parent}/artifacts:preview"; - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + /** + * Returns a file converted for a preview, such as a PDF of a .pptx. A server-streaming RPC. The + * response body is the converted file's bytes, with its media type as the `Content-Type`. The + * server converts the file as it is stored now, on every call, and stores nothing. A PDF asked + * for as a PDF is returned as stored. Fails with `INVALID_ARGUMENT` or `FAILED_PRECONDITION` when + * the file cannot be converted (an unsupported format, too large, or unreadable), with + * `DEADLINE_EXCEEDED` when the conversion takes too long, and with `UNAVAILABLE` when conversion + * is busy or not available; the last two may succeed on a retry. + * + * Create a request for the method "artifacts.preview". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Preview#execute()} method to invoke the remote operation. + *

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

+ * + * @param parent Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @since 1.13 + */ + protected Preview(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Preview set$Xgafv(java.lang.String $Xgafv) { + return (Preview) super.set$Xgafv($Xgafv); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Preview setAccessToken(java.lang.String accessToken) { + return (Preview) super.setAccessToken(accessToken); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Preview setAlt(java.lang.String alt) { + return (Preview) super.setAlt(alt); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Preview setCallback(java.lang.String callback) { + return (Preview) super.setCallback(callback); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Preview setFields(java.lang.String fields) { + return (Preview) super.setFields(fields); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public Preview setKey(java.lang.String key) { + return (Preview) super.setKey(key); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public Preview setOauthToken(java.lang.String oauthToken) { + return (Preview) super.setOauthToken(oauthToken); + } - /** Required. The parent, which owns this collection of cached contents. */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Preview setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Preview) super.setPrettyPrint(prettyPrint); + } - /** Required. The parent, which owns this collection of cached contents. - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Preview setQuotaUser(java.lang.String quotaUser) { + return (Preview) super.setQuotaUser(quotaUser); + } - /** Required. The parent, which owns this collection of cached contents. */ - 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; - } + @Override + public Preview setUploadType(java.lang.String uploadType) { + return (Preview) super.setUploadType(uploadType); + } - /** - * Optional. The maximum number of cached contents to return. The service may return fewer - * than this value. If unspecified, some default (under maximum) number of items will be - * returned. The maximum value is 1000; values above 1000 will be coerced to 1000. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public Preview setUploadProtocol(java.lang.String uploadProtocol) { + return (Preview) super.setUploadProtocol(uploadProtocol); + } - /** Optional. The maximum number of cached contents to return. The service may return fewer than this - value. If unspecified, some default (under maximum) number of items will be returned. The maximum - value is 1000; values above 1000 will be coerced to 1000. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + /** + * Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or projects/{pr + * oject}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** - * Optional. The maximum number of cached contents to return. The service may return fewer - * than this value. If unspecified, some default (under maximum) number of items will be - * returned. The maximum value is 1000; values above 1000 will be coerced to 1000. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** Required. The task or collaborative project whose workspace holds the file. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + public java.lang.String getParent() { + return parent; + } - /** - * Optional. A page token, received from a previous `ListCachedContents` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters provided to - * `ListCachedContents` must match the call that provided the page token. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** + * Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or projects/{pr + * oject}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + public Preview 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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + this.parent = parent; + return this; + } - /** Optional. A page token, received from a previous `ListCachedContents` call. Provide this to - retrieve the subsequent page. When paginating, all other parameters provided to - `ListCachedContents` must match the call that provided the page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** + * Required. The media type to convert the file to: * `application/pdf`: the file as a + * PDF, e.g. of a .docx, .pptx or .xlsx. * `application/json`: a spreadsheet, e.g. a + * .xlsx or .csv, as JSON describing its sheets and cells, from which a client draws + * the workbook as a grid. + */ + @com.google.api.client.util.Key + private java.lang.String outputMimeType; - /** - * Optional. A page token, received from a previous `ListCachedContents` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters provided to - * `ListCachedContents` must match the call that provided the page token. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** Required. The media type to convert the file to: * `application/pdf`: the file as a PDF, e.g. of a + .docx, .pptx or .xlsx. * `application/json`: a spreadsheet, e.g. a .xlsx or .csv, as JSON + describing its sheets and cells, from which a client draws the workbook as a grid. + */ + public java.lang.String getOutputMimeType() { + return outputMimeType; + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates cached content configurations - * - * Create a request for the method "cachedContents.patch". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name Immutable. Identifier. The server-generated resource name of the cached content Format: - * projects/{project}/locations/{location}/cachedContents/{cached_content} - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } + /** + * Required. The media type to convert the file to: * `application/pdf`: the file as a + * PDF, e.g. of a .docx, .pptx or .xlsx. * `application/json`: a spreadsheet, e.g. a + * .xlsx or .csv, as JSON describing its sheets and cells, from which a client draws + * the workbook as a grid. + */ + public Preview setOutputMimeType(java.lang.String outputMimeType) { + this.outputMimeType = outputMimeType; + return this; + } - public class Patch extends AiplatformRequest { + /** + * Required. Absolute path of a file in the task's workspace, e.g. + * `/workspace/report.pptx`, or, for a collaborative project, under + * `/workspace/project`, e.g. `/workspace/project/report.pptx`. Must be under + * `/workspace`, at most 1024 characters, and not contain a `..` segment. Accepts + * `TaskArtifactFile.path` as-is. + */ + @com.google.api.client.util.Key + private java.lang.String path; - private static final String REST_PATH = "v1beta1/{+name}"; + /** Required. Absolute path of a file in the task's workspace, e.g. `/workspace/report.pptx`, or, for a + collaborative project, under `/workspace/project`, e.g. `/workspace/project/report.pptx`. Must be + under `/workspace`, at most 1024 characters, and not contain a `..` segment. Accepts + `TaskArtifactFile.path` as-is. + */ + public java.lang.String getPath() { + return path; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$"); + /** + * Required. Absolute path of a file in the task's workspace, e.g. + * `/workspace/report.pptx`, or, for a collaborative project, under + * `/workspace/project`, e.g. `/workspace/project/report.pptx`. Must be under + * `/workspace`, at most 1024 characters, and not contain a `..` segment. Accepts + * `TaskArtifactFile.path` as-is. + */ + public Preview setPath(java.lang.String path) { + this.path = path; + return this; + } - /** - * Updates cached content configurations - * - * Create a request for the method "cachedContents.patch". - * - * This request holds the parameters needed by the the aiplatform 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 Immutable. Identifier. The server-generated resource name of the cached content Format: - * projects/{project}/locations/{location}/cachedContents/{cached_content} - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent content) { - super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent.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/[^/]+/cachedContents/[^/]+$"); + @Override + public Preview set(String parameterName, Object value) { + return (Preview) super.set(parameterName, value); + } + } + /** + * Deletes a file from a task's workspace. `path` must be an absolute path to a file in the task's + * workspace, under `/workspace/`, e.g. `/workspace/userdata/input.csv`. A path outside + * `/workspace/`, including a relative path, or a path with a `..` segment fails with + * `INVALID_ARGUMENT`. A directory path, or a task in a terminal state, fails with + * `FAILED_PRECONDITION`. A missing file fails with `NOT_FOUND` unless `allow_missing` is `true`, in + * which case the call succeeds and changes nothing. + * + * Create a request for the method "artifacts.remove". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Remove#execute()} method to invoke the remote operation. + * + * @param parent Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactRequest} + * @return the request + */ + public Remove remove(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactRequest content) throws java.io.IOException { + Remove result = new Remove(parent, content); + initialize(result); + return result; } - } - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } + public class Remove extends AiplatformRequest { - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+parent}/artifacts:remove"; - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } + /** + * Deletes a file from a task's workspace. `path` must be an absolute path to a file in the task's + * workspace, under `/workspace/`, e.g. `/workspace/userdata/input.csv`. A path outside + * `/workspace/`, including a relative path, or a path with a `..` segment fails with + * `INVALID_ARGUMENT`. A directory path, or a task in a terminal state, fails with + * `FAILED_PRECONDITION`. A missing file fails with `NOT_FOUND` unless `allow_missing` is `true`, + * in which case the call succeeds and changes nothing. + * + * Create a request for the method "artifacts.remove". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Remove#execute()} method to invoke the remote operation. + *

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

+ * + * @param parent Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactRequest} + * @since 1.13 + */ + protected Remove(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactResponse.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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + } - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } + @Override + public Remove set$Xgafv(java.lang.String $Xgafv) { + return (Remove) super.set$Xgafv($Xgafv); + } - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } + @Override + public Remove setAccessToken(java.lang.String accessToken) { + return (Remove) super.setAccessToken(accessToken); + } - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } + @Override + public Remove setAlt(java.lang.String alt) { + return (Remove) super.setAlt(alt); + } - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } + @Override + public Remove setCallback(java.lang.String callback) { + return (Remove) super.setCallback(callback); + } - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } + @Override + public Remove setFields(java.lang.String fields) { + return (Remove) super.setFields(fields); + } - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } + @Override + public Remove setKey(java.lang.String key) { + return (Remove) super.setKey(key); + } - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } + @Override + public Remove setOauthToken(java.lang.String oauthToken) { + return (Remove) super.setOauthToken(oauthToken); + } - /** - * Immutable. Identifier. The server-generated resource name of the cached content Format: - * projects/{project}/locations/{location}/cachedContents/{cached_content} - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Remove setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Remove) super.setPrettyPrint(prettyPrint); + } - /** Immutable. Identifier. The server-generated resource name of the cached content Format: - projects/{project}/locations/{location}/cachedContents/{cached_content} - */ - public java.lang.String getName() { - return name; - } + @Override + public Remove setQuotaUser(java.lang.String quotaUser) { + return (Remove) super.setQuotaUser(quotaUser); + } - /** - * Immutable. Identifier. The server-generated resource name of the cached content Format: - * projects/{project}/locations/{location}/cachedContents/{cached_content} - */ - 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/[^/]+/cachedContents/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Remove setUploadType(java.lang.String uploadType) { + return (Remove) super.setUploadType(uploadType); + } - /** Required. The list of fields to update. */ - @com.google.api.client.util.Key - private String updateMask; + @Override + public Remove setUploadProtocol(java.lang.String uploadProtocol) { + return (Remove) super.setUploadProtocol(uploadProtocol); + } - /** Required. The list of fields to update. - */ - public String getUpdateMask() { - return updateMask; - } + /** + * Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or projects/{pr + * oject}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** Required. The list of fields to update. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } + /** Required. The task or collaborative project whose workspace holds the file. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or projects/{pr + * oject}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + public Remove 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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Remove set(String parameterName, Object value) { + return (Remove) super.set(parameterName, value); + } + } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); } } - } /** - * An accessor for creating requests from the CustomJobs collection. + * An accessor for creating requests from the Apps collection. * *

The typical use is:

*
        *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.CustomJobs.List request = aiplatform.customJobs().list(parameters ...)}
+       *   {@code Aiplatform.Apps.List request = aiplatform.apps().list(parameters ...)}
        * 
* * @return the resource collection */ - public CustomJobs customJobs() { - return new CustomJobs(); + public Apps apps() { + return new Apps(); } /** - * The "customJobs" collection of methods. + * The "apps" collection of methods. */ - public class CustomJobs { + public class Apps { /** - * Cancels a CustomJob. Starts asynchronous cancellation on the CustomJob. The server makes a best - * effort to cancel the job, but success is not guaranteed. Clients can use JobService.GetCustomJob - * or other methods to check whether the cancellation succeeded or whether the job completed despite - * cancellation. On successful cancellation, the CustomJob is not deleted; instead it becomes a job - * with a CustomJob.error value with a google.rpc.Status.code of 1, corresponding to - * `Code.CANCELLED`, and CustomJob.state is set to `CANCELLED`. - * - * Create a request for the method "customJobs.cancel". + * An accessor for creating requests from the Operations collection. * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + *

The typical use is:

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

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

+ * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. * - * @param name Required. The name of the CustomJob to cancel. Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelCustomJobRequest} - * @since 1.13 + * @param name The name of the operation resource to be cancelled. + * @return the request */ - protected Cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelCustomJobRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/customJobs/[^/]+$"); - } - } - - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; } - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } + public class Cancel extends AiplatformRequest { - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } - - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } - - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } - - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } - - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } - - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } - - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } - - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } - - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the CustomJob to cancel. Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the CustomJob to cancel. Format: - `projects/{project}/locations/{location}/customJobs/{custom_job}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the CustomJob to cancel. Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` - */ - public Cancel setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); - } - } - /** - * Creates a CustomJob. A created CustomJob right away will be attempted to be run. - * - * Create a request for the method "customJobs.create". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation. - * - * @param parent Required. The resource name of the Location to create the CustomJob in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CustomJob} - * @return the request - */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CustomJob content) throws java.io.IOException { - Create result = new Create(parent, content); - initialize(result); - return result; - } - - public class Create extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+parent}/customJobs"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - - /** - * Creates a CustomJob. A created CustomJob right away will be attempted to be run. - * - * Create a request for the method "customJobs.create". - * - * This request holds the parameters needed by the the aiplatform 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 resource name of the Location to create the CustomJob in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CustomJob} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CustomJob content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CustomJob.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 resource name of the Location to create the CustomJob in. Format: - * `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The resource name of the Location to create the CustomJob in. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The resource name of the Location to create the CustomJob in. 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; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a CustomJob. - * - * Create a request for the method "customJobs.delete". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the CustomJob resource to be deleted. Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` - * @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 AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$"); - - /** - * Deletes a CustomJob. - * - * Create a request for the method "customJobs.delete". - * - * This request holds the parameters needed by the the aiplatform 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. The name of the CustomJob resource to be deleted. Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/customJobs/[^/]+$"); - } - } - - @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. The name of the CustomJob resource to be deleted. Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the CustomJob resource to be deleted. Format: - `projects/{project}/locations/{location}/customJobs/{custom_job}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the CustomJob resource to be deleted. Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` - */ - 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/[^/]+/customJobs/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets a CustomJob. - * - * Create a request for the method "customJobs.get". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the CustomJob resource. Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` - * @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 AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$"); - - /** - * Gets a CustomJob. - * - * Create a request for the method "customJobs.get". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

- * - * @param name Required. The name of the CustomJob resource. Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CustomJob.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/[^/]+/customJobs/[^/]+$"); - } - } - - @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. The name of the CustomJob resource. Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the CustomJob resource. Format: - `projects/{project}/locations/{location}/customJobs/{custom_job}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the CustomJob resource. Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` - */ - 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/[^/]+/customJobs/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists CustomJobs in a Location. - * - * Create a request for the method "customJobs.list". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. The resource name of the Location to list the CustomJobs from. 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; - } - - public class List extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+parent}/customJobs"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - - /** - * Lists CustomJobs in a Location. - * - * Create a request for the method "customJobs.list". - * - * This request holds the parameters needed by the the aiplatform 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 resource name of the Location to list the CustomJobs from. Format: - * `projects/{project}/locations/{location}` - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListCustomJobsResponse.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. The resource name of the Location to list the CustomJobs from. Format: - * `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The resource name of the Location to list the CustomJobs from. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The resource name of the Location to list the CustomJobs from. 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; - } - - /** - * The standard list filter. Supported fields: * `display_name` supports `=`, `!=` - * comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * - * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must be - * in RFC 3339 format. * `labels` supports general map functions that is: - * `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of - * using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * - * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name="my_job"` * - * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and - `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`<`, - `<=`,`>`, `>=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general - map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some - examples of using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * - `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name="my_job"` * - `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * The standard list filter. Supported fields: * `display_name` supports `=`, `!=` - * comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * - * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must be - * in RFC 3339 format. * `labels` supports general map functions that is: - * `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of - * using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * - * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name="my_job"` * - * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * The standard list page token. Typically obtained via - * ListCustomJobsResponse.next_page_token of the previous JobService.ListCustomJobs call. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** The standard list page token. Typically obtained via ListCustomJobsResponse.next_page_token of the - previous JobService.ListCustomJobs call. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * The standard list page token. Typically obtained via - * ListCustomJobsResponse.next_page_token of the previous JobService.ListCustomJobs call. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; - - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } - - /** Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = readMask; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - /** - * An accessor for creating requests from the Operations collection. - * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
-         * 
- * - * @return the resource collection - */ - public Operations operations() { - return new Operations(); - } - - /** - * The "operations" collection of methods. - */ - public class Operations { - - /** - * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to - * cancel the operation, but success is not guaranteed. If the server doesn't support this method, - * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other - * methods to check whether the cancellation succeeded or whether the operation completed despite - * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an - * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to - * `Code.CANCELLED`. - * - * Create a request for the method "operations.cancel". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource to be cancelled. - * @return the request - */ - public Cancel cancel(java.lang.String name) throws java.io.IOException { - Cancel result = new Cancel(name); - initialize(result); - return result; - } - - public class Cancel extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}:cancel"; + private static final String REST_PATH = "v1beta1/{+name}:cancel"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+$"); /** * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to @@ -55648,7 +57717,7 @@ protected Cancel(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/[^/]+/customJobs/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+$"); } } @@ -55722,7 +57791,7 @@ public Cancel setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+$"); } this.name = name; return this; @@ -55757,7 +57826,7 @@ public class Delete extends AiplatformRequestThe typical use is:

*
        *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.DataLabelingJobs.List request = aiplatform.dataLabelingJobs().list(parameters ...)}
+       *   {@code Aiplatform.BatchPredictionJobs.List request = aiplatform.batchPredictionJobs().list(parameters ...)}
        * 
* * @return the resource collection */ - public DataLabelingJobs dataLabelingJobs() { - return new DataLabelingJobs(); + public BatchPredictionJobs batchPredictionJobs() { + return new BatchPredictionJobs(); } /** - * The "dataLabelingJobs" collection of methods. + * The "batchPredictionJobs" collection of methods. */ - public class DataLabelingJobs { + public class BatchPredictionJobs { /** - * Cancels a DataLabelingJob. Success of cancellation is not guaranteed. + * Cancels a BatchPredictionJob. Starts asynchronous cancellation on the BatchPredictionJob. The + * server makes the best effort to cancel the job, but success is not guaranteed. Clients can use + * JobService.GetBatchPredictionJob or other methods to check whether the cancellation succeeded or + * whether the job completed despite cancellation. On a successful cancellation, the + * BatchPredictionJob is not deleted;instead its BatchPredictionJob.state is set to `CANCELLED`. Any + * files already outputted by the job are not deleted. * - * Create a request for the method "dataLabelingJobs.cancel". + * Create a request for the method "batchPredictionJobs.cancel". * * This request holds the parameters needed by the aiplatform server. After setting any optional * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. * - * @param name Required. The name of the DataLabelingJob. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest} + * @param name Required. The name of the BatchPredictionJob to cancel. Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest} * @return the request */ - public Cancel cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest content) throws java.io.IOException { + public Cancel cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest content) throws java.io.IOException { Cancel result = new Cancel(name, content); initialize(result); return result; @@ -56442,12 +58516,17 @@ public class Cancel extends AiplatformRequest * - * @param name Required. The name of the DataLabelingJob. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest} + * @param name Required. The name of the BatchPredictionJob to cancel. Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest} * @since 1.13 */ - protected Cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest content) { + protected Cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest content) { super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/dataLabelingJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); } } @@ -56526,28 +58605,28 @@ public Cancel setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The name of the DataLabelingJob. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * Required. The name of the BatchPredictionJob to cancel. Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the DataLabelingJob. Format: - `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + /** Required. The name of the BatchPredictionJob to cancel. Format: + `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` */ public java.lang.String getName() { return name; } /** - * Required. The name of the DataLabelingJob. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * Required. The name of the BatchPredictionJob to cancel. Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` */ public Cancel setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); } this.name = name; return this; @@ -56559,34 +58638,37 @@ public Cancel set(String parameterName, Object value) { } } /** - * Creates a DataLabelingJob. + * Creates a BatchPredictionJob. A BatchPredictionJob once created will right away be attempted to + * start. * - * Create a request for the method "dataLabelingJobs.create". + * Create a request for the method "batchPredictionJobs.create". * * This request holds the parameters needed by the aiplatform server. After setting any optional * parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param parent Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DataLabelingJob} + * @param parent Required. The resource name of the Location to create the BatchPredictionJob in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchPredictionJob} * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DataLabelingJob content) throws java.io.IOException { + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchPredictionJob content) throws java.io.IOException { Create result = new Create(parent, content); initialize(result); return result; } - public class Create extends AiplatformRequest { + public class Create extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/dataLabelingJobs"; + private static final String REST_PATH = "v1beta1/{+parent}/batchPredictionJobs"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Creates a DataLabelingJob. + * Creates a BatchPredictionJob. A BatchPredictionJob once created will right away be attempted to + * start. * - * Create a request for the method "dataLabelingJobs.create". + * Create a request for the method "batchPredictionJobs.create". * * This request holds the parameters needed by the the aiplatform server. After setting any * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. @@ -56594,12 +58676,13 @@ public class Create extends AiplatformRequest * - * @param parent Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DataLabelingJob} + * @param parent Required. The resource name of the Location to create the BatchPredictionJob in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchPredictionJob} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DataLabelingJob content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DataLabelingJob.class); + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchPredictionJob content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchPredictionJob.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(), @@ -56664,21 +58747,22 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The parent of the DataLabelingJob. Format: - * `projects/{project}/locations/{location}` + * Required. The resource name of the Location to create the BatchPredictionJob in. + * Format: `projects/{project}/locations/{location}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` + /** Required. The resource name of the Location to create the BatchPredictionJob in. Format: + `projects/{project}/locations/{location}` */ public java.lang.String getParent() { return parent; } /** - * Required. The parent of the DataLabelingJob. Format: - * `projects/{project}/locations/{location}` + * Required. The resource name of the Location to create the BatchPredictionJob in. + * Format: `projects/{project}/locations/{location}` */ public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -56696,15 +58780,15 @@ public Create set(String parameterName, Object value) { } } /** - * Deletes a DataLabelingJob. + * Deletes a BatchPredictionJob. Can only be called on jobs that already finished. * - * Create a request for the method "dataLabelingJobs.delete". + * Create a request for the method "batchPredictionJobs.delete". * * This request holds the parameters needed by the aiplatform server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. The name of the DataLabelingJob to be deleted. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * @param name Required. The name of the BatchPredictionJob resource to be deleted. Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -56718,12 +58802,12 @@ public class Delete extends AiplatformRequest * - * @param name Required. The name of the DataLabelingJob to be deleted. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * @param name Required. The name of the BatchPredictionJob resource to be deleted. Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @since 1.13 */ protected Delete(java.lang.String name) { @@ -56741,7 +58825,7 @@ protected Delete(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/[^/]+/dataLabelingJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); } } @@ -56801,28 +58885,28 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The name of the DataLabelingJob to be deleted. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * Required. The name of the BatchPredictionJob resource to be deleted. Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the DataLabelingJob to be deleted. Format: - `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + /** Required. The name of the BatchPredictionJob resource to be deleted. Format: + `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` */ public java.lang.String getName() { return name; } /** - * Required. The name of the DataLabelingJob to be deleted. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * Required. The name of the BatchPredictionJob resource to be deleted. Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` */ 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/[^/]+/dataLabelingJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); } this.name = name; return this; @@ -56834,15 +58918,15 @@ public Delete set(String parameterName, Object value) { } } /** - * Gets a DataLabelingJob. + * Gets a BatchPredictionJob * - * Create a request for the method "dataLabelingJobs.get". + * Create a request for the method "batchPredictionJobs.get". * * This request holds the parameters needed by the aiplatform server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. The name of the DataLabelingJob. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * @param name Required. The name of the BatchPredictionJob resource. Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -56851,34 +58935,34 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends AiplatformRequest { + public class Get extends AiplatformRequest { private static final String REST_PATH = "v1beta1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); /** - * Gets a DataLabelingJob. + * Gets a BatchPredictionJob * - * Create a request for the method "dataLabelingJobs.get". + * Create a request for the method "batchPredictionJobs.get". * * This request holds the parameters needed by the the aiplatform server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* - * @param name Required. The name of the DataLabelingJob. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * @param name Required. The name of the BatchPredictionJob resource. Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @since 1.13 */ protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DataLabelingJob.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchPredictionJob.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/[^/]+/dataLabelingJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); } } @@ -56948,28 +59032,28 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The name of the DataLabelingJob. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * Required. The name of the BatchPredictionJob resource. Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the DataLabelingJob. Format: - `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + /** Required. The name of the BatchPredictionJob resource. Format: + `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` */ public java.lang.String getName() { return name; } /** - * Required. The name of the DataLabelingJob. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * Required. The name of the BatchPredictionJob resource. Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` */ 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/[^/]+/dataLabelingJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); } this.name = name; return this; @@ -56981,14 +59065,15 @@ public Get set(String parameterName, Object value) { } } /** - * Lists DataLabelingJobs in a Location. + * Lists BatchPredictionJobs in a Location. * - * Create a request for the method "dataLabelingJobs.list". + * Create a request for the method "batchPredictionJobs.list". * * This request holds the parameters needed by the aiplatform server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` + * @param parent Required. The resource name of the Location to list the BatchPredictionJobs from. Format: + * `projects/{project}/locations/{location}` * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -56997,28 +59082,29 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends AiplatformRequest { + public class List extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/dataLabelingJobs"; + private static final String REST_PATH = "v1beta1/{+parent}/batchPredictionJobs"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Lists DataLabelingJobs in a Location. + * Lists BatchPredictionJobs in a Location. * - * Create a request for the method "dataLabelingJobs.list". + * Create a request for the method "batchPredictionJobs.list". * * This request holds the parameters needed by the the aiplatform 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 parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` + * @param parent Required. The resource name of the Location to list the BatchPredictionJobs from. Format: + * `projects/{project}/locations/{location}` * @since 1.13 */ protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListDataLabelingJobsResponse.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse.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(), @@ -57093,21 +59179,22 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The parent of the DataLabelingJob. Format: - * `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the BatchPredictionJobs from. + * Format: `projects/{project}/locations/{location}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` + /** Required. The resource name of the Location to list the BatchPredictionJobs from. Format: + `projects/{project}/locations/{location}` */ public java.lang.String getParent() { return parent; } /** - * Required. The parent of the DataLabelingJob. Format: - * `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the BatchPredictionJobs from. + * Format: `projects/{project}/locations/{location}` */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -57121,24 +59208,26 @@ public List setParent(java.lang.String parent) { /** * The standard list filter. Supported fields: * `display_name` supports `=`, `!=` - * comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * - * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must be - * in RFC 3339 format. * `labels` supports general map functions that is: - * `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of - * using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * - * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name="my_job"` * + * comparisons, and `:` wildcard. * `model_display_name` supports `=`, `!=` comparisons. * + * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`<`, + * `<=`,`>`, `>=` comparisons. `create_time` must be in RFC 3339 format. * `labels` + * supports general map functions that is: `labels.key=value` - key:value equality + * `labels.key:* - key existence Some examples of using the filter are: * + * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * `state!="JOB_STATE_FAILED" + * OR display_name="my_job"` * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` */ @com.google.api.client.util.Key private java.lang.String filter; /** The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and - `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`<`, - `<=`,`>`, `>=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general - map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some - examples of using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * - `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name="my_job"` * - `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` + `:` wildcard. * `model_display_name` supports `=`, `!=` comparisons. * `state` supports `=`, `!=` + comparisons. * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must + be in RFC 3339 format. * `labels` supports general map functions that is: `labels.key=value` - + key:value equality `labels.key:* - key existence Some examples of using the filter are: * + `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * `state!="JOB_STATE_FAILED" OR + display_name="my_job"` * `NOT display_name="my_job"` * `create_time>"2021-05-18T00:00:00Z"` * + `labels.keyA=valueA` * `labels.keyB:*` */ public java.lang.String getFilter() { return filter; @@ -57146,12 +59235,13 @@ public java.lang.String getFilter() { /** * The standard list filter. Supported fields: * `display_name` supports `=`, `!=` - * comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * - * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must be - * in RFC 3339 format. * `labels` supports general map functions that is: - * `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of - * using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * - * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name="my_job"` * + * comparisons, and `:` wildcard. * `model_display_name` supports `=`, `!=` comparisons. * + * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`<`, + * `<=`,`>`, `>=` comparisons. `create_time` must be in RFC 3339 format. * `labels` + * supports general map functions that is: `labels.key=value` - key:value equality + * `labels.key:* - key existence Some examples of using the filter are: * + * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * `state!="JOB_STATE_FAILED" + * OR display_name="my_job"` * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` */ public List setFilter(java.lang.String filter) { @@ -57159,29 +59249,6 @@ public List setFilter(java.lang.String filter) { return this; } - /** - * A comma-separated list of fields to order by, sorted in ascending order by default. Use - * `desc` after a field name for descending. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** A comma-separated list of fields to order by, sorted in ascending order by default. Use `desc` - after a field name for descending. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * A comma-separated list of fields to order by, sorted in ascending order by default. Use - * `desc` after a field name for descending. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - /** The standard list page size. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; @@ -57198,45 +59265,43 @@ public List setPageSize(java.lang.Integer pageSize) { return this; } - /** The standard list page token. */ + /** + * The standard list page token. Typically obtained via + * ListBatchPredictionJobsResponse.next_page_token of the previous + * JobService.ListBatchPredictionJobs call. + */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** The standard list page token. + /** The standard list page token. Typically obtained via + ListBatchPredictionJobsResponse.next_page_token of the previous JobService.ListBatchPredictionJobs + call. */ public java.lang.String getPageToken() { return pageToken; } - /** The standard list page token. */ + /** + * The standard list page token. Typically obtained via + * ListBatchPredictionJobsResponse.next_page_token of the previous + * JobService.ListBatchPredictionJobs call. + */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } - /** - * Mask specifying which fields to read. FieldMask represents a set of symbolic field - * paths. For example, the mask can be `paths: "name"`. The "name" here is a field in - * DataLabelingJob. If this field is not set, all fields of the DataLabelingJob are - * returned. - */ + /** Mask specifying which fields to read. */ @com.google.api.client.util.Key private String readMask; - /** Mask specifying which fields to read. FieldMask represents a set of symbolic field paths. For - example, the mask can be `paths: "name"`. The "name" here is a field in DataLabelingJob. If this - field is not set, all fields of the DataLabelingJob are returned. + /** Mask specifying which fields to read. */ public String getReadMask() { return readMask; } - /** - * Mask specifying which fields to read. FieldMask represents a set of symbolic field - * paths. For example, the mask can be `paths: "name"`. The "name" here is a field in - * DataLabelingJob. If this field is not set, all fields of the DataLabelingJob are - * returned. - */ + /** Mask specifying which fields to read. */ public List setReadMask(String readMask) { this.readMask = readMask; return this; @@ -57248,1146 +59313,809 @@ public List set(String parameterName, Object value) { } } + } + /** + * An accessor for creating requests from the CachedContents collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.CachedContents.List request = aiplatform.cachedContents().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public CachedContents cachedContents() { + return new CachedContents(); + } + + /** + * The "cachedContents" collection of methods. + */ + public class CachedContents { + /** - * An accessor for creating requests from the Operations collection. + * Creates cached content, this call will initialize the cached content in the data storage, and + * users need to pay for the cache data storage. * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
-         * 
+ * Create a request for the method "cachedContents.create". * - * @return the resource collection + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource where the cached content will be created + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent} + * @return the request */ - public Operations operations() { - return new Operations(); + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; } - /** - * The "operations" collection of methods. - */ - public class Operations { + public class Create extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/cachedContents"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to - * cancel the operation, but success is not guaranteed. If the server doesn't support this method, - * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other - * methods to check whether the cancellation succeeded or whether the operation completed despite - * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an - * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to - * `Code.CANCELLED`. + * Creates cached content, this call will initialize the cached content in the data storage, and + * users need to pay for the cache data storage. * - * Create a request for the method "operations.cancel". + * Create a request for the method "cachedContents.create". * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the aiplatform 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 name The name of the operation resource to be cancelled. - * @return the request + * @param parent Required. The parent resource where the cached content will be created + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent} + * @since 1.13 */ - public Cancel cancel(java.lang.String name) throws java.io.IOException { - Cancel result = new Cancel(name); - initialize(result); - return result; + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent.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/[^/]+$"); + } } - public class Cancel extends AiplatformRequest { + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "v1beta1/{+name}:cancel"; + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - /** - * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to - * cancel the operation, but success is not guaranteed. If the server doesn't support this method, - * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other - * methods to check whether the cancellation succeeded or whether the operation completed despite - * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an - * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to - * `Code.CANCELLED`. - * - * Create a request for the method "operations.cancel". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. - *

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

- * - * @param name The name of the operation resource to be cancelled. - * @since 1.13 - */ - protected Cancel(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); - } - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + /** Required. The parent resource where the cached content will be created */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + /** Required. The parent resource where the cached content will be created + */ + public java.lang.String getParent() { + return parent; + } - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + /** Required. The parent resource where the cached content will be created */ + 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; + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes cached content + * + * Create a request for the method "cachedContents.delete". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name referring to the cached content + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } - /** The name of the operation resource to be cancelled. */ - @com.google.api.client.util.Key - private java.lang.String name; + public class Delete extends AiplatformRequest { - /** The name of the operation resource to be cancelled. - */ - public java.lang.String getName() { - return name; - } + private static final String REST_PATH = "v1beta1/{+name}"; - /** The name of the operation resource to be cancelled. */ - public Cancel setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$"); - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); - } - } /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * Deletes cached content * - * Create a request for the method "operations.delete". + * Create a request for the method "cachedContents.delete". * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource to be deleted. - * @return the request + * @param name Required. The resource name referring to the cached content + * @since 1.13 */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/cachedContents/[^/]+$"); + } } - public class Delete extends AiplatformRequest { + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "v1beta1/{+name}"; + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. - * - * Create a request for the method "operations.delete". - * - * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource to be deleted. - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); - } - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + /** Required. The resource name referring to the cached content */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + /** Required. The resource name referring to the cached content + */ + public java.lang.String getName() { + return name; + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + /** Required. The resource name referring to the cached content */ + 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/[^/]+/cachedContents/[^/]+$"); } + this.name = name; + return this; + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets cached content configurations + * + * Create a request for the method "cachedContents.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name referring to the cached content + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + public class Get extends AiplatformRequest { - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; - } + private static final String REST_PATH = "v1beta1/{+name}"; - /** The name of the operation resource to be deleted. */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$"); - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. + * Gets cached content configurations * - * Create a request for the method "operations.get". + * Create a request for the method "cachedContents.get". * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource. - * @return the request + * @param name Required. The resource name referring to the cached content + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent.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/[^/]+/cachedContents/[^/]+$"); + } } - public class Get extends AiplatformRequest { + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - private static final String REST_PATH = "v1beta1/{+name}"; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. - * - * Create a request for the method "operations.get". - * - * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); - } - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** Required. The resource name referring to the cached content */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** Required. The resource name referring to the cached content + */ + public java.lang.String getName() { + return name; + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + /** Required. The resource name referring to the cached content */ + 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/[^/]+/cachedContents/[^/]+$"); } + this.name = name; + return this; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists cached contents in a project + * + * Create a request for the method "cachedContents.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent, which owns this collection of cached contents. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + public class List extends AiplatformRequest { - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } + private static final String REST_PATH = "v1beta1/{+parent}/cachedContents"; - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. + * Lists cached contents in a project * - * Create a request for the method "operations.list". + * Create a request for the method "cachedContents.list". * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the aiplatform 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 name The name of the operation's parent resource. - * @return the request + * @param parent Required. The parent, which owns this collection of cached contents. + * @since 1.13 */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListCachedContentsResponse.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/[^/]+$"); + } } - public class List extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}/operations"; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$"); + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. - * - * Create a request for the method "operations.list". - * - * This request holds the parameters needed by the the aiplatform 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 name The name of the operation's parent resource. - * @since 1.13 - */ - protected List(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningListOperationsResponse.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/[^/]+/dataLabelingJobs/[^/]+$"); - } - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** Required. The parent, which owns this collection of cached contents. */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + /** Required. The parent, which owns this collection of cached contents. + */ + public java.lang.String getParent() { + return parent; + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + /** Required. The parent, which owns this collection of cached contents. */ + 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; + } - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + /** + * Optional. The maximum number of cached contents to return. The service may return fewer + * than this value. If unspecified, some default (under maximum) number of items will be + * returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$"); - } - this.name = name; - return this; - } + /** Optional. The maximum number of cached contents to return. The service may return fewer than this + value. If unspecified, some default (under maximum) number of items will be returned. The maximum + value is 1000; values above 1000 will be coerced to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } - - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. - * This can only be `true` when reading across collections. For example, when `parent` - * is set to `"projects/example/locations/-"`. This field is not supported by default - * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented - * otherwise in service or product specific documentation. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** When set to `true`, operations that are reachable are returned as normal, and those that are - unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` - when reading across collections. For example, when `parent` is set to - `"projects/example/locations/-"`. This field is not supported by default and will result in an - `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific - documentation. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. - * This can only be `true` when reading across collections. For example, when `parent` - * is set to `"projects/example/locations/-"`. This field is not supported by default - * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented - * otherwise in service or product specific documentation. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Waits until the specified long-running operation is done or reaches at most a specified timeout, - * returning the latest state. If the operation is already done, the latest state is immediately - * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - * timeout is used. If the server does not support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return - * the latest state before the specified timeout (including immediately), meaning even an immediate - * response is no guarantee that the operation is done. - * - * Create a request for the method "operations.wait". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Wait#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource to wait on. - * @return the request - */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); - initialize(result); - return result; - } - - public class Wait extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}:wait"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); - - /** - * Waits until the specified long-running operation is done or reaches at most a specified - * timeout, returning the latest state. If the operation is already done, the latest state is - * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, - * the HTTP/RPC timeout is used. If the server does not support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return - * the latest state before the specified timeout (including immediately), meaning even an - * immediate response is no guarantee that the operation is done. - * - * Create a request for the method "operations.wait". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

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

- * - * @param name The name of the operation resource to wait on. - * @since 1.13 - */ - protected Wait(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); - } - } - - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } - - @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); - } - - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } - - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); - } - - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } - - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } - - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } - - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } - - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } - - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } - - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } - - /** The name of the operation resource to wait on. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the operation resource to wait on. */ - public Wait 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/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * The maximum duration to wait before timing out. If left blank, the wait will be at - * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline - * is also specified, the shorter one will be used. - */ - @com.google.api.client.util.Key - private String timeout; - - /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time - permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the - shorter one will be used. - */ - public String getTimeout() { - return timeout; - } - - /** - * The maximum duration to wait before timing out. If left blank, the wait will be at - * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline - * is also specified, the shorter one will be used. - */ - public Wait setTimeout(String timeout) { - this.timeout = timeout; - return this; - } - - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); - } - } - - } - } - /** - * An accessor for creating requests from the Datasets collection. - * - *

The typical use is:

- *
-       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.Datasets.List request = aiplatform.datasets().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public Datasets datasets() { - return new Datasets(); - } - - /** - * The "datasets" collection of methods. - */ - public class Datasets { - - /** - * Assembles each row of a multimodal dataset and writes the result into a BigQuery table. - * - * Create a request for the method "datasets.assemble". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Assemble#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the Dataset resource (used only for MULTIMODAL datasets). Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssembleDataRequest} - * @return the request - */ - public Assemble assemble(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssembleDataRequest content) throws java.io.IOException { - Assemble result = new Assemble(name, content); - initialize(result); - return result; - } - - public class Assemble extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}:assemble"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); - - /** - * Assembles each row of a multimodal dataset and writes the result into a BigQuery table. - * - * Create a request for the method "datasets.assemble". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Assemble#execute()} method to invoke the remote operation. - *

{@link - * Assemble#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 Dataset resource (used only for MULTIMODAL datasets). Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssembleDataRequest} - * @since 1.13 - */ - protected Assemble(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssembleDataRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+$"); - } - } - - @Override - public Assemble set$Xgafv(java.lang.String $Xgafv) { - return (Assemble) super.set$Xgafv($Xgafv); - } - - @Override - public Assemble setAccessToken(java.lang.String accessToken) { - return (Assemble) super.setAccessToken(accessToken); - } - - @Override - public Assemble setAlt(java.lang.String alt) { - return (Assemble) super.setAlt(alt); - } - - @Override - public Assemble setCallback(java.lang.String callback) { - return (Assemble) super.setCallback(callback); - } - - @Override - public Assemble setFields(java.lang.String fields) { - return (Assemble) super.setFields(fields); - } - - @Override - public Assemble setKey(java.lang.String key) { - return (Assemble) super.setKey(key); - } - - @Override - public Assemble setOauthToken(java.lang.String oauthToken) { - return (Assemble) super.setOauthToken(oauthToken); - } - - @Override - public Assemble setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Assemble) super.setPrettyPrint(prettyPrint); - } - - @Override - public Assemble setQuotaUser(java.lang.String quotaUser) { - return (Assemble) super.setQuotaUser(quotaUser); - } - - @Override - public Assemble setUploadType(java.lang.String uploadType) { - return (Assemble) super.setUploadType(uploadType); - } - - @Override - public Assemble setUploadProtocol(java.lang.String uploadProtocol) { - return (Assemble) super.setUploadProtocol(uploadProtocol); - } + /** + * Optional. The maximum number of cached contents to return. The service may return fewer + * than this value. If unspecified, some default (under maximum) number of items will be + * returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } /** - * Required. The name of the Dataset resource (used only for MULTIMODAL datasets). Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * Optional. A page token, received from a previous `ListCachedContents` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListCachedContents` must match the call that provided the page token. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String pageToken; - /** Required. The name of the Dataset resource (used only for MULTIMODAL datasets). Format: - `projects/{project}/locations/{location}/datasets/{dataset}` + /** Optional. A page token, received from a previous `ListCachedContents` call. Provide this to + retrieve the subsequent page. When paginating, all other parameters provided to + `ListCachedContents` must match the call that provided the page token. */ - public java.lang.String getName() { - return name; + public java.lang.String getPageToken() { + return pageToken; } /** - * Required. The name of the Dataset resource (used only for MULTIMODAL datasets). Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * Optional. A page token, received from a previous `ListCachedContents` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListCachedContents` must match the call that provided the page token. */ - public Assemble 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/[^/]+/datasets/[^/]+$"); - } - this.name = name; + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public Assemble set(String parameterName, Object value) { - return (Assemble) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Assesses the state or validity of the dataset with respect to a given use case. + * Updates cached content configurations * - * Create a request for the method "datasets.assess". + * Create a request for the method "cachedContents.patch". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Assess#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param name Required. The name of the Dataset resource. Used only for MULTIMODAL datasets. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssessDataRequest} + * @param name Immutable. Identifier. The server-generated resource name of the cached content Format: + * projects/{project}/locations/{location}/cachedContents/{cached_content} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent} * @return the request */ - public Assess assess(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssessDataRequest content) throws java.io.IOException { - Assess result = new Assess(name, content); + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent content) throws java.io.IOException { + Patch result = new Patch(name, content); initialize(result); return result; } - public class Assess extends AiplatformRequest { + public class Patch extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}:assess"; + private static final String REST_PATH = "v1beta1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$"); /** - * Assesses the state or validity of the dataset with respect to a given use case. + * Updates cached content configurations * - * Create a request for the method "datasets.assess". + * Create a request for the method "cachedContents.patch". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Assess#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. *

{@link - * Assess#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Patch#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 Dataset resource. Used only for MULTIMODAL datasets. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssessDataRequest} + * @param name Immutable. Identifier. The server-generated resource name of the cached content Format: + * projects/{project}/locations/{location}/cachedContents/{cached_content} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent} * @since 1.13 */ - protected Assess(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssessDataRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent.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/[^/]+/datasets/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$"); } } @Override - public Assess set$Xgafv(java.lang.String $Xgafv) { - return (Assess) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Assess setAccessToken(java.lang.String accessToken) { - return (Assess) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Assess setAlt(java.lang.String alt) { - return (Assess) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Assess setCallback(java.lang.String callback) { - return (Assess) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Assess setFields(java.lang.String fields) { - return (Assess) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Assess setKey(java.lang.String key) { - return (Assess) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Assess setOauthToken(java.lang.String oauthToken) { - return (Assess) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Assess setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Assess) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Assess setQuotaUser(java.lang.String quotaUser) { - return (Assess) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Assess setUploadType(java.lang.String uploadType) { - return (Assess) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Assess setUploadProtocol(java.lang.String uploadProtocol) { - return (Assess) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Dataset resource. Used only for MULTIMODAL datasets. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * Immutable. Identifier. The server-generated resource name of the cached content Format: + * projects/{project}/locations/{location}/cachedContents/{cached_content} */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the Dataset resource. Used only for MULTIMODAL datasets. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` + /** Immutable. Identifier. The server-generated resource name of the cached content Format: + projects/{project}/locations/{location}/cachedContents/{cached_content} */ public java.lang.String getName() { return name; } /** - * Required. The name of the Dataset resource. Used only for MULTIMODAL datasets. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * Immutable. Identifier. The server-generated resource name of the cached content Format: + * projects/{project}/locations/{location}/cachedContents/{cached_content} */ - public Assess setName(java.lang.String name) { + 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/[^/]+/datasets/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$"); } this.name = name; return this; } + /** Required. The list of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. The list of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Required. The list of fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + @Override - public Assess set(String parameterName, Object value) { - return (Assess) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the CollaborativeProjects collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.CollaborativeProjects.List request = aiplatform.collaborativeProjects().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public CollaborativeProjects collaborativeProjects() { + return new CollaborativeProjects(); + } + + /** + * The "collaborativeProjects" collection of methods. + */ + public class CollaborativeProjects { + /** - * Creates a Dataset. + * Creates a project owned by the caller. * - * Create a request for the method "datasets.create". + * Create a request for the method "collaborativeProjects.create". * * This request holds the parameters needed by the aiplatform server. After setting any optional * parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param parent Required. The resource name of the Location to create the Dataset in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset} + * @param parent Required. The location to create the project in. Only `global` is supported. Format: + * `projects/{project}/locations/global`. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CollaborativeProject} * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset content) throws java.io.IOException { + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CollaborativeProject content) throws java.io.IOException { Create result = new Create(parent, content); initialize(result); return result; @@ -58395,15 +60123,15 @@ public Create create(java.lang.String parent, com.google.api.services.aiplatform public class Create extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/datasets"; + private static final String REST_PATH = "v1beta1/{+parent}/collaborativeProjects"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Creates a Dataset. + * Creates a project owned by the caller. * - * Create a request for the method "datasets.create". + * Create a request for the method "collaborativeProjects.create". * * This request holds the parameters needed by the the aiplatform server. After setting any * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. @@ -58411,12 +60139,12 @@ public class Create extends AiplatformRequest * - * @param parent Required. The resource name of the Location to create the Dataset in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset} + * @param parent Required. The location to create the project in. Only `global` is supported. Format: + * `projects/{project}/locations/global`. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CollaborativeProject} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset content) { + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CollaborativeProject content) { super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { @@ -58482,22 +60210,22 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the Location to create the Dataset in. Format: - * `projects/{project}/locations/{location}` + * Required. The location to create the project in. Only `global` is supported. Format: + * `projects/{project}/locations/global`. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The resource name of the Location to create the Dataset in. Format: - `projects/{project}/locations/{location}` + /** Required. The location to create the project in. Only `global` is supported. Format: + `projects/{project}/locations/global`. */ public java.lang.String getParent() { return parent; } /** - * Required. The resource name of the Location to create the Dataset in. Format: - * `projects/{project}/locations/{location}` + * Required. The location to create the project in. Only `global` is supported. Format: + * `projects/{project}/locations/global`. */ public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -58515,15 +60243,14 @@ public Create set(String parameterName, Object value) { } } /** - * Deletes a Dataset. + * Deletes a project. * - * Create a request for the method "datasets.delete". + * Create a request for the method "collaborativeProjects.delete". * * This request holds the parameters needed by the aiplatform server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. The resource name of the Dataset to delete. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param name Required. The name of the project to delete. * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -58537,12 +60264,12 @@ public class Delete extends AiplatformRequest * - * @param name Required. The resource name of the Dataset to delete. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param name Required. The name of the project to delete. * @since 1.13 */ protected Delete(java.lang.String name) { @@ -58560,7 +60286,7 @@ protected Delete(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/[^/]+/datasets/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+$"); } } @@ -58619,29 +60345,22 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The resource name of the Dataset to delete. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ + /** Required. The name of the project to delete. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The resource name of the Dataset to delete. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` + /** Required. The name of the project to delete. */ public java.lang.String getName() { return name; } - /** - * Required. The resource name of the Dataset to delete. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ + /** Required. The name of the project to delete. */ 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/[^/]+/datasets/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+$"); } this.name = name; return this; @@ -58653,154 +60372,14 @@ public Delete set(String parameterName, Object value) { } } /** - * Exports data from a Dataset. - * - * Create a request for the method "datasets.export". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Export#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportDataRequest} - * @return the request - */ - public Export export(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportDataRequest content) throws java.io.IOException { - Export result = new Export(name, content); - initialize(result); - return result; - } - - public class Export extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}:export"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); - - /** - * Exports data from a Dataset. - * - * Create a request for the method "datasets.export". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Export#execute()} method to invoke the remote operation. - *

{@link - * Export#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 Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportDataRequest} - * @since 1.13 - */ - protected Export(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportDataRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+$"); - } - } - - @Override - public Export set$Xgafv(java.lang.String $Xgafv) { - return (Export) super.set$Xgafv($Xgafv); - } - - @Override - public Export setAccessToken(java.lang.String accessToken) { - return (Export) super.setAccessToken(accessToken); - } - - @Override - public Export setAlt(java.lang.String alt) { - return (Export) super.setAlt(alt); - } - - @Override - public Export setCallback(java.lang.String callback) { - return (Export) super.setCallback(callback); - } - - @Override - public Export setFields(java.lang.String fields) { - return (Export) super.setFields(fields); - } - - @Override - public Export setKey(java.lang.String key) { - return (Export) super.setKey(key); - } - - @Override - public Export setOauthToken(java.lang.String oauthToken) { - return (Export) super.setOauthToken(oauthToken); - } - - @Override - public Export setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Export) super.setPrettyPrint(prettyPrint); - } - - @Override - public Export setQuotaUser(java.lang.String quotaUser) { - return (Export) super.setQuotaUser(quotaUser); - } - - @Override - public Export setUploadType(java.lang.String uploadType) { - return (Export) super.setUploadType(uploadType); - } - - @Override - public Export setUploadProtocol(java.lang.String uploadProtocol) { - return (Export) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the Dataset resource. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ - public Export 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/[^/]+/datasets/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Export set(String parameterName, Object value) { - return (Export) super.set(parameterName, value); - } - } - /** - * Gets a Dataset. + * Gets a project. * - * Create a request for the method "datasets.get". + * Create a request for the method "collaborativeProjects.get". * * This request holds the parameters needed by the aiplatform server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. The name of the Dataset resource. + * @param name Required. The name of the project. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -58809,33 +60388,33 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends AiplatformRequest { + public class Get extends AiplatformRequest { private static final String REST_PATH = "v1beta1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+$"); /** - * Gets a Dataset. + * Gets a project. * - * Create a request for the method "datasets.get". + * Create a request for the method "collaborativeProjects.get". * * This request holds the parameters needed by the the aiplatform server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* - * @param name Required. The name of the Dataset resource. + * @param name Required. The name of the project. * @since 1.13 */ protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CollaborativeProject.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/[^/]+/datasets/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+$"); } } @@ -58904,1610 +60483,1553 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** Required. The name of the Dataset resource. */ + /** Required. The name of the project. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the Dataset resource. + /** Required. The name of the project. */ public java.lang.String getName() { return name; } - /** Required. The name of the Dataset resource. */ + /** Required. The name of the project. */ 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/[^/]+/datasets/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+$"); } this.name = name; return this; } - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; - - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } - - /** Mask specifying which fields to read. */ - public Get setReadMask(String readMask) { - this.readMask = readMask; - return this; - } - @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists and - * does not have a policy set. + * Lists the caller's projects in a location, most recently created first. * - * Create a request for the method "datasets.getIamPolicy". + * Create a request for the method "collaborativeProjects.list". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. + * @param parent Required. The location to list projects from. Format: `projects/{project}/locations/global`. * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class GetIamPolicy extends AiplatformRequest { + public class List extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+resource}:getIamPolicy"; + private static final String REST_PATH = "v1beta1/{+parent}/collaborativeProjects"; - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists - * and does not have a policy set. + * Lists the caller's projects in a location, most recently created first. * - * Create a request for the method "datasets.getIamPolicy". + * Create a request for the method "collaborativeProjects.list". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote - * operation.

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

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

* - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. + * @param parent Required. The location to list projects from. Format: `projects/{project}/locations/global`. * @since 1.13 */ - protected GetIamPolicy(java.lang.String resource) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListCollaborativeProjectsResponse.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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. The location to list projects from. Format: + * `projects/{project}/locations/global`. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String parent; - /** REQUIRED: The resource for which the policy is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** Required. The location to list projects from. Format: `projects/{project}/locations/global`. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getParent() { + return parent; } /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. The location to list projects from. Format: + * `projects/{project}/locations/global`. */ - public GetIamPolicy setResource(java.lang.String resource) { + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.resource = resource; + this.parent = parent; return this; } /** - * Optional. The maximum policy version that will be used to format the policy. Valid - * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests - * for policies with any conditional role bindings must specify version 3. Policies with - * no conditional role bindings may specify any valid value or leave the field unset. The - * policy in the response might use the policy version that you specified, or it might use - * a lower policy version. For example, if you specify version 3, but the policy has no - * conditional role bindings, the response uses version 1. To learn which resources - * support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * Optional. The maximum number of projects to return. The maximum is 100; larger values + * are coerced to 100. If not set, the default is 50. */ - @com.google.api.client.util.Key("options.requestedPolicyVersion") - private java.lang.Integer optionsRequestedPolicyVersion; + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, - and 3. Requests specifying an invalid value will be rejected. Requests for policies with any - conditional role bindings must specify version 3. Policies with no conditional role bindings may - specify any valid value or leave the field unset. The policy in the response might use the policy - version that you specified, or it might use a lower policy version. For example, if you specify - version 3, but the policy has no conditional role bindings, the response uses version 1. To learn - which resources support conditions in their IAM policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + /** Optional. The maximum number of projects to return. The maximum is 100; larger values are coerced + to 100. If not set, the default is 50. */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.Integer getPageSize() { + return pageSize; } /** - * Optional. The maximum policy version that will be used to format the policy. Valid - * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests - * for policies with any conditional role bindings must specify version 3. Policies with - * no conditional role bindings may specify any valid value or leave the field unset. The - * policy in the response might use the policy version that you specified, or it might use - * a lower policy version. For example, if you specify version 3, but the policy has no - * conditional role bindings, the response uses version 1. To learn which resources - * support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * Optional. The maximum number of projects to return. The maximum is 100; larger values + * are coerced to 100. If not set, the default is 50. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. A page token from a previous call. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token from a previous call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. A page token from a previous call. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Imports data into a Dataset. + * Updates a project's display name or trusted participants. * - * Create a request for the method "datasets.import". + * Create a request for the method "collaborativeProjects.patch". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link AiplatformImport#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param name Required. The name of the Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportDataRequest} + * @param name Identifier. The resource name of the project. The service assigns the final ID segment. Format: + * `projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project}`. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CollaborativeProject} * @return the request */ - public AiplatformImport aiplatformImport(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportDataRequest content) throws java.io.IOException { - AiplatformImport result = new AiplatformImport(name, content); + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CollaborativeProject content) throws java.io.IOException { + Patch result = new Patch(name, content); initialize(result); return result; } - public class AiplatformImport extends AiplatformRequest { + public class Patch extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}:import"; + private static final String REST_PATH = "v1beta1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+$"); /** - * Imports data into a Dataset. + * Updates a project's display name or trusted participants. * - * Create a request for the method "datasets.import". + * Create a request for the method "collaborativeProjects.patch". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link AiplatformImport#execute()} method to invoke the remote - * operation.

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

+ * 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 Required. The name of the Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportDataRequest} + * @param name Identifier. The resource name of the project. The service assigns the final ID segment. Format: + * `projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project}`. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CollaborativeProject} * @since 1.13 */ - protected AiplatformImport(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportDataRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CollaborativeProject content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+$"); } } @Override - public AiplatformImport set$Xgafv(java.lang.String $Xgafv) { - return (AiplatformImport) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public AiplatformImport setAccessToken(java.lang.String accessToken) { - return (AiplatformImport) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public AiplatformImport setAlt(java.lang.String alt) { - return (AiplatformImport) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public AiplatformImport setCallback(java.lang.String callback) { - return (AiplatformImport) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public AiplatformImport setFields(java.lang.String fields) { - return (AiplatformImport) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public AiplatformImport setKey(java.lang.String key) { - return (AiplatformImport) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public AiplatformImport setOauthToken(java.lang.String oauthToken) { - return (AiplatformImport) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public AiplatformImport setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AiplatformImport) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public AiplatformImport setQuotaUser(java.lang.String quotaUser) { - return (AiplatformImport) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public AiplatformImport setUploadType(java.lang.String uploadType) { - return (AiplatformImport) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public AiplatformImport setUploadProtocol(java.lang.String uploadProtocol) { - return (AiplatformImport) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * Identifier. The resource name of the project. The service assigns the final ID segment. + * Format: `projects/{project}/locations/{location}/collaborativeProjects/{collaborative_p + * roject}`. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the Dataset resource. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` + /** Identifier. The resource name of the project. The service assigns the final ID segment. Format: + `projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project}`. */ public java.lang.String getName() { return name; } /** - * Required. The name of the Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * Identifier. The resource name of the project. The service assigns the final ID segment. + * Format: `projects/{project}/locations/{location}/collaborativeProjects/{collaborative_p + * roject}`. */ - public AiplatformImport setName(java.lang.String name) { + 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/[^/]+/datasets/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+$"); } this.name = name; return this; } - @Override - public AiplatformImport set(String parameterName, Object value) { - return (AiplatformImport) super.set(parameterName, value); - } + /** + * Required. The fields to update: `display_name`, `trusted_participants`, or `*` for + * both. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. The fields to update: `display_name`, `trusted_participants`, or `*` for both. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Required. The fields to update: `display_name`, `trusted_participants`, or `*` for + * both. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } } + /** - * Lists Datasets in a Location. - * - * Create a request for the method "datasets.list". + * An accessor for creating requests from the Artifacts collection. * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + *

The typical use is:

+ *
+         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+         *   {@code Aiplatform.Artifacts.List request = aiplatform.artifacts().list(parameters ...)}
+         * 
* - * @param parent Required. The name of the Dataset's parent resource. Format: - * `projects/{project}/locations/{location}` - * @return the request + * @return the resource collection */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; + public Artifacts artifacts() { + return new Artifacts(); } - public class List extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+parent}/datasets"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** + * The "artifacts" collection of methods. + */ + public class Artifacts { /** - * Lists Datasets in a Location. + * Adds a file, folder or site stored in Google Drive, OneDrive, SharePoint or another third-party + * store as an artifact. The service persists `link_json_metadata` to Cloud Storage as a JSON + * metadata reference (a `.link.json` file), and links it to a parent resource: a task, named by + * `task`, or a collaborative project, named by `collaborative_project`. This method is idempotent + * with respect to the linked entity, identified by `link_json_metadata.provider` and + * `link_json_metadata.source_artifact_id`, or `link_json_metadata.uri` when `source_artifact_id` is + * unset: adding an entity that the parent already has does not add another artifact, and returns + * the same `artifact_id`. * - * Create a request for the method "datasets.list". + * Create a request for the method "artifacts.add". * - * This request holds the parameters needed by the the aiplatform 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.

+ * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Add#execute()} method to invoke the remote operation. * - * @param parent Required. The name of the Dataset's parent resource. Format: - * `projects/{project}/locations/{location}` - * @since 1.13 + * @param collaborativeProject Optional. The collaborative project to link the file to. Format: + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * Exactly one of `task` and `collaborative_project` must be set. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddArtifactRequest} + * @return the request */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListDatasetsResponse.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(); + public Add add(java.lang.String collaborativeProject, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddArtifactRequest content) throws java.io.IOException { + Add result = new Add(collaborativeProject, content); + initialize(result); + return result; } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + public class Add extends AiplatformRequest { - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+collaborativeProject}/artifacts:add"; - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + private final java.util.regex.Pattern COLLABORATIVE_PROJECT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+$"); - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + /** + * Adds a file, folder or site stored in Google Drive, OneDrive, SharePoint or another third-party + * store as an artifact. The service persists `link_json_metadata` to Cloud Storage as a JSON + * metadata reference (a `.link.json` file), and links it to a parent resource: a task, named by + * `task`, or a collaborative project, named by `collaborative_project`. This method is idempotent + * with respect to the linked entity, identified by `link_json_metadata.provider` and + * `link_json_metadata.source_artifact_id`, or `link_json_metadata.uri` when `source_artifact_id` + * is unset: adding an entity that the parent already has does not add another artifact, and + * returns the same `artifact_id`. + * + * Create a request for the method "artifacts.add". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Add#execute()} method to invoke the remote operation.

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

+ * + * @param collaborativeProject Optional. The collaborative project to link the file to. Format: + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * Exactly one of `task` and `collaborative_project` must be set. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddArtifactRequest} + * @since 1.13 + */ + protected Add(java.lang.String collaborativeProject, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddArtifactRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddArtifactResponse.class); + this.collaborativeProject = com.google.api.client.util.Preconditions.checkNotNull(collaborativeProject, "Required parameter collaborativeProject must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(COLLABORATIVE_PROJECT_PATTERN.matcher(collaborativeProject).matches(), + "Parameter collaborativeProject must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+$"); + } + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Add set$Xgafv(java.lang.String $Xgafv) { + return (Add) super.set$Xgafv($Xgafv); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Add setAccessToken(java.lang.String accessToken) { + return (Add) super.setAccessToken(accessToken); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Add setAlt(java.lang.String alt) { + return (Add) super.setAlt(alt); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Add setCallback(java.lang.String callback) { + return (Add) super.setCallback(callback); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Add setFields(java.lang.String fields) { + return (Add) super.setFields(fields); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public Add setKey(java.lang.String key) { + return (Add) super.setKey(key); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public Add setOauthToken(java.lang.String oauthToken) { + return (Add) super.setOauthToken(oauthToken); + } - /** - * Required. The name of the Dataset's parent resource. Format: - * `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Add setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Add) super.setPrettyPrint(prettyPrint); + } - /** Required. The name of the Dataset's parent resource. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Add setQuotaUser(java.lang.String quotaUser) { + return (Add) super.setQuotaUser(quotaUser); + } - /** - * Required. The name of the Dataset's parent resource. 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/[^/]+$"); + @Override + public Add setUploadType(java.lang.String uploadType) { + return (Add) super.setUploadType(uploadType); } - this.parent = parent; - return this; - } - /** - * An expression for filtering the results of the request. For field names both snake_case - * and camelCase are supported. * `display_name`: supports = and != * - * `metadata_schema_uri`: supports = and != * `labels` supports general map functions that - * is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key - * existence * A key including a space must be quoted. `labels."a key"`. Some examples: * - * `displayName="myDisplayName"` * `labels.myKey="myValue"` - */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public Add setUploadProtocol(java.lang.String uploadProtocol) { + return (Add) super.setUploadProtocol(uploadProtocol); + } - /** An expression for filtering the results of the request. For field names both snake_case and - camelCase are supported. * `display_name`: supports = and != * `metadata_schema_uri`: supports = - and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality - * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels."a - key"`. Some examples: * `displayName="myDisplayName"` * `labels.myKey="myValue"` - */ - public java.lang.String getFilter() { - return filter; - } + /** + * Optional. The collaborative project to link the file to. Format: + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * Exactly one of `task` and `collaborative_project` must be set. + */ + @com.google.api.client.util.Key + private java.lang.String collaborativeProject; - /** - * An expression for filtering the results of the request. For field names both snake_case - * and camelCase are supported. * `display_name`: supports = and != * - * `metadata_schema_uri`: supports = and != * `labels` supports general map functions that - * is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key - * existence * A key including a space must be quoted. `labels."a key"`. Some examples: * - * `displayName="myDisplayName"` * `labels.myKey="myValue"` - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + /** Optional. The collaborative project to link the file to. Format: + projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} Exactly one + of `task` and `collaborative_project` must be set. + */ + public java.lang.String getCollaborativeProject() { + return collaborativeProject; + } - /** - * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. Supported fields: * `display_name` * `create_time` * - * `update_time` - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + /** + * Optional. The collaborative project to link the file to. Format: + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * Exactly one of `task` and `collaborative_project` must be set. + */ + public Add setCollaborativeProject(java.lang.String collaborativeProject) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(COLLABORATIVE_PROJECT_PATTERN.matcher(collaborativeProject).matches(), + "Parameter collaborativeProject must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+$"); + } + this.collaborativeProject = collaborativeProject; + return this; + } - /** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field - name for descending. Supported fields: * `display_name` * `create_time` * `update_time` - */ - public java.lang.String getOrderBy() { - return orderBy; + @Override + public Add set(String parameterName, Object value) { + return (Add) super.set(parameterName, value); + } } - /** - * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. Supported fields: * `display_name` * `create_time` * - * `update_time` + * Lists the files and directories in a task's workspace. By default only the immediate children of + * `path` are returned; set `recursive` to descend into subdirectories. Entries that match `filter` + * are returned in breadth-first order. While the task's sandbox is running, paths it writes locally + * are read from the sandbox so the listing reflects files not yet synced to storage; otherwise they + * are read from storage. Which one served a request is not visible to the caller. + * + * Create a request for the method "artifacts.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The task or collaborative project whose workspace to list. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @return the request */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + public class List extends AiplatformRequest { - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + private static final String REST_PATH = "v1beta1/{+parent}/artifacts"; - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+$"); - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** + * Lists the files and directories in a task's workspace. By default only the immediate children + * of `path` are returned; set `recursive` to descend into subdirectories. Entries that match + * `filter` are returned in breadth-first order. While the task's sandbox is running, paths it + * writes locally are read from the sandbox so the listing reflects files not yet synced to + * storage; otherwise they are read from storage. Which one served a request is not visible to the + * caller. + * + * Create a request for the method "artifacts.list". + * + * This request holds the parameters needed by the the aiplatform 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 task or collaborative project whose workspace to list. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListWorkspaceArtifactsResponse.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/[^/]+/collaborativeProjects/[^/]+$"); + } + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - /** Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = readMask; - return this; - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates a Dataset. - * - * Create a request for the method "datasets.patch". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name Output only. Identifier. The resource name of the Dataset. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - public class Patch extends AiplatformRequest { + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - private static final String REST_PATH = "v1beta1/{+name}"; + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** - * Updates a Dataset. - * - * Create a request for the method "datasets.patch". - * - * This request holds the parameters needed by the the aiplatform 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 Output only. Identifier. The resource name of the Dataset. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset content) { - super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset.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/[^/]+/datasets/[^/]+$"); + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } - } - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } + /** + * Required. The task or collaborative project whose workspace to list. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } + /** Required. The task or collaborative project whose workspace to list. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + public java.lang.String getParent() { + return parent; + } - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } + /** + * Required. The task or collaborative project whose workspace to list. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + 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/[^/]+/collaborativeProjects/[^/]+$"); + } + this.parent = parent; + return this; + } - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } + /** + * Optional. An AIP-160 filter expression that entries must match, e.g. `type = FILE AND + * mime_type = "image"`. Empty matches every entry. Supported fields: * `type` -- `FILE` + * or `DIRECTORY` (see `TaskArtifactFile.Type`), case-sensitive. * `mime_type` -- a + * media type in double quotes, e.g. `"text/csv"`. `*` is a wildcard, so `"image"` + * matches every image type. Directories have an empty `mime_type`. Comparisons use `=` + * or `!=` and combine with `AND`, `OR`, `NOT` (or `-`) and parentheses. A filter that + * is not valid AIP-160, or that uses another field or operator, is rejected with + * `INVALID_ARGUMENT`. The filter selects which entries are returned, not which + * directories are walked: with `recursive`, `type = FILE` still returns the files in + * subdirectories. + */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } + /** Optional. An AIP-160 filter expression that entries must match, e.g. `type = FILE AND mime_type = + "image"`. Empty matches every entry. Supported fields: * `type` -- `FILE` or `DIRECTORY` (see + `TaskArtifactFile.Type`), case-sensitive. * `mime_type` -- a media type in double quotes, e.g. + `"text/csv"`. `*` is a wildcard, so `"image"` matches every image type. Directories have an empty + `mime_type`. Comparisons use `=` or `!=` and combine with `AND`, `OR`, `NOT` (or `-`) and + parentheses. A filter that is not valid AIP-160, or that uses another field or operator, is + rejected with `INVALID_ARGUMENT`. The filter selects which entries are returned, not which + directories are walked: with `recursive`, `type = FILE` still returns the files in subdirectories. + */ + public java.lang.String getFilter() { + return filter; + } - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } + /** + * Optional. An AIP-160 filter expression that entries must match, e.g. `type = FILE AND + * mime_type = "image"`. Empty matches every entry. Supported fields: * `type` -- `FILE` + * or `DIRECTORY` (see `TaskArtifactFile.Type`), case-sensitive. * `mime_type` -- a + * media type in double quotes, e.g. `"text/csv"`. `*` is a wildcard, so `"image"` + * matches every image type. Directories have an empty `mime_type`. Comparisons use `=` + * or `!=` and combine with `AND`, `OR`, `NOT` (or `-`) and parentheses. A filter that + * is not valid AIP-160, or that uses another field or operator, is rejected with + * `INVALID_ARGUMENT`. The filter selects which entries are returned, not which + * directories are walked: with `recursive`, `type = FILE` still returns the files in + * subdirectories. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } + /** + * Optional. The maximum number of entries to return. The service may return fewer than + * this value, including none on a page that is not the last. If unspecified or 0, at + * most 100 are returned. The maximum is 1000; values above 1000 are coerced to 1000. A + * negative value is rejected with `INVALID_ARGUMENT`. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } + /** Optional. The maximum number of entries to return. The service may return fewer than this value, + including none on a page that is not the last. If unspecified or 0, at most 100 are returned. The + maximum is 1000; values above 1000 are coerced to 1000. A negative value is rejected with + `INVALID_ARGUMENT`. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** - * Output only. Identifier. The resource name of the Dataset. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + /** + * Optional. The maximum number of entries to return. The service may return fewer than + * this value, including none on a page that is not the last. If unspecified or 0, at + * most 100 are returned. The maximum is 1000; values above 1000 are coerced to 1000. A + * negative value is rejected with `INVALID_ARGUMENT`. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** Output only. Identifier. The resource name of the Dataset. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` - */ - public java.lang.String getName() { - return name; - } + /** + * Optional. A page token, received from a previous ListWorkspaceArtifacts call. Provide + * this to retrieve the subsequent page. When paginating, all other fields of the + * request except `page_size` must match the call that provided the page token. The + * workspace is live: the agent can write between pages, so a paged listing is not a + * snapshot. An entry added during the walk may or may not appear, and one removed may + * still be listed and then fail to download. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** - * Output only. Identifier. The resource name of the Dataset. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ - 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/[^/]+/datasets/[^/]+$"); + /** Optional. A page token, received from a previous ListWorkspaceArtifacts call. Provide this to + retrieve the subsequent page. When paginating, all other fields of the request except `page_size` + must match the call that provided the page token. The workspace is live: the agent can write + between pages, so a paged listing is not a snapshot. An entry added during the walk may or may not + appear, and one removed may still be listed and then fail to download. + */ + public java.lang.String getPageToken() { + return pageToken; } - this.name = name; - return this; - } - /** - * Required. The update mask applies to the resource. For the `FieldMask` definition, see - * google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * - * `labels` - */ - @com.google.api.client.util.Key - private String updateMask; + /** + * Optional. A page token, received from a previous ListWorkspaceArtifacts call. Provide + * this to retrieve the subsequent page. When paginating, all other fields of the + * request except `page_size` must match the call that provided the page token. The + * workspace is live: the agent can write between pages, so a paged listing is not a + * snapshot. An entry added during the walk may or may not appear, and one removed may + * still be listed and then fail to download. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - /** Required. The update mask applies to the resource. For the `FieldMask` definition, see - google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * `labels` - */ - public String getUpdateMask() { - return updateMask; - } + /** + * Optional. Absolute path of the directory to list, e.g. `/workspace/userdata`. Must be + * `/workspace` or under it, at most 1024 characters, and not contain a `..` segment. + * Defaults to `/workspace`. + */ + @com.google.api.client.util.Key + private java.lang.String path; - /** - * Required. The update mask applies to the resource. For the `FieldMask` definition, see - * google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * - * `labels` - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } + /** Optional. Absolute path of the directory to list, e.g. `/workspace/userdata`. Must be `/workspace` + or under it, at most 1024 characters, and not contain a `..` segment. Defaults to `/workspace`. + */ + public java.lang.String getPath() { + return path; + } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Searches DataItems in a Dataset. - * - * Create a request for the method "datasets.searchDataItems". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link SearchDataItems#execute()} method to invoke the remote operation. - * - * @param dataset Required. The resource name of the Dataset from which to search DataItems. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @return the request - */ - public SearchDataItems searchDataItems(java.lang.String dataset) throws java.io.IOException { - SearchDataItems result = new SearchDataItems(dataset); - initialize(result); - return result; - } + /** + * Optional. Absolute path of the directory to list, e.g. `/workspace/userdata`. Must be + * `/workspace` or under it, at most 1024 characters, and not contain a `..` segment. + * Defaults to `/workspace`. + */ + public List setPath(java.lang.String path) { + this.path = path; + return this; + } - public class SearchDataItems extends AiplatformRequest { + /** Optional. If `true`, descends into subdirectories. Results are breadth-first. */ + @com.google.api.client.util.Key + private java.lang.Boolean recursive; - private static final String REST_PATH = "v1beta1/{+dataset}:searchDataItems"; + /** Optional. If `true`, descends into subdirectories. Results are breadth-first. + */ + public java.lang.Boolean getRecursive() { + return recursive; + } - private final java.util.regex.Pattern DATASET_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + /** Optional. If `true`, descends into subdirectories. Results are breadth-first. */ + public List setRecursive(java.lang.Boolean recursive) { + this.recursive = recursive; + return this; + } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } /** - * Searches DataItems in a Dataset. + * Returns a file converted for a preview, such as a PDF of a .pptx. A server-streaming RPC. The + * response body is the converted file's bytes, with its media type as the `Content-Type`. The + * server converts the file as it is stored now, on every call, and stores nothing. A PDF asked for + * as a PDF is returned as stored. Fails with `INVALID_ARGUMENT` or `FAILED_PRECONDITION` when the + * file cannot be converted (an unsupported format, too large, or unreadable), with + * `DEADLINE_EXCEEDED` when the conversion takes too long, and with `UNAVAILABLE` when conversion is + * busy or not available; the last two may succeed on a retry. * - * Create a request for the method "datasets.searchDataItems". + * Create a request for the method "artifacts.preview". * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link SearchDataItems#execute()} method to invoke the remote - * operation.

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

+ * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Preview#execute()} method to invoke the remote operation. * - * @param dataset Required. The resource name of the Dataset from which to search DataItems. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @since 1.13 + * @param parent Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @return the request */ - protected SearchDataItems(java.lang.String dataset) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchDataItemsResponse.class); - this.dataset = com.google.api.client.util.Preconditions.checkNotNull(dataset, "Required parameter dataset must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DATASET_PATTERN.matcher(dataset).matches(), - "Parameter dataset must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); - } + public Preview preview(java.lang.String parent) throws java.io.IOException { + Preview result = new Preview(parent); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class Preview extends AiplatformRequest { - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + private static final String REST_PATH = "v1beta1/{+parent}/artifacts:preview"; - @Override - public SearchDataItems set$Xgafv(java.lang.String $Xgafv) { - return (SearchDataItems) super.set$Xgafv($Xgafv); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+$"); - @Override - public SearchDataItems setAccessToken(java.lang.String accessToken) { - return (SearchDataItems) super.setAccessToken(accessToken); - } + /** + * Returns a file converted for a preview, such as a PDF of a .pptx. A server-streaming RPC. The + * response body is the converted file's bytes, with its media type as the `Content-Type`. The + * server converts the file as it is stored now, on every call, and stores nothing. A PDF asked + * for as a PDF is returned as stored. Fails with `INVALID_ARGUMENT` or `FAILED_PRECONDITION` when + * the file cannot be converted (an unsupported format, too large, or unreadable), with + * `DEADLINE_EXCEEDED` when the conversion takes too long, and with `UNAVAILABLE` when conversion + * is busy or not available; the last two may succeed on a retry. + * + * Create a request for the method "artifacts.preview". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Preview#execute()} method to invoke the remote operation. + *

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

+ * + * @param parent Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @since 1.13 + */ + protected Preview(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.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/[^/]+/collaborativeProjects/[^/]+$"); + } + } - @Override - public SearchDataItems setAlt(java.lang.String alt) { - return (SearchDataItems) super.setAlt(alt); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public SearchDataItems setCallback(java.lang.String callback) { - return (SearchDataItems) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public SearchDataItems setFields(java.lang.String fields) { - return (SearchDataItems) super.setFields(fields); - } + @Override + public Preview set$Xgafv(java.lang.String $Xgafv) { + return (Preview) super.set$Xgafv($Xgafv); + } - @Override - public SearchDataItems setKey(java.lang.String key) { - return (SearchDataItems) super.setKey(key); - } + @Override + public Preview setAccessToken(java.lang.String accessToken) { + return (Preview) super.setAccessToken(accessToken); + } - @Override - public SearchDataItems setOauthToken(java.lang.String oauthToken) { - return (SearchDataItems) super.setOauthToken(oauthToken); - } + @Override + public Preview setAlt(java.lang.String alt) { + return (Preview) super.setAlt(alt); + } - @Override - public SearchDataItems setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SearchDataItems) super.setPrettyPrint(prettyPrint); - } + @Override + public Preview setCallback(java.lang.String callback) { + return (Preview) super.setCallback(callback); + } - @Override - public SearchDataItems setQuotaUser(java.lang.String quotaUser) { - return (SearchDataItems) super.setQuotaUser(quotaUser); - } + @Override + public Preview setFields(java.lang.String fields) { + return (Preview) super.setFields(fields); + } - @Override - public SearchDataItems setUploadType(java.lang.String uploadType) { - return (SearchDataItems) super.setUploadType(uploadType); - } + @Override + public Preview setKey(java.lang.String key) { + return (Preview) super.setKey(key); + } - @Override - public SearchDataItems setUploadProtocol(java.lang.String uploadProtocol) { - return (SearchDataItems) super.setUploadProtocol(uploadProtocol); - } + @Override + public Preview setOauthToken(java.lang.String oauthToken) { + return (Preview) super.setOauthToken(oauthToken); + } - /** - * Required. The resource name of the Dataset from which to search DataItems. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ - @com.google.api.client.util.Key - private java.lang.String dataset; + @Override + public Preview setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Preview) super.setPrettyPrint(prettyPrint); + } - /** Required. The resource name of the Dataset from which to search DataItems. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` - */ - public java.lang.String getDataset() { - return dataset; - } + @Override + public Preview setQuotaUser(java.lang.String quotaUser) { + return (Preview) super.setQuotaUser(quotaUser); + } - /** - * Required. The resource name of the Dataset from which to search DataItems. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ - public SearchDataItems setDataset(java.lang.String dataset) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DATASET_PATTERN.matcher(dataset).matches(), - "Parameter dataset must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + @Override + public Preview setUploadType(java.lang.String uploadType) { + return (Preview) super.setUploadType(uploadType); } - this.dataset = dataset; - return this; - } - /** - * An expression that specifies what Annotations will be returned per DataItem. - * Annotations satisfied either of the conditions will be returned. * `annotation_spec_id` - * - for = or !=. Must specify `saved_query_id=` - saved query id that annotations should - * belong to. - */ - @com.google.api.client.util.Key - private java.util.List annotationFilters; + @Override + public Preview setUploadProtocol(java.lang.String uploadProtocol) { + return (Preview) super.setUploadProtocol(uploadProtocol); + } - /** An expression that specifies what Annotations will be returned per DataItem. Annotations satisfied - either of the conditions will be returned. * `annotation_spec_id` - for = or !=. Must specify - `saved_query_id=` - saved query id that annotations should belong to. - */ - public java.util.List getAnnotationFilters() { - return annotationFilters; - } + /** + * Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** - * An expression that specifies what Annotations will be returned per DataItem. - * Annotations satisfied either of the conditions will be returned. * `annotation_spec_id` - * - for = or !=. Must specify `saved_query_id=` - saved query id that annotations should - * belong to. - */ - public SearchDataItems setAnnotationFilters(java.util.List annotationFilters) { - this.annotationFilters = annotationFilters; - return this; - } + /** Required. The task or collaborative project whose workspace holds the file. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + public java.lang.String getParent() { + return parent; + } - /** - * An expression for filtering the Annotations that will be returned per DataItem. * - * `annotation_spec_id` - for = or !=. - */ - @com.google.api.client.util.Key - private java.lang.String annotationsFilter; + /** + * Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + public Preview 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/[^/]+/collaborativeProjects/[^/]+$"); + } + this.parent = parent; + return this; + } - /** An expression for filtering the Annotations that will be returned per DataItem. * - `annotation_spec_id` - for = or !=. - */ - public java.lang.String getAnnotationsFilter() { - return annotationsFilter; - } + /** + * Required. The media type to convert the file to: * `application/pdf`: the file as a + * PDF, e.g. of a .docx, .pptx or .xlsx. * `application/json`: a spreadsheet, e.g. a + * .xlsx or .csv, as JSON describing its sheets and cells, from which a client draws the + * workbook as a grid. + */ + @com.google.api.client.util.Key + private java.lang.String outputMimeType; - /** - * An expression for filtering the Annotations that will be returned per DataItem. * - * `annotation_spec_id` - for = or !=. - */ - public SearchDataItems setAnnotationsFilter(java.lang.String annotationsFilter) { - this.annotationsFilter = annotationsFilter; - return this; - } + /** Required. The media type to convert the file to: * `application/pdf`: the file as a PDF, e.g. of a + .docx, .pptx or .xlsx. * `application/json`: a spreadsheet, e.g. a .xlsx or .csv, as JSON + describing its sheets and cells, from which a client draws the workbook as a grid. + */ + public java.lang.String getOutputMimeType() { + return outputMimeType; + } - /** - * If set, only up to this many of Annotations will be returned per DataItemView. The - * maximum value is 1000. If not set, the maximum value will be used. - */ - @com.google.api.client.util.Key - private java.lang.Integer annotationsLimit; + /** + * Required. The media type to convert the file to: * `application/pdf`: the file as a + * PDF, e.g. of a .docx, .pptx or .xlsx. * `application/json`: a spreadsheet, e.g. a + * .xlsx or .csv, as JSON describing its sheets and cells, from which a client draws the + * workbook as a grid. + */ + public Preview setOutputMimeType(java.lang.String outputMimeType) { + this.outputMimeType = outputMimeType; + return this; + } - /** If set, only up to this many of Annotations will be returned per DataItemView. The maximum value is - 1000. If not set, the maximum value will be used. - */ - public java.lang.Integer getAnnotationsLimit() { - return annotationsLimit; - } + /** + * Required. Absolute path of a file in the task's workspace, e.g. + * `/workspace/report.pptx`, or, for a collaborative project, under + * `/workspace/project`, e.g. `/workspace/project/report.pptx`. Must be under + * `/workspace`, at most 1024 characters, and not contain a `..` segment. Accepts + * `TaskArtifactFile.path` as-is. + */ + @com.google.api.client.util.Key + private java.lang.String path; - /** - * If set, only up to this many of Annotations will be returned per DataItemView. The - * maximum value is 1000. If not set, the maximum value will be used. - */ - public SearchDataItems setAnnotationsLimit(java.lang.Integer annotationsLimit) { - this.annotationsLimit = annotationsLimit; - return this; - } + /** Required. Absolute path of a file in the task's workspace, e.g. `/workspace/report.pptx`, or, for a + collaborative project, under `/workspace/project`, e.g. `/workspace/project/report.pptx`. Must be + under `/workspace`, at most 1024 characters, and not contain a `..` segment. Accepts + `TaskArtifactFile.path` as-is. + */ + public java.lang.String getPath() { + return path; + } - /** - * An expression for filtering the DataItem that will be returned. * `data_item_id` - for - * = or !=. * `labeled` - for = or !=. * `has_annotation(ANNOTATION_SPEC_ID)` - true only - * for DataItem that have at least one annotation with annotation_spec_id = - * `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob. For example: * - * `data_item=1` * `has_annotation(5)` - */ - @com.google.api.client.util.Key - private java.lang.String dataItemFilter; + /** + * Required. Absolute path of a file in the task's workspace, e.g. + * `/workspace/report.pptx`, or, for a collaborative project, under + * `/workspace/project`, e.g. `/workspace/project/report.pptx`. Must be under + * `/workspace`, at most 1024 characters, and not contain a `..` segment. Accepts + * `TaskArtifactFile.path` as-is. + */ + public Preview setPath(java.lang.String path) { + this.path = path; + return this; + } - /** An expression for filtering the DataItem that will be returned. * `data_item_id` - for = or !=. * - `labeled` - for = or !=. * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that have - at least one annotation with annotation_spec_id = `ANNOTATION_SPEC_ID` in the context of SavedQuery - or DataLabelingJob. For example: * `data_item=1` * `has_annotation(5)` - */ - public java.lang.String getDataItemFilter() { - return dataItemFilter; + @Override + public Preview set(String parameterName, Object value) { + return (Preview) super.set(parameterName, value); + } } - /** - * An expression for filtering the DataItem that will be returned. * `data_item_id` - for - * = or !=. * `labeled` - for = or !=. * `has_annotation(ANNOTATION_SPEC_ID)` - true only - * for DataItem that have at least one annotation with annotation_spec_id = - * `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob. For example: * - * `data_item=1` * `has_annotation(5)` + * Deletes a file from a task's workspace. `path` must be an absolute path to a file in the task's + * workspace, under `/workspace/`, e.g. `/workspace/userdata/input.csv`. A path outside + * `/workspace/`, including a relative path, or a path with a `..` segment fails with + * `INVALID_ARGUMENT`. A directory path, or a task in a terminal state, fails with + * `FAILED_PRECONDITION`. A missing file fails with `NOT_FOUND` unless `allow_missing` is `true`, in + * which case the call succeeds and changes nothing. + * + * Create a request for the method "artifacts.remove". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Remove#execute()} method to invoke the remote operation. + * + * @param parent Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactRequest} + * @return the request */ - public SearchDataItems setDataItemFilter(java.lang.String dataItemFilter) { - this.dataItemFilter = dataItemFilter; - return this; + public Remove remove(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactRequest content) throws java.io.IOException { + Remove result = new Remove(parent, content); + initialize(result); + return result; } - /** - * The resource name of a DataLabelingJob. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` If this - * field is set, all of the search will be done in the context of this DataLabelingJob. - */ - @com.google.api.client.util.Key - private java.lang.String dataLabelingJob; - - /** The resource name of a DataLabelingJob. Format: - `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` If this field is - set, all of the search will be done in the context of this DataLabelingJob. - */ - public java.lang.String getDataLabelingJob() { - return dataLabelingJob; - } + public class Remove extends AiplatformRequest { - /** - * The resource name of a DataLabelingJob. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` If this - * field is set, all of the search will be done in the context of this DataLabelingJob. - */ - public SearchDataItems setDataLabelingJob(java.lang.String dataLabelingJob) { - this.dataLabelingJob = dataLabelingJob; - return this; - } + private static final String REST_PATH = "v1beta1/{+parent}/artifacts:remove"; - /** Mask specifying which fields of DataItemView to read. */ - @com.google.api.client.util.Key - private String fieldMask; + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+$"); - /** Mask specifying which fields of DataItemView to read. - */ - public String getFieldMask() { - return fieldMask; - } + /** + * Deletes a file from a task's workspace. `path` must be an absolute path to a file in the task's + * workspace, under `/workspace/`, e.g. `/workspace/userdata/input.csv`. A path outside + * `/workspace/`, including a relative path, or a path with a `..` segment fails with + * `INVALID_ARGUMENT`. A directory path, or a task in a terminal state, fails with + * `FAILED_PRECONDITION`. A missing file fails with `NOT_FOUND` unless `allow_missing` is `true`, + * in which case the call succeeds and changes nothing. + * + * Create a request for the method "artifacts.remove". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Remove#execute()} method to invoke the remote operation. + *

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

+ * + * @param parent Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactRequest} + * @since 1.13 + */ + protected Remove(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactResponse.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/[^/]+/collaborativeProjects/[^/]+$"); + } + } - /** Mask specifying which fields of DataItemView to read. */ - public SearchDataItems setFieldMask(String fieldMask) { - this.fieldMask = fieldMask; - return this; - } + @Override + public Remove set$Xgafv(java.lang.String $Xgafv) { + return (Remove) super.set$Xgafv($Xgafv); + } - /** - * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public Remove setAccessToken(java.lang.String accessToken) { + return (Remove) super.setAccessToken(accessToken); + } - /** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field - name for descending. - */ - public java.lang.String getOrderBy() { - return orderBy; - } + @Override + public Remove setAlt(java.lang.String alt) { + return (Remove) super.setAlt(alt); + } - /** - * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. - */ - public SearchDataItems setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } + @Override + public Remove setCallback(java.lang.String callback) { + return (Remove) super.setCallback(callback); + } - /** - * A comma-separated list of annotation fields to order by, sorted in ascending order. Use - * "desc" after a field name for descending. Must also specify saved_query. - */ - @com.google.api.client.util.Key("orderByAnnotation.orderBy") - private java.lang.String orderByAnnotationOrderBy; + @Override + public Remove setFields(java.lang.String fields) { + return (Remove) super.setFields(fields); + } - /** A comma-separated list of annotation fields to order by, sorted in ascending order. Use "desc" - after a field name for descending. Must also specify saved_query. - */ - public java.lang.String getOrderByAnnotationOrderBy() { - return orderByAnnotationOrderBy; - } + @Override + public Remove setKey(java.lang.String key) { + return (Remove) super.setKey(key); + } - /** - * A comma-separated list of annotation fields to order by, sorted in ascending order. Use - * "desc" after a field name for descending. Must also specify saved_query. - */ - public SearchDataItems setOrderByAnnotationOrderBy(java.lang.String orderByAnnotationOrderBy) { - this.orderByAnnotationOrderBy = orderByAnnotationOrderBy; - return this; - } + @Override + public Remove setOauthToken(java.lang.String oauthToken) { + return (Remove) super.setOauthToken(oauthToken); + } - /** - * Required. Saved query of the Annotation. Only Annotations belong to this saved query - * will be considered for ordering. - */ - @com.google.api.client.util.Key("orderByAnnotation.savedQuery") - private java.lang.String orderByAnnotationSavedQuery; + @Override + public Remove setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Remove) super.setPrettyPrint(prettyPrint); + } - /** Required. Saved query of the Annotation. Only Annotations belong to this saved query will be - considered for ordering. - */ - public java.lang.String getOrderByAnnotationSavedQuery() { - return orderByAnnotationSavedQuery; - } + @Override + public Remove setQuotaUser(java.lang.String quotaUser) { + return (Remove) super.setQuotaUser(quotaUser); + } - /** - * Required. Saved query of the Annotation. Only Annotations belong to this saved query - * will be considered for ordering. - */ - public SearchDataItems setOrderByAnnotationSavedQuery(java.lang.String orderByAnnotationSavedQuery) { - this.orderByAnnotationSavedQuery = orderByAnnotationSavedQuery; - return this; - } + @Override + public Remove setUploadType(java.lang.String uploadType) { + return (Remove) super.setUploadType(uploadType); + } - /** - * A comma-separated list of data item fields to order by, sorted in ascending order. Use - * "desc" after a field name for descending. - */ - @com.google.api.client.util.Key - private java.lang.String orderByDataItem; - - /** A comma-separated list of data item fields to order by, sorted in ascending order. Use "desc" after - a field name for descending. - */ - public java.lang.String getOrderByDataItem() { - return orderByDataItem; - } - - /** - * A comma-separated list of data item fields to order by, sorted in ascending order. Use - * "desc" after a field name for descending. - */ - public SearchDataItems setOrderByDataItem(java.lang.String orderByDataItem) { - this.orderByDataItem = orderByDataItem; - return this; - } - - /** - * Requested page size. Server may return fewer results than requested. Default and - * maximum page size is 100. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Requested page size. Server may return fewer results than requested. Default and maximum page size - is 100. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Requested page size. Server may return fewer results than requested. Default and - * maximum page size is 100. - */ - public SearchDataItems setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * A token identifying a page of results for the server to return Typically obtained via - * SearchDataItemsResponse.next_page_token of the previous DatasetService.SearchDataItems - * call. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** A token identifying a page of results for the server to return Typically obtained via - SearchDataItemsResponse.next_page_token of the previous DatasetService.SearchDataItems call. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public Remove setUploadProtocol(java.lang.String uploadProtocol) { + return (Remove) super.setUploadProtocol(uploadProtocol); + } - /** - * A token identifying a page of results for the server to return Typically obtained via - * SearchDataItemsResponse.next_page_token of the previous DatasetService.SearchDataItems - * call. - */ - public SearchDataItems setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** + * Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** - * The resource name of a SavedQuery(annotation set in UI). Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` - * All of the search will be done in the context of this SavedQuery. - */ - @com.google.api.client.util.Key - private java.lang.String savedQuery; + /** Required. The task or collaborative project whose workspace holds the file. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + public java.lang.String getParent() { + return parent; + } - /** The resource name of a SavedQuery(annotation set in UI). Format: - `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` All of the - search will be done in the context of this SavedQuery. - */ - public java.lang.String getSavedQuery() { - return savedQuery; - } + /** + * Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + public Remove 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/[^/]+/collaborativeProjects/[^/]+$"); + } + this.parent = parent; + return this; + } - /** - * The resource name of a SavedQuery(annotation set in UI). Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` - * All of the search will be done in the context of this SavedQuery. - */ - public SearchDataItems setSavedQuery(java.lang.String savedQuery) { - this.savedQuery = savedQuery; - return this; + @Override + public Remove set(String parameterName, Object value) { + return (Remove) super.set(parameterName, value); + } } - @Override - public SearchDataItems set(String parameterName, Object value) { - return (SearchDataItems) super.set(parameterName, value); - } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - * - * Create a request for the method "datasets.setIamPolicy". + * An accessor for creating requests from the Operations collection. * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + *

The typical use is:

+ *
+         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+         *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+         * 
* - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest} - * @return the request + * @return the resource collection */ - public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(resource, content); - initialize(result); - return result; + public Operations operations() { + return new Operations(); } - public class SetIamPolicy extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+resource}:setIamPolicy"; - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + /** + * The "operations" collection of methods. + */ + public class Operations { /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. * - * Create a request for the method "datasets.setIamPolicy". + * Create a request for the method "operations.cancel". * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote - * operation.

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

+ * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest} - * @since 1.13 + * @param name The name of the operation resource to be cancelled. + * @return the request */ - protected SetIamPolicy(java.lang.String resource, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); - } + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; } - @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); - } + public class Cancel extends AiplatformRequest { - @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}:cancel"; - @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+/operations/[^/]+$"); - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } + /** + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. + * + * Create a request for the method "operations.cancel". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + *

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

+ * + * @param name The name of the operation resource to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/collaborativeProjects/[^/]+/operations/[^/]+$"); + } + } - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } - /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } - /** REQUIRED: The resource for which the policy is being specified. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } - /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - public SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } - this.resource = resource; - return this; - } - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. If the resource does not exist, - * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is - * designed to be used for building permission-aware UIs and command-line tools, not for - * authorization checking. This operation may "fail open" without warning. - * - * Create a request for the method "datasets.testIamPermissions". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String resource) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(resource); - initialize(result); - return result; - } + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } - public class TestIamPermissions extends AiplatformRequest { + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; - private static final String REST_PATH = "v1beta1/{+resource}:testIamPermissions"; + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + /** The name of the operation resource to be cancelled. */ + public Cancel setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } /** - * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This - * operation is designed to be used for building permission-aware UIs and command-line tools, not - * for authorization checking. This operation may "fail open" without warning. + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. * - * Create a request for the method "datasets.testIamPermissions". + * Create a request for the method "operations.delete". * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

+ * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @since 1.13 + * @param name The name of the operation resource to be deleted. + * @return the request */ - protected TestIamPermissions(java.lang.String resource) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1TestIamPermissionsResponse.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } + public class Delete extends AiplatformRequest { - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+/operations/[^/]+$"); - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/collaborativeProjects/[^/]+/operations/[^/]+$"); + } + } - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - /** REQUIRED: The resource for which the policy detail is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } - this.resource = resource; - return this; - } - /** - * The set of permissions to check for the `resource`. Permissions with wildcards (such as - * `*` or `storage.*`) are not allowed. For more information see [IAM - * Overview](https://cloud.google.com/iam/docs/overview#permissions). - */ - @com.google.api.client.util.Key - private java.util.List permissions; + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - /** The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or - `storage.*`) are not allowed. For more information see [IAM - Overview](https://cloud.google.com/iam/docs/overview#permissions). - */ - public java.util.List getPermissions() { - return permissions; - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - /** - * The set of permissions to check for the `resource`. Permissions with wildcards (such as - * `*` or `storage.*`) are not allowed. For more information see [IAM - * Overview](https://cloud.google.com/iam/docs/overview#permissions). - */ - public TestIamPermissions setPermissions(java.util.List permissions) { - this.permissions = permissions; - return this; - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * An accessor for creating requests from the AnnotationSpecs collection. - * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.AnnotationSpecs.List request = aiplatform.annotationSpecs().list(parameters ...)}
-         * 
- * - * @return the resource collection - */ - public AnnotationSpecs annotationSpecs() { - return new AnnotationSpecs(); - } + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } - /** - * The "annotationSpecs" collection of methods. - */ - public class AnnotationSpecs { + /** The name of the operation resource to be deleted. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } /** - * Gets an AnnotationSpec. + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. * - * Create a request for the method "annotationSpecs.get". + * Create a request for the method "operations.get". * * This request holds the parameters needed by the aiplatform server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. The name of the AnnotationSpec resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_sp - * ec}` + * @param name The name of the operation resource. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -60516,35 +62038,34 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends AiplatformRequest { + public class Get extends AiplatformRequest { private static final String REST_PATH = "v1beta1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+/operations/[^/]+$"); /** - * Gets an AnnotationSpec. + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. * - * Create a request for the method "annotationSpecs.get". + * Create a request for the method "operations.get". * * This request holds the parameters needed by the the aiplatform server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* - * @param name Required. The name of the AnnotationSpec resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_sp - * ec}` + * @param name The name of the operation resource. * @since 1.13 */ protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AnnotationSpec.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+/operations/[^/]+$"); } } @@ -60613,947 +62134,10613 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The name of the AnnotationSpec resource. Format: `projects/{project}/locati - * ons/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` - */ + /** The name of the operation resource. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the AnnotationSpec resource. Format: - `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` + /** The name of the operation resource. */ public java.lang.String getName() { return name; } - /** - * Required. The name of the AnnotationSpec resource. Format: `projects/{project}/locati - * ons/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` - */ + /** The name of the operation resource. */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+/operations/[^/]+$"); } this.name = name; return this; } - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; - - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } - - /** Mask specifying which fields to read. */ - public Get setReadMask(String readMask) { - this.readMask = readMask; - return this; - } - @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the Operations collection. + * Waits until the specified long-running operation is done or reaches at most a specified timeout, + * returning the latest state. If the operation is already done, the latest state is immediately + * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + * timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an immediate + * response is no guarantee that the operation is done. * - *

The typical use is:

- *
-           *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-           *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
-           * 
+ * Create a request for the method "operations.wait". * - * @return the resource collection + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to wait on. + * @return the request */ - public Operations operations() { - return new Operations(); + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; } - /** - * The "operations" collection of methods. - */ - public class Operations { + public class Wait extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:wait"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+/operations/[^/]+$"); /** - * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to - * cancel the operation, but success is not guaranteed. If the server doesn't support this method, - * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other - * methods to check whether the cancellation succeeded or whether the operation completed despite - * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an - * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to - * `Code.CANCELLED`. + * Waits until the specified long-running operation is done or reaches at most a specified + * timeout, returning the latest state. If the operation is already done, the latest state is + * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, + * the HTTP/RPC timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an + * immediate response is no guarantee that the operation is done. * - * Create a request for the method "operations.cancel". + * Create a request for the method "operations.wait". * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

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

* - * @param name The name of the operation resource to be cancelled. - * @return the request + * @param name The name of the operation resource to wait on. + * @since 1.13 */ - public Cancel cancel(java.lang.String name) throws java.io.IOException { - Cancel result = new Cancel(name); - initialize(result); - return result; + protected Wait(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/collaborativeProjects/[^/]+/operations/[^/]+$"); + } } - public class Cancel extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}:cancel"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); - - /** - * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to - * cancel the operation, but success is not guaranteed. If the server doesn't support this method, - * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other - * methods to check whether the cancellation succeeded or whether the operation completed despite - * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an - * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to - * `Code.CANCELLED`. - * - * Create a request for the method "operations.cancel". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. - *

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

- * - * @param name The name of the operation resource to be cancelled. - * @since 1.13 - */ - protected Cancel(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); - } - } + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } + /** The name of the operation resource to wait on. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** The name of the operation resource to be cancelled. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } - /** The name of the operation resource to be cancelled. - */ - public java.lang.String getName() { - return name; + /** The name of the operation resource to wait on. */ + public Wait 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/[^/]+/collaborativeProjects/[^/]+/operations/[^/]+$"); } + this.name = name; + return this; + } - /** The name of the operation resource to be cancelled. */ - public Cancel setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline + * is also specified, the shorter one will be used. + */ + @com.google.api.client.util.Key + private String timeout; - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); - } + /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time + permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the + shorter one will be used. + */ + public String getTimeout() { + return timeout; } + /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. - * - * Create a request for the method "operations.delete". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource to be deleted. - * @return the request + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline + * is also specified, the shorter one will be used. */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + public Wait setTimeout(String timeout) { + this.timeout = timeout; + return this; } - public class Delete extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); - - /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. - * - * Create a request for the method "operations.delete". - * - * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource to be deleted. - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + } + } + /** + * An accessor for creating requests from the CustomJobs collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.CustomJobs.List request = aiplatform.customJobs().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public CustomJobs customJobs() { + return new CustomJobs(); + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + /** + * The "customJobs" collection of methods. + */ + public class CustomJobs { - @Override - public Delete setCallback(java.lang.String callback) { + /** + * Cancels a CustomJob. Starts asynchronous cancellation on the CustomJob. The server makes a best + * effort to cancel the job, but success is not guaranteed. Clients can use JobService.GetCustomJob + * or other methods to check whether the cancellation succeeded or whether the job completed despite + * cancellation. On successful cancellation, the CustomJob is not deleted; instead it becomes a job + * with a CustomJob.error value with a google.rpc.Status.code of 1, corresponding to + * `Code.CANCELLED`, and CustomJob.state is set to `CANCELLED`. + * + * Create a request for the method "customJobs.cancel". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the CustomJob to cancel. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelCustomJobRequest} + * @return the request + */ + public Cancel cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelCustomJobRequest content) throws java.io.IOException { + Cancel result = new Cancel(name, content); + initialize(result); + return result; + } + + public class Cancel extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:cancel"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$"); + + /** + * Cancels a CustomJob. Starts asynchronous cancellation on the CustomJob. The server makes a best + * effort to cancel the job, but success is not guaranteed. Clients can use + * JobService.GetCustomJob or other methods to check whether the cancellation succeeded or whether + * the job completed despite cancellation. On successful cancellation, the CustomJob is not + * deleted; instead it becomes a job with a CustomJob.error value with a google.rpc.Status.code of + * 1, corresponding to `Code.CANCELLED`, and CustomJob.state is set to `CANCELLED`. + * + * Create a request for the method "customJobs.cancel". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + *

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

+ * + * @param name Required. The name of the CustomJob to cancel. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelCustomJobRequest} + * @since 1.13 + */ + protected Cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelCustomJobRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/customJobs/[^/]+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the CustomJob to cancel. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the CustomJob to cancel. Format: + `projects/{project}/locations/{location}/customJobs/{custom_job}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the CustomJob to cancel. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + */ + public Cancel setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Creates a CustomJob. A created CustomJob right away will be attempted to be run. + * + * Create a request for the method "customJobs.create". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the Location to create the CustomJob in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CustomJob} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CustomJob content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/customJobs"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Creates a CustomJob. A created CustomJob right away will be attempted to be run. + * + * Create a request for the method "customJobs.create". + * + * This request holds the parameters needed by the the aiplatform 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 resource name of the Location to create the CustomJob in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CustomJob} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CustomJob content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CustomJob.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 resource name of the Location to create the CustomJob in. Format: + * `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the Location to create the CustomJob in. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the Location to create the CustomJob in. 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; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a CustomJob. + * + * Create a request for the method "customJobs.delete". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the CustomJob resource to be deleted. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$"); + + /** + * Deletes a CustomJob. + * + * Create a request for the method "customJobs.delete". + * + * This request holds the parameters needed by the the aiplatform 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. The name of the CustomJob resource to be deleted. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/customJobs/[^/]+$"); + } + } + + @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. The name of the CustomJob resource to be deleted. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the CustomJob resource to be deleted. Format: + `projects/{project}/locations/{location}/customJobs/{custom_job}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the CustomJob resource to be deleted. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + */ + 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/[^/]+/customJobs/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets a CustomJob. + * + * Create a request for the method "customJobs.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the CustomJob resource. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$"); + + /** + * Gets a CustomJob. + * + * Create a request for the method "customJobs.get". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The name of the CustomJob resource. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CustomJob.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/[^/]+/customJobs/[^/]+$"); + } + } + + @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. The name of the CustomJob resource. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the CustomJob resource. Format: + `projects/{project}/locations/{location}/customJobs/{custom_job}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the CustomJob resource. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + */ + 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/[^/]+/customJobs/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists CustomJobs in a Location. + * + * Create a request for the method "customJobs.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the Location to list the CustomJobs from. 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; + } + + public class List extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/customJobs"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists CustomJobs in a Location. + * + * Create a request for the method "customJobs.list". + * + * This request holds the parameters needed by the the aiplatform 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 resource name of the Location to list the CustomJobs from. Format: + * `projects/{project}/locations/{location}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListCustomJobsResponse.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. The resource name of the Location to list the CustomJobs from. Format: + * `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the Location to list the CustomJobs from. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the Location to list the CustomJobs from. 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; + } + + /** + * The standard list filter. Supported fields: * `display_name` supports `=`, `!=` + * comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * + * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must be + * in RFC 3339 format. * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of + * using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * + * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name="my_job"` * + * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and + `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`<`, + `<=`,`>`, `>=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general + map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some + examples of using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * + `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name="my_job"` * + `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * The standard list filter. Supported fields: * `display_name` supports `=`, `!=` + * comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * + * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must be + * in RFC 3339 format. * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of + * using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * + * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name="my_job"` * + * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * The standard list page token. Typically obtained via + * ListCustomJobsResponse.next_page_token of the previous JobService.ListCustomJobs call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. Typically obtained via ListCustomJobsResponse.next_page_token of the + previous JobService.ListCustomJobs call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * The standard list page token. Typically obtained via + * ListCustomJobsResponse.next_page_token of the previous JobService.ListCustomJobs call. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; + + /** Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; + } + + /** Mask specifying which fields to read. */ + public List setReadMask(String readMask) { + this.readMask = readMask; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Operations collection. + * + *

The typical use is:

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

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

+ * + * @param name The name of the operation resource to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/customJobs/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be cancelled. */ + public Cancel setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be deleted. + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$"); + + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/customJobs/[^/]+/operations/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be deleted. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$"); + + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/customJobs/[^/]+/operations/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}/operations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$"); + + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the the aiplatform 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 name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningListOperationsResponse.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/[^/]+/customJobs/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. + * This can only be `true` when reading across collections. For example, when `parent` + * is set to `"projects/example/locations/-"`. This field is not supported by default + * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented + * otherwise in service or product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. + * This can only be `true` when reading across collections. For example, when `parent` + * is set to `"projects/example/locations/-"`. This field is not supported by default + * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented + * otherwise in service or product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Waits until the specified long-running operation is done or reaches at most a specified timeout, + * returning the latest state. If the operation is already done, the latest state is immediately + * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + * timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an immediate + * response is no guarantee that the operation is done. + * + * Create a request for the method "operations.wait". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to wait on. + * @return the request + */ + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; + } + + public class Wait extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:wait"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$"); + + /** + * Waits until the specified long-running operation is done or reaches at most a specified + * timeout, returning the latest state. If the operation is already done, the latest state is + * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, + * the HTTP/RPC timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an + * immediate response is no guarantee that the operation is done. + * + * Create a request for the method "operations.wait". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

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

+ * + * @param name The name of the operation resource to wait on. + * @since 1.13 + */ + protected Wait(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/customJobs/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } + + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } + + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } + + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } + + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } + + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } + + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } + + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } + + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } + + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } + + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to wait on. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to wait on. */ + public Wait 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/[^/]+/customJobs/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline + * is also specified, the shorter one will be used. + */ + @com.google.api.client.util.Key + private String timeout; + + /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time + permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the + shorter one will be used. + */ + public String getTimeout() { + return timeout; + } + + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline + * is also specified, the shorter one will be used. + */ + public Wait setTimeout(String timeout) { + this.timeout = timeout; + return this; + } + + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } + } + + } + } + /** + * An accessor for creating requests from the DataLabelingJobs collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.DataLabelingJobs.List request = aiplatform.dataLabelingJobs().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public DataLabelingJobs dataLabelingJobs() { + return new DataLabelingJobs(); + } + + /** + * The "dataLabelingJobs" collection of methods. + */ + public class DataLabelingJobs { + + /** + * Cancels a DataLabelingJob. Success of cancellation is not guaranteed. + * + * Create a request for the method "dataLabelingJobs.cancel". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the DataLabelingJob. Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest} + * @return the request + */ + public Cancel cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest content) throws java.io.IOException { + Cancel result = new Cancel(name, content); + initialize(result); + return result; + } + + public class Cancel extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:cancel"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$"); + + /** + * Cancels a DataLabelingJob. Success of cancellation is not guaranteed. + * + * Create a request for the method "dataLabelingJobs.cancel". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + *

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

+ * + * @param name Required. The name of the DataLabelingJob. Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest} + * @since 1.13 + */ + protected Cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/dataLabelingJobs/[^/]+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the DataLabelingJob. Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the DataLabelingJob. Format: + `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the DataLabelingJob. Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + */ + public Cancel setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Creates a DataLabelingJob. + * + * Create a request for the method "dataLabelingJobs.create". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DataLabelingJob} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DataLabelingJob content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/dataLabelingJobs"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Creates a DataLabelingJob. + * + * Create a request for the method "dataLabelingJobs.create". + * + * This request holds the parameters needed by the the aiplatform 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 parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DataLabelingJob} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DataLabelingJob content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DataLabelingJob.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 parent of the DataLabelingJob. Format: + * `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent of the DataLabelingJob. 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; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a DataLabelingJob. + * + * Create a request for the method "dataLabelingJobs.delete". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the DataLabelingJob to be deleted. Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$"); + + /** + * Deletes a DataLabelingJob. + * + * Create a request for the method "dataLabelingJobs.delete". + * + * This request holds the parameters needed by the the aiplatform 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. The name of the DataLabelingJob to be deleted. Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/dataLabelingJobs/[^/]+$"); + } + } + + @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. The name of the DataLabelingJob to be deleted. Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the DataLabelingJob to be deleted. Format: + `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the DataLabelingJob to be deleted. Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + */ + 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/[^/]+/dataLabelingJobs/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets a DataLabelingJob. + * + * Create a request for the method "dataLabelingJobs.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the DataLabelingJob. Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$"); + + /** + * Gets a DataLabelingJob. + * + * Create a request for the method "dataLabelingJobs.get". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The name of the DataLabelingJob. Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DataLabelingJob.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/[^/]+/dataLabelingJobs/[^/]+$"); + } + } + + @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. The name of the DataLabelingJob. Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the DataLabelingJob. Format: + `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the DataLabelingJob. Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + */ + 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/[^/]+/dataLabelingJobs/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists DataLabelingJobs in a Location. + * + * Create a request for the method "dataLabelingJobs.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent of the DataLabelingJob. 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; + } + + public class List extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/dataLabelingJobs"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists DataLabelingJobs in a Location. + * + * Create a request for the method "dataLabelingJobs.list". + * + * This request holds the parameters needed by the the aiplatform 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 parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListDataLabelingJobsResponse.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. The parent of the DataLabelingJob. Format: + * `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent of the DataLabelingJob. 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; + } + + /** + * The standard list filter. Supported fields: * `display_name` supports `=`, `!=` + * comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * + * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must be + * in RFC 3339 format. * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of + * using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * + * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name="my_job"` * + * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and + `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`<`, + `<=`,`>`, `>=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general + map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some + examples of using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * + `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name="my_job"` * + `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * The standard list filter. Supported fields: * `display_name` supports `=`, `!=` + * comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * + * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must be + * in RFC 3339 format. * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of + * using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * + * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name="my_job"` * + * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * A comma-separated list of fields to order by, sorted in ascending order by default. Use + * `desc` after a field name for descending. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** A comma-separated list of fields to order by, sorted in ascending order by default. Use `desc` + after a field name for descending. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * A comma-separated list of fields to order by, sorted in ascending order by default. Use + * `desc` after a field name for descending. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Mask specifying which fields to read. FieldMask represents a set of symbolic field + * paths. For example, the mask can be `paths: "name"`. The "name" here is a field in + * DataLabelingJob. If this field is not set, all fields of the DataLabelingJob are + * returned. + */ + @com.google.api.client.util.Key + private String readMask; + + /** Mask specifying which fields to read. FieldMask represents a set of symbolic field paths. For + example, the mask can be `paths: "name"`. The "name" here is a field in DataLabelingJob. If this + field is not set, all fields of the DataLabelingJob are returned. + */ + public String getReadMask() { + return readMask; + } + + /** + * Mask specifying which fields to read. FieldMask represents a set of symbolic field + * paths. For example, the mask can be `paths: "name"`. The "name" here is a field in + * DataLabelingJob. If this field is not set, all fields of the DataLabelingJob are + * returned. + */ + public List setReadMask(String readMask) { + this.readMask = readMask; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Operations collection. + * + *

The typical use is:

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

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

+ * + * @param name The name of the operation resource to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be cancelled. */ + public Cancel setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be deleted. + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); + + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be deleted. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); + + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}/operations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$"); + + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the the aiplatform 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 name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningListOperationsResponse.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/[^/]+/dataLabelingJobs/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. + * This can only be `true` when reading across collections. For example, when `parent` + * is set to `"projects/example/locations/-"`. This field is not supported by default + * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented + * otherwise in service or product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. + * This can only be `true` when reading across collections. For example, when `parent` + * is set to `"projects/example/locations/-"`. This field is not supported by default + * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented + * otherwise in service or product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Waits until the specified long-running operation is done or reaches at most a specified timeout, + * returning the latest state. If the operation is already done, the latest state is immediately + * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + * timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an immediate + * response is no guarantee that the operation is done. + * + * Create a request for the method "operations.wait". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to wait on. + * @return the request + */ + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; + } + + public class Wait extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:wait"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); + + /** + * Waits until the specified long-running operation is done or reaches at most a specified + * timeout, returning the latest state. If the operation is already done, the latest state is + * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, + * the HTTP/RPC timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an + * immediate response is no guarantee that the operation is done. + * + * Create a request for the method "operations.wait". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

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

+ * + * @param name The name of the operation resource to wait on. + * @since 1.13 + */ + protected Wait(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } + + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } + + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } + + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } + + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } + + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } + + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } + + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } + + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } + + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } + + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to wait on. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to wait on. */ + public Wait 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/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline + * is also specified, the shorter one will be used. + */ + @com.google.api.client.util.Key + private String timeout; + + /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time + permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the + shorter one will be used. + */ + public String getTimeout() { + return timeout; + } + + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline + * is also specified, the shorter one will be used. + */ + public Wait setTimeout(String timeout) { + this.timeout = timeout; + return this; + } + + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } + } + + } + } + /** + * An accessor for creating requests from the Datasets collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.Datasets.List request = aiplatform.datasets().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Datasets datasets() { + return new Datasets(); + } + + /** + * The "datasets" collection of methods. + */ + public class Datasets { + + /** + * Assembles each row of a multimodal dataset and writes the result into a BigQuery table. + * + * Create a request for the method "datasets.assemble". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Assemble#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the Dataset resource (used only for MULTIMODAL datasets). Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssembleDataRequest} + * @return the request + */ + public Assemble assemble(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssembleDataRequest content) throws java.io.IOException { + Assemble result = new Assemble(name, content); + initialize(result); + return result; + } + + public class Assemble extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:assemble"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + + /** + * Assembles each row of a multimodal dataset and writes the result into a BigQuery table. + * + * Create a request for the method "datasets.assemble". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Assemble#execute()} method to invoke the remote operation. + *

{@link + * Assemble#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 Dataset resource (used only for MULTIMODAL datasets). Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssembleDataRequest} + * @since 1.13 + */ + protected Assemble(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssembleDataRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+$"); + } + } + + @Override + public Assemble set$Xgafv(java.lang.String $Xgafv) { + return (Assemble) super.set$Xgafv($Xgafv); + } + + @Override + public Assemble setAccessToken(java.lang.String accessToken) { + return (Assemble) super.setAccessToken(accessToken); + } + + @Override + public Assemble setAlt(java.lang.String alt) { + return (Assemble) super.setAlt(alt); + } + + @Override + public Assemble setCallback(java.lang.String callback) { + return (Assemble) super.setCallback(callback); + } + + @Override + public Assemble setFields(java.lang.String fields) { + return (Assemble) super.setFields(fields); + } + + @Override + public Assemble setKey(java.lang.String key) { + return (Assemble) super.setKey(key); + } + + @Override + public Assemble setOauthToken(java.lang.String oauthToken) { + return (Assemble) super.setOauthToken(oauthToken); + } + + @Override + public Assemble setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Assemble) super.setPrettyPrint(prettyPrint); + } + + @Override + public Assemble setQuotaUser(java.lang.String quotaUser) { + return (Assemble) super.setQuotaUser(quotaUser); + } + + @Override + public Assemble setUploadType(java.lang.String uploadType) { + return (Assemble) super.setUploadType(uploadType); + } + + @Override + public Assemble setUploadProtocol(java.lang.String uploadProtocol) { + return (Assemble) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the Dataset resource (used only for MULTIMODAL datasets). Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the Dataset resource (used only for MULTIMODAL datasets). Format: + `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the Dataset resource (used only for MULTIMODAL datasets). Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public Assemble 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/[^/]+/datasets/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Assemble set(String parameterName, Object value) { + return (Assemble) super.set(parameterName, value); + } + } + /** + * Assesses the state or validity of the dataset with respect to a given use case. + * + * Create a request for the method "datasets.assess". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Assess#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the Dataset resource. Used only for MULTIMODAL datasets. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssessDataRequest} + * @return the request + */ + public Assess assess(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssessDataRequest content) throws java.io.IOException { + Assess result = new Assess(name, content); + initialize(result); + return result; + } + + public class Assess extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:assess"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + + /** + * Assesses the state or validity of the dataset with respect to a given use case. + * + * Create a request for the method "datasets.assess". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Assess#execute()} method to invoke the remote operation. + *

{@link + * Assess#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 Dataset resource. Used only for MULTIMODAL datasets. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssessDataRequest} + * @since 1.13 + */ + protected Assess(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssessDataRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+$"); + } + } + + @Override + public Assess set$Xgafv(java.lang.String $Xgafv) { + return (Assess) super.set$Xgafv($Xgafv); + } + + @Override + public Assess setAccessToken(java.lang.String accessToken) { + return (Assess) super.setAccessToken(accessToken); + } + + @Override + public Assess setAlt(java.lang.String alt) { + return (Assess) super.setAlt(alt); + } + + @Override + public Assess setCallback(java.lang.String callback) { + return (Assess) super.setCallback(callback); + } + + @Override + public Assess setFields(java.lang.String fields) { + return (Assess) super.setFields(fields); + } + + @Override + public Assess setKey(java.lang.String key) { + return (Assess) super.setKey(key); + } + + @Override + public Assess setOauthToken(java.lang.String oauthToken) { + return (Assess) super.setOauthToken(oauthToken); + } + + @Override + public Assess setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Assess) super.setPrettyPrint(prettyPrint); + } + + @Override + public Assess setQuotaUser(java.lang.String quotaUser) { + return (Assess) super.setQuotaUser(quotaUser); + } + + @Override + public Assess setUploadType(java.lang.String uploadType) { + return (Assess) super.setUploadType(uploadType); + } + + @Override + public Assess setUploadProtocol(java.lang.String uploadProtocol) { + return (Assess) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the Dataset resource. Used only for MULTIMODAL datasets. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the Dataset resource. Used only for MULTIMODAL datasets. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the Dataset resource. Used only for MULTIMODAL datasets. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public Assess 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/[^/]+/datasets/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Assess set(String parameterName, Object value) { + return (Assess) super.set(parameterName, value); + } + } + /** + * Creates a Dataset. + * + * Create a request for the method "datasets.create". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the Location to create the Dataset in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/datasets"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Creates a Dataset. + * + * Create a request for the method "datasets.create". + * + * This request holds the parameters needed by the the aiplatform 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 resource name of the Location to create the Dataset in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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 resource name of the Location to create the Dataset in. Format: + * `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the Location to create the Dataset in. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the Location to create the Dataset in. 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; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a Dataset. + * + * Create a request for the method "datasets.delete". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the Dataset to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + + /** + * Deletes a Dataset. + * + * Create a request for the method "datasets.delete". + * + * This request holds the parameters needed by the the aiplatform 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. The resource name of the Dataset to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+$"); + } + } + + @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. The resource name of the Dataset to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the Dataset to delete. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the Dataset to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + 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/[^/]+/datasets/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Exports data from a Dataset. + * + * Create a request for the method "datasets.export". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Export#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the Dataset resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportDataRequest} + * @return the request + */ + public Export export(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportDataRequest content) throws java.io.IOException { + Export result = new Export(name, content); + initialize(result); + return result; + } + + public class Export extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:export"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + + /** + * Exports data from a Dataset. + * + * Create a request for the method "datasets.export". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Export#execute()} method to invoke the remote operation. + *

{@link + * Export#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 Dataset resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportDataRequest} + * @since 1.13 + */ + protected Export(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportDataRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+$"); + } + } + + @Override + public Export set$Xgafv(java.lang.String $Xgafv) { + return (Export) super.set$Xgafv($Xgafv); + } + + @Override + public Export setAccessToken(java.lang.String accessToken) { + return (Export) super.setAccessToken(accessToken); + } + + @Override + public Export setAlt(java.lang.String alt) { + return (Export) super.setAlt(alt); + } + + @Override + public Export setCallback(java.lang.String callback) { + return (Export) super.setCallback(callback); + } + + @Override + public Export setFields(java.lang.String fields) { + return (Export) super.setFields(fields); + } + + @Override + public Export setKey(java.lang.String key) { + return (Export) super.setKey(key); + } + + @Override + public Export setOauthToken(java.lang.String oauthToken) { + return (Export) super.setOauthToken(oauthToken); + } + + @Override + public Export setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Export) super.setPrettyPrint(prettyPrint); + } + + @Override + public Export setQuotaUser(java.lang.String quotaUser) { + return (Export) super.setQuotaUser(quotaUser); + } + + @Override + public Export setUploadType(java.lang.String uploadType) { + return (Export) super.setUploadType(uploadType); + } + + @Override + public Export setUploadProtocol(java.lang.String uploadProtocol) { + return (Export) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the Dataset resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the Dataset resource. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the Dataset resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public Export 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/[^/]+/datasets/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Export set(String parameterName, Object value) { + return (Export) super.set(parameterName, value); + } + } + /** + * Gets a Dataset. + * + * Create a request for the method "datasets.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the Dataset resource. + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + + /** + * Gets a Dataset. + * + * Create a request for the method "datasets.get". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The name of the Dataset resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset.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/[^/]+/datasets/[^/]+$"); + } + } + + @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. The name of the Dataset resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the Dataset resource. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the Dataset resource. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + } + this.name = name; + return this; + } + + /** Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; + + /** Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; + } + + /** Mask specifying which fields to read. */ + public Get setReadMask(String readMask) { + this.readMask = readMask; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists and + * does not have a policy set. + * + * Create a request for the method "datasets.getIamPolicy". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+resource}:getIamPolicy"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + * Create a request for the method "datasets.getIamPolicy". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote + * operation.

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

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

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

+ * + * @param name Required. The name of the Dataset resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportDataRequest} + * @since 1.13 + */ + protected AiplatformImport(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportDataRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+$"); + } + } + + @Override + public AiplatformImport set$Xgafv(java.lang.String $Xgafv) { + return (AiplatformImport) super.set$Xgafv($Xgafv); + } + + @Override + public AiplatformImport setAccessToken(java.lang.String accessToken) { + return (AiplatformImport) super.setAccessToken(accessToken); + } + + @Override + public AiplatformImport setAlt(java.lang.String alt) { + return (AiplatformImport) super.setAlt(alt); + } + + @Override + public AiplatformImport setCallback(java.lang.String callback) { + return (AiplatformImport) super.setCallback(callback); + } + + @Override + public AiplatformImport setFields(java.lang.String fields) { + return (AiplatformImport) super.setFields(fields); + } + + @Override + public AiplatformImport setKey(java.lang.String key) { + return (AiplatformImport) super.setKey(key); + } + + @Override + public AiplatformImport setOauthToken(java.lang.String oauthToken) { + return (AiplatformImport) super.setOauthToken(oauthToken); + } + + @Override + public AiplatformImport setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AiplatformImport) super.setPrettyPrint(prettyPrint); + } + + @Override + public AiplatformImport setQuotaUser(java.lang.String quotaUser) { + return (AiplatformImport) super.setQuotaUser(quotaUser); + } + + @Override + public AiplatformImport setUploadType(java.lang.String uploadType) { + return (AiplatformImport) super.setUploadType(uploadType); + } + + @Override + public AiplatformImport setUploadProtocol(java.lang.String uploadProtocol) { + return (AiplatformImport) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the Dataset resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the Dataset resource. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the Dataset resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public AiplatformImport 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/[^/]+/datasets/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public AiplatformImport set(String parameterName, Object value) { + return (AiplatformImport) super.set(parameterName, value); + } + } + /** + * Lists Datasets in a Location. + * + * Create a request for the method "datasets.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The name of the Dataset's parent resource. 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; + } + + public class List extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/datasets"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists Datasets in a Location. + * + * Create a request for the method "datasets.list". + * + * This request holds the parameters needed by the the aiplatform 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 name of the Dataset's parent resource. Format: + * `projects/{project}/locations/{location}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListDatasetsResponse.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. The name of the Dataset's parent resource. Format: + * `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The name of the Dataset's parent resource. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The name of the Dataset's parent resource. 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; + } + + /** + * An expression for filtering the results of the request. For field names both snake_case + * and camelCase are supported. * `display_name`: supports = and != * + * `metadata_schema_uri`: supports = and != * `labels` supports general map functions that + * is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key + * existence * A key including a space must be quoted. `labels."a key"`. Some examples: * + * `displayName="myDisplayName"` * `labels.myKey="myValue"` + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** An expression for filtering the results of the request. For field names both snake_case and + camelCase are supported. * `display_name`: supports = and != * `metadata_schema_uri`: supports = + and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality + * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels."a + key"`. Some examples: * `displayName="myDisplayName"` * `labels.myKey="myValue"` + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * An expression for filtering the results of the request. For field names both snake_case + * and camelCase are supported. * `display_name`: supports = and != * + * `metadata_schema_uri`: supports = and != * `labels` supports general map functions that + * is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key + * existence * A key including a space must be quoted. `labels."a key"`. Some examples: * + * `displayName="myDisplayName"` * `labels.myKey="myValue"` + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. Supported fields: * `display_name` * `create_time` * + * `update_time` + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field + name for descending. Supported fields: * `display_name` * `create_time` * `update_time` + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. Supported fields: * `display_name` * `create_time` * + * `update_time` + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; + + /** Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; + } + + /** Mask specifying which fields to read. */ + public List setReadMask(String readMask) { + this.readMask = readMask; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates a Dataset. + * + * Create a request for the method "datasets.patch". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Output only. Identifier. The resource name of the Dataset. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + + /** + * Updates a Dataset. + * + * Create a request for the method "datasets.patch". + * + * This request holds the parameters needed by the the aiplatform 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 Output only. Identifier. The resource name of the Dataset. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset.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/[^/]+/datasets/[^/]+$"); + } + } + + @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); + } + + /** + * Output only. Identifier. The resource name of the Dataset. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Output only. Identifier. The resource name of the Dataset. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. Identifier. The resource name of the Dataset. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + 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/[^/]+/datasets/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Required. The update mask applies to the resource. For the `FieldMask` definition, see + * google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * + * `labels` + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. The update mask applies to the resource. For the `FieldMask` definition, see + google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * `labels` + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Required. The update mask applies to the resource. For the `FieldMask` definition, see + * google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * + * `labels` + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Searches DataItems in a Dataset. + * + * Create a request for the method "datasets.searchDataItems". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link SearchDataItems#execute()} method to invoke the remote operation. + * + * @param dataset Required. The resource name of the Dataset from which to search DataItems. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @return the request + */ + public SearchDataItems searchDataItems(java.lang.String dataset) throws java.io.IOException { + SearchDataItems result = new SearchDataItems(dataset); + initialize(result); + return result; + } + + public class SearchDataItems extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+dataset}:searchDataItems"; + + private final java.util.regex.Pattern DATASET_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + + /** + * Searches DataItems in a Dataset. + * + * Create a request for the method "datasets.searchDataItems". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link SearchDataItems#execute()} method to invoke the remote + * operation.

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

+ * + * @param dataset Required. The resource name of the Dataset from which to search DataItems. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @since 1.13 + */ + protected SearchDataItems(java.lang.String dataset) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchDataItemsResponse.class); + this.dataset = com.google.api.client.util.Preconditions.checkNotNull(dataset, "Required parameter dataset must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DATASET_PATTERN.matcher(dataset).matches(), + "Parameter dataset must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + } + } + + @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 SearchDataItems set$Xgafv(java.lang.String $Xgafv) { + return (SearchDataItems) super.set$Xgafv($Xgafv); + } + + @Override + public SearchDataItems setAccessToken(java.lang.String accessToken) { + return (SearchDataItems) super.setAccessToken(accessToken); + } + + @Override + public SearchDataItems setAlt(java.lang.String alt) { + return (SearchDataItems) super.setAlt(alt); + } + + @Override + public SearchDataItems setCallback(java.lang.String callback) { + return (SearchDataItems) super.setCallback(callback); + } + + @Override + public SearchDataItems setFields(java.lang.String fields) { + return (SearchDataItems) super.setFields(fields); + } + + @Override + public SearchDataItems setKey(java.lang.String key) { + return (SearchDataItems) super.setKey(key); + } + + @Override + public SearchDataItems setOauthToken(java.lang.String oauthToken) { + return (SearchDataItems) super.setOauthToken(oauthToken); + } + + @Override + public SearchDataItems setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SearchDataItems) super.setPrettyPrint(prettyPrint); + } + + @Override + public SearchDataItems setQuotaUser(java.lang.String quotaUser) { + return (SearchDataItems) super.setQuotaUser(quotaUser); + } + + @Override + public SearchDataItems setUploadType(java.lang.String uploadType) { + return (SearchDataItems) super.setUploadType(uploadType); + } + + @Override + public SearchDataItems setUploadProtocol(java.lang.String uploadProtocol) { + return (SearchDataItems) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the Dataset from which to search DataItems. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + @com.google.api.client.util.Key + private java.lang.String dataset; + + /** Required. The resource name of the Dataset from which to search DataItems. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public java.lang.String getDataset() { + return dataset; + } + + /** + * Required. The resource name of the Dataset from which to search DataItems. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public SearchDataItems setDataset(java.lang.String dataset) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DATASET_PATTERN.matcher(dataset).matches(), + "Parameter dataset must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + } + this.dataset = dataset; + return this; + } + + /** + * An expression that specifies what Annotations will be returned per DataItem. + * Annotations satisfied either of the conditions will be returned. * `annotation_spec_id` + * - for = or !=. Must specify `saved_query_id=` - saved query id that annotations should + * belong to. + */ + @com.google.api.client.util.Key + private java.util.List annotationFilters; + + /** An expression that specifies what Annotations will be returned per DataItem. Annotations satisfied + either of the conditions will be returned. * `annotation_spec_id` - for = or !=. Must specify + `saved_query_id=` - saved query id that annotations should belong to. + */ + public java.util.List getAnnotationFilters() { + return annotationFilters; + } + + /** + * An expression that specifies what Annotations will be returned per DataItem. + * Annotations satisfied either of the conditions will be returned. * `annotation_spec_id` + * - for = or !=. Must specify `saved_query_id=` - saved query id that annotations should + * belong to. + */ + public SearchDataItems setAnnotationFilters(java.util.List annotationFilters) { + this.annotationFilters = annotationFilters; + return this; + } + + /** + * An expression for filtering the Annotations that will be returned per DataItem. * + * `annotation_spec_id` - for = or !=. + */ + @com.google.api.client.util.Key + private java.lang.String annotationsFilter; + + /** An expression for filtering the Annotations that will be returned per DataItem. * + `annotation_spec_id` - for = or !=. + */ + public java.lang.String getAnnotationsFilter() { + return annotationsFilter; + } + + /** + * An expression for filtering the Annotations that will be returned per DataItem. * + * `annotation_spec_id` - for = or !=. + */ + public SearchDataItems setAnnotationsFilter(java.lang.String annotationsFilter) { + this.annotationsFilter = annotationsFilter; + return this; + } + + /** + * If set, only up to this many of Annotations will be returned per DataItemView. The + * maximum value is 1000. If not set, the maximum value will be used. + */ + @com.google.api.client.util.Key + private java.lang.Integer annotationsLimit; + + /** If set, only up to this many of Annotations will be returned per DataItemView. The maximum value is + 1000. If not set, the maximum value will be used. + */ + public java.lang.Integer getAnnotationsLimit() { + return annotationsLimit; + } + + /** + * If set, only up to this many of Annotations will be returned per DataItemView. The + * maximum value is 1000. If not set, the maximum value will be used. + */ + public SearchDataItems setAnnotationsLimit(java.lang.Integer annotationsLimit) { + this.annotationsLimit = annotationsLimit; + return this; + } + + /** + * An expression for filtering the DataItem that will be returned. * `data_item_id` - for + * = or !=. * `labeled` - for = or !=. * `has_annotation(ANNOTATION_SPEC_ID)` - true only + * for DataItem that have at least one annotation with annotation_spec_id = + * `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob. For example: * + * `data_item=1` * `has_annotation(5)` + */ + @com.google.api.client.util.Key + private java.lang.String dataItemFilter; + + /** An expression for filtering the DataItem that will be returned. * `data_item_id` - for = or !=. * + `labeled` - for = or !=. * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that have + at least one annotation with annotation_spec_id = `ANNOTATION_SPEC_ID` in the context of SavedQuery + or DataLabelingJob. For example: * `data_item=1` * `has_annotation(5)` + */ + public java.lang.String getDataItemFilter() { + return dataItemFilter; + } + + /** + * An expression for filtering the DataItem that will be returned. * `data_item_id` - for + * = or !=. * `labeled` - for = or !=. * `has_annotation(ANNOTATION_SPEC_ID)` - true only + * for DataItem that have at least one annotation with annotation_spec_id = + * `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob. For example: * + * `data_item=1` * `has_annotation(5)` + */ + public SearchDataItems setDataItemFilter(java.lang.String dataItemFilter) { + this.dataItemFilter = dataItemFilter; + return this; + } + + /** + * The resource name of a DataLabelingJob. Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` If this + * field is set, all of the search will be done in the context of this DataLabelingJob. + */ + @com.google.api.client.util.Key + private java.lang.String dataLabelingJob; + + /** The resource name of a DataLabelingJob. Format: + `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` If this field is + set, all of the search will be done in the context of this DataLabelingJob. + */ + public java.lang.String getDataLabelingJob() { + return dataLabelingJob; + } + + /** + * The resource name of a DataLabelingJob. Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` If this + * field is set, all of the search will be done in the context of this DataLabelingJob. + */ + public SearchDataItems setDataLabelingJob(java.lang.String dataLabelingJob) { + this.dataLabelingJob = dataLabelingJob; + return this; + } + + /** Mask specifying which fields of DataItemView to read. */ + @com.google.api.client.util.Key + private String fieldMask; + + /** Mask specifying which fields of DataItemView to read. + */ + public String getFieldMask() { + return fieldMask; + } + + /** Mask specifying which fields of DataItemView to read. */ + public SearchDataItems setFieldMask(String fieldMask) { + this.fieldMask = fieldMask; + return this; + } + + /** + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field + name for descending. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. + */ + public SearchDataItems setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * A comma-separated list of annotation fields to order by, sorted in ascending order. Use + * "desc" after a field name for descending. Must also specify saved_query. + */ + @com.google.api.client.util.Key("orderByAnnotation.orderBy") + private java.lang.String orderByAnnotationOrderBy; + + /** A comma-separated list of annotation fields to order by, sorted in ascending order. Use "desc" + after a field name for descending. Must also specify saved_query. + */ + public java.lang.String getOrderByAnnotationOrderBy() { + return orderByAnnotationOrderBy; + } + + /** + * A comma-separated list of annotation fields to order by, sorted in ascending order. Use + * "desc" after a field name for descending. Must also specify saved_query. + */ + public SearchDataItems setOrderByAnnotationOrderBy(java.lang.String orderByAnnotationOrderBy) { + this.orderByAnnotationOrderBy = orderByAnnotationOrderBy; + return this; + } + + /** + * Required. Saved query of the Annotation. Only Annotations belong to this saved query + * will be considered for ordering. + */ + @com.google.api.client.util.Key("orderByAnnotation.savedQuery") + private java.lang.String orderByAnnotationSavedQuery; + + /** Required. Saved query of the Annotation. Only Annotations belong to this saved query will be + considered for ordering. + */ + public java.lang.String getOrderByAnnotationSavedQuery() { + return orderByAnnotationSavedQuery; + } + + /** + * Required. Saved query of the Annotation. Only Annotations belong to this saved query + * will be considered for ordering. + */ + public SearchDataItems setOrderByAnnotationSavedQuery(java.lang.String orderByAnnotationSavedQuery) { + this.orderByAnnotationSavedQuery = orderByAnnotationSavedQuery; + return this; + } + + /** + * A comma-separated list of data item fields to order by, sorted in ascending order. Use + * "desc" after a field name for descending. + */ + @com.google.api.client.util.Key + private java.lang.String orderByDataItem; + + /** A comma-separated list of data item fields to order by, sorted in ascending order. Use "desc" after + a field name for descending. + */ + public java.lang.String getOrderByDataItem() { + return orderByDataItem; + } + + /** + * A comma-separated list of data item fields to order by, sorted in ascending order. Use + * "desc" after a field name for descending. + */ + public SearchDataItems setOrderByDataItem(java.lang.String orderByDataItem) { + this.orderByDataItem = orderByDataItem; + return this; + } + + /** + * Requested page size. Server may return fewer results than requested. Default and + * maximum page size is 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Requested page size. Server may return fewer results than requested. Default and maximum page size + is 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Requested page size. Server may return fewer results than requested. Default and + * maximum page size is 100. + */ + public SearchDataItems setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A token identifying a page of results for the server to return Typically obtained via + * SearchDataItemsResponse.next_page_token of the previous DatasetService.SearchDataItems + * call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** A token identifying a page of results for the server to return Typically obtained via + SearchDataItemsResponse.next_page_token of the previous DatasetService.SearchDataItems call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A token identifying a page of results for the server to return Typically obtained via + * SearchDataItemsResponse.next_page_token of the previous DatasetService.SearchDataItems + * call. + */ + public SearchDataItems setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The resource name of a SavedQuery(annotation set in UI). Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` + * All of the search will be done in the context of this SavedQuery. + */ + @com.google.api.client.util.Key + private java.lang.String savedQuery; + + /** The resource name of a SavedQuery(annotation set in UI). Format: + `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` All of the + search will be done in the context of this SavedQuery. + */ + public java.lang.String getSavedQuery() { + return savedQuery; + } + + /** + * The resource name of a SavedQuery(annotation set in UI). Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` + * All of the search will be done in the context of this SavedQuery. + */ + public SearchDataItems setSavedQuery(java.lang.String savedQuery) { + this.savedQuery = savedQuery; + return this; + } + + @Override + public SearchDataItems set(String parameterName, Object value) { + return (SearchDataItems) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + * Create a request for the method "datasets.setIamPolicy". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+resource}:setIamPolicy"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + * Create a request for the method "datasets.setIamPolicy". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote + * operation.

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

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

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

+ * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String resource) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1TestIamPermissionsResponse.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy detail is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + } + this.resource = resource; + return this; + } + + /** + * The set of permissions to check for the `resource`. Permissions with wildcards (such as + * `*` or `storage.*`) are not allowed. For more information see [IAM + * Overview](https://cloud.google.com/iam/docs/overview#permissions). + */ + @com.google.api.client.util.Key + private java.util.List permissions; + + /** The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or + `storage.*`) are not allowed. For more information see [IAM + Overview](https://cloud.google.com/iam/docs/overview#permissions). + */ + public java.util.List getPermissions() { + return permissions; + } + + /** + * The set of permissions to check for the `resource`. Permissions with wildcards (such as + * `*` or `storage.*`) are not allowed. For more information see [IAM + * Overview](https://cloud.google.com/iam/docs/overview#permissions). + */ + public TestIamPermissions setPermissions(java.util.List permissions) { + this.permissions = permissions; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the AnnotationSpecs collection. + * + *

The typical use is:

+ *
+         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+         *   {@code Aiplatform.AnnotationSpecs.List request = aiplatform.annotationSpecs().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public AnnotationSpecs annotationSpecs() { + return new AnnotationSpecs(); + } + + /** + * The "annotationSpecs" collection of methods. + */ + public class AnnotationSpecs { + + /** + * Gets an AnnotationSpec. + * + * Create a request for the method "annotationSpecs.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the AnnotationSpec resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_sp + * ec}` + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$"); + + /** + * Gets an AnnotationSpec. + * + * Create a request for the method "annotationSpecs.get". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The name of the AnnotationSpec resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_sp + * ec}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AnnotationSpec.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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$"); + } + } + + @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. The name of the AnnotationSpec resource. Format: `projects/{project}/locati + * ons/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the AnnotationSpec resource. Format: + `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the AnnotationSpec resource. Format: `projects/{project}/locati + * ons/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` + */ + 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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$"); + } + this.name = name; + return this; + } + + /** Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; + + /** Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; + } + + /** Mask specifying which fields to read. */ + public Get setReadMask(String readMask) { + this.readMask = readMask; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Operations collection. + * + *

The typical use is:

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

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

+ * + * @param name The name of the operation resource to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be cancelled. */ + public Cancel setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be deleted. + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); + + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be deleted. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); + + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}/operations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$"); + + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the the aiplatform 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 name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningListOperationsResponse.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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. + * This can only be `true` when reading across collections. For example, when `parent` + * is set to `"projects/example/locations/-"`. This field is not supported by default + * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented + * otherwise in service or product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. + * This can only be `true` when reading across collections. For example, when `parent` + * is set to `"projects/example/locations/-"`. This field is not supported by default + * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented + * otherwise in service or product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Waits until the specified long-running operation is done or reaches at most a specified timeout, + * returning the latest state. If the operation is already done, the latest state is immediately + * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + * timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an immediate + * response is no guarantee that the operation is done. + * + * Create a request for the method "operations.wait". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to wait on. + * @return the request + */ + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; + } + + public class Wait extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:wait"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); + + /** + * Waits until the specified long-running operation is done or reaches at most a specified + * timeout, returning the latest state. If the operation is already done, the latest state is + * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, + * the HTTP/RPC timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an + * immediate response is no guarantee that the operation is done. + * + * Create a request for the method "operations.wait". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

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

+ * + * @param name The name of the operation resource to wait on. + * @since 1.13 + */ + protected Wait(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } + + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } + + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } + + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } + + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } + + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } + + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } + + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } + + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } + + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } + + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to wait on. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to wait on. */ + public Wait 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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context + * deadline is also specified, the shorter one will be used. + */ + @com.google.api.client.util.Key + private String timeout; + + /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time + permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the + shorter one will be used. + */ + public String getTimeout() { + return timeout; + } + + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context + * deadline is also specified, the shorter one will be used. + */ + public Wait setTimeout(String timeout) { + this.timeout = timeout; + return this; + } + + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } + } + + } + } + /** + * An accessor for creating requests from the DataItems collection. + * + *

The typical use is:

+ *
+         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+         *   {@code Aiplatform.DataItems.List request = aiplatform.dataItems().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public DataItems dataItems() { + return new DataItems(); + } + + /** + * The "dataItems" collection of methods. + */ + public class DataItems { + + /** + * Lists DataItems in a Dataset. + * + * Create a request for the method "dataItems.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the Dataset to list DataItems from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/dataItems"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + + /** + * Lists DataItems in a Dataset. + * + * Create a request for the method "dataItems.list". + * + * This request holds the parameters needed by the the aiplatform 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 resource name of the Dataset to list DataItems from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListDataItemsResponse.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/[^/]+/datasets/[^/]+$"); + } + } + + @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. The resource name of the Dataset to list DataItems from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the Dataset to list DataItems from. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the Dataset to list DataItems from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + 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/[^/]+/datasets/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field + name for descending. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; + + /** Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; + } + + /** Mask specifying which fields to read. */ + public List setReadMask(String readMask) { + this.readMask = readMask; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Annotations collection. + * + *

The typical use is:

+ *
+           *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+           *   {@code Aiplatform.Annotations.List request = aiplatform.annotations().list(parameters ...)}
+           * 
+ * + * @return the resource collection + */ + public Annotations annotations() { + return new Annotations(); + } + + /** + * The "annotations" collection of methods. + */ + public class Annotations { + + /** + * Lists Annotations belongs to a dataitem. + * + * Create a request for the method "annotations.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the DataItem to list Annotations from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/annotations"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+$"); + + /** + * Lists Annotations belongs to a dataitem. + * + * Create a request for the method "annotations.list". + * + * This request holds the parameters needed by the the aiplatform 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 resource name of the DataItem to list Annotations from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListAnnotationsResponse.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/[^/]+/datasets/[^/]+/dataItems/[^/]+$"); + } + } + + @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. The resource name of the DataItem to list Annotations from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the DataItem to list Annotations from. Format: + `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the DataItem to list Annotations from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` + */ + 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/[^/]+/datasets/[^/]+/dataItems/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field + name for descending. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; + + /** Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; + } + + /** Mask specifying which fields to read. */ + public List setReadMask(String readMask) { + this.readMask = readMask; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Operations collection. + * + *

The typical use is:

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

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

+ * + * @param name The name of the operation resource to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be cancelled. */ + public Cancel setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be deleted. + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); + + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be deleted. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); + + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}/operations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+$"); + + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the the aiplatform 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 name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningListOperationsResponse.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and + * those that are unreachable are returned in the ListOperationsResponse.unreachable + * field. This can only be `true` when reading across collections. For example, when + * `parent` is set to `"projects/example/locations/-"`. This field is not supported + * by default and will result in an `UNIMPLEMENTED` error if set unless explicitly + * documented otherwise in service or product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and + * those that are unreachable are returned in the ListOperationsResponse.unreachable + * field. This can only be `true` when reading across collections. For example, when + * `parent` is set to `"projects/example/locations/-"`. This field is not supported + * by default and will result in an `UNIMPLEMENTED` error if set unless explicitly + * documented otherwise in service or product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Waits until the specified long-running operation is done or reaches at most a specified timeout, + * returning the latest state. If the operation is already done, the latest state is immediately + * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + * timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an immediate + * response is no guarantee that the operation is done. + * + * Create a request for the method "operations.wait". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to wait on. + * @return the request + */ + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; + } + + public class Wait extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:wait"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); + + /** + * Waits until the specified long-running operation is done or reaches at most a specified + * timeout, returning the latest state. If the operation is already done, the latest state is + * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, + * the HTTP/RPC timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an + * immediate response is no guarantee that the operation is done. + * + * Create a request for the method "operations.wait". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

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

+ * + * @param name The name of the operation resource to wait on. + * @since 1.13 + */ + protected Wait(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } + + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } + + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } + + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } + + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } + + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } + + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } + + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } + + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } + + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } + + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to wait on. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to wait on. */ + public Wait 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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * The maximum duration to wait before timing out. If left blank, the wait will be + * at most the time permitted by the underlying HTTP/RPC protocol. If RPC context + * deadline is also specified, the shorter one will be used. + */ + @com.google.api.client.util.Key + private String timeout; + + /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time + permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the + shorter one will be used. + */ + public String getTimeout() { + return timeout; + } + + /** + * The maximum duration to wait before timing out. If left blank, the wait will be + * at most the time permitted by the underlying HTTP/RPC protocol. If RPC context + * deadline is also specified, the shorter one will be used. + */ + public Wait setTimeout(String timeout) { + this.timeout = timeout; + return this; + } + + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } + } + + } + } + /** + * An accessor for creating requests from the Operations collection. + * + *

The typical use is:

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

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

+ * + * @param name The name of the operation resource to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be cancelled. */ + public Cancel setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be deleted. + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$"); + + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$"); + } + } + + @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); + 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); + } + + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be deleted. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$"); + + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}/operations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+$"); + + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the the aiplatform 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 name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningListOperationsResponse.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/[^/]+/datasets/[^/]+/dataItems/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. + * This can only be `true` when reading across collections. For example, when `parent` + * is set to `"projects/example/locations/-"`. This field is not supported by default + * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented + * otherwise in service or product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. + * This can only be `true` when reading across collections. For example, when `parent` + * is set to `"projects/example/locations/-"`. This field is not supported by default + * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented + * otherwise in service or product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Waits until the specified long-running operation is done or reaches at most a specified timeout, + * returning the latest state. If the operation is already done, the latest state is immediately + * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + * timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an immediate + * response is no guarantee that the operation is done. + * + * Create a request for the method "operations.wait". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to wait on. + * @return the request + */ + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; + } + + public class Wait extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:wait"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$"); + + /** + * Waits until the specified long-running operation is done or reaches at most a specified + * timeout, returning the latest state. If the operation is already done, the latest state is + * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, + * the HTTP/RPC timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an + * immediate response is no guarantee that the operation is done. + * + * Create a request for the method "operations.wait". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

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

+ * + * @param name The name of the operation resource to wait on. + * @since 1.13 + */ + protected Wait(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$"); + } } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } + + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } + + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } + + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } + + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } + + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } + + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to wait on. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to wait on. */ + public Wait 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/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context + * deadline is also specified, the shorter one will be used. + */ + @com.google.api.client.util.Key + private String timeout; + + /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time + permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the + shorter one will be used. + */ + public String getTimeout() { + return timeout; + } + + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context + * deadline is also specified, the shorter one will be used. + */ + public Wait setTimeout(String timeout) { + this.timeout = timeout; + return this; + } + + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } + } + + } + } + /** + * An accessor for creating requests from the DatasetVersions collection. + * + *

The typical use is:

+ *
+         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+         *   {@code Aiplatform.DatasetVersions.List request = aiplatform.datasetVersions().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public DatasetVersions datasetVersions() { + return new DatasetVersions(); + } + + /** + * The "datasetVersions" collection of methods. + */ + public class DatasetVersions { + + /** + * Create a version from a Dataset. + * + * Create a request for the method "datasetVersions.create". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The name of the Dataset resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/datasetVersions"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + + /** + * Create a version from a Dataset. + * + * Create a request for the method "datasetVersions.create". + * + * This request holds the parameters needed by the the aiplatform 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 name of the Dataset resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+$"); + } + } + + @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 name of the Dataset resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The name of the Dataset resource. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The name of the Dataset resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + 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/[^/]+/datasets/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a Dataset version. + * + * Create a request for the method "datasetVersions.delete". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the Dataset version to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi + * on}` + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); + + /** + * Deletes a Dataset version. + * + * Create a request for the method "datasetVersions.delete". + * + * This request holds the parameters needed by the the aiplatform 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. The resource name of the Dataset version to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi + * on}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); + } + } + + @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. The resource name of the Dataset version to delete. Format: `projects/{proj + * ect}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the Dataset version to delete. Format: + `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the Dataset version to delete. Format: `projects/{proj + * ect}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + */ + 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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets a Dataset version. + * + * Create a request for the method "datasetVersions.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the Dataset version to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi + * on}` + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); + + /** + * Gets a Dataset version. + * + * Create a request for the method "datasetVersions.get". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The resource name of the Dataset version to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi + * on}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion.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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); + } + } + + @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. The resource name of the Dataset version to delete. Format: `projects/{proj + * ect}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the Dataset version to delete. Format: + `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the Dataset version to delete. Format: `projects/{proj + * ect}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + */ + 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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); + } + this.name = name; + return this; + } + + /** Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; + + /** Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; + } + + /** Mask specifying which fields to read. */ + public Get setReadMask(String readMask) { + this.readMask = readMask; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists DatasetVersions in a Dataset. + * + * Create a request for the method "datasetVersions.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the Dataset to list DatasetVersions from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/datasetVersions"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + + /** + * Lists DatasetVersions in a Dataset. + * + * Create a request for the method "datasetVersions.list". + * + * This request holds the parameters needed by the the aiplatform 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 resource name of the Dataset to list DatasetVersions from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse.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/[^/]+/datasets/[^/]+$"); + } + } + + @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. The resource name of the Dataset to list DatasetVersions from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the Dataset to list DatasetVersions from. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the Dataset to list DatasetVersions from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + 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/[^/]+/datasets/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. A comma-separated list of fields to order by, sorted in ascending order. + * Use "desc" after a field name for descending. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after + a field name for descending. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. A comma-separated list of fields to order by, sorted in ascending order. + * Use "desc" after a field name for descending. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** Optional. The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Optional. The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** Optional. Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; + + /** Optional. Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; + } + + /** Optional. Mask specifying which fields to read. */ + public List setReadMask(String readMask) { + this.readMask = readMask; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates a DatasetVersion. + * + * Create a request for the method "datasetVersions.patch". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Output only. Identifier. The resource name of the DatasetVersion. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi + * on}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); + + /** + * Updates a DatasetVersion. + * + * Create a request for the method "datasetVersions.patch". + * + * This request holds the parameters needed by the the aiplatform 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 Output only. Identifier. The resource name of the DatasetVersion. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi + * on}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion.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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); + } + } + + @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); + } + + /** + * Output only. Identifier. The resource name of the DatasetVersion. Format: `projects/{ + * project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Output only. Identifier. The resource name of the DatasetVersion. Format: + `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. Identifier. The resource name of the DatasetVersion. Format: `projects/{ + * project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + */ + 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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); } + this.name = name; + return this; + } + + /** + * Required. The update mask applies to the resource. For the `FieldMask` definition, + * see google.protobuf.FieldMask. Updatable fields: * `display_name` + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. The update mask applies to the resource. For the `FieldMask` definition, see + google.protobuf.FieldMask. Updatable fields: * `display_name` + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Required. The update mask applies to the resource. For the `FieldMask` definition, + * see google.protobuf.FieldMask. Updatable fields: * `display_name` + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Restores a dataset version. + * + * Create a request for the method "datasetVersions.restore". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Restore#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the DatasetVersion resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi + * on}` + * @return the request + */ + public Restore restore(java.lang.String name) throws java.io.IOException { + Restore result = new Restore(name); + initialize(result); + return result; + } - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + public class Restore extends AiplatformRequest { - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; - } + private static final String REST_PATH = "v1beta1/{+name}:restore"; - /** The name of the operation resource to be deleted. */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. + * Restores a dataset version. * - * Create a request for the method "operations.get". + * Create a request for the method "datasetVersions.restore". * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Restore#execute()} method to invoke the remote operation. + *

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

* - * @param name The name of the operation resource. - * @return the request + * @param name Required. The name of the DatasetVersion resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi + * on}` + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + protected Restore(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); + } } - public class Get extends AiplatformRequest { + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - private static final String REST_PATH = "v1beta1/{+name}"; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); + @Override + public Restore set$Xgafv(java.lang.String $Xgafv) { + return (Restore) super.set$Xgafv($Xgafv); + } - /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. - * - * Create a request for the method "operations.get". - * - * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); - } - } + @Override + public Restore setAccessToken(java.lang.String accessToken) { + return (Restore) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Restore setAlt(java.lang.String alt) { + return (Restore) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Restore setCallback(java.lang.String callback) { + return (Restore) super.setCallback(callback); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Restore setFields(java.lang.String fields) { + return (Restore) super.setFields(fields); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Restore setKey(java.lang.String key) { + return (Restore) super.setKey(key); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Restore setOauthToken(java.lang.String oauthToken) { + return (Restore) super.setOauthToken(oauthToken); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Restore setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Restore) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Restore setQuotaUser(java.lang.String quotaUser) { + return (Restore) super.setQuotaUser(quotaUser); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Restore setUploadType(java.lang.String uploadType) { + return (Restore) super.setUploadType(uploadType); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Restore setUploadProtocol(java.lang.String uploadProtocol) { + return (Restore) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** + * Required. The name of the DatasetVersion resource. Format: `projects/{project}/locati + * ons/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** Required. The name of the DatasetVersion resource. Format: + `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + */ + public java.lang.String getName() { + return name; + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + /** + * Required. The name of the DatasetVersion resource. Format: `projects/{project}/locati + * ons/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + */ + public Restore 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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); } + this.name = name; + return this; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Restore set(String parameterName, Object value) { + return (Restore) super.set(parameterName, value); + } + } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + } + /** + * An accessor for creating requests from the Operations collection. + * + *

The typical use is:

+ *
+         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+         *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Operations operations() { + return new Operations(); + } - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } + /** + * The "operations" collection of methods. + */ + public class Operations { - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. + * + * Create a request for the method "operations.cancel". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be cancelled. + * @return the request + */ + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; + } + + public class Cancel extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:cancel"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$"); - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. * - * Create a request for the method "operations.list". + * Create a request for the method "operations.cancel". * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + *

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

* - * @param name The name of the operation's parent resource. - * @return the request + * @param name The name of the operation resource to be cancelled. + * @since 1.13 */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/datasets/[^/]+/operations/[^/]+$"); + } } - public class List extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}/operations"; + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$"); + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } - /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. - * - * Create a request for the method "operations.list". - * - * This request holds the parameters needed by the the aiplatform 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 name The name of the operation's parent resource. - * @since 1.13 - */ - protected List(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningListOperationsResponse.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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$"); - } - } + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + /** The name of the operation resource to be cancelled. */ + public Cancel setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$"); } + this.name = name; + return this; + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be deleted. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + public class Delete extends AiplatformRequest { - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + private static final String REST_PATH = "v1beta1/{+name}"; - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$"); - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$"); - } - this.name = name; - return this; + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/datasets/[^/]+/operations/[^/]+$"); } + } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. - * This can only be `true` when reading across collections. For example, when `parent` - * is set to `"projects/example/locations/-"`. This field is not supported by default - * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented - * otherwise in service or product specific documentation. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - /** When set to `true`, operations that are reachable are returned as normal, and those that are - unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` - when reading across collections. For example, when `parent` is set to - `"projects/example/locations/-"`. This field is not supported by default and will result in an - `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific - documentation. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. - * This can only be `true` when reading across collections. For example, when `parent` - * is set to `"projects/example/locations/-"`. This field is not supported by default - * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented - * otherwise in service or product specific documentation. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Waits until the specified long-running operation is done or reaches at most a specified timeout, - * returning the latest state. If the operation is already done, the latest state is immediately - * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - * timeout is used. If the server does not support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return - * the latest state before the specified timeout (including immediately), meaning even an immediate - * response is no guarantee that the operation is done. - * - * Create a request for the method "operations.wait". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Wait#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource to wait on. - * @return the request + /** The name of the operation resource to be deleted. */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); - initialize(result); - return result; + public java.lang.String getName() { + return name; } - public class Wait extends AiplatformRequest { + /** The name of the operation resource to be deleted. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } - private static final String REST_PATH = "v1beta1/{+name}:wait"; + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); + public class Get extends AiplatformRequest { - /** - * Waits until the specified long-running operation is done or reaches at most a specified - * timeout, returning the latest state. If the operation is already done, the latest state is - * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, - * the HTTP/RPC timeout is used. If the server does not support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return - * the latest state before the specified timeout (including immediately), meaning even an - * immediate response is no guarantee that the operation is done. - * - * Create a request for the method "operations.wait". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

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

- * - * @param name The name of the operation resource to wait on. - * @since 1.13 - */ - protected Wait(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); - } - } + private static final String REST_PATH = "v1beta1/{+name}"; - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$"); - @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+/operations/[^/]+$"); } + } - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** The name of the operation resource to wait on. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** The name of the operation resource to wait on. */ - public Wait 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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - /** - * The maximum duration to wait before timing out. If left blank, the wait will be at - * most the time permitted by the underlying HTTP/RPC protocol. If RPC context - * deadline is also specified, the shorter one will be used. - */ - @com.google.api.client.util.Key - private String timeout; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time - permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the - shorter one will be used. - */ - public String getTimeout() { - return timeout; - } + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * The maximum duration to wait before timing out. If left blank, the wait will be at - * most the time permitted by the underlying HTTP/RPC protocol. If RPC context - * deadline is also specified, the shorter one will be used. - */ - public Wait setTimeout(String timeout) { - this.timeout = timeout; - return this; - } + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$"); } + this.name = name; + return this; } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } } - } - /** - * An accessor for creating requests from the DataItems collection. - * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.DataItems.List request = aiplatform.dataItems().list(parameters ...)}
-         * 
- * - * @return the resource collection - */ - public DataItems dataItems() { - return new DataItems(); - } - - /** - * The "dataItems" collection of methods. - */ - public class DataItems { - /** - * Lists DataItems in a Dataset. + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. * - * Create a request for the method "dataItems.list". + * Create a request for the method "operations.list". * * This request holds the parameters needed by the aiplatform server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The resource name of the Dataset to list DataItems from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param name The name of the operation's parent resource. * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); initialize(result); return result; } - public class List extends AiplatformRequest { + public class List extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/dataItems"; + private static final String REST_PATH = "v1beta1/{+name}/operations"; - private final java.util.regex.Pattern PARENT_PATTERN = + private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); /** - * Lists DataItems in a Dataset. + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. * - * Create a request for the method "dataItems.list". + * Create a request for the method "operations.list". * * This request holds the parameters needed by the the aiplatform 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 resource name of the Dataset to list DataItems from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param name The name of the operation's parent resource. * @since 1.13 */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListDataItemsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningListOperationsResponse.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 " + + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); } } @@ -61623,31 +72810,24 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The resource name of the Dataset to list DataItems from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ + /** The name of the operation's parent resource. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The resource name of the Dataset to list DataItems from. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` + /** The name of the operation's parent resource. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** - * Required. The resource name of the Dataset to list DataItems from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ - public List setParent(java.lang.String parent) { + /** The name of the operation's parent resource. */ + public List 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 " + + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); } - this.parent = parent; + this.name = name; return this; } @@ -61667,29 +72847,6 @@ public List setFilter(java.lang.String filter) { return this; } - /** - * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field - name for descending. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - /** The standard list page size. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; @@ -61722,19 +72879,38 @@ public List setPageToken(java.lang.String pageToken) { return this; } - /** Mask specifying which fields to read. */ + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. + * This can only be `true` when reading across collections. For example, when `parent` + * is set to `"projects/example/locations/-"`. This field is not supported by default + * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented + * otherwise in service or product specific documentation. + */ @com.google.api.client.util.Key - private String readMask; + private java.lang.Boolean returnPartialSuccess; - /** Mask specifying which fields to read. + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. */ - public String getReadMask() { - return readMask; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = readMask; + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. + * This can only be `true` when reading across collections. For example, when `parent` + * is set to `"projects/example/locations/-"`. This field is not supported by default + * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented + * otherwise in service or product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @@ -61743,1088 +72919,567 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the Annotations collection. + * Waits until the specified long-running operation is done or reaches at most a specified timeout, + * returning the latest state. If the operation is already done, the latest state is immediately + * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + * timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an immediate + * response is no guarantee that the operation is done. * - *

The typical use is:

- *
-           *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-           *   {@code Aiplatform.Annotations.List request = aiplatform.annotations().list(parameters ...)}
-           * 
+ * Create a request for the method "operations.wait". * - * @return the resource collection + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to wait on. + * @return the request */ - public Annotations annotations() { - return new Annotations(); + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; } - /** - * The "annotations" collection of methods. - */ - public class Annotations { + public class Wait extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:wait"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$"); /** - * Lists Annotations belongs to a dataitem. + * Waits until the specified long-running operation is done or reaches at most a specified + * timeout, returning the latest state. If the operation is already done, the latest state is + * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, + * the HTTP/RPC timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an + * immediate response is no guarantee that the operation is done. * - * Create a request for the method "annotations.list". + * Create a request for the method "operations.wait". * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

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

* - * @param parent Required. The resource name of the DataItem to list Annotations from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` - * @return the request + * @param name The name of the operation resource to wait on. + * @since 1.13 */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } - - public class List extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+parent}/annotations"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+$"); - - /** - * Lists Annotations belongs to a dataitem. - * - * Create a request for the method "annotations.list". - * - * This request holds the parameters needed by the the aiplatform 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 resource name of the DataItem to list Annotations from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListAnnotationsResponse.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/[^/]+/datasets/[^/]+/dataItems/[^/]+$"); - } - } - - @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. The resource name of the DataItem to list Annotations from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The resource name of the DataItem to list Annotations from. Format: - `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The resource name of the DataItem to list Annotations from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` - */ - 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/[^/]+/datasets/[^/]+/dataItems/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; + protected Wait(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+/operations/[^/]+$"); } + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } - /** - * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } - /** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field - name for descending. - */ - public java.lang.String getOrderBy() { - return orderBy; - } + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } - /** - * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } + /** The name of the operation resource to wait on. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = readMask; - return this; - } + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + /** The name of the operation resource to wait on. */ + public Wait 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/[^/]+/datasets/[^/]+/operations/[^/]+$"); } + this.name = name; + return this; } /** - * An accessor for creating requests from the Operations collection. - * - *

The typical use is:

- *
-             *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-             *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
-             * 
- * - * @return the resource collection + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline + * is also specified, the shorter one will be used. */ - public Operations operations() { - return new Operations(); + @com.google.api.client.util.Key + private String timeout; + + /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time + permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the + shorter one will be used. + */ + public String getTimeout() { + return timeout; } /** - * The "operations" collection of methods. + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline + * is also specified, the shorter one will be used. */ - public class Operations { - - /** - * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to - * cancel the operation, but success is not guaranteed. If the server doesn't support this method, - * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other - * methods to check whether the cancellation succeeded or whether the operation completed despite - * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an - * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to - * `Code.CANCELLED`. - * - * Create a request for the method "operations.cancel". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource to be cancelled. - * @return the request - */ - public Cancel cancel(java.lang.String name) throws java.io.IOException { - Cancel result = new Cancel(name); - initialize(result); - return result; - } - - public class Cancel extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}:cancel"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); - - /** - * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to - * cancel the operation, but success is not guaranteed. If the server doesn't support this method, - * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other - * methods to check whether the cancellation succeeded or whether the operation completed despite - * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an - * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to - * `Code.CANCELLED`. - * - * Create a request for the method "operations.cancel". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. - *

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

- * - * @param name The name of the operation resource to be cancelled. - * @since 1.13 - */ - protected Cancel(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); - } - } - - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } - - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } - - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } - - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } - - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } - - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } - - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } - - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } - - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } - - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } - - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } - - /** The name of the operation resource to be cancelled. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the operation resource to be cancelled. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the operation resource to be cancelled. */ - public Cancel setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); - } - } - /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. - * - * Create a request for the method "operations.delete". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource to be deleted. - * @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 AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); - - /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. - * - * Create a request for the method "operations.delete". - * - * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource to be deleted. - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); - } - } - - @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); - } - - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the operation resource to be deleted. */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. - * - * Create a request for the method "operations.get". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource. - * @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 AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); - - /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. - * - * Create a request for the method "operations.get". - * - * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); - } - } - - @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); - } + public Wait setTimeout(String timeout) { + this.timeout = timeout; + return this; + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + } + /** + * An accessor for creating requests from the SavedQueries collection. + * + *

The typical use is:

+ *
+         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+         *   {@code Aiplatform.SavedQueries.List request = aiplatform.savedQueries().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public SavedQueries savedQueries() { + return new SavedQueries(); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + /** + * The "savedQueries" collection of methods. + */ + public class SavedQueries { - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + /** + * Deletes a SavedQuery. + * + * Create a request for the method "savedQueries.delete". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the SavedQuery to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + public class Delete extends AiplatformRequest { - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } + private static final String REST_PATH = "v1beta1/{+name}"; - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+$"); - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. - * - * Create a request for the method "operations.list". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param name The name of the operation's parent resource. - * @return the request - */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; + /** + * Deletes a SavedQuery. + * + * Create a request for the method "savedQueries.delete". + * + * This request holds the parameters needed by the the aiplatform 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. The resource name of the SavedQuery to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+/savedQueries/[^/]+$"); } + } - public class List extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}/operations"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+$"); - - /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. - * - * Create a request for the method "operations.list". - * - * This request holds the parameters needed by the the aiplatform 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 name The name of the operation's parent resource. - * @since 1.13 - */ - protected List(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningListOperationsResponse.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+$"); - } - } - - @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 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); - } + @Override + 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); - } + @Override + 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); - } + @Override + 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); - } + @Override + 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); - } + @Override + 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); - } + @Override + 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); - } + @Override + 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); - } + @Override + 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); - } + @Override + 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); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** + * Required. The resource name of the SavedQuery to delete. Format: `projects/{project}/ + * locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + /** Required. The resource name of the SavedQuery to delete. Format: + `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` + */ + public java.lang.String getName() { + return name; + } - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+$"); - } - this.name = name; - return this; - } + /** + * Required. The resource name of the SavedQuery to delete. Format: `projects/{project}/ + * locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` + */ + 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/[^/]+/datasets/[^/]+/savedQueries/[^/]+$"); + } + this.name = name; + return this; + } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Lists SavedQueries in a Dataset. + * + * Create a request for the method "savedQueries.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the Dataset to list SavedQueries from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + public class List extends AiplatformRequest { - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + private static final String REST_PATH = "v1beta1/{+parent}/savedQueries"; - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + /** + * Lists SavedQueries in a Dataset. + * + * Create a request for the method "savedQueries.list". + * + * This request holds the parameters needed by the the aiplatform 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 resource name of the Dataset to list SavedQueries from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListSavedQueriesResponse.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/[^/]+/datasets/[^/]+$"); + } + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - /** - * When set to `true`, operations that are reachable are returned as normal, and - * those that are unreachable are returned in the ListOperationsResponse.unreachable - * field. This can only be `true` when reading across collections. For example, when - * `parent` is set to `"projects/example/locations/-"`. This field is not supported - * by default and will result in an `UNIMPLEMENTED` error if set unless explicitly - * documented otherwise in service or product specific documentation. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - /** When set to `true`, operations that are reachable are returned as normal, and those that are - unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` - when reading across collections. For example, when `parent` is set to - `"projects/example/locations/-"`. This field is not supported by default and will result in an - `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific - documentation. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - /** - * When set to `true`, operations that are reachable are returned as normal, and - * those that are unreachable are returned in the ListOperationsResponse.unreachable - * field. This can only be `true` when reading across collections. For example, when - * `parent` is set to `"projects/example/locations/-"`. This field is not supported - * by default and will result in an `UNIMPLEMENTED` error if set unless explicitly - * documented otherwise in service or product specific documentation. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Waits until the specified long-running operation is done or reaches at most a specified timeout, - * returning the latest state. If the operation is already done, the latest state is immediately - * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - * timeout is used. If the server does not support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return - * the latest state before the specified timeout (including immediately), meaning even an immediate - * response is no guarantee that the operation is done. - * - * Create a request for the method "operations.wait". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Wait#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource to wait on. - * @return the request - */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); - initialize(result); - return result; - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - public class Wait extends AiplatformRequest { + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - private static final String REST_PATH = "v1beta1/{+name}:wait"; + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** - * Waits until the specified long-running operation is done or reaches at most a specified - * timeout, returning the latest state. If the operation is already done, the latest state is - * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, - * the HTTP/RPC timeout is used. If the server does not support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return - * the latest state before the specified timeout (including immediately), meaning even an - * immediate response is no guarantee that the operation is done. - * - * Create a request for the method "operations.wait". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

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

- * - * @param name The name of the operation resource to wait on. - * @since 1.13 - */ - protected Wait(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); - } - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); - } + /** + * Required. The resource name of the Dataset to list SavedQueries from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } + /** Required. The resource name of the Dataset to list SavedQueries from. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public java.lang.String getParent() { + return parent; + } - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); - } + /** + * Required. The resource name of the Dataset to list SavedQueries from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + 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/[^/]+/datasets/[^/]+$"); + } + this.parent = parent; + return this; + } - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } + /** + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } + /** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field + name for descending. + */ + public java.lang.String getOrderBy() { + return orderBy; + } - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } + /** + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** The name of the operation resource to wait on. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** The name of the operation resource to wait on. */ - public Wait 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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** - * The maximum duration to wait before timing out. If left blank, the wait will be - * at most the time permitted by the underlying HTTP/RPC protocol. If RPC context - * deadline is also specified, the shorter one will be used. - */ - @com.google.api.client.util.Key - private String timeout; + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time - permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the - shorter one will be used. - */ - public String getTimeout() { - return timeout; - } + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - /** - * The maximum duration to wait before timing out. If left blank, the wait will be - * at most the time permitted by the underlying HTTP/RPC protocol. If RPC context - * deadline is also specified, the shorter one will be used. - */ - public Wait setTimeout(String timeout) { - this.timeout = timeout; - return this; - } + /** Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); - } - } + /** Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; + } + /** Mask specifying which fields to read. */ + public List setReadMask(String readMask) { + this.readMask = readMask; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + /** * An accessor for creating requests from the Operations collection. * @@ -62873,7 +73528,7 @@ public class Cancel extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}:wait"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$"); - - /** - * Waits until the specified long-running operation is done or reaches at most a specified - * timeout, returning the latest state. If the operation is already done, the latest state is - * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, - * the HTTP/RPC timeout is used. If the server does not support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return - * the latest state before the specified timeout (including immediately), meaning even an - * immediate response is no guarantee that the operation is done. - * - * Create a request for the method "operations.wait". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

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

- * - * @param name The name of the operation resource to wait on. - * @since 1.13 - */ - protected Wait(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$"); - } - } - - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } - - @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); - } - - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } - - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); - } - - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } - - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } - - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } - - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } - - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } - - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } - - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } - - /** The name of the operation resource to wait on. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the operation resource to wait on. */ - public Wait 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/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * The maximum duration to wait before timing out. If left blank, the wait will be at - * most the time permitted by the underlying HTTP/RPC protocol. If RPC context - * deadline is also specified, the shorter one will be used. - */ - @com.google.api.client.util.Key - private String timeout; - - /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time - permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the - shorter one will be used. - */ - public String getTimeout() { - return timeout; - } - - /** - * The maximum duration to wait before timing out. If left blank, the wait will be at - * most the time permitted by the underlying HTTP/RPC protocol. If RPC context - * deadline is also specified, the shorter one will be used. - */ - public Wait setTimeout(String timeout) { - this.timeout = timeout; - return this; - } - - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); - } - } - - } - } - /** - * An accessor for creating requests from the DatasetVersions collection. - * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.DatasetVersions.List request = aiplatform.datasetVersions().list(parameters ...)}
-         * 
- * - * @return the resource collection - */ - public DatasetVersions datasetVersions() { - return new DatasetVersions(); - } - - /** - * The "datasetVersions" collection of methods. - */ - public class DatasetVersions { - - /** - * Create a version from a Dataset. - * - * Create a request for the method "datasetVersions.create". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation. - * - * @param parent Required. The name of the Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion} - * @return the request - */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion content) throws java.io.IOException { - Create result = new Create(parent, content); - initialize(result); - return result; - } - - public class Create extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+parent}/datasetVersions"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); - - /** - * Create a version from a Dataset. - * - * Create a request for the method "datasetVersions.create". - * - * This request holds the parameters needed by the the aiplatform 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 name of the Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+$"); - } - } - - @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 name of the Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The name of the Dataset resource. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The name of the Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ - 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/[^/]+/datasets/[^/]+$"); - } - this.parent = parent; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a Dataset version. - * - * Create a request for the method "datasetVersions.delete". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. The resource name of the Dataset version to delete. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi - * on}` - * @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 AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); - - /** - * Deletes a Dataset version. - * - * Create a request for the method "datasetVersions.delete". - * - * This request holds the parameters needed by the the aiplatform 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. The resource name of the Dataset version to delete. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi - * on}` - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); - } - } - - @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. The resource name of the Dataset version to delete. Format: `projects/{proj - * ect}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The resource name of the Dataset version to delete. Format: - `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The resource name of the Dataset version to delete. Format: `projects/{proj - * ect}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - */ - 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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets a Dataset version. - * - * Create a request for the method "datasetVersions.get". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name Required. The resource name of the Dataset version to delete. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi - * on}` - * @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 AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); + return this; + } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } /** - * Gets a Dataset version. + * Waits until the specified long-running operation is done or reaches at most a specified timeout, + * returning the latest state. If the operation is already done, the latest state is immediately + * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + * timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an immediate + * response is no guarantee that the operation is done. * - * Create a request for the method "datasetVersions.get". + * Create a request for the method "operations.wait". * - * This request holds the parameters needed by the the aiplatform 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.

+ * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. * - * @param name Required. The resource name of the Dataset version to delete. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi - * on}` - * @since 1.13 + * @param name The name of the operation resource to wait on. + * @return the request */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion.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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); - } - } - - @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); + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + public class Wait extends AiplatformRequest { - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + private static final String REST_PATH = "v1beta1/{+name}:wait"; - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$"); - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** + * Waits until the specified long-running operation is done or reaches at most a specified + * timeout, returning the latest state. If the operation is already done, the latest state is + * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, + * the HTTP/RPC timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an + * immediate response is no guarantee that the operation is done. + * + * Create a request for the method "operations.wait". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

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

+ * + * @param name The name of the operation resource to wait on. + * @since 1.13 + */ + protected Wait(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$"); + } + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } - /** - * Required. The resource name of the Dataset version to delete. Format: `projects/{proj - * ect}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } - /** Required. The resource name of the Dataset version to delete. Format: - `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - */ - public java.lang.String getName() { - return name; - } + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } - /** - * Required. The resource name of the Dataset version to delete. Format: `projects/{proj - * ect}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - */ - 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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); } - this.name = name; - return this; - } - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } - /** Mask specifying which fields to read. */ - public Get setReadMask(String readMask) { - this.readMask = readMask; - return this; - } + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists DatasetVersions in a Dataset. - * - * Create a request for the method "datasetVersions.list". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. The resource name of the Dataset to list DatasetVersions from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } - public class List extends AiplatformRequest { + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } - private static final String REST_PATH = "v1beta1/{+parent}/datasetVersions"; + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + /** The name of the operation resource to wait on. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * Lists DatasetVersions in a Dataset. - * - * Create a request for the method "datasetVersions.list". - * - * This request holds the parameters needed by the the aiplatform 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 resource name of the Dataset to list DatasetVersions from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse.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/[^/]+/datasets/[^/]+$"); + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** The name of the operation resource to wait on. */ + public Wait 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/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context + * deadline is also specified, the shorter one will be used. + */ + @com.google.api.client.util.Key + private String timeout; - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time + permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the + shorter one will be used. + */ + public String getTimeout() { + return timeout; + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context + * deadline is also specified, the shorter one will be used. + */ + public Wait setTimeout(String timeout) { + this.timeout = timeout; + return this; + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + } + } + } + /** + * An accessor for creating requests from the DeploymentResourcePools collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.DeploymentResourcePools.List request = aiplatform.deploymentResourcePools().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public DeploymentResourcePools deploymentResourcePools() { + return new DeploymentResourcePools(); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + /** + * The "deploymentResourcePools" collection of methods. + */ + public class DeploymentResourcePools { - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + /** + * Create a DeploymentResourcePool. + * + * Create a request for the method "deploymentResourcePools.create". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent location resource where this DeploymentResourcePool will be created. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + public class Create extends AiplatformRequest { - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + private static final String REST_PATH = "v1beta1/{+parent}/deploymentResourcePools"; - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + /** + * Create a DeploymentResourcePool. + * + * Create a request for the method "deploymentResourcePools.create". + * + * This request holds the parameters needed by the the aiplatform 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 parent location resource where this DeploymentResourcePool will be created. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+$"); } + } - /** - * Required. The resource name of the Dataset to list DatasetVersions from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - /** Required. The resource name of the Dataset to list DatasetVersions from. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - /** - * Required. The resource name of the Dataset to list DatasetVersions from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ - 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/[^/]+/datasets/[^/]+$"); - } - this.parent = parent; - return this; - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - /** Optional. The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - /** Optional. The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - /** Optional. The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - /** - * Optional. A comma-separated list of fields to order by, sorted in ascending order. - * Use "desc" after a field name for descending. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - /** Optional. A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after - a field name for descending. - */ - public java.lang.String getOrderBy() { - return orderBy; - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - /** - * Optional. A comma-separated list of fields to order by, sorted in ascending order. - * Use "desc" after a field name for descending. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - /** Optional. The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - /** Optional. The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - /** Optional. The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** + * Required. The parent location resource where this DeploymentResourcePool will be + * created. Format: `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** Optional. The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** Required. The parent location resource where this DeploymentResourcePool will be created. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } - /** Optional. The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; + /** + * Required. The parent location resource where this DeploymentResourcePool will be + * created. Format: `projects/{project}/locations/{location}` + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } + this.parent = parent; + return this; + } - /** Optional. The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Delete a DeploymentResourcePool. + * + * Create a request for the method "deploymentResourcePools.delete". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the DeploymentResourcePool to delete. Format: + * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool + * }` + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } - /** Optional. Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; + public class Delete extends AiplatformRequest { - /** Optional. Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } + private static final String REST_PATH = "v1beta1/{+name}"; - /** Optional. Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = readMask; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } /** - * Updates a DatasetVersion. + * Delete a DeploymentResourcePool. * - * Create a request for the method "datasetVersions.patch". + * Create a request for the method "deploymentResourcePools.delete". * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the aiplatform 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 Output only. Identifier. The resource name of the DatasetVersion. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi - * on}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion} - * @return the request + * @param name Required. The name of the DeploymentResourcePool to delete. Format: + * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool + * }` + * @since 1.13 */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/deploymentResourcePools/[^/]+$"); + } } - public class Patch extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); - - /** - * Updates a DatasetVersion. - * - * Create a request for the method "datasetVersions.patch". - * - * This request holds the parameters needed by the the aiplatform 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 Output only. Identifier. The resource name of the DatasetVersion. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi - * on}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion content) { - super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion.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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); - } - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } + /** + * Required. The name of the DeploymentResourcePool to delete. Format: `projects/{project} + * /locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * Output only. Identifier. The resource name of the DatasetVersion. Format: `projects/{ - * project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + /** Required. The name of the DeploymentResourcePool to delete. Format: + `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + */ + public java.lang.String getName() { + return name; + } - /** Output only. Identifier. The resource name of the DatasetVersion. Format: - `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - */ - public java.lang.String getName() { - return name; + /** + * Required. The name of the DeploymentResourcePool to delete. Format: `projects/{project} + * /locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + */ + 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/[^/]+/deploymentResourcePools/[^/]+$"); } + this.name = name; + return this; + } - /** - * Output only. Identifier. The resource name of the DatasetVersion. Format: `projects/{ - * project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - */ - 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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Get a DeploymentResourcePool. + * + * Create a request for the method "deploymentResourcePools.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the DeploymentResourcePool to retrieve. Format: + * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool + * }` + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } - /** - * Required. The update mask applies to the resource. For the `FieldMask` definition, - * see google.protobuf.FieldMask. Updatable fields: * `display_name` - */ - @com.google.api.client.util.Key - private String updateMask; + public class Get extends AiplatformRequest { - /** Required. The update mask applies to the resource. For the `FieldMask` definition, see - google.protobuf.FieldMask. Updatable fields: * `display_name` - */ - public String getUpdateMask() { - return updateMask; - } + private static final String REST_PATH = "v1beta1/{+name}"; - /** - * Required. The update mask applies to the resource. For the `FieldMask` definition, - * see google.protobuf.FieldMask. Updatable fields: * `display_name` - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } /** - * Restores a dataset version. + * Get a DeploymentResourcePool. * - * Create a request for the method "datasetVersions.restore". + * Create a request for the method "deploymentResourcePools.get". * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Restore#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* - * @param name Required. The name of the DatasetVersion resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi - * on}` - * @return the request + * @param name Required. The name of the DeploymentResourcePool to retrieve. Format: + * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool + * }` + * @since 1.13 */ - public Restore restore(java.lang.String name) throws java.io.IOException { - Restore result = new Restore(name); - initialize(result); - return result; - } - - public class Restore extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}:restore"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); - - /** - * Restores a dataset version. - * - * Create a request for the method "datasetVersions.restore". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Restore#execute()} method to invoke the remote operation. - *

{@link - * Restore#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 DatasetVersion resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi - * on}` - * @since 1.13 - */ - protected Restore(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeploymentResourcePool.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/[^/]+/deploymentResourcePools/[^/]+$"); } + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Restore set$Xgafv(java.lang.String $Xgafv) { - return (Restore) super.set$Xgafv($Xgafv); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Restore setAccessToken(java.lang.String accessToken) { - return (Restore) super.setAccessToken(accessToken); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Restore setAlt(java.lang.String alt) { - return (Restore) super.setAlt(alt); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Restore setCallback(java.lang.String callback) { - return (Restore) super.setCallback(callback); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Restore setFields(java.lang.String fields) { - return (Restore) super.setFields(fields); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Restore setKey(java.lang.String key) { - return (Restore) super.setKey(key); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Restore setOauthToken(java.lang.String oauthToken) { - return (Restore) super.setOauthToken(oauthToken); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Restore setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Restore) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public Restore setQuotaUser(java.lang.String quotaUser) { - return (Restore) super.setQuotaUser(quotaUser); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public Restore setUploadType(java.lang.String uploadType) { - return (Restore) super.setUploadType(uploadType); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public Restore setUploadProtocol(java.lang.String uploadProtocol) { - return (Restore) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - /** - * Required. The name of the DatasetVersion resource. Format: `projects/{project}/locati - * ons/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - /** Required. The name of the DatasetVersion resource. Format: - `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - */ - public java.lang.String getName() { - return name; - } + /** + * Required. The name of the DeploymentResourcePool to retrieve. Format: `projects/{projec + * t}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * Required. The name of the DatasetVersion resource. Format: `projects/{project}/locati - * ons/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - */ - public Restore 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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); - } - this.name = name; - return this; - } + /** Required. The name of the DeploymentResourcePool to retrieve. Format: + `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + */ + public java.lang.String getName() { + return name; + } - @Override - public Restore set(String parameterName, Object value) { - return (Restore) super.set(parameterName, value); + /** + * Required. The name of the DeploymentResourcePool to retrieve. Format: `projects/{projec + * t}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + */ + 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/[^/]+/deploymentResourcePools/[^/]+$"); } + this.name = name; + return this; } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } } /** - * An accessor for creating requests from the Operations collection. + * List DeploymentResourcePools in a location. * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
-         * 
+ * Create a request for the method "deploymentResourcePools.list". * - * @return the resource collection + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent Location which owns this collection of DeploymentResourcePools. Format: + * `projects/{project}/locations/{location}` + * @return the request */ - public Operations operations() { - return new Operations(); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; } - /** - * The "operations" collection of methods. - */ - public class Operations { + public class List extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/deploymentResourcePools"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to - * cancel the operation, but success is not guaranteed. If the server doesn't support this method, - * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other - * methods to check whether the cancellation succeeded or whether the operation completed despite - * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an - * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to - * `Code.CANCELLED`. + * List DeploymentResourcePools in a location. * - * Create a request for the method "operations.cancel". + * Create a request for the method "deploymentResourcePools.list". * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the aiplatform 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 name The name of the operation resource to be cancelled. - * @return the request + * @param parent Required. The parent Location which owns this collection of DeploymentResourcePools. Format: + * `projects/{project}/locations/{location}` + * @since 1.13 */ - public Cancel cancel(java.lang.String name) throws java.io.IOException { - Cancel result = new Cancel(name); - initialize(result); - return result; + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListDeploymentResourcePoolsResponse.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/[^/]+$"); + } } - public class Cancel extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}:cancel"; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$"); + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** - * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to - * cancel the operation, but success is not guaranteed. If the server doesn't support this method, - * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other - * methods to check whether the cancellation succeeded or whether the operation completed despite - * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an - * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to - * `Code.CANCELLED`. - * - * Create a request for the method "operations.cancel". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. - *

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

- * - * @param name The name of the operation resource to be cancelled. - * @since 1.13 - */ - protected Cancel(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/datasets/[^/]+/operations/[^/]+$"); - } - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } + /** + * Required. The parent Location which owns this collection of DeploymentResourcePools. + * Format: `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** The name of the operation resource to be cancelled. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** Required. The parent Location which owns this collection of DeploymentResourcePools. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } - /** The name of the operation resource to be cancelled. - */ - public java.lang.String getName() { - return name; + /** + * Required. The parent Location which owns this collection of DeploymentResourcePools. + * 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; + } - /** The name of the operation resource to be cancelled. */ - public Cancel setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** + * The maximum number of DeploymentResourcePools to return. The service may return fewer + * than this value. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); - } + /** The maximum number of DeploymentResourcePools to return. The service may return fewer than this + value. + */ + public java.lang.Integer getPageSize() { + return pageSize; } + /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. - * - * Create a request for the method "operations.delete". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource to be deleted. - * @return the request + * The maximum number of DeploymentResourcePools to return. The service may return fewer + * than this value. */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; } - public class Delete extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$"); - - /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. - * - * Create a request for the method "operations.delete". - * - * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource to be deleted. - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/datasets/[^/]+/operations/[^/]+$"); - } - } - - @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); - } + /** + * A page token, received from a previous `ListDeploymentResourcePools` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListDeploymentResourcePools` must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + /** A page token, received from a previous `ListDeploymentResourcePools` call. Provide this to retrieve + the subsequent page. When paginating, all other parameters provided to + `ListDeploymentResourcePools` must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + /** + * A page token, received from a previous `ListDeploymentResourcePools` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListDeploymentResourcePools` must match the call that provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Update a DeploymentResourcePool. + * + * Create a request for the method "deploymentResourcePools.patch". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Immutable. The resource name of the DeploymentResourcePool. Format: + * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool + * }` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeploymentResourcePool} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeploymentResourcePool content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + public class Patch extends AiplatformRequest { - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; - } + private static final String REST_PATH = "v1beta1/{+name}"; - /** The name of the operation resource to be deleted. */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. + * Update a DeploymentResourcePool. * - * Create a request for the method "operations.get". + * Create a request for the method "deploymentResourcePools.patch". * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource. - * @return the request + * @param name Immutable. The resource name of the DeploymentResourcePool. Format: + * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool + * }` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeploymentResourcePool} + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeploymentResourcePool content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/deploymentResourcePools/[^/]+$"); + } } - public class Get extends AiplatformRequest { + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "v1beta1/{+name}"; + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$"); + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. - * - * Create a request for the method "operations.get". - * - * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+/operations/[^/]+$"); - } - } + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + /** + * Immutable. The resource name of the DeploymentResourcePool. Format: `projects/{project} + * /locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + /** Immutable. The resource name of the DeploymentResourcePool. Format: + `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + */ + public java.lang.String getName() { + return name; + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + /** + * Immutable. The resource name of the DeploymentResourcePool. Format: `projects/{project} + * /locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + */ + 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/[^/]+/deploymentResourcePools/[^/]+$"); } + this.name = name; + return this; + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** Required. The list of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + /** Required. The list of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + /** Required. The list of fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * List DeployedModels that have been deployed on this DeploymentResourcePool. + * + * Create a request for the method "deploymentResourcePools.queryDeployedModels". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link QueryDeployedModels#execute()} method to invoke the remote operation. + * + * @param deploymentResourcePool Required. The name of the target DeploymentResourcePool to query. Format: + * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool + * }` + * @return the request + */ + public QueryDeployedModels queryDeployedModels(java.lang.String deploymentResourcePool) throws java.io.IOException { + QueryDeployedModels result = new QueryDeployedModels(deploymentResourcePool); + initialize(result); + return result; + } - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } + public class QueryDeployedModels extends AiplatformRequest { - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + private static final String REST_PATH = "v1beta1/{+deploymentResourcePool}:queryDeployedModels"; + + private final java.util.regex.Pattern DEPLOYMENT_RESOURCE_POOL_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. + * List DeployedModels that have been deployed on this DeploymentResourcePool. * - * Create a request for the method "operations.list". + * Create a request for the method "deploymentResourcePools.queryDeployedModels". * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link QueryDeployedModels#execute()} method to invoke the remote + * operation.

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

* - * @param name The name of the operation's parent resource. - * @return the request + * @param deploymentResourcePool Required. The name of the target DeploymentResourcePool to query. Format: + * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool + * }` + * @since 1.13 */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; - } - - public class List extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}/operations"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); - - /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. - * - * Create a request for the method "operations.list". - * - * This request holds the parameters needed by the the aiplatform 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 name The name of the operation's parent resource. - * @since 1.13 - */ - protected List(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningListOperationsResponse.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/[^/]+/datasets/[^/]+$"); - } - } - - @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); + protected QueryDeployedModels(java.lang.String deploymentResourcePool) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1QueryDeployedModelsResponse.class); + this.deploymentResourcePool = com.google.api.client.util.Preconditions.checkNotNull(deploymentResourcePool, "Required parameter deploymentResourcePool must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DEPLOYMENT_RESOURCE_POOL_PATTERN.matcher(deploymentResourcePool).matches(), + "Parameter deploymentResourcePool must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); } + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public QueryDeployedModels set$Xgafv(java.lang.String $Xgafv) { + return (QueryDeployedModels) super.set$Xgafv($Xgafv); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public QueryDeployedModels setAccessToken(java.lang.String accessToken) { + return (QueryDeployedModels) super.setAccessToken(accessToken); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public QueryDeployedModels setAlt(java.lang.String alt) { + return (QueryDeployedModels) super.setAlt(alt); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public QueryDeployedModels setCallback(java.lang.String callback) { + return (QueryDeployedModels) super.setCallback(callback); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public QueryDeployedModels setFields(java.lang.String fields) { + return (QueryDeployedModels) super.setFields(fields); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public QueryDeployedModels setKey(java.lang.String key) { + return (QueryDeployedModels) super.setKey(key); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public QueryDeployedModels setOauthToken(java.lang.String oauthToken) { + return (QueryDeployedModels) super.setOauthToken(oauthToken); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public QueryDeployedModels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (QueryDeployedModels) super.setPrettyPrint(prettyPrint); + } - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public QueryDeployedModels setQuotaUser(java.lang.String quotaUser) { + return (QueryDeployedModels) super.setQuotaUser(quotaUser); + } - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + @Override + public QueryDeployedModels setUploadType(java.lang.String uploadType) { + return (QueryDeployedModels) super.setUploadType(uploadType); + } - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public QueryDeployedModels setUploadProtocol(java.lang.String uploadProtocol) { + return (QueryDeployedModels) super.setUploadProtocol(uploadProtocol); + } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + /** + * Required. The name of the target DeploymentResourcePool to query. Format: `projects/{pr + * oject}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + */ + @com.google.api.client.util.Key + private java.lang.String deploymentResourcePool; - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + /** Required. The name of the target DeploymentResourcePool to query. Format: + `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + */ + public java.lang.String getDeploymentResourcePool() { + return deploymentResourcePool; + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; + /** + * Required. The name of the target DeploymentResourcePool to query. Format: `projects/{pr + * oject}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + */ + public QueryDeployedModels setDeploymentResourcePool(java.lang.String deploymentResourcePool) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DEPLOYMENT_RESOURCE_POOL_PATTERN.matcher(deploymentResourcePool).matches(), + "Parameter deploymentResourcePool must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); } + this.deploymentResourcePool = deploymentResourcePool; + return this; + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + /** + * The maximum number of DeployedModels to return. The service may return fewer than this + * value. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + /** The maximum number of DeployedModels to return. The service may return fewer than this value. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** + * The maximum number of DeployedModels to return. The service may return fewer than this + * value. + */ + public QueryDeployedModels setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** + * A page token, received from a previous `QueryDeployedModels` call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * `QueryDeployedModels` must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** A page token, received from a previous `QueryDeployedModels` call. Provide this to retrieve the + subsequent page. When paginating, all other parameters provided to `QueryDeployedModels` must match + the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** + * A page token, received from a previous `QueryDeployedModels` call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * `QueryDeployedModels` must match the call that provided the page token. + */ + public QueryDeployedModels setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. - * This can only be `true` when reading across collections. For example, when `parent` - * is set to `"projects/example/locations/-"`. This field is not supported by default - * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented - * otherwise in service or product specific documentation. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + @Override + public QueryDeployedModels set(String parameterName, Object value) { + return (QueryDeployedModels) super.set(parameterName, value); + } + } - /** When set to `true`, operations that are reachable are returned as normal, and those that are - unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` - when reading across collections. For example, when `parent` is set to - `"projects/example/locations/-"`. This field is not supported by default and will result in an - `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific - documentation. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } + /** + * An accessor for creating requests from the Operations collection. + * + *

The typical use is:

+ *
+         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+         *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Operations operations() { + return new Operations(); + } - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. - * This can only be `true` when reading across collections. For example, when `parent` - * is set to `"projects/example/locations/-"`. This field is not supported by default - * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented - * otherwise in service or product specific documentation. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } + /** + * The "operations" collection of methods. + */ + public class Operations { - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } /** - * Waits until the specified long-running operation is done or reaches at most a specified timeout, - * returning the latest state. If the operation is already done, the latest state is immediately - * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - * timeout is used. If the server does not support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return - * the latest state before the specified timeout (including immediately), meaning even an immediate - * response is no guarantee that the operation is done. + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. * - * Create a request for the method "operations.wait". + * Create a request for the method "operations.cancel". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Wait#execute()} method to invoke the remote operation. + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to wait on. + * @param name The name of the operation resource to be cancelled. * @return the request */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); initialize(result); return result; } - public class Wait extends AiplatformRequest { + public class Cancel extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}:wait"; + private static final String REST_PATH = "v1beta1/{+name}:cancel"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); /** - * Waits until the specified long-running operation is done or reaches at most a specified - * timeout, returning the latest state. If the operation is already done, the latest state is - * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, - * the HTTP/RPC timeout is used. If the server does not support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return - * the latest state before the specified timeout (including immediately), meaning even an - * immediate response is no guarantee that the operation is done. + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. * - * Create a request for the method "operations.wait". + * Create a request for the method "operations.cancel". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

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

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

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

* - * @param name The name of the operation resource to wait on. + * @param name The name of the operation resource to be cancelled. * @since 1.13 */ - protected Wait(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/datasets/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); } } @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); } @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); } @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); } @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); } @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); } @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); } @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); } @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); } @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); } @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource to wait on. */ + /** The name of the operation resource to be cancelled. */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource to wait on. + /** The name of the operation resource to be cancelled. */ public java.lang.String getName() { return name; } - /** The name of the operation resource to wait on. */ - public Wait setName(java.lang.String name) { + /** The name of the operation resource to be cancelled. */ + public Cancel setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); } this.name = name; return this; } - /** - * The maximum duration to wait before timing out. If left blank, the wait will be at - * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline - * is also specified, the shorter one will be used. - */ - @com.google.api.client.util.Key - private String timeout; - - /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time - permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the - shorter one will be used. - */ - public String getTimeout() { - return timeout; - } - - /** - * The maximum duration to wait before timing out. If left blank, the wait will be at - * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline - * is also specified, the shorter one will be used. - */ - public Wait setTimeout(String timeout) { - this.timeout = timeout; - return this; - } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the SavedQueries collection. - * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.SavedQueries.List request = aiplatform.savedQueries().list(parameters ...)}
-         * 
- * - * @return the resource collection - */ - public SavedQueries savedQueries() { - return new SavedQueries(); - } - - /** - * The "savedQueries" collection of methods. - */ - public class SavedQueries { - /** - * Deletes a SavedQuery. + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. * - * Create a request for the method "savedQueries.delete". + * Create a request for the method "operations.delete". * * This request holds the parameters needed by the aiplatform server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. The resource name of the SavedQuery to delete. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` + * @param name The name of the operation resource to be deleted. * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -65530,17 +75489,19 @@ public Delete delete(java.lang.String name) throws java.io.IOException { return result; } - public class Delete extends AiplatformRequest { + public class Delete extends AiplatformRequest { private static final String REST_PATH = "v1beta1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); /** - * Deletes a SavedQuery. + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. * - * Create a request for the method "savedQueries.delete". + * Create a request for the method "operations.delete". * * This request holds the parameters needed by the the aiplatform server. After setting any * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. @@ -65548,17 +75509,16 @@ public class Delete extends AiplatformRequest * - * @param name Required. The resource name of the SavedQuery to delete. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` + * @param name The name of the operation resource to be deleted. * @since 1.13 */ protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/datasets/[^/]+/savedQueries/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); } } @@ -65617,29 +75577,22 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The resource name of the SavedQuery to delete. Format: `projects/{project}/ - * locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` - */ + /** The name of the operation resource to be deleted. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The resource name of the SavedQuery to delete. Format: - `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` + /** The name of the operation resource to be deleted. */ public java.lang.String getName() { return name; } - /** - * Required. The resource name of the SavedQuery to delete. Format: `projects/{project}/ - * locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` - */ + /** The name of the operation resource to be deleted. */ public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); } this.name = name; return this; @@ -65651,51 +75604,51 @@ public Delete set(String parameterName, Object value) { } } /** - * Lists SavedQueries in a Dataset. + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. * - * Create a request for the method "savedQueries.list". + * Create a request for the method "operations.get". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param parent Required. The resource name of the Dataset to list SavedQueries from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param name The name of the operation resource. * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class List extends AiplatformRequest { + public class Get extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/savedQueries"; + private static final String REST_PATH = "v1beta1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); /** - * Lists SavedQueries in a Dataset. + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. * - * Create a request for the method "savedQueries.list". + * Create a request for the method "operations.get". * * This request holds the parameters needed by the the aiplatform 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)} + * 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 resource name of the Dataset to list SavedQueries from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param name The name of the operation resource. * @since 1.13 */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListSavedQueriesResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); } } @@ -65710,1058 +75663,530 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The resource name of the Dataset to list SavedQueries from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ + /** The name of the operation resource. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The resource name of the Dataset to list SavedQueries from. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` + /** The name of the operation resource. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** - * Required. The resource name of the Dataset to list SavedQueries from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ - public List setParent(java.lang.String parent) { + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); } - this.parent = parent; - return this; - } - - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } - - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field - name for descending. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; - - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } - - /** Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = readMask; + this.name = name; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the Operations collection. + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. * - *

The typical use is:

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

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

- * - * @param name The name of the operation resource to be cancelled. - * @since 1.13 - */ - protected Cancel(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$"); - } - } - - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } - - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } - - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } - - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } - - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } - - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } - - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } - - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } - - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } - - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } - - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } - - /** The name of the operation resource to be cancelled. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the operation resource to be cancelled. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the operation resource to be cancelled. */ - public Cancel setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); - } - } - /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. - * - * Create a request for the method "operations.delete". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource to be deleted. - * @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 AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$"); - - /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. - * - * Create a request for the method "operations.delete". - * - * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource to be deleted. - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$"); - } - } - - @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); - } - - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the operation resource to be deleted. */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. - * - * Create a request for the method "operations.get". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource. - * @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 AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$"); - - /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. - * - * Create a request for the method "operations.get". - * - * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$"); - } - } - - @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); - } - - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + public class List extends AiplatformRequest { - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } + private static final String REST_PATH = "v1beta1/{+name}/operations"; - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } /** * Lists operations that match the specified filter in the request. If the server doesn't support * this method, it returns `UNIMPLEMENTED`. * * Create a request for the method "operations.list". * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the aiplatform 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 name The name of the operation's parent resource. - * @return the request + * @since 1.13 */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningListOperationsResponse.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/[^/]+/deploymentResourcePools/[^/]+$"); + } } - public class List extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}/operations"; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+$"); + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. - * - * Create a request for the method "operations.list". - * - * This request holds the parameters needed by the the aiplatform 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 name The name of the operation's parent resource. - * @since 1.13 - */ - protected List(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningListOperationsResponse.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/[^/]+/datasets/[^/]+/savedQueries/[^/]+$"); - } - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); } + this.name = name; + return this; + } - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+$"); - } - this.name = name; - return this; - } + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. + * This can only be `true` when reading across collections. For example, when `parent` + * is set to `"projects/example/locations/-"`. This field is not supported by default + * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented + * otherwise in service or product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. + * This can only be `true` when reading across collections. For example, when `parent` + * is set to `"projects/example/locations/-"`. This field is not supported by default + * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented + * otherwise in service or product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. - * This can only be `true` when reading across collections. For example, when `parent` - * is set to `"projects/example/locations/-"`. This field is not supported by default - * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented - * otherwise in service or product specific documentation. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Waits until the specified long-running operation is done or reaches at most a specified timeout, + * returning the latest state. If the operation is already done, the latest state is immediately + * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + * timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an immediate + * response is no guarantee that the operation is done. + * + * Create a request for the method "operations.wait". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to wait on. + * @return the request + */ + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; + } - /** When set to `true`, operations that are reachable are returned as normal, and those that are - unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` - when reading across collections. For example, when `parent` is set to - `"projects/example/locations/-"`. This field is not supported by default and will result in an - `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific - documentation. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } + public class Wait extends AiplatformRequest { - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. - * This can only be `true` when reading across collections. For example, when `parent` - * is set to `"projects/example/locations/-"`. This field is not supported by default - * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented - * otherwise in service or product specific documentation. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } + private static final String REST_PATH = "v1beta1/{+name}:wait"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } /** - * Waits until the specified long-running operation is done or reaches at most a specified timeout, - * returning the latest state. If the operation is already done, the latest state is immediately - * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - * timeout is used. If the server does not support this method, it returns + * Waits until the specified long-running operation is done or reaches at most a specified + * timeout, returning the latest state. If the operation is already done, the latest state is + * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, + * the HTTP/RPC timeout is used. If the server does not support this method, it returns * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return - * the latest state before the specified timeout (including immediately), meaning even an immediate - * response is no guarantee that the operation is done. + * the latest state before the specified timeout (including immediately), meaning even an + * immediate response is no guarantee that the operation is done. * * Create a request for the method "operations.wait". * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Wait#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

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

* * @param name The name of the operation resource to wait on. - * @return the request + * @since 1.13 */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); - initialize(result); - return result; - } - - public class Wait extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}:wait"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$"); - - /** - * Waits until the specified long-running operation is done or reaches at most a specified - * timeout, returning the latest state. If the operation is already done, the latest state is - * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, - * the HTTP/RPC timeout is used. If the server does not support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return - * the latest state before the specified timeout (including immediately), meaning even an - * immediate response is no guarantee that the operation is done. - * - * Create a request for the method "operations.wait". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

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

- * - * @param name The name of the operation resource to wait on. - * @since 1.13 - */ - protected Wait(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$"); - } + protected Wait(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); } + } - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } - @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); - } + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); - } + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } - /** The name of the operation resource to wait on. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** The name of the operation resource to wait on. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } - /** The name of the operation resource to wait on. */ - public Wait 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/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; + /** The name of the operation resource to wait on. */ + public Wait 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/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); } + this.name = name; + return this; + } - /** - * The maximum duration to wait before timing out. If left blank, the wait will be at - * most the time permitted by the underlying HTTP/RPC protocol. If RPC context - * deadline is also specified, the shorter one will be used. - */ - @com.google.api.client.util.Key - private String timeout; - - /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time - permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the - shorter one will be used. - */ - public String getTimeout() { - return timeout; - } + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline + * is also specified, the shorter one will be used. + */ + @com.google.api.client.util.Key + private String timeout; - /** - * The maximum duration to wait before timing out. If left blank, the wait will be at - * most the time permitted by the underlying HTTP/RPC protocol. If RPC context - * deadline is also specified, the shorter one will be used. - */ - public Wait setTimeout(String timeout) { - this.timeout = timeout; - return this; - } + /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time + permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the + shorter one will be used. + */ + public String getTimeout() { + return timeout; + } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); - } + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline + * is also specified, the shorter one will be used. + */ + public Wait setTimeout(String timeout) { + this.timeout = timeout; + return this; } + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } } + } } /** - * An accessor for creating requests from the DeploymentResourcePools collection. + * An accessor for creating requests from the Detectors collection. * *

The typical use is:

*
        *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.DeploymentResourcePools.List request = aiplatform.deploymentResourcePools().list(parameters ...)}
+       *   {@code Aiplatform.Detectors.List request = aiplatform.detectors().list(parameters ...)}
        * 
* * @return the resource collection */ - public DeploymentResourcePools deploymentResourcePools() { - return new DeploymentResourcePools(); + public Detectors detectors() { + return new Detectors(); } /** - * The "deploymentResourcePools" collection of methods. + * The "detectors" collection of methods. */ - public class DeploymentResourcePools { + public class Detectors { /** - * Create a DeploymentResourcePool. + * Creates a new customer-defined Detector. The detector is always created DISABLED; EnableDetector + * starts it scanning. * - * Create a request for the method "deploymentResourcePools.create". + * Create a request for the method "detectors.create". * * This request holds the parameters needed by the aiplatform server. After setting any optional * parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param parent Required. The parent location resource where this DeploymentResourcePool will be created. Format: + * @param parent Required. The resource name of the Location to create the Detector in. Format: * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Detector} * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest content) throws java.io.IOException { + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Detector content) throws java.io.IOException { Create result = new Create(parent, content); initialize(result); return result; } - public class Create extends AiplatformRequest { + public class Create extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/deploymentResourcePools"; + private static final String REST_PATH = "v1beta1/{+parent}/detectors"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Create a DeploymentResourcePool. + * Creates a new customer-defined Detector. The detector is always created DISABLED; + * EnableDetector starts it scanning. * - * Create a request for the method "deploymentResourcePools.create". + * Create a request for the method "detectors.create". * * This request holds the parameters needed by the the aiplatform server. After setting any * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. @@ -66769,13 +76194,13 @@ public class Create extends AiplatformRequest * - * @param parent Required. The parent location resource where this DeploymentResourcePool will be created. Format: + * @param parent Required. The resource name of the Location to create the Detector in. Format: * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Detector} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Detector content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Detector.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(), @@ -66840,13 +76265,13 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The parent location resource where this DeploymentResourcePool will be - * created. Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to create the Detector in. Format: + * `projects/{project}/locations/{location}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent location resource where this DeploymentResourcePool will be created. Format: + /** Required. The resource name of the Location to create the Detector in. Format: `projects/{project}/locations/{location}` */ public java.lang.String getParent() { @@ -66854,8 +76279,8 @@ public java.lang.String getParent() { } /** - * Required. The parent location resource where this DeploymentResourcePool will be - * created. Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to create the Detector in. Format: + * `projects/{project}/locations/{location}` */ public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -66867,22 +76292,47 @@ public Create setParent(java.lang.String parent) { return this; } + /** + * Optional. The ID to use for the Detector, which becomes the final component of its + * resource name. Must match `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. If omitted, the server + * generates one. + */ + @com.google.api.client.util.Key + private java.lang.String detectorId; + + /** Optional. The ID to use for the Detector, which becomes the final component of its resource name. + Must match `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. If omitted, the server generates one. + */ + public java.lang.String getDetectorId() { + return detectorId; + } + + /** + * Optional. The ID to use for the Detector, which becomes the final component of its + * resource name. Must match `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. If omitted, the server + * generates one. + */ + public Create setDetectorId(java.lang.String detectorId) { + this.detectorId = detectorId; + return this; + } + @Override public Create set(String parameterName, Object value) { return (Create) super.set(parameterName, value); } } /** - * Delete a DeploymentResourcePool. + * Deletes a specific detector. Hard and irreversible: the detector is gone from every read path at + * once. * - * Create a request for the method "deploymentResourcePools.delete". + * Create a request for the method "detectors.delete". * * This request holds the parameters needed by the aiplatform server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. The name of the DeploymentResourcePool to delete. Format: - * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool - * }` + * @param name Required. The name of the detector to delete. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -66891,17 +76341,18 @@ public Delete delete(java.lang.String name) throws java.io.IOException { return result; } - public class Delete extends AiplatformRequest { + public class Delete extends AiplatformRequest { private static final String REST_PATH = "v1beta1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/detectors/[^/]+$"); /** - * Delete a DeploymentResourcePool. + * Deletes a specific detector. Hard and irreversible: the detector is gone from every read path + * at once. * - * Create a request for the method "deploymentResourcePools.delete". + * Create a request for the method "detectors.delete". * * This request holds the parameters needed by the the aiplatform server. After setting any * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. @@ -66909,18 +76360,17 @@ public class Delete extends AiplatformRequest * - * @param name Required. The name of the DeploymentResourcePool to delete. Format: - * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool - * }` + * @param name Required. The name of the detector to delete. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` * @since 1.13 */ protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/deploymentResourcePools/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/detectors/[^/]+$"); } } @@ -66980,28 +76430,28 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The name of the DeploymentResourcePool to delete. Format: `projects/{project} - * /locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + * Required. The name of the detector to delete. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the DeploymentResourcePool to delete. Format: - `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + /** Required. The name of the detector to delete. Format: + `projects/{project}/locations/{location}/detectors/{detector}` */ public java.lang.String getName() { return name; } /** - * Required. The name of the DeploymentResourcePool to delete. Format: `projects/{project} - * /locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + * Required. The name of the detector to delete. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` */ 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/[^/]+/deploymentResourcePools/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/detectors/[^/]+$"); } this.name = name; return this; @@ -67013,16 +76463,301 @@ public Delete set(String parameterName, Object value) { } } /** - * Get a DeploymentResourcePool. + * Disables a specific detector, so that it stops scanning. Disabling an already-DISABLED detector + * succeeds and changes nothing. The detector's config and history survive; only DeleteDetector + * removes a detector. * - * Create a request for the method "deploymentResourcePools.get". + * Create a request for the method "detectors.disable". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Disable#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the detector to disable. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DisableDetectorRequest} + * @return the request + */ + public Disable disable(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DisableDetectorRequest content) throws java.io.IOException { + Disable result = new Disable(name, content); + initialize(result); + return result; + } + + public class Disable extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:disable"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/detectors/[^/]+$"); + + /** + * Disables a specific detector, so that it stops scanning. Disabling an already-DISABLED detector + * succeeds and changes nothing. The detector's config and history survive; only DeleteDetector + * removes a detector. + * + * Create a request for the method "detectors.disable". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Disable#execute()} method to invoke the remote operation. + *

{@link + * Disable#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 detector to disable. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DisableDetectorRequest} + * @since 1.13 + */ + protected Disable(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DisableDetectorRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Detector.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/[^/]+/detectors/[^/]+$"); + } + } + + @Override + public Disable set$Xgafv(java.lang.String $Xgafv) { + return (Disable) super.set$Xgafv($Xgafv); + } + + @Override + public Disable setAccessToken(java.lang.String accessToken) { + return (Disable) super.setAccessToken(accessToken); + } + + @Override + public Disable setAlt(java.lang.String alt) { + return (Disable) super.setAlt(alt); + } + + @Override + public Disable setCallback(java.lang.String callback) { + return (Disable) super.setCallback(callback); + } + + @Override + public Disable setFields(java.lang.String fields) { + return (Disable) super.setFields(fields); + } + + @Override + public Disable setKey(java.lang.String key) { + return (Disable) super.setKey(key); + } + + @Override + public Disable setOauthToken(java.lang.String oauthToken) { + return (Disable) super.setOauthToken(oauthToken); + } + + @Override + public Disable setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Disable) super.setPrettyPrint(prettyPrint); + } + + @Override + public Disable setQuotaUser(java.lang.String quotaUser) { + return (Disable) super.setQuotaUser(quotaUser); + } + + @Override + public Disable setUploadType(java.lang.String uploadType) { + return (Disable) super.setUploadType(uploadType); + } + + @Override + public Disable setUploadProtocol(java.lang.String uploadProtocol) { + return (Disable) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the detector to disable. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the detector to disable. Format: + `projects/{project}/locations/{location}/detectors/{detector}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the detector to disable. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` + */ + public Disable 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/[^/]+/detectors/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Disable set(String parameterName, Object value) { + return (Disable) super.set(parameterName, value); + } + } + /** + * Enables a specific detector, so that it starts scanning. Enabling an already-ACTIVE detector + * succeeds and changes nothing. + * + * Create a request for the method "detectors.enable". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Enable#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the detector to enable. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EnableDetectorRequest} + * @return the request + */ + public Enable enable(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EnableDetectorRequest content) throws java.io.IOException { + Enable result = new Enable(name, content); + initialize(result); + return result; + } + + public class Enable extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:enable"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/detectors/[^/]+$"); + + /** + * Enables a specific detector, so that it starts scanning. Enabling an already-ACTIVE detector + * succeeds and changes nothing. + * + * Create a request for the method "detectors.enable". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Enable#execute()} method to invoke the remote operation. + *

{@link + * Enable#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 detector to enable. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EnableDetectorRequest} + * @since 1.13 + */ + protected Enable(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EnableDetectorRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Detector.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/[^/]+/detectors/[^/]+$"); + } + } + + @Override + public Enable set$Xgafv(java.lang.String $Xgafv) { + return (Enable) super.set$Xgafv($Xgafv); + } + + @Override + public Enable setAccessToken(java.lang.String accessToken) { + return (Enable) super.setAccessToken(accessToken); + } + + @Override + public Enable setAlt(java.lang.String alt) { + return (Enable) super.setAlt(alt); + } + + @Override + public Enable setCallback(java.lang.String callback) { + return (Enable) super.setCallback(callback); + } + + @Override + public Enable setFields(java.lang.String fields) { + return (Enable) super.setFields(fields); + } + + @Override + public Enable setKey(java.lang.String key) { + return (Enable) super.setKey(key); + } + + @Override + public Enable setOauthToken(java.lang.String oauthToken) { + return (Enable) super.setOauthToken(oauthToken); + } + + @Override + public Enable setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Enable) super.setPrettyPrint(prettyPrint); + } + + @Override + public Enable setQuotaUser(java.lang.String quotaUser) { + return (Enable) super.setQuotaUser(quotaUser); + } + + @Override + public Enable setUploadType(java.lang.String uploadType) { + return (Enable) super.setUploadType(uploadType); + } + + @Override + public Enable setUploadProtocol(java.lang.String uploadProtocol) { + return (Enable) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the detector to enable. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the detector to enable. Format: + `projects/{project}/locations/{location}/detectors/{detector}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the detector to enable. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` + */ + public Enable 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/[^/]+/detectors/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Enable set(String parameterName, Object value) { + return (Enable) super.set(parameterName, value); + } + } + /** + * Gets the details of a specific detector, including its current configuration. + * + * Create a request for the method "detectors.get". * * This request holds the parameters needed by the aiplatform server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. The name of the DeploymentResourcePool to retrieve. Format: - * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool - * }` + * @param name Required. The resource name of the detector. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -67031,35 +76766,34 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends AiplatformRequest { + public class Get extends AiplatformRequest { private static final String REST_PATH = "v1beta1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/detectors/[^/]+$"); /** - * Get a DeploymentResourcePool. + * Gets the details of a specific detector, including its current configuration. * - * Create a request for the method "deploymentResourcePools.get". + * Create a request for the method "detectors.get". * * This request holds the parameters needed by the the aiplatform server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* - * @param name Required. The name of the DeploymentResourcePool to retrieve. Format: - * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool - * }` + * @param name Required. The resource name of the detector. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` * @since 1.13 */ protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeploymentResourcePool.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Detector.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/[^/]+/deploymentResourcePools/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/detectors/[^/]+$"); } } @@ -67129,47 +76863,69 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The name of the DeploymentResourcePool to retrieve. Format: `projects/{projec - * t}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + * Required. The resource name of the detector. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the DeploymentResourcePool to retrieve. Format: - `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + /** Required. The resource name of the detector. Format: + `projects/{project}/locations/{location}/detectors/{detector}` */ public java.lang.String getName() { return name; } /** - * Required. The name of the DeploymentResourcePool to retrieve. Format: `projects/{projec - * t}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + * Required. The resource name of the detector. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` */ 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/[^/]+/deploymentResourcePools/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/detectors/[^/]+$"); } this.name = name; return this; } + /** + * Optional. Return the detector as configured at this revision. Unset returns the latest + * revision. + */ + @com.google.api.client.util.Key + private java.lang.String revisionId; + + /** Optional. Return the detector as configured at this revision. Unset returns the latest revision. + */ + public java.lang.String getRevisionId() { + return revisionId; + } + + /** + * Optional. Return the detector as configured at this revision. Unset returns the latest + * revision. + */ + public Get setRevisionId(java.lang.String revisionId) { + this.revisionId = revisionId; + return this; + } + @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** - * List DeploymentResourcePools in a location. + * Lists the detectors in a Location. * - * Create a request for the method "deploymentResourcePools.list". + * Create a request for the method "detectors.list". * * This request holds the parameters needed by the aiplatform server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The parent Location which owns this collection of DeploymentResourcePools. Format: + * @param parent Required. The resource name of the Location to list the detectors from. Format: * `projects/{project}/locations/{location}` * @return the request */ @@ -67179,29 +76935,29 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends AiplatformRequest { + public class List extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/deploymentResourcePools"; + private static final String REST_PATH = "v1beta1/{+parent}/detectors"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * List DeploymentResourcePools in a location. + * Lists the detectors in a Location. * - * Create a request for the method "deploymentResourcePools.list". + * Create a request for the method "detectors.list". * * This request holds the parameters needed by the the aiplatform 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 parent Location which owns this collection of DeploymentResourcePools. Format: + * @param parent Required. The resource name of the Location to list the detectors from. Format: * `projects/{project}/locations/{location}` * @since 1.13 */ protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListDeploymentResourcePoolsResponse.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListDetectorsResponse.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(), @@ -67276,13 +77032,13 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The parent Location which owns this collection of DeploymentResourcePools. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the detectors from. Format: + * `projects/{project}/locations/{location}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent Location which owns this collection of DeploymentResourcePools. Format: + /** Required. The resource name of the Location to list the detectors from. Format: `projects/{project}/locations/{location}` */ public java.lang.String getParent() { @@ -67290,280 +77046,127 @@ public java.lang.String getParent() { } /** - * Required. The parent Location which owns this collection of DeploymentResourcePools. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the detectors from. 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; - } - - /** - * The maximum number of DeploymentResourcePools to return. The service may return fewer - * than this value. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The maximum number of DeploymentResourcePools to return. The service may return fewer than this - value. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * The maximum number of DeploymentResourcePools to return. The service may return fewer - * than this value. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * A page token, received from a previous `ListDeploymentResourcePools` call. Provide this - * to retrieve the subsequent page. When paginating, all other parameters provided to - * `ListDeploymentResourcePools` must match the call that provided the page token. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** A page token, received from a previous `ListDeploymentResourcePools` call. Provide this to retrieve - the subsequent page. When paginating, all other parameters provided to - `ListDeploymentResourcePools` must match the call that provided the page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * A page token, received from a previous `ListDeploymentResourcePools` call. Provide this - * to retrieve the subsequent page. When paginating, all other parameters provided to - * `ListDeploymentResourcePools` must match the call that provided the page 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); - } - } - /** - * Update a DeploymentResourcePool. - * - * Create a request for the method "deploymentResourcePools.patch". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name Immutable. The resource name of the DeploymentResourcePool. Format: - * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool - * }` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeploymentResourcePool} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeploymentResourcePool content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } - - public class Patch extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); - - /** - * Update a DeploymentResourcePool. - * - * Create a request for the method "deploymentResourcePools.patch". - * - * This request holds the parameters needed by the the aiplatform 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 Immutable. The resource name of the DeploymentResourcePool. Format: - * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool - * }` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeploymentResourcePool} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeploymentResourcePool content) { - super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/deploymentResourcePools/[^/]+$"); - } - } - - @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); + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; } /** - * Immutable. The resource name of the DeploymentResourcePool. Format: `projects/{project} - * /locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + * Optional. The maximum number of detectors to return. The maximum value is 100; values + * above 100 will be coerced to 100. If unspecified, at most 10 detectors will be + * returned. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.Integer pageSize; - /** Immutable. The resource name of the DeploymentResourcePool. Format: - `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + /** Optional. The maximum number of detectors to return. The maximum value is 100; values above 100 + will be coerced to 100. If unspecified, at most 10 detectors will be returned. */ - public java.lang.String getName() { - return name; + public java.lang.Integer getPageSize() { + return pageSize; } /** - * Immutable. The resource name of the DeploymentResourcePool. Format: `projects/{project} - * /locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + * Optional. The maximum number of detectors to return. The maximum value is 100; values + * above 100 will be coerced to 100. If unspecified, at most 10 detectors will be + * returned. */ - 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/[^/]+/deploymentResourcePools/[^/]+$"); - } - this.name = name; + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; return this; } - /** Required. The list of fields to update. */ + /** + * Optional. A page token, received from a previous `ListDetectors` call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * `ListDetectors` must match the call that provided the page token. + */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String pageToken; - /** Required. The list of fields to update. + /** Optional. A page token, received from a previous `ListDetectors` call. Provide this to retrieve the + subsequent page. When paginating, all other parameters provided to `ListDetectors` must match the + call that provided the page token. */ - public String getUpdateMask() { - return updateMask; + public java.lang.String getPageToken() { + return pageToken; } - /** Required. The list of fields to update. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; + /** + * Optional. A page token, received from a previous `ListDetectors` call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * `ListDetectors` must match the call that provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * List DeployedModels that have been deployed on this DeploymentResourcePool. + * Lists the revisions of a detector, newest first. Each entry is the detector as configured at one + * revision, with `revision_id` and `revision_create_time` set. `state` and `selected_revision_id` + * are unset: neither is a property of a revision, and GetDetector returns both. * - * Create a request for the method "deploymentResourcePools.queryDeployedModels". + * Create a request for the method "detectors.listRevisions". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link QueryDeployedModels#execute()} method to invoke the remote operation. + * parameters, call the {@link ListRevisions#execute()} method to invoke the remote operation. * - * @param deploymentResourcePool Required. The name of the target DeploymentResourcePool to query. Format: - * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool - * }` + * @param name Required. The detector whose revisions to list. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` * @return the request */ - public QueryDeployedModels queryDeployedModels(java.lang.String deploymentResourcePool) throws java.io.IOException { - QueryDeployedModels result = new QueryDeployedModels(deploymentResourcePool); + public ListRevisions listRevisions(java.lang.String name) throws java.io.IOException { + ListRevisions result = new ListRevisions(name); initialize(result); return result; } - public class QueryDeployedModels extends AiplatformRequest { + public class ListRevisions extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+deploymentResourcePool}:queryDeployedModels"; + private static final String REST_PATH = "v1beta1/{+name}:listRevisions"; - private final java.util.regex.Pattern DEPLOYMENT_RESOURCE_POOL_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/detectors/[^/]+$"); /** - * List DeployedModels that have been deployed on this DeploymentResourcePool. + * Lists the revisions of a detector, newest first. Each entry is the detector as configured at + * one revision, with `revision_id` and `revision_create_time` set. `state` and + * `selected_revision_id` are unset: neither is a property of a revision, and GetDetector returns + * both. * - * Create a request for the method "deploymentResourcePools.queryDeployedModels". + * Create a request for the method "detectors.listRevisions". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link QueryDeployedModels#execute()} method to invoke the remote - * operation.

{@link QueryDeployedModels#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 ListRevisions#execute()} method to invoke the remote + * operation.

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

* - * @param deploymentResourcePool Required. The name of the target DeploymentResourcePool to query. Format: - * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool - * }` + * @param name Required. The detector whose revisions to list. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` * @since 1.13 */ - protected QueryDeployedModels(java.lang.String deploymentResourcePool) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1QueryDeployedModelsResponse.class); - this.deploymentResourcePool = com.google.api.client.util.Preconditions.checkNotNull(deploymentResourcePool, "Required parameter deploymentResourcePool must be specified."); + protected ListRevisions(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListDetectorRevisionsResponse.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(DEPLOYMENT_RESOURCE_POOL_PATTERN.matcher(deploymentResourcePool).matches(), - "Parameter deploymentResourcePool must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/detectors/[^/]+$"); } } @@ -67578,967 +77181,313 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public QueryDeployedModels set$Xgafv(java.lang.String $Xgafv) { - return (QueryDeployedModels) super.set$Xgafv($Xgafv); + public ListRevisions set$Xgafv(java.lang.String $Xgafv) { + return (ListRevisions) super.set$Xgafv($Xgafv); } @Override - public QueryDeployedModels setAccessToken(java.lang.String accessToken) { - return (QueryDeployedModels) super.setAccessToken(accessToken); + public ListRevisions setAccessToken(java.lang.String accessToken) { + return (ListRevisions) super.setAccessToken(accessToken); } @Override - public QueryDeployedModels setAlt(java.lang.String alt) { - return (QueryDeployedModels) super.setAlt(alt); + public ListRevisions setAlt(java.lang.String alt) { + return (ListRevisions) super.setAlt(alt); } @Override - public QueryDeployedModels setCallback(java.lang.String callback) { - return (QueryDeployedModels) super.setCallback(callback); + public ListRevisions setCallback(java.lang.String callback) { + return (ListRevisions) super.setCallback(callback); } @Override - public QueryDeployedModels setFields(java.lang.String fields) { - return (QueryDeployedModels) super.setFields(fields); + public ListRevisions setFields(java.lang.String fields) { + return (ListRevisions) super.setFields(fields); } @Override - public QueryDeployedModels setKey(java.lang.String key) { - return (QueryDeployedModels) super.setKey(key); + public ListRevisions setKey(java.lang.String key) { + return (ListRevisions) super.setKey(key); } @Override - public QueryDeployedModels setOauthToken(java.lang.String oauthToken) { - return (QueryDeployedModels) super.setOauthToken(oauthToken); + public ListRevisions setOauthToken(java.lang.String oauthToken) { + return (ListRevisions) super.setOauthToken(oauthToken); } @Override - public QueryDeployedModels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (QueryDeployedModels) super.setPrettyPrint(prettyPrint); + public ListRevisions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListRevisions) super.setPrettyPrint(prettyPrint); } @Override - public QueryDeployedModels setQuotaUser(java.lang.String quotaUser) { - return (QueryDeployedModels) super.setQuotaUser(quotaUser); + public ListRevisions setQuotaUser(java.lang.String quotaUser) { + return (ListRevisions) super.setQuotaUser(quotaUser); } @Override - public QueryDeployedModels setUploadType(java.lang.String uploadType) { - return (QueryDeployedModels) super.setUploadType(uploadType); + public ListRevisions setUploadType(java.lang.String uploadType) { + return (ListRevisions) super.setUploadType(uploadType); } @Override - public QueryDeployedModels setUploadProtocol(java.lang.String uploadProtocol) { - return (QueryDeployedModels) super.setUploadProtocol(uploadProtocol); + public ListRevisions setUploadProtocol(java.lang.String uploadProtocol) { + return (ListRevisions) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the target DeploymentResourcePool to query. Format: `projects/{pr - * oject}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + * Required. The detector whose revisions to list. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` */ @com.google.api.client.util.Key - private java.lang.String deploymentResourcePool; + private java.lang.String name; - /** Required. The name of the target DeploymentResourcePool to query. Format: - `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + /** Required. The detector whose revisions to list. Format: + `projects/{project}/locations/{location}/detectors/{detector}` */ - public java.lang.String getDeploymentResourcePool() { - return deploymentResourcePool; + public java.lang.String getName() { + return name; } /** - * Required. The name of the target DeploymentResourcePool to query. Format: `projects/{pr - * oject}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + * Required. The detector whose revisions to list. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` */ - public QueryDeployedModels setDeploymentResourcePool(java.lang.String deploymentResourcePool) { + public ListRevisions setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DEPLOYMENT_RESOURCE_POOL_PATTERN.matcher(deploymentResourcePool).matches(), - "Parameter deploymentResourcePool must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/detectors/[^/]+$"); } - this.deploymentResourcePool = deploymentResourcePool; + this.name = name; return this; } /** - * The maximum number of DeployedModels to return. The service may return fewer than this - * value. + * Optional. The maximum number of revisions to return. The maximum value is 100; values + * above 100 will be coerced to 100. If unspecified, at most 10 revisions will be + * returned. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** The maximum number of DeployedModels to return. The service may return fewer than this value. + /** Optional. The maximum number of revisions to return. The maximum value is 100; values above 100 + will be coerced to 100. If unspecified, at most 10 revisions will be returned. */ public java.lang.Integer getPageSize() { return pageSize; } /** - * The maximum number of DeployedModels to return. The service may return fewer than this - * value. + * Optional. The maximum number of revisions to return. The maximum value is 100; values + * above 100 will be coerced to 100. If unspecified, at most 10 revisions will be + * returned. */ - public QueryDeployedModels setPageSize(java.lang.Integer pageSize) { + public ListRevisions setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** - * A page token, received from a previous `QueryDeployedModels` call. Provide this to - * retrieve the subsequent page. When paginating, all other parameters provided to - * `QueryDeployedModels` must match the call that provided the page token. + * Optional. A page token, received from a previous `ListDetectorRevisions` call. Provide + * this to retrieve the subsequent page. When paginating, `name` must match the call that + * provided the page token. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** A page token, received from a previous `QueryDeployedModels` call. Provide this to retrieve the - subsequent page. When paginating, all other parameters provided to `QueryDeployedModels` must match - the call that provided the page token. + /** Optional. A page token, received from a previous `ListDetectorRevisions` call. Provide this to + retrieve the subsequent page. When paginating, `name` must match the call that provided the page + token. */ public java.lang.String getPageToken() { return pageToken; } /** - * A page token, received from a previous `QueryDeployedModels` call. Provide this to - * retrieve the subsequent page. When paginating, all other parameters provided to - * `QueryDeployedModels` must match the call that provided the page token. + * Optional. A page token, received from a previous `ListDetectorRevisions` call. Provide + * this to retrieve the subsequent page. When paginating, `name` must match the call that + * provided the page token. */ - public QueryDeployedModels setPageToken(java.lang.String pageToken) { + public ListRevisions setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @Override - public QueryDeployedModels set(String parameterName, Object value) { - return (QueryDeployedModels) super.set(parameterName, value); + public ListRevisions set(String parameterName, Object value) { + return (ListRevisions) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the Operations collection. + * Updates an existing detector. A mask covering `custom_detector_config` replaces the whole config; + * `state` cannot be changed here, use EnableDetector or DisableDetector. * - *

The typical use is:

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

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

- * - * @param name The name of the operation resource to be cancelled. - * @since 1.13 - */ - protected Cancel(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); - } - } - - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } - - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } - - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } - - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } - - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } - - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } - - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } - - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } - - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } - - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } - - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } - - /** The name of the operation resource to be cancelled. */ - @com.google.api.client.util.Key - private java.lang.String name; + public class Patch extends AiplatformRequest { - /** The name of the operation resource to be cancelled. - */ - public java.lang.String getName() { - return name; - } + private static final String REST_PATH = "v1beta1/{+name}"; - /** The name of the operation resource to be cancelled. */ - public Cancel setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/detectors/[^/]+$"); - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); - } - } /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * Updates an existing detector. A mask covering `custom_detector_config` replaces the whole + * config; `state` cannot be changed here, use EnableDetector or DisableDetector. * - * Create a request for the method "operations.delete". + * Create a request for the method "detectors.patch". * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource to be deleted. - * @return the request + * @param name Identifier. The resource name of the detector. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Detector} + * @since 1.13 */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } - - public class Delete extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); - - /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. - * - * Create a request for the method "operations.delete". - * - * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource to be deleted. - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); - } - } - - @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); + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Detector content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Detector.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/[^/]+/detectors/[^/]+$"); } + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - /** The name of the operation resource to be deleted. */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } + /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. - * - * Create a request for the method "operations.get". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource. - * @return the request + * Identifier. The resource name of the detector. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } - - public class Get extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); - - /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. - * - * Create a request for the method "operations.get". - * - * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); - } - } - - @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); - } - - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. - * - * Create a request for the method "operations.list". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param name The name of the operation's parent resource. - * @return the request + /** Identifier. The resource name of the detector. Format: + `projects/{project}/locations/{location}/detectors/{detector}` */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; + public java.lang.String getName() { + return name; } - public class List extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}/operations"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); - - /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. - * - * Create a request for the method "operations.list". - * - * This request holds the parameters needed by the the aiplatform 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 name The name of the operation's parent resource. - * @since 1.13 - */ - protected List(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningListOperationsResponse.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/[^/]+/deploymentResourcePools/[^/]+$"); - } - } - - @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); - } - - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); - } - this.name = name; - return this; - } - - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } - - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. - * This can only be `true` when reading across collections. For example, when `parent` - * is set to `"projects/example/locations/-"`. This field is not supported by default - * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented - * otherwise in service or product specific documentation. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** When set to `true`, operations that are reachable are returned as normal, and those that are - unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` - when reading across collections. For example, when `parent` is set to - `"projects/example/locations/-"`. This field is not supported by default and will result in an - `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific - documentation. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + /** + * Identifier. The resource name of the detector. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` + */ + 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/[^/]+/detectors/[^/]+$"); } + this.name = name; + return this; + } - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. - * This can only be `true` when reading across collections. For example, when `parent` - * is set to `"projects/example/locations/-"`. This field is not supported by default - * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented - * otherwise in service or product specific documentation. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } + /** + * Optional. The list of fields to update. Supported paths are `display_name`, + * `description` and `custom_detector_config`. `name` and `state` are ignored if named; + * any other path is rejected with INVALID_ARGUMENT. + */ + @com.google.api.client.util.Key + private String updateMask; - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } + /** Optional. The list of fields to update. Supported paths are `display_name`, `description` and + `custom_detector_config`. `name` and `state` are ignored if named; any other path is rejected with + INVALID_ARGUMENT. + */ + public String getUpdateMask() { + return updateMask; } + /** - * Waits until the specified long-running operation is done or reaches at most a specified timeout, - * returning the latest state. If the operation is already done, the latest state is immediately - * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - * timeout is used. If the server does not support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return - * the latest state before the specified timeout (including immediately), meaning even an immediate - * response is no guarantee that the operation is done. - * - * Create a request for the method "operations.wait". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Wait#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource to wait on. - * @return the request + * Optional. The list of fields to update. Supported paths are `display_name`, + * `description` and `custom_detector_config`. `name` and `state` are ignored if named; + * any other path is rejected with INVALID_ARGUMENT. */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); - initialize(result); - return result; + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; } - public class Wait extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}:wait"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); - - /** - * Waits until the specified long-running operation is done or reaches at most a specified - * timeout, returning the latest state. If the operation is already done, the latest state is - * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, - * the HTTP/RPC timeout is used. If the server does not support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return - * the latest state before the specified timeout (including immediately), meaning even an - * immediate response is no guarantee that the operation is done. - * - * Create a request for the method "operations.wait". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

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

- * - * @param name The name of the operation resource to wait on. - * @since 1.13 - */ - protected Wait(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); - } - } - - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } - - @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); - } - - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } - - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); - } - - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } - - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } - - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } - - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } - - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } - - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } - - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } - - /** The name of the operation resource to wait on. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the operation resource to wait on. */ - public Wait 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/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * The maximum duration to wait before timing out. If left blank, the wait will be at - * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline - * is also specified, the shorter one will be used. - */ - @com.google.api.client.util.Key - private String timeout; - - /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time - permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the - shorter one will be used. - */ - public String getTimeout() { - return timeout; - } - - /** - * The maximum duration to wait before timing out. If left blank, the wait will be at - * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline - * is also specified, the shorter one will be used. - */ - public Wait setTimeout(String timeout) { - this.timeout = timeout; - return this; - } - - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); - } + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } - } + } /** * An accessor for creating requests from the EdgeDevices collection. @@ -76743,6 +85692,34 @@ public Delete setName(java.lang.String name) { return this; } + /** + * Optional. If set to true, all revisions of this EvaluationItem are deleted too. + * Otherwise the request fails with FAILED_PRECONDITION if the EvaluationItem has + * revisions. Even with force, fails with FAILED_PRECONDITION if any revision is + * referenced by an EvaluationSetRevision. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. If set to true, all revisions of this EvaluationItem are deleted too. Otherwise the + request fails with FAILED_PRECONDITION if the EvaluationItem has revisions. Even with force, fails + with FAILED_PRECONDITION if any revision is referenced by an EvaluationSetRevision. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. If set to true, all revisions of this EvaluationItem are deleted too. + * Otherwise the request fails with FAILED_PRECONDITION if the EvaluationItem has + * revisions. Even with force, fails with FAILED_PRECONDITION if any revision is + * referenced by an EvaluationSetRevision. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); @@ -77398,419 +86375,590 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. - * - * Create a request for the method "operations.list". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param name The name of the operation's parent resource. - * @return the request - */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; - } - - public class List extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}/operations"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$"); - + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}/operations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$"); + + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the the aiplatform 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 name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningListOperationsResponse.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/[^/]+/evaluationItems/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. + * This can only be `true` when reading across collections. For example, when `parent` + * is set to `"projects/example/locations/-"`. This field is not supported by default + * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented + * otherwise in service or product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. + * This can only be `true` when reading across collections. For example, when `parent` + * is set to `"projects/example/locations/-"`. This field is not supported by default + * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented + * otherwise in service or product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Waits until the specified long-running operation is done or reaches at most a specified timeout, + * returning the latest state. If the operation is already done, the latest state is immediately + * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + * timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an immediate + * response is no guarantee that the operation is done. + * + * Create a request for the method "operations.wait". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to wait on. + * @return the request + */ + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; + } + + public class Wait extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:wait"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+/operations/[^/]+$"); + + /** + * Waits until the specified long-running operation is done or reaches at most a specified + * timeout, returning the latest state. If the operation is already done, the latest state is + * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, + * the HTTP/RPC timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an + * immediate response is no guarantee that the operation is done. + * + * Create a request for the method "operations.wait". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

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

+ * + * @param name The name of the operation resource to wait on. + * @since 1.13 + */ + protected Wait(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/evaluationItems/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } + + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } + + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } + + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } + + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } + + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } + + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } + + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } + + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } + + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } + + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to wait on. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to wait on. */ + public Wait 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/[^/]+/evaluationItems/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline + * is also specified, the shorter one will be used. + */ + @com.google.api.client.util.Key + private String timeout; + + /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time + permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the + shorter one will be used. + */ + public String getTimeout() { + return timeout; + } + + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline + * is also specified, the shorter one will be used. + */ + public Wait setTimeout(String timeout) { + this.timeout = timeout; + return this; + } + + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Revisions collection. + * + *

The typical use is:

+ *
+         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+         *   {@code Aiplatform.Revisions.List request = aiplatform.revisions().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Revisions revisions() { + return new Revisions(); + } + + /** + * The "revisions" collection of methods. + */ + public class Revisions { + + /** + * Gets an Evaluation Item Revision. + * + * Create a request for the method "revisions.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the EvaluationItemRevision resource. Format: + * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}/revisions/{revi + * sion}` + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+/revisions/[^/]+$"); + + /** + * Gets an Evaluation Item Revision. + * + * Create a request for the method "revisions.get". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The name of the EvaluationItemRevision resource. Format: + * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}/revisions/{revi + * sion}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationItemRevision.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/[^/]+/evaluationItems/[^/]+/revisions/[^/]+$"); + } + } + + @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); + } + /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. - * - * Create a request for the method "operations.list". - * - * This request holds the parameters needed by the the aiplatform 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 name The name of the operation's parent resource. - * @since 1.13 + * Required. The name of the EvaluationItemRevision resource. Format: `projects/{project + * }/locations/{location}/evaluationItems/{evaluation_item}/revisions/{revision}` */ - protected List(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningListOperationsResponse.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/[^/]+/evaluationItems/[^/]+$"); - } - } - - @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); - } - - /** The name of the operation's parent resource. */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation's parent resource. + /** Required. The name of the EvaluationItemRevision resource. Format: + `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}/revisions/{revision}` */ public java.lang.String getName() { return name; } - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$"); - } - this.name = name; - return this; - } - - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } - - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. - * This can only be `true` when reading across collections. For example, when `parent` - * is set to `"projects/example/locations/-"`. This field is not supported by default - * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented - * otherwise in service or product specific documentation. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** When set to `true`, operations that are reachable are returned as normal, and those that are - unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` - when reading across collections. For example, when `parent` is set to - `"projects/example/locations/-"`. This field is not supported by default and will result in an - `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific - documentation. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. - * This can only be `true` when reading across collections. For example, when `parent` - * is set to `"projects/example/locations/-"`. This field is not supported by default - * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented - * otherwise in service or product specific documentation. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Waits until the specified long-running operation is done or reaches at most a specified timeout, - * returning the latest state. If the operation is already done, the latest state is immediately - * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - * timeout is used. If the server does not support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return - * the latest state before the specified timeout (including immediately), meaning even an immediate - * response is no guarantee that the operation is done. - * - * Create a request for the method "operations.wait". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Wait#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource to wait on. - * @return the request - */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); - initialize(result); - return result; - } - - public class Wait extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}:wait"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+/operations/[^/]+$"); - - /** - * Waits until the specified long-running operation is done or reaches at most a specified - * timeout, returning the latest state. If the operation is already done, the latest state is - * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, - * the HTTP/RPC timeout is used. If the server does not support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return - * the latest state before the specified timeout (including immediately), meaning even an - * immediate response is no guarantee that the operation is done. - * - * Create a request for the method "operations.wait". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

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

- * - * @param name The name of the operation resource to wait on. - * @since 1.13 - */ - protected Wait(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/evaluationItems/[^/]+/operations/[^/]+$"); - } - } - - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } - - @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); - } - - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } - - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); - } - - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } - - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } - - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } - - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } - - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } - - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } - - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } - - /** The name of the operation resource to wait on. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the operation resource to wait on. + * Required. The name of the EvaluationItemRevision resource. Format: `projects/{project + * }/locations/{location}/evaluationItems/{evaluation_item}/revisions/{revision}` */ - public java.lang.String getName() { - return name; - } - - /** The name of the operation resource to wait on. */ - public Wait 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 " + - "^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+/revisions/[^/]+$"); } this.name = name; return this; } - /** - * The maximum duration to wait before timing out. If left blank, the wait will be at - * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline - * is also specified, the shorter one will be used. - */ - @com.google.api.client.util.Key - private String timeout; - - /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time - permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the - shorter one will be used. - */ - public String getTimeout() { - return timeout; - } - - /** - * The maximum duration to wait before timing out. If left blank, the wait will be at - * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline - * is also specified, the shorter one will be used. - */ - public Wait setTimeout(String timeout) { - this.timeout = timeout; - return this; - } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } @@ -80846,6 +89994,35 @@ public Delete setName(java.lang.String name) { return this; } + /** + * Optional. If set to true, all revisions of this EvaluationSet (and their unreferenced + * EvaluationItemRevisions) are deleted too. Otherwise the request fails with + * FAILED_PRECONDITION if the EvaluationSet has any revisions. Fails with + * FAILED_PRECONDITION even with force if a revision is being created. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. If set to true, all revisions of this EvaluationSet (and their unreferenced + EvaluationItemRevisions) are deleted too. Otherwise the request fails with FAILED_PRECONDITION if + the EvaluationSet has any revisions. Fails with FAILED_PRECONDITION even with force if a revision + is being created. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. If set to true, all revisions of this EvaluationSet (and their unreferenced + * EvaluationItemRevisions) are deleted too. Otherwise the request fails with + * FAILED_PRECONDITION if the EvaluationSet has any revisions. Fails with + * FAILED_PRECONDITION even with force if a revision is being created. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); @@ -82212,6 +91389,659 @@ public Wait set(String parameterName, Object value) { } } + /** + * An accessor for creating requests from the Revisions collection. + * + *

The typical use is:

+ *
+         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+         *   {@code Aiplatform.Revisions.List request = aiplatform.revisions().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Revisions revisions() { + return new Revisions(); + } + + /** + * The "revisions" collection of methods. + */ + public class Revisions { + + /** + * Creates an Evaluation Set Revision: an immutable snapshot of the Evaluation Set and its + * Evaluation Items. Each entry in the set's `evaluation_items` is replaced by an Evaluation Item + * Revision of that item. Every Evaluation Item in the set must be of type `HARBOR_TASK`. It must + * not contain duplicate items. Currently this always creates a new Evaluation Item Revision for + * every item. Clients must not rely on this: a future version may reuse an item's latest Evaluation + * Item Revision when the item has not changed since that revision was created. + * + * Create a request for the method "revisions.create". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the EvaluationSet to create a revision of. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSetRevision} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSetRevision content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/revisions"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+$"); + + /** + * Creates an Evaluation Set Revision: an immutable snapshot of the Evaluation Set and its + * Evaluation Items. Each entry in the set's `evaluation_items` is replaced by an Evaluation Item + * Revision of that item. Every Evaluation Item in the set must be of type `HARBOR_TASK`. It must + * not contain duplicate items. Currently this always creates a new Evaluation Item Revision for + * every item. Clients must not rely on this: a future version may reuse an item's latest + * Evaluation Item Revision when the item has not changed since that revision was created. + * + * Create a request for the method "revisions.create". + * + * This request holds the parameters needed by the the aiplatform 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 resource name of the EvaluationSet to create a revision of. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSetRevision} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSetRevision content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/evaluationSets/[^/]+$"); + } + } + + @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 resource name of the EvaluationSet to create a revision of. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the EvaluationSet to create a revision of. Format: + `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the EvaluationSet to create a revision of. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + */ + 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/[^/]+/evaluationSets/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes an Evaluation Set Revision, then deletes each of its Evaluation Item Revisions that no + * other Evaluation Set Revision references. Evaluation Runs on the revision and their results are + * not deleted. + * + * Create a request for the method "revisions.delete". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the EvaluationSetRevision resource to be deleted. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}/revisions/{revisi + * on}` + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+/revisions/[^/]+$"); + + /** + * Deletes an Evaluation Set Revision, then deletes each of its Evaluation Item Revisions that no + * other Evaluation Set Revision references. Evaluation Runs on the revision and their results are + * not deleted. + * + * Create a request for the method "revisions.delete". + * + * This request holds the parameters needed by the the aiplatform 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. The name of the EvaluationSetRevision resource to be deleted. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}/revisions/{revisi + * on}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/evaluationSets/[^/]+/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. The name of the EvaluationSetRevision resource to be deleted. Format: `proj + * ects/{project}/locations/{location}/evaluationSets/{evaluation_set}/revisions/{revisi + * on}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the EvaluationSetRevision resource to be deleted. Format: + `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}/revisions/{revision}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the EvaluationSetRevision resource to be deleted. Format: `proj + * ects/{project}/locations/{location}/evaluationSets/{evaluation_set}/revisions/{revisi + * on}` + */ + 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/[^/]+/evaluationSets/[^/]+/revisions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets an Evaluation Set Revision. + * + * Create a request for the method "revisions.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the EvaluationSetRevision resource. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}/revisions/{revisi + * on}` + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+/revisions/[^/]+$"); + + /** + * Gets an Evaluation Set Revision. + * + * Create a request for the method "revisions.get". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The name of the EvaluationSetRevision resource. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}/revisions/{revisi + * on}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSetRevision.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/[^/]+/evaluationSets/[^/]+/revisions/[^/]+$"); + } + } + + @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. The name of the EvaluationSetRevision resource. Format: `projects/{project} + * /locations/{location}/evaluationSets/{evaluation_set}/revisions/{revision}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the EvaluationSetRevision resource. Format: + `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}/revisions/{revision}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the EvaluationSetRevision resource. Format: `projects/{project} + * /locations/{location}/evaluationSets/{evaluation_set}/revisions/{revision}` + */ + 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/[^/]+/evaluationSets/[^/]+/revisions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists the revisions of an Evaluation Set, newest first. + * + * Create a request for the method "revisions.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the EvaluationSet whose revisions to list. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/revisions"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+$"); + + /** + * Lists the revisions of an Evaluation Set, newest first. + * + * Create a request for the method "revisions.list". + * + * This request holds the parameters needed by the the aiplatform 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 resource name of the EvaluationSet whose revisions to list. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListEvaluationSetRevisionsResponse.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/[^/]+/evaluationSets/[^/]+$"); + } + } + + @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. The resource name of the EvaluationSet whose revisions to list. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the EvaluationSet whose revisions to list. Format: + `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the EvaluationSet whose revisions to list. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + */ + 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/[^/]+/evaluationSets/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. The maximum number of EvaluationSetRevisions to return. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of EvaluationSetRevisions to return. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Optional. The maximum number of EvaluationSetRevisions to return. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `ListEvaluationSetRevisions` call. + * Provide this to retrieve the subsequent page. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListEvaluationSetRevisions` call. Provide this to + retrieve the subsequent page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `ListEvaluationSetRevisions` call. + * Provide this to retrieve the subsequent page. + */ + 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); + } + } + + } } /** * An accessor for creating requests from the ExampleStores collection. @@ -114183,6 +124013,852 @@ public Get set(String parameterName, Object value) { } } + /** + * An accessor for creating requests from the LearningSets collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.LearningSets.List request = aiplatform.learningSets().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public LearningSets learningSets() { + return new LearningSets(); + } + + /** + * The "learningSets" collection of methods. + */ + public class LearningSets { + + /** + * An accessor for creating requests from the Operations collection. + * + *

The typical use is:

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

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

+ * + * @param name The name of the operation resource to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/learningSets/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be cancelled. */ + public Cancel setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/learningSets/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be deleted. + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/learningSets/[^/]+/operations/[^/]+$"); + + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.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/[^/]+/learningSets/[^/]+/operations/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be deleted. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/learningSets/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/learningSets/[^/]+/operations/[^/]+$"); + + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the the aiplatform 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 The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/learningSets/[^/]+/operations/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/learningSets/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}/operations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/learningSets/[^/]+$"); + + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the the aiplatform 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 name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningListOperationsResponse.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/[^/]+/learningSets/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/learningSets/[^/]+$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. + * This can only be `true` when reading across collections. For example, when `parent` + * is set to `"projects/example/locations/-"`. This field is not supported by default + * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented + * otherwise in service or product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. + * This can only be `true` when reading across collections. For example, when `parent` + * is set to `"projects/example/locations/-"`. This field is not supported by default + * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented + * otherwise in service or product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Waits until the specified long-running operation is done or reaches at most a specified timeout, + * returning the latest state. If the operation is already done, the latest state is immediately + * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + * timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an immediate + * response is no guarantee that the operation is done. + * + * Create a request for the method "operations.wait". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to wait on. + * @return the request + */ + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; + } + + public class Wait extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:wait"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/learningSets/[^/]+/operations/[^/]+$"); + + /** + * Waits until the specified long-running operation is done or reaches at most a specified + * timeout, returning the latest state. If the operation is already done, the latest state is + * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, + * the HTTP/RPC timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an + * immediate response is no guarantee that the operation is done. + * + * Create a request for the method "operations.wait". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

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

+ * + * @param name The name of the operation resource to wait on. + * @since 1.13 + */ + protected Wait(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/learningSets/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } + + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } + + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } + + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } + + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } + + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } + + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } + + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } + + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } + + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } + + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to wait on. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to wait on. */ + public Wait 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/[^/]+/learningSets/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline + * is also specified, the shorter one will be used. + */ + @com.google.api.client.util.Key + private String timeout; + + /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time + permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the + shorter one will be used. + */ + public String getTimeout() { + return timeout; + } + + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline + * is also specified, the shorter one will be used. + */ + public Wait setTimeout(String timeout) { + this.timeout = timeout; + return this; + } + + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } + } + + } + } /** * An accessor for creating requests from the MemoryBanks collection. * @@ -144317,6 +154993,146 @@ public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } + /** + * Sets the default NotebookRuntimeTemplate for a Location. + * + * Create a request for the method "notebookRuntimeTemplates.setDefault". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link SetDefault#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the Location to set the default NotebookRuntimeTemplate. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SetDefaultNotebookRuntimeTemplateRequest} + * @return the request + */ + public SetDefault setDefault(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SetDefaultNotebookRuntimeTemplateRequest content) throws java.io.IOException { + SetDefault result = new SetDefault(parent, content); + initialize(result); + return result; + } + + public class SetDefault extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/notebookRuntimeTemplates:setDefault"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Sets the default NotebookRuntimeTemplate for a Location. + * + * Create a request for the method "notebookRuntimeTemplates.setDefault". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link SetDefault#execute()} method to invoke the remote + * operation.

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

+ * + * @param parent Required. The resource name of the Location to set the default NotebookRuntimeTemplate. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SetDefaultNotebookRuntimeTemplateRequest} + * @since 1.13 + */ + protected SetDefault(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SetDefaultNotebookRuntimeTemplateRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SetDefaultNotebookRuntimeTemplateResponse.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 SetDefault set$Xgafv(java.lang.String $Xgafv) { + return (SetDefault) super.set$Xgafv($Xgafv); + } + + @Override + public SetDefault setAccessToken(java.lang.String accessToken) { + return (SetDefault) super.setAccessToken(accessToken); + } + + @Override + public SetDefault setAlt(java.lang.String alt) { + return (SetDefault) super.setAlt(alt); + } + + @Override + public SetDefault setCallback(java.lang.String callback) { + return (SetDefault) super.setCallback(callback); + } + + @Override + public SetDefault setFields(java.lang.String fields) { + return (SetDefault) super.setFields(fields); + } + + @Override + public SetDefault setKey(java.lang.String key) { + return (SetDefault) super.setKey(key); + } + + @Override + public SetDefault setOauthToken(java.lang.String oauthToken) { + return (SetDefault) super.setOauthToken(oauthToken); + } + + @Override + public SetDefault setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetDefault) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetDefault setQuotaUser(java.lang.String quotaUser) { + return (SetDefault) super.setQuotaUser(quotaUser); + } + + @Override + public SetDefault setUploadType(java.lang.String uploadType) { + return (SetDefault) super.setUploadType(uploadType); + } + + @Override + public SetDefault setUploadProtocol(java.lang.String uploadProtocol) { + return (SetDefault) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the Location to set the default NotebookRuntimeTemplate. + * Format: `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the Location to set the default NotebookRuntimeTemplate. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the Location to set the default NotebookRuntimeTemplate. + * Format: `projects/{project}/locations/{location}` + */ + public SetDefault 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; + } + + @Override + public SetDefault set(String parameterName, Object value) { + return (SetDefault) super.set(parameterName, value); + } + } /** * Sets the access control policy on the specified resource. Replaces any existing policy. Can * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. @@ -155057,32 +165873,6 @@ public List setPublishersId(java.lang.String publishersId) { return this; } - /** - * Optional. Batch fetch: return only these files, up to 100 IDs after de-duplication. - * Mutually exclusive with both `page` and `limit`. Serialised as a repeated `ids` query - * parameter, one occurrence per ID. - */ - @com.google.api.client.util.Key - private java.util.List ids; - - /** Optional. Batch fetch: return only these files, up to 100 IDs after de-duplication. Mutually - exclusive with both `page` and `limit`. Serialised as a repeated `ids` query parameter, one - occurrence per ID. - */ - public java.util.List getIds() { - return ids; - } - - /** - * Optional. Batch fetch: return only these files, up to 100 IDs after de-duplication. - * Mutually exclusive with both `page` and `limit`. Serialised as a repeated `ids` query - * parameter, one occurrence per ID. - */ - public List setIds(java.util.List ids) { - this.ids = ids; - return this; - } - /** * Optional. The number of files to return per page. Defaults to 20 if unset, maximum * 1000. Mutually exclusive with `ids`. @@ -186057,6 +196847,179 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + /** + * Updates the specific SandboxEnvironmentTemplate. Only the container image and the warm pool size + * can be updated. + * + * Create a request for the method "sandboxEnvironmentTemplates.patch". + * + * This request holds the parameters needed by the aiplatform 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 SandboxEnvironmentTemplate. Format: `projects/{project}/locatio + * ns/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironmentTemplates/{sandbox_env + * ironment_template}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplate} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplate content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/sandboxEnvironmentTemplates/[^/]+$"); + + /** + * Updates the specific SandboxEnvironmentTemplate. Only the container image and the warm pool + * size can be updated. + * + * Create a request for the method "sandboxEnvironmentTemplates.patch". + * + * This request holds the parameters needed by the the aiplatform 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 SandboxEnvironmentTemplate. Format: `projects/{project}/locatio + * ns/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironmentTemplates/{sandbox_env + * ironment_template}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplate} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplate content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/reasoningEngines/[^/]+/sandboxEnvironmentTemplates/[^/]+$"); + } + } + + @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 SandboxEnvironmentTemplate. Format: `projects/{p + * roject}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironmentTe + * mplates/{sandbox_environment_template}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The resource name of the SandboxEnvironmentTemplate. Format: `projects/{project}/locati + ons/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironmentTemplates/{sandbox_environment + _template}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the SandboxEnvironmentTemplate. Format: `projects/{p + * roject}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironmentTe + * mplates/{sandbox_environment_template}` + */ + 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/[^/]+/reasoningEngines/[^/]+/sandboxEnvironmentTemplates/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The fields to update. Only these paths are supported: * + * `custom_container_environment.custom_container_spec.image_uri` * + * `warm_pool_config.target_instance_count` * `warm_pool_config.update_strategy` + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. The fields to update. Only these paths are supported: * + `custom_container_environment.custom_container_spec.image_uri` * + `warm_pool_config.target_instance_count` * `warm_pool_config.update_strategy` + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. The fields to update. Only these paths are supported: * + * `custom_container_environment.custom_container_spec.image_uri` * + * `warm_pool_config.target_instance_count` * `warm_pool_config.update_strategy` + */ + 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 Operations collection. @@ -207356,6 +218319,450 @@ public Wait set(String parameterName, Object value) { } } + /** + * An accessor for creating requests from the Tasks collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.Tasks.List request = aiplatform.tasks().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Tasks tasks() { + return new Tasks(); + } + + /** + * The "tasks" collection of methods. + */ + public class Tasks { + + /** + * Gets a task. + * + * Create a request for the method "tasks.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the task to retrieve. Both name forms are accepted: * + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} * + * projects/{project}/locations/{location}/tasks/{task} + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/tasks/[^/]+$"); + + /** + * Gets a task. + * + * Create a request for the method "tasks.get". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The name of the task to retrieve. Both name forms are accepted: * + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} * + * projects/{project}/locations/{location}/tasks/{task} + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Task.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/[^/]+/tasks/[^/]+$"); + } + } + + @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. The name of the task to retrieve. Both name forms are accepted: * + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} * + * projects/{project}/locations/{location}/tasks/{task} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the task to retrieve. Both name forms are accepted: * + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} * + projects/{project}/locations/{location}/tasks/{task} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the task to retrieve. Both name forms are accepted: * + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} * + * projects/{project}/locations/{location}/tasks/{task} + */ + 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/[^/]+/tasks/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists tasks under a parent. Supports filtering (e.g. by status or assigned_agent) so a surface + * can show "my tasks". + * + * Create a request for the method "tasks.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent to list tasks under. Both forms are accepted and scope the listing differently: + * * projects/{project}/locations/{location}/agents/{agent} -- tasks assigned to that agent. + * * projects/{project}/locations/{location} -- all tasks in the location. + * @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 AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/tasks"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists tasks under a parent. Supports filtering (e.g. by status or assigned_agent) so a surface + * can show "my tasks". + * + * Create a request for the method "tasks.list". + * + * This request holds the parameters needed by the the aiplatform 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 parent to list tasks under. Both forms are accepted and scope the listing differently: + * * projects/{project}/locations/{location}/agents/{agent} -- tasks assigned to that agent. + * * projects/{project}/locations/{location} -- all tasks in the location. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListTasksResponse.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. The parent to list tasks under. Both forms are accepted and scope the listing + * differently: * projects/{project}/locations/{location}/agents/{agent} -- tasks assigned + * to that agent. * projects/{project}/locations/{location} -- all tasks in the location. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent to list tasks under. Both forms are accepted and scope the listing + differently: * projects/{project}/locations/{location}/agents/{agent} -- tasks assigned to that + agent. * projects/{project}/locations/{location} -- all tasks in the location. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent to list tasks under. Both forms are accepted and scope the listing + * differently: * projects/{project}/locations/{location}/agents/{agent} -- tasks assigned + * to that agent. * projects/{project}/locations/{location} -- all tasks in the 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 filter expression, e.g. "status=WORKING". Lineage filters pick how much of + * a task tree to fetch: * "parent_task_id=" -- direct children only (progressive + * disclosure, one level per call). * "root_task_id=" -- the whole tree in one flat + * collection. Label filters support filtering by task labels: * "labels.=" -- match tasks + * with the given label key and value. Multiple label filters can be combined with AND. + * Multiple values for the same key can be combined with OR, e.g., "labels.foo=bar OR + * labels.foo=baz". Status filters restrict the listing to tasks in the given statuses: * + * "status=" -- e.g. "status=WORKING". Multiple statuses can be combined with OR, e.g., + * "status=WORKING OR status=IDLE". Both page normally via `page_size`/`page_token`, and + * both are ordered by `order_by` (default "create_time desc"), not by tree shape. A + * whole-tree page is therefore not a subtree: a child can arrive before its parent, so + * the client buffers by `parent_task_id` and renders as parents resolve. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. A filter expression, e.g. "status=WORKING". Lineage filters pick how much of a task tree + to fetch: * "parent_task_id=" -- direct children only (progressive disclosure, one level per call). + * "root_task_id=" -- the whole tree in one flat collection. Label filters support filtering by task + labels: * "labels.=" -- match tasks with the given label key and value. Multiple label filters can + be combined with AND. Multiple values for the same key can be combined with OR, e.g., + "labels.foo=bar OR labels.foo=baz". Status filters restrict the listing to tasks in the given + statuses: * "status=" -- e.g. "status=WORKING". Multiple statuses can be combined with OR, e.g., + "status=WORKING OR status=IDLE". Both page normally via `page_size`/`page_token`, and both are + ordered by `order_by` (default "create_time desc"), not by tree shape. A whole-tree page is + therefore not a subtree: a child can arrive before its parent, so the client buffers by + `parent_task_id` and renders as parents resolve. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. A filter expression, e.g. "status=WORKING". Lineage filters pick how much of + * a task tree to fetch: * "parent_task_id=" -- direct children only (progressive + * disclosure, one level per call). * "root_task_id=" -- the whole tree in one flat + * collection. Label filters support filtering by task labels: * "labels.=" -- match tasks + * with the given label key and value. Multiple label filters can be combined with AND. + * Multiple values for the same key can be combined with OR, e.g., "labels.foo=bar OR + * labels.foo=baz". Status filters restrict the listing to tasks in the given statuses: * + * "status=" -- e.g. "status=WORKING". Multiple statuses can be combined with OR, e.g., + * "status=WORKING OR status=IDLE". Both page normally via `page_size`/`page_token`, and + * both are ordered by `order_by` (default "create_time desc"), not by tree shape. A + * whole-tree page is therefore not a subtree: a child can arrive before its parent, so + * the client buffers by `parent_task_id` and renders as parents resolve. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Sort order, e.g. "create_time desc". The sortable fields are `create_time` + * and `update_time`. Defaults to "create_time desc". + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Sort order, e.g. "create_time desc". The sortable fields are `create_time` and + `update_time`. Defaults to "create_time desc". + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Sort order, e.g. "create_time desc". The sortable fields are `create_time` + * and `update_time`. Defaults to "create_time desc". + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. The maximum number of tasks to return. The service may return fewer. If + * unspecified (or <= 0), at most 50 are returned. The maximum is 100; larger values are + * capped to 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of tasks to return. The service may return fewer. If unspecified (or + <= 0), at most 50 are returned. The maximum is 100; larger values are capped to 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of tasks to return. The service may return fewer. If + * unspecified (or <= 0), at most 50 are returned. The maximum is 100; larger values are + * capped to 100. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. A page token from a previous ListTasks call. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token from a previous ListTasks call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. A page token from a previous ListTasks call. */ + 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); + } + } + + } /** * An accessor for creating requests from the Tensorboards collection. * @@ -242698,6 +254105,179 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + /** + * Updates the specific SandboxEnvironmentTemplate. Only the container image and the warm pool size + * can be updated. + * + * Create a request for the method "sandboxEnvironmentTemplates.patch". + * + * This request holds the parameters needed by the aiplatform 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 SandboxEnvironmentTemplate. Format: `projects/{project}/locatio + * ns/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironmentTemplates/{sandbox_env + * ironment_template}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplate} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplate content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^reasoningEngines/[^/]+/sandboxEnvironmentTemplates/[^/]+$"); + + /** + * Updates the specific SandboxEnvironmentTemplate. Only the container image and the warm pool + * size can be updated. + * + * Create a request for the method "sandboxEnvironmentTemplates.patch". + * + * This request holds the parameters needed by the the aiplatform 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 SandboxEnvironmentTemplate. Format: `projects/{project}/locatio + * ns/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironmentTemplates/{sandbox_env + * ironment_template}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplate} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplate content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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 " + + "^reasoningEngines/[^/]+/sandboxEnvironmentTemplates/[^/]+$"); + } + } + + @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 SandboxEnvironmentTemplate. Format: `projects/{proje + * ct}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironmentTemplates/ + * {sandbox_environment_template}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The resource name of the SandboxEnvironmentTemplate. Format: `projects/{project}/locati + ons/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironmentTemplates/{sandbox_environment + _template}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the SandboxEnvironmentTemplate. Format: `projects/{proje + * ct}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironmentTemplates/ + * {sandbox_environment_template}` + */ + 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 " + + "^reasoningEngines/[^/]+/sandboxEnvironmentTemplates/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The fields to update. Only these paths are supported: * + * `custom_container_environment.custom_container_spec.image_uri` * + * `warm_pool_config.target_instance_count` * `warm_pool_config.update_strategy` + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. The fields to update. Only these paths are supported: * + `custom_container_environment.custom_container_spec.image_uri` * + `warm_pool_config.target_instance_count` * `warm_pool_config.update_strategy` + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. The fields to update. Only these paths are supported: * + * `custom_container_environment.custom_container_spec.image_uri` * + * `warm_pool_config.target_instance_count` * `warm_pool_config.update_strategy` + */ + 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 Operations collection. diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/AiplatformScopes.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/AiplatformScopes.java index e6b664edbe1..661c13dde3d 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/AiplatformScopes.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/AiplatformScopes.java @@ -32,6 +32,12 @@ public class AiplatformScopes { /** View your data across Google Cloud services and see the email address of your Google Account. */ public static final String CLOUD_PLATFORM_READ_ONLY = "https://www.googleapis.com/auth/cloud-platform.read-only"; + /** View your Agentspace chat history, including uploaded files and generated reports and visualizations, and interact with the Agentspace assistant on your behalf. Also view the artifacts you access through NotebookLM Enterprise.. */ + public static final String DISCOVERYENGINE_ASSIST_READWRITE = "https://www.googleapis.com/auth/discoveryengine.assist.readwrite"; + + /** Interact with Discovery Engine API products, such as Agentspace, Vertex AI Search, or NotebookLM Enterprise, on your behalf. It will also allow the app to view all data that you have access to when you use or interact with a Discovery Engine API product.. */ + public static final String DISCOVERYENGINE_SERVING_READWRITE = "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; + /** * Returns an unmodifiable set that contains all scopes declared by this class. * @@ -42,6 +48,8 @@ public static java.util.Set all() { set.add(AIPLATFORM); set.add(CLOUD_PLATFORM); set.add(CLOUD_PLATFORM_READ_ONLY); + set.add(DISCOVERYENGINE_ASSIST_READWRITE); + set.add(DISCOVERYENGINE_SERVING_READWRITE); return java.util.Collections.unmodifiableSet(set); } diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataBlobstore2Info.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataBlobstore2Info.java new file mode 100644 index 00000000000..d6fb93cd41b --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataBlobstore2Info.java @@ -0,0 +1,360 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Information to read/write to blobstore2. + * + *

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 Platform 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 GdataBlobstore2Info extends com.google.api.client.json.GenericJson { + + /** + * The blob generation id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long blobGeneration; + + /** + * The blob id, e.g., /blobstore/prod/playground/scotty + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String blobId; + + /** + * A serialized External Read Token passed from Bigstore -> Scotty for a GCS download. This field + * must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String downloadExternalReadToken; + + /** + * Read handle passed from Bigstore -> Scotty for a GCS download. This is a signed, serialized + * blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable + * to non-GCS media downloads. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String downloadReadHandle; + + /** + * The blob read token. Needed to read blobs that have not been replicated. Might not be available + * until the final call. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String readToken; + + /** + * A serialized Object Fragment List Creation Info passed from Bigstore -> Scotty for a GCS + * upload. This field must never be consumed outside of Bigstore, and is not applicable to non-GCS + * media uploads. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uploadFragmentListCreationInfo; + + /** + * Metadata passed from Blobstore -> Scotty for a new GCS upload. This is a signed, serialized + * blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is + * not applicable to non-GCS media uploads. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uploadMetadataContainer; + + /** + * The blob generation id. + * @return value or {@code null} for none + */ + public java.lang.Long getBlobGeneration() { + return blobGeneration; + } + + /** + * The blob generation id. + * @param blobGeneration blobGeneration or {@code null} for none + */ + public GdataBlobstore2Info setBlobGeneration(java.lang.Long blobGeneration) { + this.blobGeneration = blobGeneration; + return this; + } + + /** + * The blob id, e.g., /blobstore/prod/playground/scotty + * @return value or {@code null} for none + */ + public java.lang.String getBlobId() { + return blobId; + } + + /** + * The blob id, e.g., /blobstore/prod/playground/scotty + * @param blobId blobId or {@code null} for none + */ + public GdataBlobstore2Info setBlobId(java.lang.String blobId) { + this.blobId = blobId; + return this; + } + + /** + * A serialized External Read Token passed from Bigstore -> Scotty for a GCS download. This field + * must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads. + * @see #decodeDownloadExternalReadToken() + * @return value or {@code null} for none + */ + public java.lang.String getDownloadExternalReadToken() { + return downloadExternalReadToken; + } + + /** + * A serialized External Read Token passed from Bigstore -> Scotty for a GCS download. This field + * must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads. + * @see #getDownloadExternalReadToken() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeDownloadExternalReadToken() { + return com.google.api.client.util.Base64.decodeBase64(downloadExternalReadToken); + } + + /** + * A serialized External Read Token passed from Bigstore -> Scotty for a GCS download. This field + * must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads. + * @see #encodeDownloadExternalReadToken() + * @param downloadExternalReadToken downloadExternalReadToken or {@code null} for none + */ + public GdataBlobstore2Info setDownloadExternalReadToken(java.lang.String downloadExternalReadToken) { + this.downloadExternalReadToken = downloadExternalReadToken; + return this; + } + + /** + * A serialized External Read Token passed from Bigstore -> Scotty for a GCS download. This field + * must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads. + * @see #setDownloadExternalReadToken() + * + *

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

+ * + * @since 1.14 + */ + public GdataBlobstore2Info encodeDownloadExternalReadToken(byte[] downloadExternalReadToken) { + this.downloadExternalReadToken = com.google.api.client.util.Base64.encodeBase64URLSafeString(downloadExternalReadToken); + return this; + } + + /** + * Read handle passed from Bigstore -> Scotty for a GCS download. This is a signed, serialized + * blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable + * to non-GCS media downloads. + * @see #decodeDownloadReadHandle() + * @return value or {@code null} for none + */ + public java.lang.String getDownloadReadHandle() { + return downloadReadHandle; + } + + /** + * Read handle passed from Bigstore -> Scotty for a GCS download. This is a signed, serialized + * blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable + * to non-GCS media downloads. + * @see #getDownloadReadHandle() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeDownloadReadHandle() { + return com.google.api.client.util.Base64.decodeBase64(downloadReadHandle); + } + + /** + * Read handle passed from Bigstore -> Scotty for a GCS download. This is a signed, serialized + * blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable + * to non-GCS media downloads. + * @see #encodeDownloadReadHandle() + * @param downloadReadHandle downloadReadHandle or {@code null} for none + */ + public GdataBlobstore2Info setDownloadReadHandle(java.lang.String downloadReadHandle) { + this.downloadReadHandle = downloadReadHandle; + return this; + } + + /** + * Read handle passed from Bigstore -> Scotty for a GCS download. This is a signed, serialized + * blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable + * to non-GCS media downloads. + * @see #setDownloadReadHandle() + * + *

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

+ * + * @since 1.14 + */ + public GdataBlobstore2Info encodeDownloadReadHandle(byte[] downloadReadHandle) { + this.downloadReadHandle = com.google.api.client.util.Base64.encodeBase64URLSafeString(downloadReadHandle); + return this; + } + + /** + * The blob read token. Needed to read blobs that have not been replicated. Might not be available + * until the final call. + * @return value or {@code null} for none + */ + public java.lang.String getReadToken() { + return readToken; + } + + /** + * The blob read token. Needed to read blobs that have not been replicated. Might not be available + * until the final call. + * @param readToken readToken or {@code null} for none + */ + public GdataBlobstore2Info setReadToken(java.lang.String readToken) { + this.readToken = readToken; + return this; + } + + /** + * A serialized Object Fragment List Creation Info passed from Bigstore -> Scotty for a GCS + * upload. This field must never be consumed outside of Bigstore, and is not applicable to non-GCS + * media uploads. + * @see #decodeUploadFragmentListCreationInfo() + * @return value or {@code null} for none + */ + public java.lang.String getUploadFragmentListCreationInfo() { + return uploadFragmentListCreationInfo; + } + + /** + * A serialized Object Fragment List Creation Info passed from Bigstore -> Scotty for a GCS + * upload. This field must never be consumed outside of Bigstore, and is not applicable to non-GCS + * media uploads. + * @see #getUploadFragmentListCreationInfo() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeUploadFragmentListCreationInfo() { + return com.google.api.client.util.Base64.decodeBase64(uploadFragmentListCreationInfo); + } + + /** + * A serialized Object Fragment List Creation Info passed from Bigstore -> Scotty for a GCS + * upload. This field must never be consumed outside of Bigstore, and is not applicable to non-GCS + * media uploads. + * @see #encodeUploadFragmentListCreationInfo() + * @param uploadFragmentListCreationInfo uploadFragmentListCreationInfo or {@code null} for none + */ + public GdataBlobstore2Info setUploadFragmentListCreationInfo(java.lang.String uploadFragmentListCreationInfo) { + this.uploadFragmentListCreationInfo = uploadFragmentListCreationInfo; + return this; + } + + /** + * A serialized Object Fragment List Creation Info passed from Bigstore -> Scotty for a GCS + * upload. This field must never be consumed outside of Bigstore, and is not applicable to non-GCS + * media uploads. + * @see #setUploadFragmentListCreationInfo() + * + *

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

+ * + * @since 1.14 + */ + public GdataBlobstore2Info encodeUploadFragmentListCreationInfo(byte[] uploadFragmentListCreationInfo) { + this.uploadFragmentListCreationInfo = com.google.api.client.util.Base64.encodeBase64URLSafeString(uploadFragmentListCreationInfo); + return this; + } + + /** + * Metadata passed from Blobstore -> Scotty for a new GCS upload. This is a signed, serialized + * blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is + * not applicable to non-GCS media uploads. + * @see #decodeUploadMetadataContainer() + * @return value or {@code null} for none + */ + public java.lang.String getUploadMetadataContainer() { + return uploadMetadataContainer; + } + + /** + * Metadata passed from Blobstore -> Scotty for a new GCS upload. This is a signed, serialized + * blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is + * not applicable to non-GCS media uploads. + * @see #getUploadMetadataContainer() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeUploadMetadataContainer() { + return com.google.api.client.util.Base64.decodeBase64(uploadMetadataContainer); + } + + /** + * Metadata passed from Blobstore -> Scotty for a new GCS upload. This is a signed, serialized + * blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is + * not applicable to non-GCS media uploads. + * @see #encodeUploadMetadataContainer() + * @param uploadMetadataContainer uploadMetadataContainer or {@code null} for none + */ + public GdataBlobstore2Info setUploadMetadataContainer(java.lang.String uploadMetadataContainer) { + this.uploadMetadataContainer = uploadMetadataContainer; + return this; + } + + /** + * Metadata passed from Blobstore -> Scotty for a new GCS upload. This is a signed, serialized + * blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is + * not applicable to non-GCS media uploads. + * @see #setUploadMetadataContainer() + * + *

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

+ * + * @since 1.14 + */ + public GdataBlobstore2Info encodeUploadMetadataContainer(byte[] uploadMetadataContainer) { + this.uploadMetadataContainer = com.google.api.client.util.Base64.encodeBase64URLSafeString(uploadMetadataContainer); + return this; + } + + @Override + public GdataBlobstore2Info set(String fieldName, Object value) { + return (GdataBlobstore2Info) super.set(fieldName, value); + } + + @Override + public GdataBlobstore2Info clone() { + return (GdataBlobstore2Info) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataCompositeMedia.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataCompositeMedia.java new file mode 100644 index 00000000000..0ad8537b743 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataCompositeMedia.java @@ -0,0 +1,477 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A sequence of media data references representing composite data. Introduced to support Bigstore + * composite objects. For details, visit http://go/bigstore-composites. + * + *

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 Platform 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 GdataCompositeMedia extends com.google.api.client.json.GenericJson { + + /** + * Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte + * representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info + * instead. For now, any v2 blob will also be represented in this field as v1 BlobRef. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String blobRef; + + /** + * Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GdataBlobstore2Info blobstore2Info; + + /** + * A binary data reference for a media download. Serves as a technology-agnostic binary reference + * in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. + * Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it + * includes) doesn't support JavaScript. This prevents us from including the actual type of this + * field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cosmoBinaryReference; + + /** + * crc32.c hash for the payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long crc32cHash; + + /** + * Media data, set if reference_type is INLINE + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String inline; + + /** + * Size of the data, in bytes + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long length; + + /** + * MD5 hash for the payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String md5Hash; + + /** + * Reference to a TI Blob, set if reference_type is BIGSTORE_REF. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GdataObjectId objectId; + + /** + * Path to the data, set if reference_type is PATH + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** + * Describes what the field reference contains. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String referenceType; + + /** + * SHA-1 hash for the payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sha1Hash; + + /** + * Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte + * representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info + * instead. For now, any v2 blob will also be represented in this field as v1 BlobRef. + * @see #decodeBlobRef() + * @return value or {@code null} for none + */ + public java.lang.String getBlobRef() { + return blobRef; + } + + /** + * Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte + * representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info + * instead. For now, any v2 blob will also be represented in this field as v1 BlobRef. + * @see #getBlobRef() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeBlobRef() { + return com.google.api.client.util.Base64.decodeBase64(blobRef); + } + + /** + * Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte + * representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info + * instead. For now, any v2 blob will also be represented in this field as v1 BlobRef. + * @see #encodeBlobRef() + * @param blobRef blobRef or {@code null} for none + */ + public GdataCompositeMedia setBlobRef(java.lang.String blobRef) { + this.blobRef = blobRef; + return this; + } + + /** + * Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte + * representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info + * instead. For now, any v2 blob will also be represented in this field as v1 BlobRef. + * @see #setBlobRef() + * + *

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

+ * + * @since 1.14 + */ + public GdataCompositeMedia encodeBlobRef(byte[] blobRef) { + this.blobRef = com.google.api.client.util.Base64.encodeBase64URLSafeString(blobRef); + return this; + } + + /** + * Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob. + * @return value or {@code null} for none + */ + public GdataBlobstore2Info getBlobstore2Info() { + return blobstore2Info; + } + + /** + * Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob. + * @param blobstore2Info blobstore2Info or {@code null} for none + */ + public GdataCompositeMedia setBlobstore2Info(GdataBlobstore2Info blobstore2Info) { + this.blobstore2Info = blobstore2Info; + return this; + } + + /** + * A binary data reference for a media download. Serves as a technology-agnostic binary reference + * in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. + * Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it + * includes) doesn't support JavaScript. This prevents us from including the actual type of this + * field. + * @see #decodeCosmoBinaryReference() + * @return value or {@code null} for none + */ + public java.lang.String getCosmoBinaryReference() { + return cosmoBinaryReference; + } + + /** + * A binary data reference for a media download. Serves as a technology-agnostic binary reference + * in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. + * Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it + * includes) doesn't support JavaScript. This prevents us from including the actual type of this + * field. + * @see #getCosmoBinaryReference() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeCosmoBinaryReference() { + return com.google.api.client.util.Base64.decodeBase64(cosmoBinaryReference); + } + + /** + * A binary data reference for a media download. Serves as a technology-agnostic binary reference + * in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. + * Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it + * includes) doesn't support JavaScript. This prevents us from including the actual type of this + * field. + * @see #encodeCosmoBinaryReference() + * @param cosmoBinaryReference cosmoBinaryReference or {@code null} for none + */ + public GdataCompositeMedia setCosmoBinaryReference(java.lang.String cosmoBinaryReference) { + this.cosmoBinaryReference = cosmoBinaryReference; + return this; + } + + /** + * A binary data reference for a media download. Serves as a technology-agnostic binary reference + * in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. + * Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it + * includes) doesn't support JavaScript. This prevents us from including the actual type of this + * field. + * @see #setCosmoBinaryReference() + * + *

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

+ * + * @since 1.14 + */ + public GdataCompositeMedia encodeCosmoBinaryReference(byte[] cosmoBinaryReference) { + this.cosmoBinaryReference = com.google.api.client.util.Base64.encodeBase64URLSafeString(cosmoBinaryReference); + return this; + } + + /** + * crc32.c hash for the payload. + * @return value or {@code null} for none + */ + public java.lang.Long getCrc32cHash() { + return crc32cHash; + } + + /** + * crc32.c hash for the payload. + * @param crc32cHash crc32cHash or {@code null} for none + */ + public GdataCompositeMedia setCrc32cHash(java.lang.Long crc32cHash) { + this.crc32cHash = crc32cHash; + return this; + } + + /** + * Media data, set if reference_type is INLINE + * @see #decodeInline() + * @return value or {@code null} for none + */ + public java.lang.String getInline() { + return inline; + } + + /** + * Media data, set if reference_type is INLINE + * @see #getInline() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeInline() { + return com.google.api.client.util.Base64.decodeBase64(inline); + } + + /** + * Media data, set if reference_type is INLINE + * @see #encodeInline() + * @param inline inline or {@code null} for none + */ + public GdataCompositeMedia setInline(java.lang.String inline) { + this.inline = inline; + return this; + } + + /** + * Media data, set if reference_type is INLINE + * @see #setInline() + * + *

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

+ * + * @since 1.14 + */ + public GdataCompositeMedia encodeInline(byte[] inline) { + this.inline = com.google.api.client.util.Base64.encodeBase64URLSafeString(inline); + return this; + } + + /** + * Size of the data, in bytes + * @return value or {@code null} for none + */ + public java.lang.Long getLength() { + return length; + } + + /** + * Size of the data, in bytes + * @param length length or {@code null} for none + */ + public GdataCompositeMedia setLength(java.lang.Long length) { + this.length = length; + return this; + } + + /** + * MD5 hash for the payload. + * @see #decodeMd5Hash() + * @return value or {@code null} for none + */ + public java.lang.String getMd5Hash() { + return md5Hash; + } + + /** + * MD5 hash for the payload. + * @see #getMd5Hash() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeMd5Hash() { + return com.google.api.client.util.Base64.decodeBase64(md5Hash); + } + + /** + * MD5 hash for the payload. + * @see #encodeMd5Hash() + * @param md5Hash md5Hash or {@code null} for none + */ + public GdataCompositeMedia setMd5Hash(java.lang.String md5Hash) { + this.md5Hash = md5Hash; + return this; + } + + /** + * MD5 hash for the payload. + * @see #setMd5Hash() + * + *

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

+ * + * @since 1.14 + */ + public GdataCompositeMedia encodeMd5Hash(byte[] md5Hash) { + this.md5Hash = com.google.api.client.util.Base64.encodeBase64URLSafeString(md5Hash); + return this; + } + + /** + * Reference to a TI Blob, set if reference_type is BIGSTORE_REF. + * @return value or {@code null} for none + */ + public GdataObjectId getObjectId() { + return objectId; + } + + /** + * Reference to a TI Blob, set if reference_type is BIGSTORE_REF. + * @param objectId objectId or {@code null} for none + */ + public GdataCompositeMedia setObjectId(GdataObjectId objectId) { + this.objectId = objectId; + return this; + } + + /** + * Path to the data, set if reference_type is PATH + * @return value or {@code null} for none + */ + public java.lang.String getPath() { + return path; + } + + /** + * Path to the data, set if reference_type is PATH + * @param path path or {@code null} for none + */ + public GdataCompositeMedia setPath(java.lang.String path) { + this.path = path; + return this; + } + + /** + * Describes what the field reference contains. + * @return value or {@code null} for none + */ + public java.lang.String getReferenceType() { + return referenceType; + } + + /** + * Describes what the field reference contains. + * @param referenceType referenceType or {@code null} for none + */ + public GdataCompositeMedia setReferenceType(java.lang.String referenceType) { + this.referenceType = referenceType; + return this; + } + + /** + * SHA-1 hash for the payload. + * @see #decodeSha1Hash() + * @return value or {@code null} for none + */ + public java.lang.String getSha1Hash() { + return sha1Hash; + } + + /** + * SHA-1 hash for the payload. + * @see #getSha1Hash() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeSha1Hash() { + return com.google.api.client.util.Base64.decodeBase64(sha1Hash); + } + + /** + * SHA-1 hash for the payload. + * @see #encodeSha1Hash() + * @param sha1Hash sha1Hash or {@code null} for none + */ + public GdataCompositeMedia setSha1Hash(java.lang.String sha1Hash) { + this.sha1Hash = sha1Hash; + return this; + } + + /** + * SHA-1 hash for the payload. + * @see #setSha1Hash() + * + *

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

+ * + * @since 1.14 + */ + public GdataCompositeMedia encodeSha1Hash(byte[] sha1Hash) { + this.sha1Hash = com.google.api.client.util.Base64.encodeBase64URLSafeString(sha1Hash); + return this; + } + + @Override + public GdataCompositeMedia set(String fieldName, Object value) { + return (GdataCompositeMedia) super.set(fieldName, value); + } + + @Override + public GdataCompositeMedia clone() { + return (GdataCompositeMedia) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataContentTypeInfo.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataContentTypeInfo.java new file mode 100644 index 00000000000..13253e0bd71 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataContentTypeInfo.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.aiplatform.v1beta1.model; + +/** + * Detailed Content-Type information from Scotty. The Content-Type of the media will typically be + * filled in by the header or Scotty's best_guess, but this extended information provides the + * backend with more information so that it can make a better decision if needed. This is only used + * on media upload requests from Scotty. + * + *

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 Platform 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 GdataContentTypeInfo extends com.google.api.client.json.GenericJson { + + /** + * Scotty's best guess of what the content type of the file is. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String bestGuess; + + /** + * The content type of the file derived by looking at specific bytes (i.e. "magic bytes") of the + * actual file. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fromBytes; + + /** + * The content type of the file derived from the file extension of the original file name used by + * the client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fromFileName; + + /** + * The content type of the file detected by Fusion ID. go/fusionid + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fromFusionId; + + /** + * The content type of the file as specified in the request headers, multipart headers, or RUPIO + * start request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fromHeader; + + /** + * The content type of the file derived from the file extension of the URL path. The URL path is + * assumed to represent a file name (which is typically only true for agents that are providing a + * REST API). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fromUrlPath; + + /** + * Metadata information from Fusion ID detection. Serialized FusionIdDetectionMetadata proto. Only + * set if from_fusion_id is set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fusionIdDetectionMetadata; + + /** + * Scotty's best guess of what the content type of the file is. + * @return value or {@code null} for none + */ + public java.lang.String getBestGuess() { + return bestGuess; + } + + /** + * Scotty's best guess of what the content type of the file is. + * @param bestGuess bestGuess or {@code null} for none + */ + public GdataContentTypeInfo setBestGuess(java.lang.String bestGuess) { + this.bestGuess = bestGuess; + return this; + } + + /** + * The content type of the file derived by looking at specific bytes (i.e. "magic bytes") of the + * actual file. + * @return value or {@code null} for none + */ + public java.lang.String getFromBytes() { + return fromBytes; + } + + /** + * The content type of the file derived by looking at specific bytes (i.e. "magic bytes") of the + * actual file. + * @param fromBytes fromBytes or {@code null} for none + */ + public GdataContentTypeInfo setFromBytes(java.lang.String fromBytes) { + this.fromBytes = fromBytes; + return this; + } + + /** + * The content type of the file derived from the file extension of the original file name used by + * the client. + * @return value or {@code null} for none + */ + public java.lang.String getFromFileName() { + return fromFileName; + } + + /** + * The content type of the file derived from the file extension of the original file name used by + * the client. + * @param fromFileName fromFileName or {@code null} for none + */ + public GdataContentTypeInfo setFromFileName(java.lang.String fromFileName) { + this.fromFileName = fromFileName; + return this; + } + + /** + * The content type of the file detected by Fusion ID. go/fusionid + * @return value or {@code null} for none + */ + public java.lang.String getFromFusionId() { + return fromFusionId; + } + + /** + * The content type of the file detected by Fusion ID. go/fusionid + * @param fromFusionId fromFusionId or {@code null} for none + */ + public GdataContentTypeInfo setFromFusionId(java.lang.String fromFusionId) { + this.fromFusionId = fromFusionId; + return this; + } + + /** + * The content type of the file as specified in the request headers, multipart headers, or RUPIO + * start request. + * @return value or {@code null} for none + */ + public java.lang.String getFromHeader() { + return fromHeader; + } + + /** + * The content type of the file as specified in the request headers, multipart headers, or RUPIO + * start request. + * @param fromHeader fromHeader or {@code null} for none + */ + public GdataContentTypeInfo setFromHeader(java.lang.String fromHeader) { + this.fromHeader = fromHeader; + return this; + } + + /** + * The content type of the file derived from the file extension of the URL path. The URL path is + * assumed to represent a file name (which is typically only true for agents that are providing a + * REST API). + * @return value or {@code null} for none + */ + public java.lang.String getFromUrlPath() { + return fromUrlPath; + } + + /** + * The content type of the file derived from the file extension of the URL path. The URL path is + * assumed to represent a file name (which is typically only true for agents that are providing a + * REST API). + * @param fromUrlPath fromUrlPath or {@code null} for none + */ + public GdataContentTypeInfo setFromUrlPath(java.lang.String fromUrlPath) { + this.fromUrlPath = fromUrlPath; + return this; + } + + /** + * Metadata information from Fusion ID detection. Serialized FusionIdDetectionMetadata proto. Only + * set if from_fusion_id is set. + * @see #decodeFusionIdDetectionMetadata() + * @return value or {@code null} for none + */ + public java.lang.String getFusionIdDetectionMetadata() { + return fusionIdDetectionMetadata; + } + + /** + * Metadata information from Fusion ID detection. Serialized FusionIdDetectionMetadata proto. Only + * set if from_fusion_id is set. + * @see #getFusionIdDetectionMetadata() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFusionIdDetectionMetadata() { + return com.google.api.client.util.Base64.decodeBase64(fusionIdDetectionMetadata); + } + + /** + * Metadata information from Fusion ID detection. Serialized FusionIdDetectionMetadata proto. Only + * set if from_fusion_id is set. + * @see #encodeFusionIdDetectionMetadata() + * @param fusionIdDetectionMetadata fusionIdDetectionMetadata or {@code null} for none + */ + public GdataContentTypeInfo setFusionIdDetectionMetadata(java.lang.String fusionIdDetectionMetadata) { + this.fusionIdDetectionMetadata = fusionIdDetectionMetadata; + return this; + } + + /** + * Metadata information from Fusion ID detection. Serialized FusionIdDetectionMetadata proto. Only + * set if from_fusion_id is set. + * @see #setFusionIdDetectionMetadata() + * + *

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

+ * + * @since 1.14 + */ + public GdataContentTypeInfo encodeFusionIdDetectionMetadata(byte[] fusionIdDetectionMetadata) { + this.fusionIdDetectionMetadata = com.google.api.client.util.Base64.encodeBase64URLSafeString(fusionIdDetectionMetadata); + return this; + } + + @Override + public GdataContentTypeInfo set(String fieldName, Object value) { + return (GdataContentTypeInfo) super.set(fieldName, value); + } + + @Override + public GdataContentTypeInfo clone() { + return (GdataContentTypeInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataDiffChecksumsResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataDiffChecksumsResponse.java new file mode 100644 index 00000000000..bce3974408f --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataDiffChecksumsResponse.java @@ -0,0 +1,172 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Backend response for a Diff get checksums response. For details on the Scotty Diff protocol, + * visit http://go/scotty-diff-protocol. + * + *

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 Platform 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 GdataDiffChecksumsResponse extends com.google.api.client.json.GenericJson { + + /** + * Exactly one of these fields must be populated. If checksums_location is filled, the server will + * return the corresponding contents to the user. If object_location is filled, the server will + * calculate the checksums based on the content there and return that to the user. For details on + * the format of the checksums, see http://go/scotty-diff-protocol. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GdataCompositeMedia checksumsLocation; + + /** + * The chunk size of checksums. Must be a multiple of 256KB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long chunkSizeBytes; + + /** + * If set, calculate the checksums based on the contents and return them to the caller. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GdataCompositeMedia objectLocation; + + /** + * The total size of the server object. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long objectSizeBytes; + + /** + * The object version of the object the checksums are being returned for. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String objectVersion; + + /** + * Exactly one of these fields must be populated. If checksums_location is filled, the server will + * return the corresponding contents to the user. If object_location is filled, the server will + * calculate the checksums based on the content there and return that to the user. For details on + * the format of the checksums, see http://go/scotty-diff-protocol. + * @return value or {@code null} for none + */ + public GdataCompositeMedia getChecksumsLocation() { + return checksumsLocation; + } + + /** + * Exactly one of these fields must be populated. If checksums_location is filled, the server will + * return the corresponding contents to the user. If object_location is filled, the server will + * calculate the checksums based on the content there and return that to the user. For details on + * the format of the checksums, see http://go/scotty-diff-protocol. + * @param checksumsLocation checksumsLocation or {@code null} for none + */ + public GdataDiffChecksumsResponse setChecksumsLocation(GdataCompositeMedia checksumsLocation) { + this.checksumsLocation = checksumsLocation; + return this; + } + + /** + * The chunk size of checksums. Must be a multiple of 256KB. + * @return value or {@code null} for none + */ + public java.lang.Long getChunkSizeBytes() { + return chunkSizeBytes; + } + + /** + * The chunk size of checksums. Must be a multiple of 256KB. + * @param chunkSizeBytes chunkSizeBytes or {@code null} for none + */ + public GdataDiffChecksumsResponse setChunkSizeBytes(java.lang.Long chunkSizeBytes) { + this.chunkSizeBytes = chunkSizeBytes; + return this; + } + + /** + * If set, calculate the checksums based on the contents and return them to the caller. + * @return value or {@code null} for none + */ + public GdataCompositeMedia getObjectLocation() { + return objectLocation; + } + + /** + * If set, calculate the checksums based on the contents and return them to the caller. + * @param objectLocation objectLocation or {@code null} for none + */ + public GdataDiffChecksumsResponse setObjectLocation(GdataCompositeMedia objectLocation) { + this.objectLocation = objectLocation; + return this; + } + + /** + * The total size of the server object. + * @return value or {@code null} for none + */ + public java.lang.Long getObjectSizeBytes() { + return objectSizeBytes; + } + + /** + * The total size of the server object. + * @param objectSizeBytes objectSizeBytes or {@code null} for none + */ + public GdataDiffChecksumsResponse setObjectSizeBytes(java.lang.Long objectSizeBytes) { + this.objectSizeBytes = objectSizeBytes; + return this; + } + + /** + * The object version of the object the checksums are being returned for. + * @return value or {@code null} for none + */ + public java.lang.String getObjectVersion() { + return objectVersion; + } + + /** + * The object version of the object the checksums are being returned for. + * @param objectVersion objectVersion or {@code null} for none + */ + public GdataDiffChecksumsResponse setObjectVersion(java.lang.String objectVersion) { + this.objectVersion = objectVersion; + return this; + } + + @Override + public GdataDiffChecksumsResponse set(String fieldName, Object value) { + return (GdataDiffChecksumsResponse) super.set(fieldName, value); + } + + @Override + public GdataDiffChecksumsResponse clone() { + return (GdataDiffChecksumsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataDiffDownloadResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataDiffDownloadResponse.java new file mode 100644 index 00000000000..76976647f44 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataDiffDownloadResponse.java @@ -0,0 +1,67 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Backend response for a Diff download response. For details on the Scotty Diff protocol, visit + * http://go/scotty-diff-protocol. + * + *

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 Platform 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 GdataDiffDownloadResponse extends com.google.api.client.json.GenericJson { + + /** + * The original object location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GdataCompositeMedia objectLocation; + + /** + * The original object location. + * @return value or {@code null} for none + */ + public GdataCompositeMedia getObjectLocation() { + return objectLocation; + } + + /** + * The original object location. + * @param objectLocation objectLocation or {@code null} for none + */ + public GdataDiffDownloadResponse setObjectLocation(GdataCompositeMedia objectLocation) { + this.objectLocation = objectLocation; + return this; + } + + @Override + public GdataDiffDownloadResponse set(String fieldName, Object value) { + return (GdataDiffDownloadResponse) super.set(fieldName, value); + } + + @Override + public GdataDiffDownloadResponse clone() { + return (GdataDiffDownloadResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataDiffUploadRequest.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataDiffUploadRequest.java new file mode 100644 index 00000000000..2db75a3f7ab --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataDiffUploadRequest.java @@ -0,0 +1,127 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A Diff upload request. For details on the Scotty Diff protocol, visit http://go/scotty-diff- + * protocol. + * + *

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 Platform 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 GdataDiffUploadRequest extends com.google.api.client.json.GenericJson { + + /** + * The location of the checksums for the new object. Agents must clone the object located here, as + * the upload server will delete the contents once a response is received. For details on the + * format of the checksums, see http://go/scotty-diff-protocol. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GdataCompositeMedia checksumsInfo; + + /** + * The location of the new object. Agents must clone the object located here, as the upload server + * will delete the contents once a response is received. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GdataCompositeMedia objectInfo; + + /** + * The object version of the object that is the base version the incoming diff script will be + * applied to. This field will always be filled in. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String objectVersion; + + /** + * The location of the checksums for the new object. Agents must clone the object located here, as + * the upload server will delete the contents once a response is received. For details on the + * format of the checksums, see http://go/scotty-diff-protocol. + * @return value or {@code null} for none + */ + public GdataCompositeMedia getChecksumsInfo() { + return checksumsInfo; + } + + /** + * The location of the checksums for the new object. Agents must clone the object located here, as + * the upload server will delete the contents once a response is received. For details on the + * format of the checksums, see http://go/scotty-diff-protocol. + * @param checksumsInfo checksumsInfo or {@code null} for none + */ + public GdataDiffUploadRequest setChecksumsInfo(GdataCompositeMedia checksumsInfo) { + this.checksumsInfo = checksumsInfo; + return this; + } + + /** + * The location of the new object. Agents must clone the object located here, as the upload server + * will delete the contents once a response is received. + * @return value or {@code null} for none + */ + public GdataCompositeMedia getObjectInfo() { + return objectInfo; + } + + /** + * The location of the new object. Agents must clone the object located here, as the upload server + * will delete the contents once a response is received. + * @param objectInfo objectInfo or {@code null} for none + */ + public GdataDiffUploadRequest setObjectInfo(GdataCompositeMedia objectInfo) { + this.objectInfo = objectInfo; + return this; + } + + /** + * The object version of the object that is the base version the incoming diff script will be + * applied to. This field will always be filled in. + * @return value or {@code null} for none + */ + public java.lang.String getObjectVersion() { + return objectVersion; + } + + /** + * The object version of the object that is the base version the incoming diff script will be + * applied to. This field will always be filled in. + * @param objectVersion objectVersion or {@code null} for none + */ + public GdataDiffUploadRequest setObjectVersion(java.lang.String objectVersion) { + this.objectVersion = objectVersion; + return this; + } + + @Override + public GdataDiffUploadRequest set(String fieldName, Object value) { + return (GdataDiffUploadRequest) super.set(fieldName, value); + } + + @Override + public GdataDiffUploadRequest clone() { + return (GdataDiffUploadRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataDiffUploadResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataDiffUploadResponse.java new file mode 100644 index 00000000000..61c324c9b40 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataDiffUploadResponse.java @@ -0,0 +1,100 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Backend response for a Diff upload request. For details on the Scotty Diff protocol, visit + * http://go/scotty-diff-protocol. + * + *

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 Platform 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 GdataDiffUploadResponse extends com.google.api.client.json.GenericJson { + + /** + * The object version of the object at the server. Must be included in the end notification + * response. The version in the end notification response must correspond to the new version of + * the object that is now stored at the server, after the upload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String objectVersion; + + /** + * The location of the original file for a diff upload request. Must be filled in if responding to + * an upload start notification. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GdataCompositeMedia originalObject; + + /** + * The object version of the object at the server. Must be included in the end notification + * response. The version in the end notification response must correspond to the new version of + * the object that is now stored at the server, after the upload. + * @return value or {@code null} for none + */ + public java.lang.String getObjectVersion() { + return objectVersion; + } + + /** + * The object version of the object at the server. Must be included in the end notification + * response. The version in the end notification response must correspond to the new version of + * the object that is now stored at the server, after the upload. + * @param objectVersion objectVersion or {@code null} for none + */ + public GdataDiffUploadResponse setObjectVersion(java.lang.String objectVersion) { + this.objectVersion = objectVersion; + return this; + } + + /** + * The location of the original file for a diff upload request. Must be filled in if responding to + * an upload start notification. + * @return value or {@code null} for none + */ + public GdataCompositeMedia getOriginalObject() { + return originalObject; + } + + /** + * The location of the original file for a diff upload request. Must be filled in if responding to + * an upload start notification. + * @param originalObject originalObject or {@code null} for none + */ + public GdataDiffUploadResponse setOriginalObject(GdataCompositeMedia originalObject) { + this.originalObject = originalObject; + return this; + } + + @Override + public GdataDiffUploadResponse set(String fieldName, Object value) { + return (GdataDiffUploadResponse) super.set(fieldName, value); + } + + @Override + public GdataDiffUploadResponse clone() { + return (GdataDiffUploadResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataDiffVersionResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataDiffVersionResponse.java new file mode 100644 index 00000000000..a4c330bef83 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataDiffVersionResponse.java @@ -0,0 +1,91 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Backend response for a Diff get version response. For details on the Scotty Diff protocol, visit + * http://go/scotty-diff-protocol. + * + *

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 Platform 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 GdataDiffVersionResponse extends com.google.api.client.json.GenericJson { + + /** + * The total size of the server object. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long objectSizeBytes; + + /** + * The version of the object stored at the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String objectVersion; + + /** + * The total size of the server object. + * @return value or {@code null} for none + */ + public java.lang.Long getObjectSizeBytes() { + return objectSizeBytes; + } + + /** + * The total size of the server object. + * @param objectSizeBytes objectSizeBytes or {@code null} for none + */ + public GdataDiffVersionResponse setObjectSizeBytes(java.lang.Long objectSizeBytes) { + this.objectSizeBytes = objectSizeBytes; + return this; + } + + /** + * The version of the object stored at the server. + * @return value or {@code null} for none + */ + public java.lang.String getObjectVersion() { + return objectVersion; + } + + /** + * The version of the object stored at the server. + * @param objectVersion objectVersion or {@code null} for none + */ + public GdataDiffVersionResponse setObjectVersion(java.lang.String objectVersion) { + this.objectVersion = objectVersion; + return this; + } + + @Override + public GdataDiffVersionResponse set(String fieldName, Object value) { + return (GdataDiffVersionResponse) super.set(fieldName, value); + } + + @Override + public GdataDiffVersionResponse clone() { + return (GdataDiffVersionResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataDownloadParameters.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataDownloadParameters.java new file mode 100644 index 00000000000..6ccf4b021d1 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataDownloadParameters.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.aiplatform.v1beta1.model; + +/** + * Parameters specific to media downloads. + * + *

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 Platform 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 GdataDownloadParameters extends com.google.api.client.json.GenericJson { + + /** + * A boolean to be returned in the response to Scotty. Allows/disallows gzip encoding of the + * payload content when the server thinks it's advantageous (hence, does not guarantee + * compression) which allows Scotty to GZip the response to the client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean allowGzipCompression; + + /** + * Determining whether or not Apiary should skip the inclusion of any Content-Range header on its + * response to Scotty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean ignoreRange; + + /** + * A boolean to be returned in the response to Scotty. Allows/disallows gzip encoding of the + * payload content when the server thinks it's advantageous (hence, does not guarantee + * compression) which allows Scotty to GZip the response to the client. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAllowGzipCompression() { + return allowGzipCompression; + } + + /** + * A boolean to be returned in the response to Scotty. Allows/disallows gzip encoding of the + * payload content when the server thinks it's advantageous (hence, does not guarantee + * compression) which allows Scotty to GZip the response to the client. + * @param allowGzipCompression allowGzipCompression or {@code null} for none + */ + public GdataDownloadParameters setAllowGzipCompression(java.lang.Boolean allowGzipCompression) { + this.allowGzipCompression = allowGzipCompression; + return this; + } + + /** + * Determining whether or not Apiary should skip the inclusion of any Content-Range header on its + * response to Scotty. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIgnoreRange() { + return ignoreRange; + } + + /** + * Determining whether or not Apiary should skip the inclusion of any Content-Range header on its + * response to Scotty. + * @param ignoreRange ignoreRange or {@code null} for none + */ + public GdataDownloadParameters setIgnoreRange(java.lang.Boolean ignoreRange) { + this.ignoreRange = ignoreRange; + return this; + } + + @Override + public GdataDownloadParameters set(String fieldName, Object value) { + return (GdataDownloadParameters) super.set(fieldName, value); + } + + @Override + public GdataDownloadParameters clone() { + return (GdataDownloadParameters) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataMedia.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataMedia.java new file mode 100644 index 00000000000..40269861501 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataMedia.java @@ -0,0 +1,1125 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A reference to data stored on the filesystem, on GFS or in blobstore. + * + *

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 Platform 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 GdataMedia extends com.google.api.client.json.GenericJson { + + /** + * Deprecated, use one of explicit hash type fields instead. Algorithm used for calculating the + * hash. As of 2011/01/21, "MD5" is the only possible value for this field. New values may be + * added at any time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String algorithm; + + /** + * Use object_id instead. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String bigstoreObjectRef; + + /** + * Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte + * representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info + * instead. For now, any v2 blob will also be represented in this field as v1 BlobRef. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String blobRef; + + /** + * Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GdataBlobstore2Info blobstore2Info; + + /** + * A composite media composed of one or more media objects, set if reference_type is + * COMPOSITE_MEDIA. The media length field must be set to the sum of the lengths of all composite + * media objects. Note: All composite media must have length specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List compositeMedia; + + static { + // hack to force ProGuard to consider GdataCompositeMedia used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GdataCompositeMedia.class); + } + + /** + * MIME type of the data + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String contentType; + + /** + * Extended content type information provided for Scotty uploads. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GdataContentTypeInfo contentTypeInfo; + + /** + * A binary data reference for a media download. Serves as a technology-agnostic binary reference + * in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. + * Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it + * includes) doesn't support JavaScript. This prevents us from including the actual type of this + * field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cosmoBinaryReference; + + /** + * For Scotty Uploads: Scotty-provided hashes for uploads For Scotty Downloads: (WARNING: DO NOT + * USE WITHOUT PERMISSION FROM THE SCOTTY TEAM.) A Hash provided by the agent to be used to verify + * the data being downloaded. Currently only supported for inline payloads. Further, only + * crc32c_hash is currently supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long crc32cHash; + + /** + * Set if reference_type is DIFF_CHECKSUMS_RESPONSE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GdataDiffChecksumsResponse diffChecksumsResponse; + + /** + * Set if reference_type is DIFF_DOWNLOAD_RESPONSE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GdataDiffDownloadResponse diffDownloadResponse; + + /** + * Set if reference_type is DIFF_UPLOAD_REQUEST. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GdataDiffUploadRequest diffUploadRequest; + + /** + * Set if reference_type is DIFF_UPLOAD_RESPONSE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GdataDiffUploadResponse diffUploadResponse; + + /** + * Set if reference_type is DIFF_VERSION_RESPONSE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GdataDiffVersionResponse diffVersionResponse; + + /** + * Parameters for a media download. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GdataDownloadParameters downloadParameters; + + /** + * Original file name + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filename; + + /** + * Deprecated, use one of explicit hash type fields instead. These two hash related fields will + * only be populated on Scotty based media uploads and will contain the content of the hash group + * in the NotificationRequest: + * http://cs/#google3/blobstore2/api/scotty/service/proto/upload_listener.proto&q=class:Hash Hex + * encoded hash value of the uploaded media. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String hash; + + /** + * For Scotty uploads only. If a user sends a hash code and the backend has requested that Scotty + * verify the upload against the client hash, Scotty will perform the check on behalf of the + * backend and will reject it if the hashes don't match. This is set to true if Scotty performed + * this verification. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean hashVerified; + + /** + * Media data, set if reference_type is INLINE + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String inline; + + /** + * |is_potential_retry| is set false only when Scotty is certain that it has not sent the request + * before. When a client resumes an upload, this field must be set true in agent calls, because + * Scotty cannot be certain that it has never sent the request before due to potential failure in + * the session state persistence. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isPotentialRetry; + + /** + * Size of the data, in bytes + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long length; + + /** + * Scotty-provided MD5 hash for an upload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String md5Hash; + + /** + * Media id to forward to the operation GetMedia. Can be set if reference_type is GET_MEDIA. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mediaId; + + /** + * Reference to a TI Blob, set if reference_type is BIGSTORE_REF. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GdataObjectId objectId; + + /** + * Path to the data, set if reference_type is PATH + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** + * Describes what the field reference contains. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String referenceType; + + /** + * Scotty-provided SHA1 hash for an upload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sha1Hash; + + /** + * Scotty-provided SHA256 hash for an upload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sha256Hash; + + /** + * Scotty-provided SHA512 hash for an upload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sha512Hash; + + /** + * Time at which the media data was last updated, in milliseconds since UNIX epoch + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger timestamp; + + /** + * A unique fingerprint/version id for the media data + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String token; + + /** + * Deprecated, use one of explicit hash type fields instead. Algorithm used for calculating the + * hash. As of 2011/01/21, "MD5" is the only possible value for this field. New values may be + * added at any time. + * @return value or {@code null} for none + */ + public java.lang.String getAlgorithm() { + return algorithm; + } + + /** + * Deprecated, use one of explicit hash type fields instead. Algorithm used for calculating the + * hash. As of 2011/01/21, "MD5" is the only possible value for this field. New values may be + * added at any time. + * @param algorithm algorithm or {@code null} for none + */ + public GdataMedia setAlgorithm(java.lang.String algorithm) { + this.algorithm = algorithm; + return this; + } + + /** + * Use object_id instead. + * @see #decodeBigstoreObjectRef() + * @return value or {@code null} for none + */ + public java.lang.String getBigstoreObjectRef() { + return bigstoreObjectRef; + } + + /** + * Use object_id instead. + * @see #getBigstoreObjectRef() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeBigstoreObjectRef() { + return com.google.api.client.util.Base64.decodeBase64(bigstoreObjectRef); + } + + /** + * Use object_id instead. + * @see #encodeBigstoreObjectRef() + * @param bigstoreObjectRef bigstoreObjectRef or {@code null} for none + */ + public GdataMedia setBigstoreObjectRef(java.lang.String bigstoreObjectRef) { + this.bigstoreObjectRef = bigstoreObjectRef; + return this; + } + + /** + * Use object_id instead. + * @see #setBigstoreObjectRef() + * + *

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

+ * + * @since 1.14 + */ + public GdataMedia encodeBigstoreObjectRef(byte[] bigstoreObjectRef) { + this.bigstoreObjectRef = com.google.api.client.util.Base64.encodeBase64URLSafeString(bigstoreObjectRef); + return this; + } + + /** + * Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte + * representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info + * instead. For now, any v2 blob will also be represented in this field as v1 BlobRef. + * @see #decodeBlobRef() + * @return value or {@code null} for none + */ + public java.lang.String getBlobRef() { + return blobRef; + } + + /** + * Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte + * representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info + * instead. For now, any v2 blob will also be represented in this field as v1 BlobRef. + * @see #getBlobRef() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeBlobRef() { + return com.google.api.client.util.Base64.decodeBase64(blobRef); + } + + /** + * Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte + * representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info + * instead. For now, any v2 blob will also be represented in this field as v1 BlobRef. + * @see #encodeBlobRef() + * @param blobRef blobRef or {@code null} for none + */ + public GdataMedia setBlobRef(java.lang.String blobRef) { + this.blobRef = blobRef; + return this; + } + + /** + * Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte + * representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info + * instead. For now, any v2 blob will also be represented in this field as v1 BlobRef. + * @see #setBlobRef() + * + *

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

+ * + * @since 1.14 + */ + public GdataMedia encodeBlobRef(byte[] blobRef) { + this.blobRef = com.google.api.client.util.Base64.encodeBase64URLSafeString(blobRef); + return this; + } + + /** + * Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob. + * @return value or {@code null} for none + */ + public GdataBlobstore2Info getBlobstore2Info() { + return blobstore2Info; + } + + /** + * Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob. + * @param blobstore2Info blobstore2Info or {@code null} for none + */ + public GdataMedia setBlobstore2Info(GdataBlobstore2Info blobstore2Info) { + this.blobstore2Info = blobstore2Info; + return this; + } + + /** + * A composite media composed of one or more media objects, set if reference_type is + * COMPOSITE_MEDIA. The media length field must be set to the sum of the lengths of all composite + * media objects. Note: All composite media must have length specified. + * @return value or {@code null} for none + */ + public java.util.List getCompositeMedia() { + return compositeMedia; + } + + /** + * A composite media composed of one or more media objects, set if reference_type is + * COMPOSITE_MEDIA. The media length field must be set to the sum of the lengths of all composite + * media objects. Note: All composite media must have length specified. + * @param compositeMedia compositeMedia or {@code null} for none + */ + public GdataMedia setCompositeMedia(java.util.List compositeMedia) { + this.compositeMedia = compositeMedia; + return this; + } + + /** + * MIME type of the data + * @return value or {@code null} for none + */ + public java.lang.String getContentType() { + return contentType; + } + + /** + * MIME type of the data + * @param contentType contentType or {@code null} for none + */ + public GdataMedia setContentType(java.lang.String contentType) { + this.contentType = contentType; + return this; + } + + /** + * Extended content type information provided for Scotty uploads. + * @return value or {@code null} for none + */ + public GdataContentTypeInfo getContentTypeInfo() { + return contentTypeInfo; + } + + /** + * Extended content type information provided for Scotty uploads. + * @param contentTypeInfo contentTypeInfo or {@code null} for none + */ + public GdataMedia setContentTypeInfo(GdataContentTypeInfo contentTypeInfo) { + this.contentTypeInfo = contentTypeInfo; + return this; + } + + /** + * A binary data reference for a media download. Serves as a technology-agnostic binary reference + * in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. + * Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it + * includes) doesn't support JavaScript. This prevents us from including the actual type of this + * field. + * @see #decodeCosmoBinaryReference() + * @return value or {@code null} for none + */ + public java.lang.String getCosmoBinaryReference() { + return cosmoBinaryReference; + } + + /** + * A binary data reference for a media download. Serves as a technology-agnostic binary reference + * in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. + * Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it + * includes) doesn't support JavaScript. This prevents us from including the actual type of this + * field. + * @see #getCosmoBinaryReference() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeCosmoBinaryReference() { + return com.google.api.client.util.Base64.decodeBase64(cosmoBinaryReference); + } + + /** + * A binary data reference for a media download. Serves as a technology-agnostic binary reference + * in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. + * Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it + * includes) doesn't support JavaScript. This prevents us from including the actual type of this + * field. + * @see #encodeCosmoBinaryReference() + * @param cosmoBinaryReference cosmoBinaryReference or {@code null} for none + */ + public GdataMedia setCosmoBinaryReference(java.lang.String cosmoBinaryReference) { + this.cosmoBinaryReference = cosmoBinaryReference; + return this; + } + + /** + * A binary data reference for a media download. Serves as a technology-agnostic binary reference + * in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. + * Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it + * includes) doesn't support JavaScript. This prevents us from including the actual type of this + * field. + * @see #setCosmoBinaryReference() + * + *

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

+ * + * @since 1.14 + */ + public GdataMedia encodeCosmoBinaryReference(byte[] cosmoBinaryReference) { + this.cosmoBinaryReference = com.google.api.client.util.Base64.encodeBase64URLSafeString(cosmoBinaryReference); + return this; + } + + /** + * For Scotty Uploads: Scotty-provided hashes for uploads For Scotty Downloads: (WARNING: DO NOT + * USE WITHOUT PERMISSION FROM THE SCOTTY TEAM.) A Hash provided by the agent to be used to verify + * the data being downloaded. Currently only supported for inline payloads. Further, only + * crc32c_hash is currently supported. + * @return value or {@code null} for none + */ + public java.lang.Long getCrc32cHash() { + return crc32cHash; + } + + /** + * For Scotty Uploads: Scotty-provided hashes for uploads For Scotty Downloads: (WARNING: DO NOT + * USE WITHOUT PERMISSION FROM THE SCOTTY TEAM.) A Hash provided by the agent to be used to verify + * the data being downloaded. Currently only supported for inline payloads. Further, only + * crc32c_hash is currently supported. + * @param crc32cHash crc32cHash or {@code null} for none + */ + public GdataMedia setCrc32cHash(java.lang.Long crc32cHash) { + this.crc32cHash = crc32cHash; + return this; + } + + /** + * Set if reference_type is DIFF_CHECKSUMS_RESPONSE. + * @return value or {@code null} for none + */ + public GdataDiffChecksumsResponse getDiffChecksumsResponse() { + return diffChecksumsResponse; + } + + /** + * Set if reference_type is DIFF_CHECKSUMS_RESPONSE. + * @param diffChecksumsResponse diffChecksumsResponse or {@code null} for none + */ + public GdataMedia setDiffChecksumsResponse(GdataDiffChecksumsResponse diffChecksumsResponse) { + this.diffChecksumsResponse = diffChecksumsResponse; + return this; + } + + /** + * Set if reference_type is DIFF_DOWNLOAD_RESPONSE. + * @return value or {@code null} for none + */ + public GdataDiffDownloadResponse getDiffDownloadResponse() { + return diffDownloadResponse; + } + + /** + * Set if reference_type is DIFF_DOWNLOAD_RESPONSE. + * @param diffDownloadResponse diffDownloadResponse or {@code null} for none + */ + public GdataMedia setDiffDownloadResponse(GdataDiffDownloadResponse diffDownloadResponse) { + this.diffDownloadResponse = diffDownloadResponse; + return this; + } + + /** + * Set if reference_type is DIFF_UPLOAD_REQUEST. + * @return value or {@code null} for none + */ + public GdataDiffUploadRequest getDiffUploadRequest() { + return diffUploadRequest; + } + + /** + * Set if reference_type is DIFF_UPLOAD_REQUEST. + * @param diffUploadRequest diffUploadRequest or {@code null} for none + */ + public GdataMedia setDiffUploadRequest(GdataDiffUploadRequest diffUploadRequest) { + this.diffUploadRequest = diffUploadRequest; + return this; + } + + /** + * Set if reference_type is DIFF_UPLOAD_RESPONSE. + * @return value or {@code null} for none + */ + public GdataDiffUploadResponse getDiffUploadResponse() { + return diffUploadResponse; + } + + /** + * Set if reference_type is DIFF_UPLOAD_RESPONSE. + * @param diffUploadResponse diffUploadResponse or {@code null} for none + */ + public GdataMedia setDiffUploadResponse(GdataDiffUploadResponse diffUploadResponse) { + this.diffUploadResponse = diffUploadResponse; + return this; + } + + /** + * Set if reference_type is DIFF_VERSION_RESPONSE. + * @return value or {@code null} for none + */ + public GdataDiffVersionResponse getDiffVersionResponse() { + return diffVersionResponse; + } + + /** + * Set if reference_type is DIFF_VERSION_RESPONSE. + * @param diffVersionResponse diffVersionResponse or {@code null} for none + */ + public GdataMedia setDiffVersionResponse(GdataDiffVersionResponse diffVersionResponse) { + this.diffVersionResponse = diffVersionResponse; + return this; + } + + /** + * Parameters for a media download. + * @return value or {@code null} for none + */ + public GdataDownloadParameters getDownloadParameters() { + return downloadParameters; + } + + /** + * Parameters for a media download. + * @param downloadParameters downloadParameters or {@code null} for none + */ + public GdataMedia setDownloadParameters(GdataDownloadParameters downloadParameters) { + this.downloadParameters = downloadParameters; + return this; + } + + /** + * Original file name + * @return value or {@code null} for none + */ + public java.lang.String getFilename() { + return filename; + } + + /** + * Original file name + * @param filename filename or {@code null} for none + */ + public GdataMedia setFilename(java.lang.String filename) { + this.filename = filename; + return this; + } + + /** + * Deprecated, use one of explicit hash type fields instead. These two hash related fields will + * only be populated on Scotty based media uploads and will contain the content of the hash group + * in the NotificationRequest: + * http://cs/#google3/blobstore2/api/scotty/service/proto/upload_listener.proto&q=class:Hash Hex + * encoded hash value of the uploaded media. + * @return value or {@code null} for none + */ + public java.lang.String getHash() { + return hash; + } + + /** + * Deprecated, use one of explicit hash type fields instead. These two hash related fields will + * only be populated on Scotty based media uploads and will contain the content of the hash group + * in the NotificationRequest: + * http://cs/#google3/blobstore2/api/scotty/service/proto/upload_listener.proto&q=class:Hash Hex + * encoded hash value of the uploaded media. + * @param hash hash or {@code null} for none + */ + public GdataMedia setHash(java.lang.String hash) { + this.hash = hash; + return this; + } + + /** + * For Scotty uploads only. If a user sends a hash code and the backend has requested that Scotty + * verify the upload against the client hash, Scotty will perform the check on behalf of the + * backend and will reject it if the hashes don't match. This is set to true if Scotty performed + * this verification. + * @return value or {@code null} for none + */ + public java.lang.Boolean getHashVerified() { + return hashVerified; + } + + /** + * For Scotty uploads only. If a user sends a hash code and the backend has requested that Scotty + * verify the upload against the client hash, Scotty will perform the check on behalf of the + * backend and will reject it if the hashes don't match. This is set to true if Scotty performed + * this verification. + * @param hashVerified hashVerified or {@code null} for none + */ + public GdataMedia setHashVerified(java.lang.Boolean hashVerified) { + this.hashVerified = hashVerified; + return this; + } + + /** + * Media data, set if reference_type is INLINE + * @see #decodeInline() + * @return value or {@code null} for none + */ + public java.lang.String getInline() { + return inline; + } + + /** + * Media data, set if reference_type is INLINE + * @see #getInline() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeInline() { + return com.google.api.client.util.Base64.decodeBase64(inline); + } + + /** + * Media data, set if reference_type is INLINE + * @see #encodeInline() + * @param inline inline or {@code null} for none + */ + public GdataMedia setInline(java.lang.String inline) { + this.inline = inline; + return this; + } + + /** + * Media data, set if reference_type is INLINE + * @see #setInline() + * + *

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

+ * + * @since 1.14 + */ + public GdataMedia encodeInline(byte[] inline) { + this.inline = com.google.api.client.util.Base64.encodeBase64URLSafeString(inline); + return this; + } + + /** + * |is_potential_retry| is set false only when Scotty is certain that it has not sent the request + * before. When a client resumes an upload, this field must be set true in agent calls, because + * Scotty cannot be certain that it has never sent the request before due to potential failure in + * the session state persistence. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsPotentialRetry() { + return isPotentialRetry; + } + + /** + * |is_potential_retry| is set false only when Scotty is certain that it has not sent the request + * before. When a client resumes an upload, this field must be set true in agent calls, because + * Scotty cannot be certain that it has never sent the request before due to potential failure in + * the session state persistence. + * @param isPotentialRetry isPotentialRetry or {@code null} for none + */ + public GdataMedia setIsPotentialRetry(java.lang.Boolean isPotentialRetry) { + this.isPotentialRetry = isPotentialRetry; + return this; + } + + /** + * Size of the data, in bytes + * @return value or {@code null} for none + */ + public java.lang.Long getLength() { + return length; + } + + /** + * Size of the data, in bytes + * @param length length or {@code null} for none + */ + public GdataMedia setLength(java.lang.Long length) { + this.length = length; + return this; + } + + /** + * Scotty-provided MD5 hash for an upload. + * @see #decodeMd5Hash() + * @return value or {@code null} for none + */ + public java.lang.String getMd5Hash() { + return md5Hash; + } + + /** + * Scotty-provided MD5 hash for an upload. + * @see #getMd5Hash() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeMd5Hash() { + return com.google.api.client.util.Base64.decodeBase64(md5Hash); + } + + /** + * Scotty-provided MD5 hash for an upload. + * @see #encodeMd5Hash() + * @param md5Hash md5Hash or {@code null} for none + */ + public GdataMedia setMd5Hash(java.lang.String md5Hash) { + this.md5Hash = md5Hash; + return this; + } + + /** + * Scotty-provided MD5 hash for an upload. + * @see #setMd5Hash() + * + *

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

+ * + * @since 1.14 + */ + public GdataMedia encodeMd5Hash(byte[] md5Hash) { + this.md5Hash = com.google.api.client.util.Base64.encodeBase64URLSafeString(md5Hash); + return this; + } + + /** + * Media id to forward to the operation GetMedia. Can be set if reference_type is GET_MEDIA. + * @see #decodeMediaId() + * @return value or {@code null} for none + */ + public java.lang.String getMediaId() { + return mediaId; + } + + /** + * Media id to forward to the operation GetMedia. Can be set if reference_type is GET_MEDIA. + * @see #getMediaId() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeMediaId() { + return com.google.api.client.util.Base64.decodeBase64(mediaId); + } + + /** + * Media id to forward to the operation GetMedia. Can be set if reference_type is GET_MEDIA. + * @see #encodeMediaId() + * @param mediaId mediaId or {@code null} for none + */ + public GdataMedia setMediaId(java.lang.String mediaId) { + this.mediaId = mediaId; + return this; + } + + /** + * Media id to forward to the operation GetMedia. Can be set if reference_type is GET_MEDIA. + * @see #setMediaId() + * + *

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

+ * + * @since 1.14 + */ + public GdataMedia encodeMediaId(byte[] mediaId) { + this.mediaId = com.google.api.client.util.Base64.encodeBase64URLSafeString(mediaId); + return this; + } + + /** + * Reference to a TI Blob, set if reference_type is BIGSTORE_REF. + * @return value or {@code null} for none + */ + public GdataObjectId getObjectId() { + return objectId; + } + + /** + * Reference to a TI Blob, set if reference_type is BIGSTORE_REF. + * @param objectId objectId or {@code null} for none + */ + public GdataMedia setObjectId(GdataObjectId objectId) { + this.objectId = objectId; + return this; + } + + /** + * Path to the data, set if reference_type is PATH + * @return value or {@code null} for none + */ + public java.lang.String getPath() { + return path; + } + + /** + * Path to the data, set if reference_type is PATH + * @param path path or {@code null} for none + */ + public GdataMedia setPath(java.lang.String path) { + this.path = path; + return this; + } + + /** + * Describes what the field reference contains. + * @return value or {@code null} for none + */ + public java.lang.String getReferenceType() { + return referenceType; + } + + /** + * Describes what the field reference contains. + * @param referenceType referenceType or {@code null} for none + */ + public GdataMedia setReferenceType(java.lang.String referenceType) { + this.referenceType = referenceType; + return this; + } + + /** + * Scotty-provided SHA1 hash for an upload. + * @see #decodeSha1Hash() + * @return value or {@code null} for none + */ + public java.lang.String getSha1Hash() { + return sha1Hash; + } + + /** + * Scotty-provided SHA1 hash for an upload. + * @see #getSha1Hash() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeSha1Hash() { + return com.google.api.client.util.Base64.decodeBase64(sha1Hash); + } + + /** + * Scotty-provided SHA1 hash for an upload. + * @see #encodeSha1Hash() + * @param sha1Hash sha1Hash or {@code null} for none + */ + public GdataMedia setSha1Hash(java.lang.String sha1Hash) { + this.sha1Hash = sha1Hash; + return this; + } + + /** + * Scotty-provided SHA1 hash for an upload. + * @see #setSha1Hash() + * + *

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

+ * + * @since 1.14 + */ + public GdataMedia encodeSha1Hash(byte[] sha1Hash) { + this.sha1Hash = com.google.api.client.util.Base64.encodeBase64URLSafeString(sha1Hash); + return this; + } + + /** + * Scotty-provided SHA256 hash for an upload. + * @see #decodeSha256Hash() + * @return value or {@code null} for none + */ + public java.lang.String getSha256Hash() { + return sha256Hash; + } + + /** + * Scotty-provided SHA256 hash for an upload. + * @see #getSha256Hash() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeSha256Hash() { + return com.google.api.client.util.Base64.decodeBase64(sha256Hash); + } + + /** + * Scotty-provided SHA256 hash for an upload. + * @see #encodeSha256Hash() + * @param sha256Hash sha256Hash or {@code null} for none + */ + public GdataMedia setSha256Hash(java.lang.String sha256Hash) { + this.sha256Hash = sha256Hash; + return this; + } + + /** + * Scotty-provided SHA256 hash for an upload. + * @see #setSha256Hash() + * + *

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

+ * + * @since 1.14 + */ + public GdataMedia encodeSha256Hash(byte[] sha256Hash) { + this.sha256Hash = com.google.api.client.util.Base64.encodeBase64URLSafeString(sha256Hash); + return this; + } + + /** + * Scotty-provided SHA512 hash for an upload. + * @see #decodeSha512Hash() + * @return value or {@code null} for none + */ + public java.lang.String getSha512Hash() { + return sha512Hash; + } + + /** + * Scotty-provided SHA512 hash for an upload. + * @see #getSha512Hash() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeSha512Hash() { + return com.google.api.client.util.Base64.decodeBase64(sha512Hash); + } + + /** + * Scotty-provided SHA512 hash for an upload. + * @see #encodeSha512Hash() + * @param sha512Hash sha512Hash or {@code null} for none + */ + public GdataMedia setSha512Hash(java.lang.String sha512Hash) { + this.sha512Hash = sha512Hash; + return this; + } + + /** + * Scotty-provided SHA512 hash for an upload. + * @see #setSha512Hash() + * + *

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

+ * + * @since 1.14 + */ + public GdataMedia encodeSha512Hash(byte[] sha512Hash) { + this.sha512Hash = com.google.api.client.util.Base64.encodeBase64URLSafeString(sha512Hash); + return this; + } + + /** + * Time at which the media data was last updated, in milliseconds since UNIX epoch + * @return value or {@code null} for none + */ + public java.math.BigInteger getTimestamp() { + return timestamp; + } + + /** + * Time at which the media data was last updated, in milliseconds since UNIX epoch + * @param timestamp timestamp or {@code null} for none + */ + public GdataMedia setTimestamp(java.math.BigInteger timestamp) { + this.timestamp = timestamp; + return this; + } + + /** + * A unique fingerprint/version id for the media data + * @return value or {@code null} for none + */ + public java.lang.String getToken() { + return token; + } + + /** + * A unique fingerprint/version id for the media data + * @param token token or {@code null} for none + */ + public GdataMedia setToken(java.lang.String token) { + this.token = token; + return this; + } + + @Override + public GdataMedia set(String fieldName, Object value) { + return (GdataMedia) super.set(fieldName, value); + } + + @Override + public GdataMedia clone() { + return (GdataMedia) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataObjectId.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataObjectId.java new file mode 100644 index 00000000000..508d32c00b5 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GdataObjectId.java @@ -0,0 +1,121 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to + * transitive closure issues with JavaScript support; see http://b/8801763. + * + *

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 Platform 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 GdataObjectId extends com.google.api.client.json.GenericJson { + + /** + * The name of the bucket to which this object belongs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String bucketName; + + /** + * Generation of the object. Generations are monotonically increasing across writes, allowing them + * to be be compared to determine which generation is newer. If this is omitted in a request, then + * you are requesting the live object. See http://go/bigstore-versions + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long generation; + + /** + * The name of the object. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String objectName; + + /** + * The name of the bucket to which this object belongs. + * @return value or {@code null} for none + */ + public java.lang.String getBucketName() { + return bucketName; + } + + /** + * The name of the bucket to which this object belongs. + * @param bucketName bucketName or {@code null} for none + */ + public GdataObjectId setBucketName(java.lang.String bucketName) { + this.bucketName = bucketName; + return this; + } + + /** + * Generation of the object. Generations are monotonically increasing across writes, allowing them + * to be be compared to determine which generation is newer. If this is omitted in a request, then + * you are requesting the live object. See http://go/bigstore-versions + * @return value or {@code null} for none + */ + public java.lang.Long getGeneration() { + return generation; + } + + /** + * Generation of the object. Generations are monotonically increasing across writes, allowing them + * to be be compared to determine which generation is newer. If this is omitted in a request, then + * you are requesting the live object. See http://go/bigstore-versions + * @param generation generation or {@code null} for none + */ + public GdataObjectId setGeneration(java.lang.Long generation) { + this.generation = generation; + return this; + } + + /** + * The name of the object. + * @return value or {@code null} for none + */ + public java.lang.String getObjectName() { + return objectName; + } + + /** + * The name of the object. + * @param objectName objectName or {@code null} for none + */ + public GdataObjectId setObjectName(java.lang.String objectName) { + this.objectName = objectName; + return this; + } + + @Override + public GdataObjectId set(String fieldName, Object value) { + return (GdataObjectId) super.set(fieldName, value); + } + + @Override + public GdataObjectId clone() { + return (GdataObjectId) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiArgumentsDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiArgumentsDelta.java new file mode 100644 index 00000000000..b9c24ba2b5a --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiArgumentsDelta.java @@ -0,0 +1,63 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiArgumentsDelta. + * + *

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 Platform 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 GenaiArgumentsDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String arguments; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getArguments() { + return arguments; + } + + /** + * @param arguments arguments or {@code null} for none + */ + public GenaiArgumentsDelta setArguments(java.lang.String arguments) { + this.arguments = arguments; + return this; + } + + @Override + public GenaiArgumentsDelta set(String fieldName, Object value) { + return (GenaiArgumentsDelta) super.set(fieldName, value); + } + + @Override + public GenaiArgumentsDelta clone() { + return (GenaiArgumentsDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiAudioContent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiAudioContent.java new file mode 100644 index 00000000000..a9792872a1f --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiAudioContent.java @@ -0,0 +1,193 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * An audio content block. + * + *

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 Platform 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 GenaiAudioContent extends com.google.api.client.json.GenericJson { + + /** + * The number of audio channels. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer channels; + + /** + * The audio content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String data; + + /** + * Flexible MIME type string of the audio, superseding mime_type = 1. Note: Bespoke logic in the + * GAOS parser/serializer maps this to the "mime_type" JSON key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeTypeString; + + /** + * The sample rate of the audio. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer sampleRate; + + /** + * The URI of the audio. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * The number of audio channels. + * @return value or {@code null} for none + */ + public java.lang.Integer getChannels() { + return channels; + } + + /** + * The number of audio channels. + * @param channels channels or {@code null} for none + */ + public GenaiAudioContent setChannels(java.lang.Integer channels) { + this.channels = channels; + return this; + } + + /** + * The audio content. + * @see #decodeData() + * @return value or {@code null} for none + */ + public java.lang.String getData() { + return data; + } + + /** + * The audio content. + * @see #getData() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeData() { + return com.google.api.client.util.Base64.decodeBase64(data); + } + + /** + * The audio content. + * @see #encodeData() + * @param data data or {@code null} for none + */ + public GenaiAudioContent setData(java.lang.String data) { + this.data = data; + return this; + } + + /** + * The audio content. + * @see #setData() + * + *

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

+ * + * @since 1.14 + */ + public GenaiAudioContent encodeData(byte[] data) { + this.data = com.google.api.client.util.Base64.encodeBase64URLSafeString(data); + return this; + } + + /** + * Flexible MIME type string of the audio, superseding mime_type = 1. Note: Bespoke logic in the + * GAOS parser/serializer maps this to the "mime_type" JSON key. + * @return value or {@code null} for none + */ + public java.lang.String getMimeTypeString() { + return mimeTypeString; + } + + /** + * Flexible MIME type string of the audio, superseding mime_type = 1. Note: Bespoke logic in the + * GAOS parser/serializer maps this to the "mime_type" JSON key. + * @param mimeTypeString mimeTypeString or {@code null} for none + */ + public GenaiAudioContent setMimeTypeString(java.lang.String mimeTypeString) { + this.mimeTypeString = mimeTypeString; + return this; + } + + /** + * The sample rate of the audio. + * @return value or {@code null} for none + */ + public java.lang.Integer getSampleRate() { + return sampleRate; + } + + /** + * The sample rate of the audio. + * @param sampleRate sampleRate or {@code null} for none + */ + public GenaiAudioContent setSampleRate(java.lang.Integer sampleRate) { + this.sampleRate = sampleRate; + return this; + } + + /** + * The URI of the audio. + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * The URI of the audio. + * @param uri uri or {@code null} for none + */ + public GenaiAudioContent setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public GenaiAudioContent set(String fieldName, Object value) { + return (GenaiAudioContent) super.set(fieldName, value); + } + + @Override + public GenaiAudioContent clone() { + return (GenaiAudioContent) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiAudioDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiAudioDelta.java new file mode 100644 index 00000000000..05233bfe4be --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiAudioDelta.java @@ -0,0 +1,205 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiAudioDelta. + * + *

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 Platform 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 GenaiAudioDelta extends com.google.api.client.json.GenericJson { + + /** + * The number of audio channels. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer channels; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String data; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeType; + + /** + * Deprecated. Use sample_rate instead. The value is ignored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer rate; + + /** + * The sample rate of the audio. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer sampleRate; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * The number of audio channels. + * @return value or {@code null} for none + */ + public java.lang.Integer getChannels() { + return channels; + } + + /** + * The number of audio channels. + * @param channels channels or {@code null} for none + */ + public GenaiAudioDelta setChannels(java.lang.Integer channels) { + this.channels = channels; + return this; + } + + /** + * @see #decodeData() + * @return value or {@code null} for none + */ + public java.lang.String getData() { + return data; + } + + /** + + * @see #getData() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeData() { + return com.google.api.client.util.Base64.decodeBase64(data); + } + + /** + * @see #encodeData() + * @param data data or {@code null} for none + */ + public GenaiAudioDelta setData(java.lang.String data) { + this.data = data; + return this; + } + + /** + + * @see #setData() + * + *

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

+ * + * @since 1.14 + */ + public GenaiAudioDelta encodeData(byte[] data) { + this.data = com.google.api.client.util.Base64.encodeBase64URLSafeString(data); + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getMimeType() { + return mimeType; + } + + /** + * @param mimeType mimeType or {@code null} for none + */ + public GenaiAudioDelta setMimeType(java.lang.String mimeType) { + this.mimeType = mimeType; + return this; + } + + /** + * Deprecated. Use sample_rate instead. The value is ignored. + * @return value or {@code null} for none + */ + public java.lang.Integer getRate() { + return rate; + } + + /** + * Deprecated. Use sample_rate instead. The value is ignored. + * @param rate rate or {@code null} for none + */ + public GenaiAudioDelta setRate(java.lang.Integer rate) { + this.rate = rate; + return this; + } + + /** + * The sample rate of the audio. + * @return value or {@code null} for none + */ + public java.lang.Integer getSampleRate() { + return sampleRate; + } + + /** + * The sample rate of the audio. + * @param sampleRate sampleRate or {@code null} for none + */ + public GenaiAudioDelta setSampleRate(java.lang.Integer sampleRate) { + this.sampleRate = sampleRate; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * @param uri uri or {@code null} for none + */ + public GenaiAudioDelta setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public GenaiAudioDelta set(String fieldName, Object value) { + return (GenaiAudioDelta) super.set(fieldName, value); + } + + @Override + public GenaiAudioDelta clone() { + return (GenaiAudioDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiAudioResponseFormat.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiAudioResponseFormat.java new file mode 100644 index 00000000000..56605c6c4b5 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiAudioResponseFormat.java @@ -0,0 +1,138 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * Configuration for audio output format. + * + *

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 Platform 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 GenaiAudioResponseFormat extends com.google.api.client.json.GenericJson { + + /** + * Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer bitRate; + + /** + * The delivery mode for the audio output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String delivery; + + /** + * The MIME type of the audio output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeType; + + /** + * Sample rate in Hz. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer sampleRate; + + /** + * Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus). + * @return value or {@code null} for none + */ + public java.lang.Integer getBitRate() { + return bitRate; + } + + /** + * Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus). + * @param bitRate bitRate or {@code null} for none + */ + public GenaiAudioResponseFormat setBitRate(java.lang.Integer bitRate) { + this.bitRate = bitRate; + return this; + } + + /** + * The delivery mode for the audio output. + * @return value or {@code null} for none + */ + public java.lang.String getDelivery() { + return delivery; + } + + /** + * The delivery mode for the audio output. + * @param delivery delivery or {@code null} for none + */ + public GenaiAudioResponseFormat setDelivery(java.lang.String delivery) { + this.delivery = delivery; + return this; + } + + /** + * The MIME type of the audio output. + * @return value or {@code null} for none + */ + public java.lang.String getMimeType() { + return mimeType; + } + + /** + * The MIME type of the audio output. + * @param mimeType mimeType or {@code null} for none + */ + public GenaiAudioResponseFormat setMimeType(java.lang.String mimeType) { + this.mimeType = mimeType; + return this; + } + + /** + * Sample rate in Hz. + * @return value or {@code null} for none + */ + public java.lang.Integer getSampleRate() { + return sampleRate; + } + + /** + * Sample rate in Hz. + * @param sampleRate sampleRate or {@code null} for none + */ + public GenaiAudioResponseFormat setSampleRate(java.lang.Integer sampleRate) { + this.sampleRate = sampleRate; + return this; + } + + @Override + public GenaiAudioResponseFormat set(String fieldName, Object value) { + return (GenaiAudioResponseFormat) super.set(fieldName, value); + } + + @Override + public GenaiAudioResponseFormat clone() { + return (GenaiAudioResponseFormat) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiCodeExecutionCallContentCodeExecutionCallArguments.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiCodeExecutionCallContentCodeExecutionCallArguments.java new file mode 100644 index 00000000000..d549959e311 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiCodeExecutionCallContentCodeExecutionCallArguments.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.aiplatform.v1beta1.model; + +/** + * The arguments to pass to the code execution. + * + *

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 Platform 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 GenaiCodeExecutionCallContentCodeExecutionCallArguments extends com.google.api.client.json.GenericJson { + + /** + * The code to be executed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * Programming language of the `code`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String language; + + /** + * The code to be executed. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * The code to be executed. + * @param code code or {@code null} for none + */ + public GenaiCodeExecutionCallContentCodeExecutionCallArguments setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * Programming language of the `code`. + * @return value or {@code null} for none + */ + public java.lang.String getLanguage() { + return language; + } + + /** + * Programming language of the `code`. + * @param language language or {@code null} for none + */ + public GenaiCodeExecutionCallContentCodeExecutionCallArguments setLanguage(java.lang.String language) { + this.language = language; + return this; + } + + @Override + public GenaiCodeExecutionCallContentCodeExecutionCallArguments set(String fieldName, Object value) { + return (GenaiCodeExecutionCallContentCodeExecutionCallArguments) super.set(fieldName, value); + } + + @Override + public GenaiCodeExecutionCallContentCodeExecutionCallArguments clone() { + return (GenaiCodeExecutionCallContentCodeExecutionCallArguments) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiCodeExecutionCallDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiCodeExecutionCallDelta.java new file mode 100644 index 00000000000..81e4d3b0014 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiCodeExecutionCallDelta.java @@ -0,0 +1,63 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiCodeExecutionCallDelta. + * + *

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 Platform 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 GenaiCodeExecutionCallDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiCodeExecutionCallContentCodeExecutionCallArguments arguments; + + /** + * @return value or {@code null} for none + */ + public GenaiCodeExecutionCallContentCodeExecutionCallArguments getArguments() { + return arguments; + } + + /** + * @param arguments arguments or {@code null} for none + */ + public GenaiCodeExecutionCallDelta setArguments(GenaiCodeExecutionCallContentCodeExecutionCallArguments arguments) { + this.arguments = arguments; + return this; + } + + @Override + public GenaiCodeExecutionCallDelta set(String fieldName, Object value) { + return (GenaiCodeExecutionCallDelta) super.set(fieldName, value); + } + + @Override + public GenaiCodeExecutionCallDelta clone() { + return (GenaiCodeExecutionCallDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiCodeExecutionCallStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiCodeExecutionCallStep.java new file mode 100644 index 00000000000..0a2c722a256 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiCodeExecutionCallStep.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * Code execution call step. + * + *

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 Platform 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 GenaiCodeExecutionCallStep extends com.google.api.client.json.GenericJson { + + /** + * Required. The arguments to pass to the code execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiCodeExecutionCallStepCodeExecutionCallStepArguments arguments; + + /** + * Required. The arguments to pass to the code execution. + * @return value or {@code null} for none + */ + public GenaiCodeExecutionCallStepCodeExecutionCallStepArguments getArguments() { + return arguments; + } + + /** + * Required. The arguments to pass to the code execution. + * @param arguments arguments or {@code null} for none + */ + public GenaiCodeExecutionCallStep setArguments(GenaiCodeExecutionCallStepCodeExecutionCallStepArguments arguments) { + this.arguments = arguments; + return this; + } + + @Override + public GenaiCodeExecutionCallStep set(String fieldName, Object value) { + return (GenaiCodeExecutionCallStep) super.set(fieldName, value); + } + + @Override + public GenaiCodeExecutionCallStep clone() { + return (GenaiCodeExecutionCallStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiCodeExecutionCallStepCodeExecutionCallStepArguments.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiCodeExecutionCallStepCodeExecutionCallStepArguments.java new file mode 100644 index 00000000000..cf613ddbee8 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiCodeExecutionCallStepCodeExecutionCallStepArguments.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.aiplatform.v1beta1.model; + +/** + * The arguments to pass to the code execution. + * + *

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 Platform 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 GenaiCodeExecutionCallStepCodeExecutionCallStepArguments extends com.google.api.client.json.GenericJson { + + /** + * The code to be executed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * Programming language of the `code`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String language; + + /** + * The code to be executed. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * The code to be executed. + * @param code code or {@code null} for none + */ + public GenaiCodeExecutionCallStepCodeExecutionCallStepArguments setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * Programming language of the `code`. + * @return value or {@code null} for none + */ + public java.lang.String getLanguage() { + return language; + } + + /** + * Programming language of the `code`. + * @param language language or {@code null} for none + */ + public GenaiCodeExecutionCallStepCodeExecutionCallStepArguments setLanguage(java.lang.String language) { + this.language = language; + return this; + } + + @Override + public GenaiCodeExecutionCallStepCodeExecutionCallStepArguments set(String fieldName, Object value) { + return (GenaiCodeExecutionCallStepCodeExecutionCallStepArguments) super.set(fieldName, value); + } + + @Override + public GenaiCodeExecutionCallStepCodeExecutionCallStepArguments clone() { + return (GenaiCodeExecutionCallStepCodeExecutionCallStepArguments) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiCodeExecutionResultDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiCodeExecutionResultDelta.java new file mode 100644 index 00000000000..99eb376c370 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiCodeExecutionResultDelta.java @@ -0,0 +1,84 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiCodeExecutionResultDelta. + * + *

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 Platform 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 GenaiCodeExecutionResultDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isError; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String result; + + /** + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsError() { + return isError; + } + + /** + * @param isError isError or {@code null} for none + */ + public GenaiCodeExecutionResultDelta setIsError(java.lang.Boolean isError) { + this.isError = isError; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getResult() { + return result; + } + + /** + * @param result result or {@code null} for none + */ + public GenaiCodeExecutionResultDelta setResult(java.lang.String result) { + this.result = result; + return this; + } + + @Override + public GenaiCodeExecutionResultDelta set(String fieldName, Object value) { + return (GenaiCodeExecutionResultDelta) super.set(fieldName, value); + } + + @Override + public GenaiCodeExecutionResultDelta clone() { + return (GenaiCodeExecutionResultDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiCodeExecutionResultStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiCodeExecutionResultStep.java new file mode 100644 index 00000000000..5e5476e4670 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiCodeExecutionResultStep.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.aiplatform.v1beta1.model; + +/** + * Code execution result step. + * + *

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 Platform 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 GenaiCodeExecutionResultStep extends com.google.api.client.json.GenericJson { + + /** + * Whether the code execution resulted in an error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isError; + + /** + * Required. The output of the code execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String result; + + /** + * Whether the code execution resulted in an error. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsError() { + return isError; + } + + /** + * Whether the code execution resulted in an error. + * @param isError isError or {@code null} for none + */ + public GenaiCodeExecutionResultStep setIsError(java.lang.Boolean isError) { + this.isError = isError; + return this; + } + + /** + * Required. The output of the code execution. + * @return value or {@code null} for none + */ + public java.lang.String getResult() { + return result; + } + + /** + * Required. The output of the code execution. + * @param result result or {@code null} for none + */ + public GenaiCodeExecutionResultStep setResult(java.lang.String result) { + this.result = result; + return this; + } + + @Override + public GenaiCodeExecutionResultStep set(String fieldName, Object value) { + return (GenaiCodeExecutionResultStep) super.set(fieldName, value); + } + + @Override + public GenaiCodeExecutionResultStep clone() { + return (GenaiCodeExecutionResultStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiContent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiContent.java new file mode 100644 index 00000000000..c19263e4607 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiContent.java @@ -0,0 +1,147 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * The content of the response. + * + *

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 Platform 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 GenaiContent extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiAudioContent audio; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiDocumentContent document; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiImageContent image; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiTextContent text; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVideoContent video; + + /** + * @return value or {@code null} for none + */ + public GenaiAudioContent getAudio() { + return audio; + } + + /** + * @param audio audio or {@code null} for none + */ + public GenaiContent setAudio(GenaiAudioContent audio) { + this.audio = audio; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiDocumentContent getDocument() { + return document; + } + + /** + * @param document document or {@code null} for none + */ + public GenaiContent setDocument(GenaiDocumentContent document) { + this.document = document; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiImageContent getImage() { + return image; + } + + /** + * @param image image or {@code null} for none + */ + public GenaiContent setImage(GenaiImageContent image) { + this.image = image; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiTextContent getText() { + return text; + } + + /** + * @param text text or {@code null} for none + */ + public GenaiContent setText(GenaiTextContent text) { + this.text = text; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVideoContent getVideo() { + return video; + } + + /** + * @param video video or {@code null} for none + */ + public GenaiContent setVideo(GenaiVideoContent video) { + this.video = video; + return this; + } + + @Override + public GenaiContent set(String fieldName, Object value) { + return (GenaiContent) super.set(fieldName, value); + } + + @Override + public GenaiContent clone() { + return (GenaiContent) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiContentList.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiContentList.java new file mode 100644 index 00000000000..015d6955e22 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiContentList.java @@ -0,0 +1,72 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A list of Content. + * + *

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 Platform 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 GenaiContentList extends com.google.api.client.json.GenericJson { + + /** + * The contents of the list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List contents; + + static { + // hack to force ProGuard to consider GenaiContent used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiContent.class); + } + + /** + * The contents of the list. + * @return value or {@code null} for none + */ + public java.util.List getContents() { + return contents; + } + + /** + * The contents of the list. + * @param contents contents or {@code null} for none + */ + public GenaiContentList setContents(java.util.List contents) { + this.contents = contents; + return this; + } + + @Override + public GenaiContentList set(String fieldName, Object value) { + return (GenaiContentList) super.set(fieldName, value); + } + + @Override + public GenaiContentList clone() { + return (GenaiContentList) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiDocumentContent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiDocumentContent.java new file mode 100644 index 00000000000..56fa082e867 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiDocumentContent.java @@ -0,0 +1,145 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A document content block. + * + *

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 Platform 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 GenaiDocumentContent extends com.google.api.client.json.GenericJson { + + /** + * The document content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String data; + + /** + * Flexible MIME type string of the document, superseding mime_type = 1. Note: Bespoke logic in + * the GAOS parser/serializer maps this to the "mime_type" JSON key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeTypeString; + + /** + * The URI of the document. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * The document content. + * @see #decodeData() + * @return value or {@code null} for none + */ + public java.lang.String getData() { + return data; + } + + /** + * The document content. + * @see #getData() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeData() { + return com.google.api.client.util.Base64.decodeBase64(data); + } + + /** + * The document content. + * @see #encodeData() + * @param data data or {@code null} for none + */ + public GenaiDocumentContent setData(java.lang.String data) { + this.data = data; + return this; + } + + /** + * The document content. + * @see #setData() + * + *

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

+ * + * @since 1.14 + */ + public GenaiDocumentContent encodeData(byte[] data) { + this.data = com.google.api.client.util.Base64.encodeBase64URLSafeString(data); + return this; + } + + /** + * Flexible MIME type string of the document, superseding mime_type = 1. Note: Bespoke logic in + * the GAOS parser/serializer maps this to the "mime_type" JSON key. + * @return value or {@code null} for none + */ + public java.lang.String getMimeTypeString() { + return mimeTypeString; + } + + /** + * Flexible MIME type string of the document, superseding mime_type = 1. Note: Bespoke logic in + * the GAOS parser/serializer maps this to the "mime_type" JSON key. + * @param mimeTypeString mimeTypeString or {@code null} for none + */ + public GenaiDocumentContent setMimeTypeString(java.lang.String mimeTypeString) { + this.mimeTypeString = mimeTypeString; + return this; + } + + /** + * The URI of the document. + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * The URI of the document. + * @param uri uri or {@code null} for none + */ + public GenaiDocumentContent setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public GenaiDocumentContent set(String fieldName, Object value) { + return (GenaiDocumentContent) super.set(fieldName, value); + } + + @Override + public GenaiDocumentContent clone() { + return (GenaiDocumentContent) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiDocumentDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiDocumentDelta.java new file mode 100644 index 00000000000..6ffbf6e8c66 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiDocumentDelta.java @@ -0,0 +1,133 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiDocumentDelta. + * + *

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 Platform 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 GenaiDocumentDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String data; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeType; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * @see #decodeData() + * @return value or {@code null} for none + */ + public java.lang.String getData() { + return data; + } + + /** + + * @see #getData() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeData() { + return com.google.api.client.util.Base64.decodeBase64(data); + } + + /** + * @see #encodeData() + * @param data data or {@code null} for none + */ + public GenaiDocumentDelta setData(java.lang.String data) { + this.data = data; + return this; + } + + /** + + * @see #setData() + * + *

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

+ * + * @since 1.14 + */ + public GenaiDocumentDelta encodeData(byte[] data) { + this.data = com.google.api.client.util.Base64.encodeBase64URLSafeString(data); + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getMimeType() { + return mimeType; + } + + /** + * @param mimeType mimeType or {@code null} for none + */ + public GenaiDocumentDelta setMimeType(java.lang.String mimeType) { + this.mimeType = mimeType; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * @param uri uri or {@code null} for none + */ + public GenaiDocumentDelta setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public GenaiDocumentDelta set(String fieldName, Object value) { + return (GenaiDocumentDelta) super.set(fieldName, value); + } + + @Override + public GenaiDocumentDelta clone() { + return (GenaiDocumentDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiEnvironmentConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiEnvironmentConfig.java new file mode 100644 index 00000000000..e235738689c --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiEnvironmentConfig.java @@ -0,0 +1,192 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Configuration for a custom environment. + * + *

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 Platform 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 GenaiEnvironmentConfig extends com.google.api.client.json.GenericJson { + + /** + * Environment variables to set in the sandbox environment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map env; + + /** + * Optional. The environment ID for the interaction. If specified, the request will update the + * existing environment instead of creating a new one. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String environmentId; + + /** + * Optional. Memory stores mounted into the environment under `/memory/`. When merged with an + * agent or base environment configuration, non-conflicting mounts are preserved and request + * mounts take precedence on store ID or dir_name collisions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List memoryMounts; + + /** + * Allow only specific domains. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiEnvironmentConfigEnvironmentNetworkEgressAllowlist networkAllowlist; + + /** + * Network egress mode. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String networkMode; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sources; + + /** + * Environment variables to set in the sandbox environment. + * @return value or {@code null} for none + */ + public java.util.Map getEnv() { + return env; + } + + /** + * Environment variables to set in the sandbox environment. + * @param env env or {@code null} for none + */ + public GenaiEnvironmentConfig setEnv(java.util.Map env) { + this.env = env; + return this; + } + + /** + * Optional. The environment ID for the interaction. If specified, the request will update the + * existing environment instead of creating a new one. + * @return value or {@code null} for none + */ + public java.lang.String getEnvironmentId() { + return environmentId; + } + + /** + * Optional. The environment ID for the interaction. If specified, the request will update the + * existing environment instead of creating a new one. + * @param environmentId environmentId or {@code null} for none + */ + public GenaiEnvironmentConfig setEnvironmentId(java.lang.String environmentId) { + this.environmentId = environmentId; + return this; + } + + /** + * Optional. Memory stores mounted into the environment under `/memory/`. When merged with an + * agent or base environment configuration, non-conflicting mounts are preserved and request + * mounts take precedence on store ID or dir_name collisions. + * @return value or {@code null} for none + */ + public java.util.List getMemoryMounts() { + return memoryMounts; + } + + /** + * Optional. Memory stores mounted into the environment under `/memory/`. When merged with an + * agent or base environment configuration, non-conflicting mounts are preserved and request + * mounts take precedence on store ID or dir_name collisions. + * @param memoryMounts memoryMounts or {@code null} for none + */ + public GenaiEnvironmentConfig setMemoryMounts(java.util.List memoryMounts) { + this.memoryMounts = memoryMounts; + return this; + } + + /** + * Allow only specific domains. + * @return value or {@code null} for none + */ + public GenaiEnvironmentConfigEnvironmentNetworkEgressAllowlist getNetworkAllowlist() { + return networkAllowlist; + } + + /** + * Allow only specific domains. + * @param networkAllowlist networkAllowlist or {@code null} for none + */ + public GenaiEnvironmentConfig setNetworkAllowlist(GenaiEnvironmentConfigEnvironmentNetworkEgressAllowlist networkAllowlist) { + this.networkAllowlist = networkAllowlist; + return this; + } + + /** + * Network egress mode. + * @return value or {@code null} for none + */ + public java.lang.String getNetworkMode() { + return networkMode; + } + + /** + * Network egress mode. + * @param networkMode networkMode or {@code null} for none + */ + public GenaiEnvironmentConfig setNetworkMode(java.lang.String networkMode) { + this.networkMode = networkMode; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getSources() { + return sources; + } + + /** + * @param sources sources or {@code null} for none + */ + public GenaiEnvironmentConfig setSources(java.util.List sources) { + this.sources = sources; + return this; + } + + @Override + public GenaiEnvironmentConfig set(String fieldName, Object value) { + return (GenaiEnvironmentConfig) super.set(fieldName, value); + } + + @Override + public GenaiEnvironmentConfig clone() { + return (GenaiEnvironmentConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiEnvironmentConfigEgressRule.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiEnvironmentConfigEgressRule.java new file mode 100644 index 00000000000..9ac01fbac25 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiEnvironmentConfigEgressRule.java @@ -0,0 +1,147 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A single domain allowlist rule with optional header injection. + * + *

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 Platform 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 GenaiEnvironmentConfigEgressRule extends com.google.api.client.json.GenericJson { + + /** + * Optional. Reference to a server-managed Credential resource by ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String credential; + + /** + * Domain to allow outbound requests to. Supports wildcards (e.g. '*.googleapis.com'). Use '*' to + * allow all domains. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String domain; + + /** + * Network egress mode. Set via the `"allowlist": "disabled"` short form; must be the only rule in + * the allowlist and cannot be combined with `domain`, `transform` or `credential`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mode; + + /** + * Headers to inject into requests matching this rule. Key: header name (e.g., "Authorization"). + * Value: header value (e.g., "Bearer your-token"). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map transform; + + /** + * Optional. Reference to a server-managed Credential resource by ID. + * @return value or {@code null} for none + */ + public java.lang.String getCredential() { + return credential; + } + + /** + * Optional. Reference to a server-managed Credential resource by ID. + * @param credential credential or {@code null} for none + */ + public GenaiEnvironmentConfigEgressRule setCredential(java.lang.String credential) { + this.credential = credential; + return this; + } + + /** + * Domain to allow outbound requests to. Supports wildcards (e.g. '*.googleapis.com'). Use '*' to + * allow all domains. + * @return value or {@code null} for none + */ + public java.lang.String getDomain() { + return domain; + } + + /** + * Domain to allow outbound requests to. Supports wildcards (e.g. '*.googleapis.com'). Use '*' to + * allow all domains. + * @param domain domain or {@code null} for none + */ + public GenaiEnvironmentConfigEgressRule setDomain(java.lang.String domain) { + this.domain = domain; + return this; + } + + /** + * Network egress mode. Set via the `"allowlist": "disabled"` short form; must be the only rule in + * the allowlist and cannot be combined with `domain`, `transform` or `credential`. + * @return value or {@code null} for none + */ + public java.lang.String getMode() { + return mode; + } + + /** + * Network egress mode. Set via the `"allowlist": "disabled"` short form; must be the only rule in + * the allowlist and cannot be combined with `domain`, `transform` or `credential`. + * @param mode mode or {@code null} for none + */ + public GenaiEnvironmentConfigEgressRule setMode(java.lang.String mode) { + this.mode = mode; + return this; + } + + /** + * Headers to inject into requests matching this rule. Key: header name (e.g., "Authorization"). + * Value: header value (e.g., "Bearer your-token"). + * @return value or {@code null} for none + */ + public java.util.Map getTransform() { + return transform; + } + + /** + * Headers to inject into requests matching this rule. Key: header name (e.g., "Authorization"). + * Value: header value (e.g., "Bearer your-token"). + * @param transform transform or {@code null} for none + */ + public GenaiEnvironmentConfigEgressRule setTransform(java.util.Map transform) { + this.transform = transform; + return this; + } + + @Override + public GenaiEnvironmentConfigEgressRule set(String fieldName, Object value) { + return (GenaiEnvironmentConfigEgressRule) super.set(fieldName, value); + } + + @Override + public GenaiEnvironmentConfigEgressRule clone() { + return (GenaiEnvironmentConfigEgressRule) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiEnvironmentConfigEnvVar.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiEnvironmentConfigEnvVar.java new file mode 100644 index 00000000000..7ea104035f8 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiEnvironmentConfigEnvVar.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.aiplatform.v1beta1.model; + +/** + * An environment variable to set in the execution environment. + * + *

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 Platform 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 GenaiEnvironmentConfigEnvVar extends com.google.api.client.json.GenericJson { + + /** + * Optional reference to a server-managed Credential resource by ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String credential; + + /** + * Direct string value for plain environment variables. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * Optional reference to a server-managed Credential resource by ID. + * @return value or {@code null} for none + */ + public java.lang.String getCredential() { + return credential; + } + + /** + * Optional reference to a server-managed Credential resource by ID. + * @param credential credential or {@code null} for none + */ + public GenaiEnvironmentConfigEnvVar setCredential(java.lang.String credential) { + this.credential = credential; + return this; + } + + /** + * Direct string value for plain environment variables. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * Direct string value for plain environment variables. + * @param value value or {@code null} for none + */ + public GenaiEnvironmentConfigEnvVar setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public GenaiEnvironmentConfigEnvVar set(String fieldName, Object value) { + return (GenaiEnvironmentConfigEnvVar) super.set(fieldName, value); + } + + @Override + public GenaiEnvironmentConfigEnvVar clone() { + return (GenaiEnvironmentConfigEnvVar) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiEnvironmentConfigEnvironmentNetworkEgressAllowlist.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiEnvironmentConfigEnvironmentNetworkEgressAllowlist.java new file mode 100644 index 00000000000..a91e8612f93 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiEnvironmentConfigEnvironmentNetworkEgressAllowlist.java @@ -0,0 +1,75 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Network egress configuration for the environment. + * + *

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 Platform 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 GenaiEnvironmentConfigEnvironmentNetworkEgressAllowlist extends com.google.api.client.json.GenericJson { + + /** + * List of allowed domains and their configurations. Set to `"disabled"` to block all network + * egress. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowlist; + + static { + // hack to force ProGuard to consider GenaiEnvironmentConfigEgressRule used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiEnvironmentConfigEgressRule.class); + } + + /** + * List of allowed domains and their configurations. Set to `"disabled"` to block all network + * egress. + * @return value or {@code null} for none + */ + public java.util.List getAllowlist() { + return allowlist; + } + + /** + * List of allowed domains and their configurations. Set to `"disabled"` to block all network + * egress. + * @param allowlist allowlist or {@code null} for none + */ + public GenaiEnvironmentConfigEnvironmentNetworkEgressAllowlist setAllowlist(java.util.List allowlist) { + this.allowlist = allowlist; + return this; + } + + @Override + public GenaiEnvironmentConfigEnvironmentNetworkEgressAllowlist set(String fieldName, Object value) { + return (GenaiEnvironmentConfigEnvironmentNetworkEgressAllowlist) super.set(fieldName, value); + } + + @Override + public GenaiEnvironmentConfigEnvironmentNetworkEgressAllowlist clone() { + return (GenaiEnvironmentConfigEnvironmentNetworkEgressAllowlist) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiEnvironmentConfigMemoryMount.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiEnvironmentConfigMemoryMount.java new file mode 100644 index 00000000000..d64aa97e080 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiEnvironmentConfigMemoryMount.java @@ -0,0 +1,144 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A memory store mounted into the environment under `/memory/`. + * + *

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 Platform 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 GenaiEnvironmentConfigMemoryMount extends com.google.api.client.json.GenericJson { + + /** + * Optional. Per-mount guidance describing when the agent should read or write this memory store. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. Directory name under `/memory//`. When omitted, defaults to the store's + * `memory_store_id`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dirName; + + /** + * Required. Resource name or ID of the MemoryStore (e.g. `memoryStores/my-store` or `my-store`). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String memoryStore; + + /** + * Optional. Access mode granted to the environment for this store. Defaults to `READ_ONLY` when + * unspecified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mode; + + /** + * Optional. Per-mount guidance describing when the agent should read or write this memory store. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Per-mount guidance describing when the agent should read or write this memory store. + * @param description description or {@code null} for none + */ + public GenaiEnvironmentConfigMemoryMount setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. Directory name under `/memory//`. When omitted, defaults to the store's + * `memory_store_id`. + * @return value or {@code null} for none + */ + public java.lang.String getDirName() { + return dirName; + } + + /** + * Optional. Directory name under `/memory//`. When omitted, defaults to the store's + * `memory_store_id`. + * @param dirName dirName or {@code null} for none + */ + public GenaiEnvironmentConfigMemoryMount setDirName(java.lang.String dirName) { + this.dirName = dirName; + return this; + } + + /** + * Required. Resource name or ID of the MemoryStore (e.g. `memoryStores/my-store` or `my-store`). + * @return value or {@code null} for none + */ + public java.lang.String getMemoryStore() { + return memoryStore; + } + + /** + * Required. Resource name or ID of the MemoryStore (e.g. `memoryStores/my-store` or `my-store`). + * @param memoryStore memoryStore or {@code null} for none + */ + public GenaiEnvironmentConfigMemoryMount setMemoryStore(java.lang.String memoryStore) { + this.memoryStore = memoryStore; + return this; + } + + /** + * Optional. Access mode granted to the environment for this store. Defaults to `READ_ONLY` when + * unspecified. + * @return value or {@code null} for none + */ + public java.lang.String getMode() { + return mode; + } + + /** + * Optional. Access mode granted to the environment for this store. Defaults to `READ_ONLY` when + * unspecified. + * @param mode mode or {@code null} for none + */ + public GenaiEnvironmentConfigMemoryMount setMode(java.lang.String mode) { + this.mode = mode; + return this; + } + + @Override + public GenaiEnvironmentConfigMemoryMount set(String fieldName, Object value) { + return (GenaiEnvironmentConfigMemoryMount) super.set(fieldName, value); + } + + @Override + public GenaiEnvironmentConfigMemoryMount clone() { + return (GenaiEnvironmentConfigMemoryMount) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiEnvironmentConfigSource.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiEnvironmentConfigSource.java new file mode 100644 index 00000000000..75bf590eb6d --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiEnvironmentConfigSource.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.aiplatform.v1beta1.model; + +/** + * A source to be mounted into the environment. + * + *

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 Platform 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 GenaiEnvironmentConfigSource extends com.google.api.client.json.GenericJson { + + /** + * The inline content if `type` is `INLINE`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String content; + + /** + * Optional encoding for inline content (e.g. `base64`). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String encoding; + + /** + * The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, + * this is the GitHub path. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** + * Where the source should appear in the environment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * The inline content if `type` is `INLINE`. + * @return value or {@code null} for none + */ + public java.lang.String getContent() { + return content; + } + + /** + * The inline content if `type` is `INLINE`. + * @param content content or {@code null} for none + */ + public GenaiEnvironmentConfigSource setContent(java.lang.String content) { + this.content = content; + return this; + } + + /** + * Optional encoding for inline content (e.g. `base64`). + * @return value or {@code null} for none + */ + public java.lang.String getEncoding() { + return encoding; + } + + /** + * Optional encoding for inline content (e.g. `base64`). + * @param encoding encoding or {@code null} for none + */ + public GenaiEnvironmentConfigSource setEncoding(java.lang.String encoding) { + this.encoding = encoding; + return this; + } + + /** + * The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, + * this is the GitHub path. + * @return value or {@code null} for none + */ + public java.lang.String getSource() { + return source; + } + + /** + * The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, + * this is the GitHub path. + * @param source source or {@code null} for none + */ + public GenaiEnvironmentConfigSource setSource(java.lang.String source) { + this.source = source; + return this; + } + + /** + * Where the source should appear in the environment. + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * Where the source should appear in the environment. + * @param target target or {@code null} for none + */ + public GenaiEnvironmentConfigSource setTarget(java.lang.String target) { + this.target = target; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * @param type type or {@code null} for none + */ + public GenaiEnvironmentConfigSource setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public GenaiEnvironmentConfigSource set(String fieldName, Object value) { + return (GenaiEnvironmentConfigSource) super.set(fieldName, value); + } + + @Override + public GenaiEnvironmentConfigSource clone() { + return (GenaiEnvironmentConfigSource) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiField.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiField.java new file mode 100644 index 00000000000..b2c621dbdd2 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiField.java @@ -0,0 +1,84 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Represents a single field in a struct. + * + *

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 Platform 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 GenaiField extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiValue value; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * @param name name or {@code null} for none + */ + public GenaiField setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiValue getValue() { + return value; + } + + /** + * @param value value or {@code null} for none + */ + public GenaiField setValue(GenaiValue value) { + this.value = value; + return this; + } + + @Override + public GenaiField set(String fieldName, Object value) { + return (GenaiField) super.set(fieldName, value); + } + + @Override + public GenaiField clone() { + return (GenaiField) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFileCitation.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFileCitation.java new file mode 100644 index 00000000000..237548689a3 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFileCitation.java @@ -0,0 +1,186 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A file citation annotation. + * + *

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 Platform 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 GenaiFileCitation extends com.google.api.client.json.GenericJson { + + /** + * User provided metadata about the retrieved context. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map customMetadata; + + /** + * The URI of the file. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String documentUri; + + /** + * The name of the file. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fileName; + + /** + * Media ID in-case of image citations, if applicable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mediaId; + + /** + * Page number of the cited document, if applicable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageNumber; + + /** + * Source attributed for a portion of the text. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** + * User provided metadata about the retrieved context. + * @return value or {@code null} for none + */ + public java.util.Map getCustomMetadata() { + return customMetadata; + } + + /** + * User provided metadata about the retrieved context. + * @param customMetadata customMetadata or {@code null} for none + */ + public GenaiFileCitation setCustomMetadata(java.util.Map customMetadata) { + this.customMetadata = customMetadata; + return this; + } + + /** + * The URI of the file. + * @return value or {@code null} for none + */ + public java.lang.String getDocumentUri() { + return documentUri; + } + + /** + * The URI of the file. + * @param documentUri documentUri or {@code null} for none + */ + public GenaiFileCitation setDocumentUri(java.lang.String documentUri) { + this.documentUri = documentUri; + return this; + } + + /** + * The name of the file. + * @return value or {@code null} for none + */ + public java.lang.String getFileName() { + return fileName; + } + + /** + * The name of the file. + * @param fileName fileName or {@code null} for none + */ + public GenaiFileCitation setFileName(java.lang.String fileName) { + this.fileName = fileName; + return this; + } + + /** + * Media ID in-case of image citations, if applicable. + * @return value or {@code null} for none + */ + public java.lang.String getMediaId() { + return mediaId; + } + + /** + * Media ID in-case of image citations, if applicable. + * @param mediaId mediaId or {@code null} for none + */ + public GenaiFileCitation setMediaId(java.lang.String mediaId) { + this.mediaId = mediaId; + return this; + } + + /** + * Page number of the cited document, if applicable. + * @return value or {@code null} for none + */ + public java.lang.Integer getPageNumber() { + return pageNumber; + } + + /** + * Page number of the cited document, if applicable. + * @param pageNumber pageNumber or {@code null} for none + */ + public GenaiFileCitation setPageNumber(java.lang.Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Source attributed for a portion of the text. + * @return value or {@code null} for none + */ + public java.lang.String getSource() { + return source; + } + + /** + * Source attributed for a portion of the text. + * @param source source or {@code null} for none + */ + public GenaiFileCitation setSource(java.lang.String source) { + this.source = source; + return this; + } + + @Override + public GenaiFileCitation set(String fieldName, Object value) { + return (GenaiFileCitation) super.set(fieldName, value); + } + + @Override + public GenaiFileCitation clone() { + return (GenaiFileCitation) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFileSearchCallDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFileSearchCallDelta.java new file mode 100644 index 00000000000..c4e999dd273 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFileSearchCallDelta.java @@ -0,0 +1,42 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiFileSearchCallDelta. + * + *

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 Platform 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 GenaiFileSearchCallDelta extends com.google.api.client.json.GenericJson { + + @Override + public GenaiFileSearchCallDelta set(String fieldName, Object value) { + return (GenaiFileSearchCallDelta) super.set(fieldName, value); + } + + @Override + public GenaiFileSearchCallDelta clone() { + return (GenaiFileSearchCallDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFileSearchCallStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFileSearchCallStep.java new file mode 100644 index 00000000000..73a276ff6f2 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFileSearchCallStep.java @@ -0,0 +1,42 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * File Search call step. + * + *

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 Platform 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 GenaiFileSearchCallStep extends com.google.api.client.json.GenericJson { + + @Override + public GenaiFileSearchCallStep set(String fieldName, Object value) { + return (GenaiFileSearchCallStep) super.set(fieldName, value); + } + + @Override + public GenaiFileSearchCallStep clone() { + return (GenaiFileSearchCallStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFileSearchResultContentFileSearchResult.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFileSearchResultContentFileSearchResult.java new file mode 100644 index 00000000000..050fb33f600 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFileSearchResultContentFileSearchResult.java @@ -0,0 +1,42 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * The result of the File Search. + * + *

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 Platform 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 GenaiFileSearchResultContentFileSearchResult extends com.google.api.client.json.GenericJson { + + @Override + public GenaiFileSearchResultContentFileSearchResult set(String fieldName, Object value) { + return (GenaiFileSearchResultContentFileSearchResult) super.set(fieldName, value); + } + + @Override + public GenaiFileSearchResultContentFileSearchResult clone() { + return (GenaiFileSearchResultContentFileSearchResult) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFileSearchResultDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFileSearchResultDelta.java new file mode 100644 index 00000000000..fef76eb35e8 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFileSearchResultDelta.java @@ -0,0 +1,69 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiFileSearchResultDelta. + * + *

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 Platform 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 GenaiFileSearchResultDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List result; + + static { + // hack to force ProGuard to consider GenaiFileSearchResultContentFileSearchResult used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiFileSearchResultContentFileSearchResult.class); + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getResult() { + return result; + } + + /** + * @param result result or {@code null} for none + */ + public GenaiFileSearchResultDelta setResult(java.util.List result) { + this.result = result; + return this; + } + + @Override + public GenaiFileSearchResultDelta set(String fieldName, Object value) { + return (GenaiFileSearchResultDelta) super.set(fieldName, value); + } + + @Override + public GenaiFileSearchResultDelta clone() { + return (GenaiFileSearchResultDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFileSearchResultStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFileSearchResultStep.java new file mode 100644 index 00000000000..a999ac86c6a --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFileSearchResultStep.java @@ -0,0 +1,42 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * File Search result step. + * + *

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 Platform 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 GenaiFileSearchResultStep extends com.google.api.client.json.GenericJson { + + @Override + public GenaiFileSearchResultStep set(String fieldName, Object value) { + return (GenaiFileSearchResultStep) super.set(fieldName, value); + } + + @Override + public GenaiFileSearchResultStep clone() { + return (GenaiFileSearchResultStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFunctionCallStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFunctionCallStep.java new file mode 100644 index 00000000000..80bcd6afe57 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFunctionCallStep.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.aiplatform.v1beta1.model; + +/** + * A function tool call step. + * + *

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 Platform 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 GenaiFunctionCallStep extends com.google.api.client.json.GenericJson { + + /** + * Required. The arguments to pass to the function. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiStruct arguments; + + /** + * Required. The name of the tool to call. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The arguments to pass to the function. + * @return value or {@code null} for none + */ + public GenaiStruct getArguments() { + return arguments; + } + + /** + * Required. The arguments to pass to the function. + * @param arguments arguments or {@code null} for none + */ + public GenaiFunctionCallStep setArguments(GenaiStruct arguments) { + this.arguments = arguments; + return this; + } + + /** + * Required. The name of the tool to call. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the tool to call. + * @param name name or {@code null} for none + */ + public GenaiFunctionCallStep setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public GenaiFunctionCallStep set(String fieldName, Object value) { + return (GenaiFunctionCallStep) super.set(fieldName, value); + } + + @Override + public GenaiFunctionCallStep clone() { + return (GenaiFunctionCallStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFunctionResultDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFunctionResultDelta.java new file mode 100644 index 00000000000..638c990faf5 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFunctionResultDelta.java @@ -0,0 +1,105 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiFunctionResultDelta. + * + *

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 Platform 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 GenaiFunctionResultDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isError; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiValue result; + + /** + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsError() { + return isError; + } + + /** + * @param isError isError or {@code null} for none + */ + public GenaiFunctionResultDelta setIsError(java.lang.Boolean isError) { + this.isError = isError; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * @param name name or {@code null} for none + */ + public GenaiFunctionResultDelta setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiValue getResult() { + return result; + } + + /** + * @param result result or {@code null} for none + */ + public GenaiFunctionResultDelta setResult(GenaiValue result) { + this.result = result; + return this; + } + + @Override + public GenaiFunctionResultDelta set(String fieldName, Object value) { + return (GenaiFunctionResultDelta) super.set(fieldName, value); + } + + @Override + public GenaiFunctionResultDelta clone() { + return (GenaiFunctionResultDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFunctionResultStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFunctionResultStep.java new file mode 100644 index 00000000000..02a6e412ca2 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiFunctionResultStep.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.aiplatform.v1beta1.model; + +/** + * Result of a function tool call. + * + *

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 Platform 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 GenaiFunctionResultStep extends com.google.api.client.json.GenericJson { + + /** + * Whether the tool call resulted in an error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isError; + + /** + * The name of the tool that was called. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The result of the tool call. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiValue result; + + /** + * Whether the tool call resulted in an error. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsError() { + return isError; + } + + /** + * Whether the tool call resulted in an error. + * @param isError isError or {@code null} for none + */ + public GenaiFunctionResultStep setIsError(java.lang.Boolean isError) { + this.isError = isError; + return this; + } + + /** + * The name of the tool that was called. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name of the tool that was called. + * @param name name or {@code null} for none + */ + public GenaiFunctionResultStep setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Required. The result of the tool call. + * @return value or {@code null} for none + */ + public GenaiValue getResult() { + return result; + } + + /** + * Required. The result of the tool call. + * @param result result or {@code null} for none + */ + public GenaiFunctionResultStep setResult(GenaiValue result) { + this.result = result; + return this; + } + + @Override + public GenaiFunctionResultStep set(String fieldName, Object value) { + return (GenaiFunctionResultStep) super.set(fieldName, value); + } + + @Override + public GenaiFunctionResultStep clone() { + return (GenaiFunctionResultStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsCallContentGoogleMapsCallArguments.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsCallContentGoogleMapsCallArguments.java new file mode 100644 index 00000000000..ee88fb42aeb --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsCallContentGoogleMapsCallArguments.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * The arguments to pass to the Google Maps tool. + * + *

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 Platform 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 GenaiGoogleMapsCallContentGoogleMapsCallArguments extends com.google.api.client.json.GenericJson { + + /** + * The queries to be executed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List queries; + + /** + * The queries to be executed. + * @return value or {@code null} for none + */ + public java.util.List getQueries() { + return queries; + } + + /** + * The queries to be executed. + * @param queries queries or {@code null} for none + */ + public GenaiGoogleMapsCallContentGoogleMapsCallArguments setQueries(java.util.List queries) { + this.queries = queries; + return this; + } + + @Override + public GenaiGoogleMapsCallContentGoogleMapsCallArguments set(String fieldName, Object value) { + return (GenaiGoogleMapsCallContentGoogleMapsCallArguments) super.set(fieldName, value); + } + + @Override + public GenaiGoogleMapsCallContentGoogleMapsCallArguments clone() { + return (GenaiGoogleMapsCallContentGoogleMapsCallArguments) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsCallDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsCallDelta.java new file mode 100644 index 00000000000..c170d42a42f --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsCallDelta.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiGoogleMapsCallDelta. + * + *

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 Platform 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 GenaiGoogleMapsCallDelta extends com.google.api.client.json.GenericJson { + + /** + * The arguments to pass to the Google Maps tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiGoogleMapsCallContentGoogleMapsCallArguments arguments; + + /** + * The arguments to pass to the Google Maps tool. + * @return value or {@code null} for none + */ + public GenaiGoogleMapsCallContentGoogleMapsCallArguments getArguments() { + return arguments; + } + + /** + * The arguments to pass to the Google Maps tool. + * @param arguments arguments or {@code null} for none + */ + public GenaiGoogleMapsCallDelta setArguments(GenaiGoogleMapsCallContentGoogleMapsCallArguments arguments) { + this.arguments = arguments; + return this; + } + + @Override + public GenaiGoogleMapsCallDelta set(String fieldName, Object value) { + return (GenaiGoogleMapsCallDelta) super.set(fieldName, value); + } + + @Override + public GenaiGoogleMapsCallDelta clone() { + return (GenaiGoogleMapsCallDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsCallStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsCallStep.java new file mode 100644 index 00000000000..d8c76a190f7 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsCallStep.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * Google Maps call step. + * + *

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 Platform 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 GenaiGoogleMapsCallStep extends com.google.api.client.json.GenericJson { + + /** + * The arguments to pass to the Google Maps tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiGoogleMapsCallStepGoogleMapsCallStepArguments arguments; + + /** + * The arguments to pass to the Google Maps tool. + * @return value or {@code null} for none + */ + public GenaiGoogleMapsCallStepGoogleMapsCallStepArguments getArguments() { + return arguments; + } + + /** + * The arguments to pass to the Google Maps tool. + * @param arguments arguments or {@code null} for none + */ + public GenaiGoogleMapsCallStep setArguments(GenaiGoogleMapsCallStepGoogleMapsCallStepArguments arguments) { + this.arguments = arguments; + return this; + } + + @Override + public GenaiGoogleMapsCallStep set(String fieldName, Object value) { + return (GenaiGoogleMapsCallStep) super.set(fieldName, value); + } + + @Override + public GenaiGoogleMapsCallStep clone() { + return (GenaiGoogleMapsCallStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsCallStepGoogleMapsCallStepArguments.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsCallStepGoogleMapsCallStepArguments.java new file mode 100644 index 00000000000..7d0da280a29 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsCallStepGoogleMapsCallStepArguments.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * The arguments to pass to the Google Maps tool. + * + *

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 Platform 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 GenaiGoogleMapsCallStepGoogleMapsCallStepArguments extends com.google.api.client.json.GenericJson { + + /** + * The queries to be executed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List queries; + + /** + * The queries to be executed. + * @return value or {@code null} for none + */ + public java.util.List getQueries() { + return queries; + } + + /** + * The queries to be executed. + * @param queries queries or {@code null} for none + */ + public GenaiGoogleMapsCallStepGoogleMapsCallStepArguments setQueries(java.util.List queries) { + this.queries = queries; + return this; + } + + @Override + public GenaiGoogleMapsCallStepGoogleMapsCallStepArguments set(String fieldName, Object value) { + return (GenaiGoogleMapsCallStepGoogleMapsCallStepArguments) super.set(fieldName, value); + } + + @Override + public GenaiGoogleMapsCallStepGoogleMapsCallStepArguments clone() { + return (GenaiGoogleMapsCallStepGoogleMapsCallStepArguments) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsResultContentGoogleMapsResult.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsResultContentGoogleMapsResult.java new file mode 100644 index 00000000000..72c160c4653 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsResultContentGoogleMapsResult.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.aiplatform.v1beta1.model; + +/** + * The result of the Google Maps. + * + *

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 Platform 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 GenaiGoogleMapsResultContentGoogleMapsResult extends com.google.api.client.json.GenericJson { + + /** + * The places that were found. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List places; + + /** + * Resource name of the Google Maps widget context token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String widgetContextToken; + + /** + * The places that were found. + * @return value or {@code null} for none + */ + public java.util.List getPlaces() { + return places; + } + + /** + * The places that were found. + * @param places places or {@code null} for none + */ + public GenaiGoogleMapsResultContentGoogleMapsResult setPlaces(java.util.List places) { + this.places = places; + return this; + } + + /** + * Resource name of the Google Maps widget context token. + * @return value or {@code null} for none + */ + public java.lang.String getWidgetContextToken() { + return widgetContextToken; + } + + /** + * Resource name of the Google Maps widget context token. + * @param widgetContextToken widgetContextToken or {@code null} for none + */ + public GenaiGoogleMapsResultContentGoogleMapsResult setWidgetContextToken(java.lang.String widgetContextToken) { + this.widgetContextToken = widgetContextToken; + return this; + } + + @Override + public GenaiGoogleMapsResultContentGoogleMapsResult set(String fieldName, Object value) { + return (GenaiGoogleMapsResultContentGoogleMapsResult) super.set(fieldName, value); + } + + @Override + public GenaiGoogleMapsResultContentGoogleMapsResult clone() { + return (GenaiGoogleMapsResultContentGoogleMapsResult) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsResultContentGoogleMapsResultPlaces.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsResultContentGoogleMapsResultPlaces.java new file mode 100644 index 00000000000..41872d7f0df --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsResultContentGoogleMapsResultPlaces.java @@ -0,0 +1,141 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiGoogleMapsResultContentGoogleMapsResultPlaces. + * + *

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 Platform 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 GenaiGoogleMapsResultContentGoogleMapsResultPlaces extends com.google.api.client.json.GenericJson { + + /** + * Title of the place. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The ID of the place, in `places/{place_id}` format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String placeId; + + /** + * Snippets of reviews that are used to generate answers about the features of a given place in + * Google Maps. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List reviewSnippets; + + /** + * URI reference of the place. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * Title of the place. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Title of the place. + * @param name name or {@code null} for none + */ + public GenaiGoogleMapsResultContentGoogleMapsResultPlaces setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The ID of the place, in `places/{place_id}` format. + * @return value or {@code null} for none + */ + public java.lang.String getPlaceId() { + return placeId; + } + + /** + * The ID of the place, in `places/{place_id}` format. + * @param placeId placeId or {@code null} for none + */ + public GenaiGoogleMapsResultContentGoogleMapsResultPlaces setPlaceId(java.lang.String placeId) { + this.placeId = placeId; + return this; + } + + /** + * Snippets of reviews that are used to generate answers about the features of a given place in + * Google Maps. + * @return value or {@code null} for none + */ + public java.util.List getReviewSnippets() { + return reviewSnippets; + } + + /** + * Snippets of reviews that are used to generate answers about the features of a given place in + * Google Maps. + * @param reviewSnippets reviewSnippets or {@code null} for none + */ + public GenaiGoogleMapsResultContentGoogleMapsResultPlaces setReviewSnippets(java.util.List reviewSnippets) { + this.reviewSnippets = reviewSnippets; + return this; + } + + /** + * URI reference of the place. + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * URI reference of the place. + * @param url url or {@code null} for none + */ + public GenaiGoogleMapsResultContentGoogleMapsResultPlaces setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public GenaiGoogleMapsResultContentGoogleMapsResultPlaces set(String fieldName, Object value) { + return (GenaiGoogleMapsResultContentGoogleMapsResultPlaces) super.set(fieldName, value); + } + + @Override + public GenaiGoogleMapsResultContentGoogleMapsResultPlaces clone() { + return (GenaiGoogleMapsResultContentGoogleMapsResultPlaces) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsResultDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsResultDelta.java new file mode 100644 index 00000000000..c1118fb1a9a --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsResultDelta.java @@ -0,0 +1,72 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiGoogleMapsResultDelta. + * + *

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 Platform 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 GenaiGoogleMapsResultDelta extends com.google.api.client.json.GenericJson { + + /** + * The results of the Google Maps. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List result; + + static { + // hack to force ProGuard to consider GenaiGoogleMapsResultContentGoogleMapsResult used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiGoogleMapsResultContentGoogleMapsResult.class); + } + + /** + * The results of the Google Maps. + * @return value or {@code null} for none + */ + public java.util.List getResult() { + return result; + } + + /** + * The results of the Google Maps. + * @param result result or {@code null} for none + */ + public GenaiGoogleMapsResultDelta setResult(java.util.List result) { + this.result = result; + return this; + } + + @Override + public GenaiGoogleMapsResultDelta set(String fieldName, Object value) { + return (GenaiGoogleMapsResultDelta) super.set(fieldName, value); + } + + @Override + public GenaiGoogleMapsResultDelta clone() { + return (GenaiGoogleMapsResultDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsResultStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsResultStep.java new file mode 100644 index 00000000000..4064c2bf031 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsResultStep.java @@ -0,0 +1,63 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Google Maps result step. + * + *

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 Platform 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 GenaiGoogleMapsResultStep extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List result; + + /** + * @return value or {@code null} for none + */ + public java.util.List getResult() { + return result; + } + + /** + * @param result result or {@code null} for none + */ + public GenaiGoogleMapsResultStep setResult(java.util.List result) { + this.result = result; + return this; + } + + @Override + public GenaiGoogleMapsResultStep set(String fieldName, Object value) { + return (GenaiGoogleMapsResultStep) super.set(fieldName, value); + } + + @Override + public GenaiGoogleMapsResultStep clone() { + return (GenaiGoogleMapsResultStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsResultStepGoogleMapsResultItem.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsResultStepGoogleMapsResultItem.java new file mode 100644 index 00000000000..edd2250b224 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsResultStepGoogleMapsResultItem.java @@ -0,0 +1,84 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * The result of the Google Maps. + * + *

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 Platform 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 GenaiGoogleMapsResultStepGoogleMapsResultItem extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List places; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String widgetContextToken; + + /** + * @return value or {@code null} for none + */ + public java.util.List getPlaces() { + return places; + } + + /** + * @param places places or {@code null} for none + */ + public GenaiGoogleMapsResultStepGoogleMapsResultItem setPlaces(java.util.List places) { + this.places = places; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getWidgetContextToken() { + return widgetContextToken; + } + + /** + * @param widgetContextToken widgetContextToken or {@code null} for none + */ + public GenaiGoogleMapsResultStepGoogleMapsResultItem setWidgetContextToken(java.lang.String widgetContextToken) { + this.widgetContextToken = widgetContextToken; + return this; + } + + @Override + public GenaiGoogleMapsResultStepGoogleMapsResultItem set(String fieldName, Object value) { + return (GenaiGoogleMapsResultStepGoogleMapsResultItem) super.set(fieldName, value); + } + + @Override + public GenaiGoogleMapsResultStepGoogleMapsResultItem clone() { + return (GenaiGoogleMapsResultStepGoogleMapsResultItem) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces.java new file mode 100644 index 00000000000..c152903f50f --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces.java @@ -0,0 +1,126 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiGoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces. + * + *

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 Platform 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 GenaiGoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String placeId; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List reviewSnippets; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * @param name name or {@code null} for none + */ + public GenaiGoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getPlaceId() { + return placeId; + } + + /** + * @param placeId placeId or {@code null} for none + */ + public GenaiGoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces setPlaceId(java.lang.String placeId) { + this.placeId = placeId; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getReviewSnippets() { + return reviewSnippets; + } + + /** + * @param reviewSnippets reviewSnippets or {@code null} for none + */ + public GenaiGoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces setReviewSnippets(java.util.List reviewSnippets) { + this.reviewSnippets = reviewSnippets; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * @param url url or {@code null} for none + */ + public GenaiGoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public GenaiGoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces set(String fieldName, Object value) { + return (GenaiGoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces) super.set(fieldName, value); + } + + @Override + public GenaiGoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces clone() { + return (GenaiGoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleSearchCallContentGoogleSearchCallArguments.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleSearchCallContentGoogleSearchCallArguments.java new file mode 100644 index 00000000000..a6ce69e101a --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleSearchCallContentGoogleSearchCallArguments.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * The arguments to pass to Google Search. + * + *

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 Platform 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 GenaiGoogleSearchCallContentGoogleSearchCallArguments extends com.google.api.client.json.GenericJson { + + /** + * Web search queries for the following-up web search. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List queries; + + /** + * Web search queries for the following-up web search. + * @return value or {@code null} for none + */ + public java.util.List getQueries() { + return queries; + } + + /** + * Web search queries for the following-up web search. + * @param queries queries or {@code null} for none + */ + public GenaiGoogleSearchCallContentGoogleSearchCallArguments setQueries(java.util.List queries) { + this.queries = queries; + return this; + } + + @Override + public GenaiGoogleSearchCallContentGoogleSearchCallArguments set(String fieldName, Object value) { + return (GenaiGoogleSearchCallContentGoogleSearchCallArguments) super.set(fieldName, value); + } + + @Override + public GenaiGoogleSearchCallContentGoogleSearchCallArguments clone() { + return (GenaiGoogleSearchCallContentGoogleSearchCallArguments) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleSearchCallDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleSearchCallDelta.java new file mode 100644 index 00000000000..307b9639e6e --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleSearchCallDelta.java @@ -0,0 +1,63 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiGoogleSearchCallDelta. + * + *

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 Platform 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 GenaiGoogleSearchCallDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiGoogleSearchCallContentGoogleSearchCallArguments arguments; + + /** + * @return value or {@code null} for none + */ + public GenaiGoogleSearchCallContentGoogleSearchCallArguments getArguments() { + return arguments; + } + + /** + * @param arguments arguments or {@code null} for none + */ + public GenaiGoogleSearchCallDelta setArguments(GenaiGoogleSearchCallContentGoogleSearchCallArguments arguments) { + this.arguments = arguments; + return this; + } + + @Override + public GenaiGoogleSearchCallDelta set(String fieldName, Object value) { + return (GenaiGoogleSearchCallDelta) super.set(fieldName, value); + } + + @Override + public GenaiGoogleSearchCallDelta clone() { + return (GenaiGoogleSearchCallDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleSearchCallStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleSearchCallStep.java new file mode 100644 index 00000000000..c876a72e591 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleSearchCallStep.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.aiplatform.v1beta1.model; + +/** + * Google Search call step. + * + *

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 Platform 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 GenaiGoogleSearchCallStep extends com.google.api.client.json.GenericJson { + + /** + * Required. The arguments to pass to Google Search. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiGoogleSearchCallStepGoogleSearchCallStepArguments arguments; + + /** + * The type of search grounding enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String searchType; + + /** + * Required. The arguments to pass to Google Search. + * @return value or {@code null} for none + */ + public GenaiGoogleSearchCallStepGoogleSearchCallStepArguments getArguments() { + return arguments; + } + + /** + * Required. The arguments to pass to Google Search. + * @param arguments arguments or {@code null} for none + */ + public GenaiGoogleSearchCallStep setArguments(GenaiGoogleSearchCallStepGoogleSearchCallStepArguments arguments) { + this.arguments = arguments; + return this; + } + + /** + * The type of search grounding enabled. + * @return value or {@code null} for none + */ + public java.lang.String getSearchType() { + return searchType; + } + + /** + * The type of search grounding enabled. + * @param searchType searchType or {@code null} for none + */ + public GenaiGoogleSearchCallStep setSearchType(java.lang.String searchType) { + this.searchType = searchType; + return this; + } + + @Override + public GenaiGoogleSearchCallStep set(String fieldName, Object value) { + return (GenaiGoogleSearchCallStep) super.set(fieldName, value); + } + + @Override + public GenaiGoogleSearchCallStep clone() { + return (GenaiGoogleSearchCallStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleSearchCallStepGoogleSearchCallStepArguments.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleSearchCallStepGoogleSearchCallStepArguments.java new file mode 100644 index 00000000000..c2cca1ecb6d --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleSearchCallStepGoogleSearchCallStepArguments.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * The arguments to pass to Google Search. + * + *

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 Platform 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 GenaiGoogleSearchCallStepGoogleSearchCallStepArguments extends com.google.api.client.json.GenericJson { + + /** + * Web search queries for the following-up web search. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List queries; + + /** + * Web search queries for the following-up web search. + * @return value or {@code null} for none + */ + public java.util.List getQueries() { + return queries; + } + + /** + * Web search queries for the following-up web search. + * @param queries queries or {@code null} for none + */ + public GenaiGoogleSearchCallStepGoogleSearchCallStepArguments setQueries(java.util.List queries) { + this.queries = queries; + return this; + } + + @Override + public GenaiGoogleSearchCallStepGoogleSearchCallStepArguments set(String fieldName, Object value) { + return (GenaiGoogleSearchCallStepGoogleSearchCallStepArguments) super.set(fieldName, value); + } + + @Override + public GenaiGoogleSearchCallStepGoogleSearchCallStepArguments clone() { + return (GenaiGoogleSearchCallStepGoogleSearchCallStepArguments) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleSearchResultContentGoogleSearchResult.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleSearchResultContentGoogleSearchResult.java new file mode 100644 index 00000000000..759a1d023d2 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleSearchResultContentGoogleSearchResult.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * The result of the Google Search. + * + *

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 Platform 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 GenaiGoogleSearchResultContentGoogleSearchResult extends com.google.api.client.json.GenericJson { + + /** + * Web content snippet that can be embedded in a web page or an app webview. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String searchSuggestions; + + /** + * Web content snippet that can be embedded in a web page or an app webview. + * @return value or {@code null} for none + */ + public java.lang.String getSearchSuggestions() { + return searchSuggestions; + } + + /** + * Web content snippet that can be embedded in a web page or an app webview. + * @param searchSuggestions searchSuggestions or {@code null} for none + */ + public GenaiGoogleSearchResultContentGoogleSearchResult setSearchSuggestions(java.lang.String searchSuggestions) { + this.searchSuggestions = searchSuggestions; + return this; + } + + @Override + public GenaiGoogleSearchResultContentGoogleSearchResult set(String fieldName, Object value) { + return (GenaiGoogleSearchResultContentGoogleSearchResult) super.set(fieldName, value); + } + + @Override + public GenaiGoogleSearchResultContentGoogleSearchResult clone() { + return (GenaiGoogleSearchResultContentGoogleSearchResult) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleSearchResultDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleSearchResultDelta.java new file mode 100644 index 00000000000..45725d9718e --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleSearchResultDelta.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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiGoogleSearchResultDelta. + * + *

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 Platform 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 GenaiGoogleSearchResultDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isError; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List result; + + static { + // hack to force ProGuard to consider GenaiGoogleSearchResultContentGoogleSearchResult used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiGoogleSearchResultContentGoogleSearchResult.class); + } + + /** + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsError() { + return isError; + } + + /** + * @param isError isError or {@code null} for none + */ + public GenaiGoogleSearchResultDelta setIsError(java.lang.Boolean isError) { + this.isError = isError; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getResult() { + return result; + } + + /** + * @param result result or {@code null} for none + */ + public GenaiGoogleSearchResultDelta setResult(java.util.List result) { + this.result = result; + return this; + } + + @Override + public GenaiGoogleSearchResultDelta set(String fieldName, Object value) { + return (GenaiGoogleSearchResultDelta) super.set(fieldName, value); + } + + @Override + public GenaiGoogleSearchResultDelta clone() { + return (GenaiGoogleSearchResultDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleSearchResultStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleSearchResultStep.java new file mode 100644 index 00000000000..8a655d30f5c --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleSearchResultStep.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.aiplatform.v1beta1.model; + +/** + * Google Search result step. + * + *

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 Platform 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 GenaiGoogleSearchResultStep extends com.google.api.client.json.GenericJson { + + /** + * Whether the Google Search resulted in an error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isError; + + /** + * Required. The results of the Google Search. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List result; + + /** + * Whether the Google Search resulted in an error. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsError() { + return isError; + } + + /** + * Whether the Google Search resulted in an error. + * @param isError isError or {@code null} for none + */ + public GenaiGoogleSearchResultStep setIsError(java.lang.Boolean isError) { + this.isError = isError; + return this; + } + + /** + * Required. The results of the Google Search. + * @return value or {@code null} for none + */ + public java.util.List getResult() { + return result; + } + + /** + * Required. The results of the Google Search. + * @param result result or {@code null} for none + */ + public GenaiGoogleSearchResultStep setResult(java.util.List result) { + this.result = result; + return this; + } + + @Override + public GenaiGoogleSearchResultStep set(String fieldName, Object value) { + return (GenaiGoogleSearchResultStep) super.set(fieldName, value); + } + + @Override + public GenaiGoogleSearchResultStep clone() { + return (GenaiGoogleSearchResultStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleSearchResultStepGoogleSearchResultItem.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleSearchResultStepGoogleSearchResultItem.java new file mode 100644 index 00000000000..5732bbe570f --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiGoogleSearchResultStepGoogleSearchResultItem.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * The result of the Google Search. + * + *

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 Platform 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 GenaiGoogleSearchResultStepGoogleSearchResultItem extends com.google.api.client.json.GenericJson { + + /** + * Web content snippet that can be embedded in a web page or an app webview. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String searchSuggestions; + + /** + * Web content snippet that can be embedded in a web page or an app webview. + * @return value or {@code null} for none + */ + public java.lang.String getSearchSuggestions() { + return searchSuggestions; + } + + /** + * Web content snippet that can be embedded in a web page or an app webview. + * @param searchSuggestions searchSuggestions or {@code null} for none + */ + public GenaiGoogleSearchResultStepGoogleSearchResultItem setSearchSuggestions(java.lang.String searchSuggestions) { + this.searchSuggestions = searchSuggestions; + return this; + } + + @Override + public GenaiGoogleSearchResultStepGoogleSearchResultItem set(String fieldName, Object value) { + return (GenaiGoogleSearchResultStepGoogleSearchResultItem) super.set(fieldName, value); + } + + @Override + public GenaiGoogleSearchResultStepGoogleSearchResultItem clone() { + return (GenaiGoogleSearchResultStepGoogleSearchResultItem) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiImageContent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiImageContent.java new file mode 100644 index 00000000000..7ce10765321 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiImageContent.java @@ -0,0 +1,169 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * An image content block. + * + *

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 Platform 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 GenaiImageContent extends com.google.api.client.json.GenericJson { + + /** + * The image content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String data; + + /** + * Flexible MIME type string of the image, superseding mime_type = 1. Note: Bespoke logic in the + * GAOS parser/serializer maps this to the "mime_type" JSON key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeTypeString; + + /** + * The resolution of the media. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resolution; + + /** + * The URI of the image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * The image content. + * @see #decodeData() + * @return value or {@code null} for none + */ + public java.lang.String getData() { + return data; + } + + /** + * The image content. + * @see #getData() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeData() { + return com.google.api.client.util.Base64.decodeBase64(data); + } + + /** + * The image content. + * @see #encodeData() + * @param data data or {@code null} for none + */ + public GenaiImageContent setData(java.lang.String data) { + this.data = data; + return this; + } + + /** + * The image content. + * @see #setData() + * + *

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

+ * + * @since 1.14 + */ + public GenaiImageContent encodeData(byte[] data) { + this.data = com.google.api.client.util.Base64.encodeBase64URLSafeString(data); + return this; + } + + /** + * Flexible MIME type string of the image, superseding mime_type = 1. Note: Bespoke logic in the + * GAOS parser/serializer maps this to the "mime_type" JSON key. + * @return value or {@code null} for none + */ + public java.lang.String getMimeTypeString() { + return mimeTypeString; + } + + /** + * Flexible MIME type string of the image, superseding mime_type = 1. Note: Bespoke logic in the + * GAOS parser/serializer maps this to the "mime_type" JSON key. + * @param mimeTypeString mimeTypeString or {@code null} for none + */ + public GenaiImageContent setMimeTypeString(java.lang.String mimeTypeString) { + this.mimeTypeString = mimeTypeString; + return this; + } + + /** + * The resolution of the media. + * @return value or {@code null} for none + */ + public java.lang.String getResolution() { + return resolution; + } + + /** + * The resolution of the media. + * @param resolution resolution or {@code null} for none + */ + public GenaiImageContent setResolution(java.lang.String resolution) { + this.resolution = resolution; + return this; + } + + /** + * The URI of the image. + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * The URI of the image. + * @param uri uri or {@code null} for none + */ + public GenaiImageContent setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public GenaiImageContent set(String fieldName, Object value) { + return (GenaiImageContent) super.set(fieldName, value); + } + + @Override + public GenaiImageContent clone() { + return (GenaiImageContent) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiImageDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiImageDelta.java new file mode 100644 index 00000000000..37512c54f93 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiImageDelta.java @@ -0,0 +1,157 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiImageDelta. + * + *

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 Platform 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 GenaiImageDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String data; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeType; + + /** + * The resolution of the media. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resolution; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * @see #decodeData() + * @return value or {@code null} for none + */ + public java.lang.String getData() { + return data; + } + + /** + + * @see #getData() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeData() { + return com.google.api.client.util.Base64.decodeBase64(data); + } + + /** + * @see #encodeData() + * @param data data or {@code null} for none + */ + public GenaiImageDelta setData(java.lang.String data) { + this.data = data; + return this; + } + + /** + + * @see #setData() + * + *

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

+ * + * @since 1.14 + */ + public GenaiImageDelta encodeData(byte[] data) { + this.data = com.google.api.client.util.Base64.encodeBase64URLSafeString(data); + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getMimeType() { + return mimeType; + } + + /** + * @param mimeType mimeType or {@code null} for none + */ + public GenaiImageDelta setMimeType(java.lang.String mimeType) { + this.mimeType = mimeType; + return this; + } + + /** + * The resolution of the media. + * @return value or {@code null} for none + */ + public java.lang.String getResolution() { + return resolution; + } + + /** + * The resolution of the media. + * @param resolution resolution or {@code null} for none + */ + public GenaiImageDelta setResolution(java.lang.String resolution) { + this.resolution = resolution; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * @param uri uri or {@code null} for none + */ + public GenaiImageDelta setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public GenaiImageDelta set(String fieldName, Object value) { + return (GenaiImageDelta) super.set(fieldName, value); + } + + @Override + public GenaiImageDelta clone() { + return (GenaiImageDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiImageResponseFormat.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiImageResponseFormat.java new file mode 100644 index 00000000000..d1cae1848fc --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiImageResponseFormat.java @@ -0,0 +1,138 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * Configuration for image output format. + * + *

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 Platform 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 GenaiImageResponseFormat extends com.google.api.client.json.GenericJson { + + /** + * The aspect ratio for the image output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String aspectRatio; + + /** + * The delivery mode for the image output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String delivery; + + /** + * The size of the image output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String imageSize; + + /** + * The MIME type of the image output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeType; + + /** + * The aspect ratio for the image output. + * @return value or {@code null} for none + */ + public java.lang.String getAspectRatio() { + return aspectRatio; + } + + /** + * The aspect ratio for the image output. + * @param aspectRatio aspectRatio or {@code null} for none + */ + public GenaiImageResponseFormat setAspectRatio(java.lang.String aspectRatio) { + this.aspectRatio = aspectRatio; + return this; + } + + /** + * The delivery mode for the image output. + * @return value or {@code null} for none + */ + public java.lang.String getDelivery() { + return delivery; + } + + /** + * The delivery mode for the image output. + * @param delivery delivery or {@code null} for none + */ + public GenaiImageResponseFormat setDelivery(java.lang.String delivery) { + this.delivery = delivery; + return this; + } + + /** + * The size of the image output. + * @return value or {@code null} for none + */ + public java.lang.String getImageSize() { + return imageSize; + } + + /** + * The size of the image output. + * @param imageSize imageSize or {@code null} for none + */ + public GenaiImageResponseFormat setImageSize(java.lang.String imageSize) { + this.imageSize = imageSize; + return this; + } + + /** + * The MIME type of the image output. + * @return value or {@code null} for none + */ + public java.lang.String getMimeType() { + return mimeType; + } + + /** + * The MIME type of the image output. + * @param mimeType mimeType or {@code null} for none + */ + public GenaiImageResponseFormat setMimeType(java.lang.String mimeType) { + this.mimeType = mimeType; + return this; + } + + @Override + public GenaiImageResponseFormat set(String fieldName, Object value) { + return (GenaiImageResponseFormat) super.set(fieldName, value); + } + + @Override + public GenaiImageResponseFormat clone() { + return (GenaiImageResponseFormat) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiInteractionUsage.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiInteractionUsage.java new file mode 100644 index 00000000000..8decdfaf090 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiInteractionUsage.java @@ -0,0 +1,510 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Statistics on the interaction request's token usage. + * + *

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 Platform 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 GenaiInteractionUsage extends com.google.api.client.json.GenericJson { + + /** + * Accumulated billable token usage across all continuation calls. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiInteractionUsageBillableUsage billableUsage; + + /** + * A breakdown of cached token usage by modality. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List cachedTokensByModality; + + /** + * Token usage metadata for context compaction. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiInteractionUsageCompactionUsageMetadata compactionUsageMetadata; + + /** + * Grounding tool count. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List groundingToolCount; + + /** + * Number of input tokens used in the first turn of this interaction. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer initialInputTokens; + + /** + * A breakdown of input token usage by modality. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List inputTokensByModality; + + /** + * Per-invocation token count breakdown. For simple requests, this contains a single entry. For + * requests with server-side tool use, this contains one entry per model invocation, ordered + * chronologically. This is the source of truth for billing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List modelInvocationTokenCounts; + + /** + * Per-invocation token count breakdown for non-grounding invocations (grounding prompt/cache + * tokens excluded). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List nonGroundingModelInvocationTokenCounts; + + /** + * A breakdown of output token usage by modality. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List outputTokensByModality; + + /** + * Output only. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer rawPromptToken; + + /** + * Output only. Per-tool call statistics, sorted by (`tool_type`, `name`). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List toolCallUsage; + + /** + * A breakdown of tool-use token usage by modality. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List toolUseTokensByModality; + + /** + * Number of tokens in the cached part of the prompt (the cached content). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalCachedTokens; + + /** + * Number of tokens in the prompt (context). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalInputTokens; + + /** + * Total number of LLM model invocations executed during the interaction turn (including retries + * and multi-step tool loop calls). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalModelInvocations; + + /** + * Total number of tokens across all the generated responses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalOutputTokens; + + /** + * Number of tokens of thoughts for thinking models. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalThoughtTokens; + + /** + * Total token count for the interaction request (prompt + responses + other internal tokens). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalTokens; + + /** + * Number of tokens present in tool-use prompt(s). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalToolUseTokens; + + /** + * Accumulated billable token usage across all continuation calls. + * @return value or {@code null} for none + */ + public GenaiInteractionUsageBillableUsage getBillableUsage() { + return billableUsage; + } + + /** + * Accumulated billable token usage across all continuation calls. + * @param billableUsage billableUsage or {@code null} for none + */ + public GenaiInteractionUsage setBillableUsage(GenaiInteractionUsageBillableUsage billableUsage) { + this.billableUsage = billableUsage; + return this; + } + + /** + * A breakdown of cached token usage by modality. + * @return value or {@code null} for none + */ + public java.util.List getCachedTokensByModality() { + return cachedTokensByModality; + } + + /** + * A breakdown of cached token usage by modality. + * @param cachedTokensByModality cachedTokensByModality or {@code null} for none + */ + public GenaiInteractionUsage setCachedTokensByModality(java.util.List cachedTokensByModality) { + this.cachedTokensByModality = cachedTokensByModality; + return this; + } + + /** + * Token usage metadata for context compaction. + * @return value or {@code null} for none + */ + public GenaiInteractionUsageCompactionUsageMetadata getCompactionUsageMetadata() { + return compactionUsageMetadata; + } + + /** + * Token usage metadata for context compaction. + * @param compactionUsageMetadata compactionUsageMetadata or {@code null} for none + */ + public GenaiInteractionUsage setCompactionUsageMetadata(GenaiInteractionUsageCompactionUsageMetadata compactionUsageMetadata) { + this.compactionUsageMetadata = compactionUsageMetadata; + return this; + } + + /** + * Grounding tool count. + * @return value or {@code null} for none + */ + public java.util.List getGroundingToolCount() { + return groundingToolCount; + } + + /** + * Grounding tool count. + * @param groundingToolCount groundingToolCount or {@code null} for none + */ + public GenaiInteractionUsage setGroundingToolCount(java.util.List groundingToolCount) { + this.groundingToolCount = groundingToolCount; + return this; + } + + /** + * Number of input tokens used in the first turn of this interaction. + * @return value or {@code null} for none + */ + public java.lang.Integer getInitialInputTokens() { + return initialInputTokens; + } + + /** + * Number of input tokens used in the first turn of this interaction. + * @param initialInputTokens initialInputTokens or {@code null} for none + */ + public GenaiInteractionUsage setInitialInputTokens(java.lang.Integer initialInputTokens) { + this.initialInputTokens = initialInputTokens; + return this; + } + + /** + * A breakdown of input token usage by modality. + * @return value or {@code null} for none + */ + public java.util.List getInputTokensByModality() { + return inputTokensByModality; + } + + /** + * A breakdown of input token usage by modality. + * @param inputTokensByModality inputTokensByModality or {@code null} for none + */ + public GenaiInteractionUsage setInputTokensByModality(java.util.List inputTokensByModality) { + this.inputTokensByModality = inputTokensByModality; + return this; + } + + /** + * Per-invocation token count breakdown. For simple requests, this contains a single entry. For + * requests with server-side tool use, this contains one entry per model invocation, ordered + * chronologically. This is the source of truth for billing. + * @return value or {@code null} for none + */ + public java.util.List getModelInvocationTokenCounts() { + return modelInvocationTokenCounts; + } + + /** + * Per-invocation token count breakdown. For simple requests, this contains a single entry. For + * requests with server-side tool use, this contains one entry per model invocation, ordered + * chronologically. This is the source of truth for billing. + * @param modelInvocationTokenCounts modelInvocationTokenCounts or {@code null} for none + */ + public GenaiInteractionUsage setModelInvocationTokenCounts(java.util.List modelInvocationTokenCounts) { + this.modelInvocationTokenCounts = modelInvocationTokenCounts; + return this; + } + + /** + * Per-invocation token count breakdown for non-grounding invocations (grounding prompt/cache + * tokens excluded). + * @return value or {@code null} for none + */ + public java.util.List getNonGroundingModelInvocationTokenCounts() { + return nonGroundingModelInvocationTokenCounts; + } + + /** + * Per-invocation token count breakdown for non-grounding invocations (grounding prompt/cache + * tokens excluded). + * @param nonGroundingModelInvocationTokenCounts nonGroundingModelInvocationTokenCounts or {@code null} for none + */ + public GenaiInteractionUsage setNonGroundingModelInvocationTokenCounts(java.util.List nonGroundingModelInvocationTokenCounts) { + this.nonGroundingModelInvocationTokenCounts = nonGroundingModelInvocationTokenCounts; + return this; + } + + /** + * A breakdown of output token usage by modality. + * @return value or {@code null} for none + */ + public java.util.List getOutputTokensByModality() { + return outputTokensByModality; + } + + /** + * A breakdown of output token usage by modality. + * @param outputTokensByModality outputTokensByModality or {@code null} for none + */ + public GenaiInteractionUsage setOutputTokensByModality(java.util.List outputTokensByModality) { + this.outputTokensByModality = outputTokensByModality; + return this; + } + + /** + * Output only. + * @return value or {@code null} for none + */ + public java.lang.Integer getRawPromptToken() { + return rawPromptToken; + } + + /** + * Output only. + * @param rawPromptToken rawPromptToken or {@code null} for none + */ + public GenaiInteractionUsage setRawPromptToken(java.lang.Integer rawPromptToken) { + this.rawPromptToken = rawPromptToken; + return this; + } + + /** + * Output only. Per-tool call statistics, sorted by (`tool_type`, `name`). + * @return value or {@code null} for none + */ + public java.util.List getToolCallUsage() { + return toolCallUsage; + } + + /** + * Output only. Per-tool call statistics, sorted by (`tool_type`, `name`). + * @param toolCallUsage toolCallUsage or {@code null} for none + */ + public GenaiInteractionUsage setToolCallUsage(java.util.List toolCallUsage) { + this.toolCallUsage = toolCallUsage; + return this; + } + + /** + * A breakdown of tool-use token usage by modality. + * @return value or {@code null} for none + */ + public java.util.List getToolUseTokensByModality() { + return toolUseTokensByModality; + } + + /** + * A breakdown of tool-use token usage by modality. + * @param toolUseTokensByModality toolUseTokensByModality or {@code null} for none + */ + public GenaiInteractionUsage setToolUseTokensByModality(java.util.List toolUseTokensByModality) { + this.toolUseTokensByModality = toolUseTokensByModality; + return this; + } + + /** + * Number of tokens in the cached part of the prompt (the cached content). + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalCachedTokens() { + return totalCachedTokens; + } + + /** + * Number of tokens in the cached part of the prompt (the cached content). + * @param totalCachedTokens totalCachedTokens or {@code null} for none + */ + public GenaiInteractionUsage setTotalCachedTokens(java.lang.Integer totalCachedTokens) { + this.totalCachedTokens = totalCachedTokens; + return this; + } + + /** + * Number of tokens in the prompt (context). + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalInputTokens() { + return totalInputTokens; + } + + /** + * Number of tokens in the prompt (context). + * @param totalInputTokens totalInputTokens or {@code null} for none + */ + public GenaiInteractionUsage setTotalInputTokens(java.lang.Integer totalInputTokens) { + this.totalInputTokens = totalInputTokens; + return this; + } + + /** + * Total number of LLM model invocations executed during the interaction turn (including retries + * and multi-step tool loop calls). + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalModelInvocations() { + return totalModelInvocations; + } + + /** + * Total number of LLM model invocations executed during the interaction turn (including retries + * and multi-step tool loop calls). + * @param totalModelInvocations totalModelInvocations or {@code null} for none + */ + public GenaiInteractionUsage setTotalModelInvocations(java.lang.Integer totalModelInvocations) { + this.totalModelInvocations = totalModelInvocations; + return this; + } + + /** + * Total number of tokens across all the generated responses. + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalOutputTokens() { + return totalOutputTokens; + } + + /** + * Total number of tokens across all the generated responses. + * @param totalOutputTokens totalOutputTokens or {@code null} for none + */ + public GenaiInteractionUsage setTotalOutputTokens(java.lang.Integer totalOutputTokens) { + this.totalOutputTokens = totalOutputTokens; + return this; + } + + /** + * Number of tokens of thoughts for thinking models. + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalThoughtTokens() { + return totalThoughtTokens; + } + + /** + * Number of tokens of thoughts for thinking models. + * @param totalThoughtTokens totalThoughtTokens or {@code null} for none + */ + public GenaiInteractionUsage setTotalThoughtTokens(java.lang.Integer totalThoughtTokens) { + this.totalThoughtTokens = totalThoughtTokens; + return this; + } + + /** + * Total token count for the interaction request (prompt + responses + other internal tokens). + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalTokens() { + return totalTokens; + } + + /** + * Total token count for the interaction request (prompt + responses + other internal tokens). + * @param totalTokens totalTokens or {@code null} for none + */ + public GenaiInteractionUsage setTotalTokens(java.lang.Integer totalTokens) { + this.totalTokens = totalTokens; + return this; + } + + /** + * Number of tokens present in tool-use prompt(s). + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalToolUseTokens() { + return totalToolUseTokens; + } + + /** + * Number of tokens present in tool-use prompt(s). + * @param totalToolUseTokens totalToolUseTokens or {@code null} for none + */ + public GenaiInteractionUsage setTotalToolUseTokens(java.lang.Integer totalToolUseTokens) { + this.totalToolUseTokens = totalToolUseTokens; + return this; + } + + @Override + public GenaiInteractionUsage set(String fieldName, Object value) { + return (GenaiInteractionUsage) super.set(fieldName, value); + } + + @Override + public GenaiInteractionUsage clone() { + return (GenaiInteractionUsage) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiInteractionUsageBillableUsage.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiInteractionUsageBillableUsage.java new file mode 100644 index 00000000000..cf369e2120d --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiInteractionUsageBillableUsage.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.aiplatform.v1beta1.model; + +/** + * Accumulated billable token usage across all continuation calls. + * + *

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 Platform 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 GenaiInteractionUsageBillableUsage extends com.google.api.client.json.GenericJson { + + /** + * Total billable cached tokens across all continuation calls. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalCachedTokens; + + /** + * Total billable input tokens across all continuation calls. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalInputTokens; + + /** + * Total billable output tokens across all continuation calls. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalOutputTokens; + + /** + * Total billable thought tokens across all continuation calls. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalThoughtTokens; + + /** + * Total billable token count across all continuation calls. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalTokens; + + /** + * Total billable cached tokens across all continuation calls. + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalCachedTokens() { + return totalCachedTokens; + } + + /** + * Total billable cached tokens across all continuation calls. + * @param totalCachedTokens totalCachedTokens or {@code null} for none + */ + public GenaiInteractionUsageBillableUsage setTotalCachedTokens(java.lang.Integer totalCachedTokens) { + this.totalCachedTokens = totalCachedTokens; + return this; + } + + /** + * Total billable input tokens across all continuation calls. + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalInputTokens() { + return totalInputTokens; + } + + /** + * Total billable input tokens across all continuation calls. + * @param totalInputTokens totalInputTokens or {@code null} for none + */ + public GenaiInteractionUsageBillableUsage setTotalInputTokens(java.lang.Integer totalInputTokens) { + this.totalInputTokens = totalInputTokens; + return this; + } + + /** + * Total billable output tokens across all continuation calls. + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalOutputTokens() { + return totalOutputTokens; + } + + /** + * Total billable output tokens across all continuation calls. + * @param totalOutputTokens totalOutputTokens or {@code null} for none + */ + public GenaiInteractionUsageBillableUsage setTotalOutputTokens(java.lang.Integer totalOutputTokens) { + this.totalOutputTokens = totalOutputTokens; + return this; + } + + /** + * Total billable thought tokens across all continuation calls. + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalThoughtTokens() { + return totalThoughtTokens; + } + + /** + * Total billable thought tokens across all continuation calls. + * @param totalThoughtTokens totalThoughtTokens or {@code null} for none + */ + public GenaiInteractionUsageBillableUsage setTotalThoughtTokens(java.lang.Integer totalThoughtTokens) { + this.totalThoughtTokens = totalThoughtTokens; + return this; + } + + /** + * Total billable token count across all continuation calls. + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalTokens() { + return totalTokens; + } + + /** + * Total billable token count across all continuation calls. + * @param totalTokens totalTokens or {@code null} for none + */ + public GenaiInteractionUsageBillableUsage setTotalTokens(java.lang.Integer totalTokens) { + this.totalTokens = totalTokens; + return this; + } + + @Override + public GenaiInteractionUsageBillableUsage set(String fieldName, Object value) { + return (GenaiInteractionUsageBillableUsage) super.set(fieldName, value); + } + + @Override + public GenaiInteractionUsageBillableUsage clone() { + return (GenaiInteractionUsageBillableUsage) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiInteractionUsageCompactionUsageMetadata.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiInteractionUsageCompactionUsageMetadata.java new file mode 100644 index 00000000000..4a8ed3f65b4 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiInteractionUsageCompactionUsageMetadata.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.aiplatform.v1beta1.model; + +/** + * Token usage metadata for context compaction. + * + *

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 Platform 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 GenaiInteractionUsageCompactionUsageMetadata extends com.google.api.client.json.GenericJson { + + /** + * Number of tokens processed in the compaction input. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer inputTokenCount; + + /** + * Number of tokens generated in the compaction output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer outputTokenCount; + + /** + * Estimated total token count of the conversation context after compaction. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long postcompactionTokenCount; + + /** + * Number of conversation steps (user turns) before compaction. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer precompactionStepCount; + + /** + * Estimated total token count of the conversation context before compaction. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long precompactionTokenCount; + + /** + * Number of tokens processed in the compaction input. + * @return value or {@code null} for none + */ + public java.lang.Integer getInputTokenCount() { + return inputTokenCount; + } + + /** + * Number of tokens processed in the compaction input. + * @param inputTokenCount inputTokenCount or {@code null} for none + */ + public GenaiInteractionUsageCompactionUsageMetadata setInputTokenCount(java.lang.Integer inputTokenCount) { + this.inputTokenCount = inputTokenCount; + return this; + } + + /** + * Number of tokens generated in the compaction output. + * @return value or {@code null} for none + */ + public java.lang.Integer getOutputTokenCount() { + return outputTokenCount; + } + + /** + * Number of tokens generated in the compaction output. + * @param outputTokenCount outputTokenCount or {@code null} for none + */ + public GenaiInteractionUsageCompactionUsageMetadata setOutputTokenCount(java.lang.Integer outputTokenCount) { + this.outputTokenCount = outputTokenCount; + return this; + } + + /** + * Estimated total token count of the conversation context after compaction. + * @return value or {@code null} for none + */ + public java.lang.Long getPostcompactionTokenCount() { + return postcompactionTokenCount; + } + + /** + * Estimated total token count of the conversation context after compaction. + * @param postcompactionTokenCount postcompactionTokenCount or {@code null} for none + */ + public GenaiInteractionUsageCompactionUsageMetadata setPostcompactionTokenCount(java.lang.Long postcompactionTokenCount) { + this.postcompactionTokenCount = postcompactionTokenCount; + return this; + } + + /** + * Number of conversation steps (user turns) before compaction. + * @return value or {@code null} for none + */ + public java.lang.Integer getPrecompactionStepCount() { + return precompactionStepCount; + } + + /** + * Number of conversation steps (user turns) before compaction. + * @param precompactionStepCount precompactionStepCount or {@code null} for none + */ + public GenaiInteractionUsageCompactionUsageMetadata setPrecompactionStepCount(java.lang.Integer precompactionStepCount) { + this.precompactionStepCount = precompactionStepCount; + return this; + } + + /** + * Estimated total token count of the conversation context before compaction. + * @return value or {@code null} for none + */ + public java.lang.Long getPrecompactionTokenCount() { + return precompactionTokenCount; + } + + /** + * Estimated total token count of the conversation context before compaction. + * @param precompactionTokenCount precompactionTokenCount or {@code null} for none + */ + public GenaiInteractionUsageCompactionUsageMetadata setPrecompactionTokenCount(java.lang.Long precompactionTokenCount) { + this.precompactionTokenCount = precompactionTokenCount; + return this; + } + + @Override + public GenaiInteractionUsageCompactionUsageMetadata set(String fieldName, Object value) { + return (GenaiInteractionUsageCompactionUsageMetadata) super.set(fieldName, value); + } + + @Override + public GenaiInteractionUsageCompactionUsageMetadata clone() { + return (GenaiInteractionUsageCompactionUsageMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiInteractionUsageGroundingToolCount.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiInteractionUsageGroundingToolCount.java new file mode 100644 index 00000000000..941bcd54314 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiInteractionUsageGroundingToolCount.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.aiplatform.v1beta1.model; + +/** + * The number of grounding tool counts. + * + *

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 Platform 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 GenaiInteractionUsageGroundingToolCount extends com.google.api.client.json.GenericJson { + + /** + * The number of grounding tool counts. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer count; + + /** + * Number of unique search queries generated by the model for this tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer searchQueryCount; + + /** + * The grounding tool type associated with the count. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * The number of grounding tool counts. + * @return value or {@code null} for none + */ + public java.lang.Integer getCount() { + return count; + } + + /** + * The number of grounding tool counts. + * @param count count or {@code null} for none + */ + public GenaiInteractionUsageGroundingToolCount setCount(java.lang.Integer count) { + this.count = count; + return this; + } + + /** + * Number of unique search queries generated by the model for this tool. + * @return value or {@code null} for none + */ + public java.lang.Integer getSearchQueryCount() { + return searchQueryCount; + } + + /** + * Number of unique search queries generated by the model for this tool. + * @param searchQueryCount searchQueryCount or {@code null} for none + */ + public GenaiInteractionUsageGroundingToolCount setSearchQueryCount(java.lang.Integer searchQueryCount) { + this.searchQueryCount = searchQueryCount; + return this; + } + + /** + * The grounding tool type associated with the count. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * The grounding tool type associated with the count. + * @param type type or {@code null} for none + */ + public GenaiInteractionUsageGroundingToolCount setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public GenaiInteractionUsageGroundingToolCount set(String fieldName, Object value) { + return (GenaiInteractionUsageGroundingToolCount) super.set(fieldName, value); + } + + @Override + public GenaiInteractionUsageGroundingToolCount clone() { + return (GenaiInteractionUsageGroundingToolCount) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiInteractionUsageModalityTokens.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiInteractionUsageModalityTokens.java new file mode 100644 index 00000000000..f2c0ac5140b --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiInteractionUsageModalityTokens.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.aiplatform.v1beta1.model; + +/** + * The token count for a single response modality. + * + *

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 Platform 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 GenaiInteractionUsageModalityTokens extends com.google.api.client.json.GenericJson { + + /** + * The modality associated with the token count. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String modality; + + /** + * Number of tokens for the modality. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer tokens; + + /** + * The modality associated with the token count. + * @return value or {@code null} for none + */ + public java.lang.String getModality() { + return modality; + } + + /** + * The modality associated with the token count. + * @param modality modality or {@code null} for none + */ + public GenaiInteractionUsageModalityTokens setModality(java.lang.String modality) { + this.modality = modality; + return this; + } + + /** + * Number of tokens for the modality. + * @return value or {@code null} for none + */ + public java.lang.Integer getTokens() { + return tokens; + } + + /** + * Number of tokens for the modality. + * @param tokens tokens or {@code null} for none + */ + public GenaiInteractionUsageModalityTokens setTokens(java.lang.Integer tokens) { + this.tokens = tokens; + return this; + } + + @Override + public GenaiInteractionUsageModalityTokens set(String fieldName, Object value) { + return (GenaiInteractionUsageModalityTokens) super.set(fieldName, value); + } + + @Override + public GenaiInteractionUsageModalityTokens clone() { + return (GenaiInteractionUsageModalityTokens) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiInteractionUsageModelInvocationTokenCounts.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiInteractionUsageModelInvocationTokenCounts.java new file mode 100644 index 00000000000..b93f62e2ecf --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiInteractionUsageModelInvocationTokenCounts.java @@ -0,0 +1,182 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Token count breakdown for a single model invocation (main model only) within a request. For + * simple requests without tool use, there is a single invocation. For requests with server-side + * tool use, there is one invocation per tool-use iteration. + * + *

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 Platform 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 GenaiInteractionUsageModelInvocationTokenCounts extends com.google.api.client.json.GenericJson { + + /** + * Per-modality breakdown of cached tokens within this invocation's prompt. Cached tokens are + * discounted for billing (priced at the cache rate, not the full input rate). This is a subset of + * prompt_tokens_details. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List cacheTokensDetails; + + static { + // hack to force ProGuard to consider GenaiInteractionUsageModalityTokens used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiInteractionUsageModalityTokens.class); + } + + /** + * Per-modality breakdown of response tokens for this invocation. Includes the model's text + * output, function calls, or final answer. Does not include thought tokens. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List candidatesTokensDetails; + + static { + // hack to force ProGuard to consider GenaiInteractionUsageModalityTokens used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiInteractionUsageModalityTokens.class); + } + + /** + * Per-modality breakdown of prompt tokens for this invocation. Includes all tokens sent to the + * model: user content, system instructions, formatting/control tokens, tool declarations, and any + * previous-turn context accumulated during tool use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List promptTokensDetails; + + static { + // hack to force ProGuard to consider GenaiInteractionUsageModalityTokens used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiInteractionUsageModalityTokens.class); + } + + /** + * Per-modality breakdown of thought tokens for this invocation (for thinking models). Includes + * auxiliary control tokens produced by the model that delimit thought blocks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List thoughtsTokensDetails; + + static { + // hack to force ProGuard to consider GenaiInteractionUsageModalityTokens used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiInteractionUsageModalityTokens.class); + } + + /** + * Per-modality breakdown of cached tokens within this invocation's prompt. Cached tokens are + * discounted for billing (priced at the cache rate, not the full input rate). This is a subset of + * prompt_tokens_details. + * @return value or {@code null} for none + */ + public java.util.List getCacheTokensDetails() { + return cacheTokensDetails; + } + + /** + * Per-modality breakdown of cached tokens within this invocation's prompt. Cached tokens are + * discounted for billing (priced at the cache rate, not the full input rate). This is a subset of + * prompt_tokens_details. + * @param cacheTokensDetails cacheTokensDetails or {@code null} for none + */ + public GenaiInteractionUsageModelInvocationTokenCounts setCacheTokensDetails(java.util.List cacheTokensDetails) { + this.cacheTokensDetails = cacheTokensDetails; + return this; + } + + /** + * Per-modality breakdown of response tokens for this invocation. Includes the model's text + * output, function calls, or final answer. Does not include thought tokens. + * @return value or {@code null} for none + */ + public java.util.List getCandidatesTokensDetails() { + return candidatesTokensDetails; + } + + /** + * Per-modality breakdown of response tokens for this invocation. Includes the model's text + * output, function calls, or final answer. Does not include thought tokens. + * @param candidatesTokensDetails candidatesTokensDetails or {@code null} for none + */ + public GenaiInteractionUsageModelInvocationTokenCounts setCandidatesTokensDetails(java.util.List candidatesTokensDetails) { + this.candidatesTokensDetails = candidatesTokensDetails; + return this; + } + + /** + * Per-modality breakdown of prompt tokens for this invocation. Includes all tokens sent to the + * model: user content, system instructions, formatting/control tokens, tool declarations, and any + * previous-turn context accumulated during tool use. + * @return value or {@code null} for none + */ + public java.util.List getPromptTokensDetails() { + return promptTokensDetails; + } + + /** + * Per-modality breakdown of prompt tokens for this invocation. Includes all tokens sent to the + * model: user content, system instructions, formatting/control tokens, tool declarations, and any + * previous-turn context accumulated during tool use. + * @param promptTokensDetails promptTokensDetails or {@code null} for none + */ + public GenaiInteractionUsageModelInvocationTokenCounts setPromptTokensDetails(java.util.List promptTokensDetails) { + this.promptTokensDetails = promptTokensDetails; + return this; + } + + /** + * Per-modality breakdown of thought tokens for this invocation (for thinking models). Includes + * auxiliary control tokens produced by the model that delimit thought blocks. + * @return value or {@code null} for none + */ + public java.util.List getThoughtsTokensDetails() { + return thoughtsTokensDetails; + } + + /** + * Per-modality breakdown of thought tokens for this invocation (for thinking models). Includes + * auxiliary control tokens produced by the model that delimit thought blocks. + * @param thoughtsTokensDetails thoughtsTokensDetails or {@code null} for none + */ + public GenaiInteractionUsageModelInvocationTokenCounts setThoughtsTokensDetails(java.util.List thoughtsTokensDetails) { + this.thoughtsTokensDetails = thoughtsTokensDetails; + return this; + } + + @Override + public GenaiInteractionUsageModelInvocationTokenCounts set(String fieldName, Object value) { + return (GenaiInteractionUsageModelInvocationTokenCounts) super.set(fieldName, value); + } + + @Override + public GenaiInteractionUsageModelInvocationTokenCounts clone() { + return (GenaiInteractionUsageModelInvocationTokenCounts) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiInteractionUsageToolCallUsage.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiInteractionUsageToolCallUsage.java new file mode 100644 index 00000000000..60b6d0fd5c3 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiInteractionUsageToolCallUsage.java @@ -0,0 +1,138 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * Usage statistics for one tool, aggregated over the interaction. + * + *

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 Platform 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 GenaiInteractionUsageToolCallUsage extends com.google.api.client.json.GenericJson { + + /** + * The function name as declared in the request. Set only when `tool_type` is TOOL_TYPE_FUNCTION; + * empty for all other tool types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Of `tool_call_count`, calls dispatched to and run by the server, whether or not they succeeded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer serverExecutedCount; + + /** + * Number of calls to this tool that the model generated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer toolCallCount; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String toolType; + + /** + * The function name as declared in the request. Set only when `tool_type` is TOOL_TYPE_FUNCTION; + * empty for all other tool types. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The function name as declared in the request. Set only when `tool_type` is TOOL_TYPE_FUNCTION; + * empty for all other tool types. + * @param name name or {@code null} for none + */ + public GenaiInteractionUsageToolCallUsage setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Of `tool_call_count`, calls dispatched to and run by the server, whether or not they succeeded. + * @return value or {@code null} for none + */ + public java.lang.Integer getServerExecutedCount() { + return serverExecutedCount; + } + + /** + * Of `tool_call_count`, calls dispatched to and run by the server, whether or not they succeeded. + * @param serverExecutedCount serverExecutedCount or {@code null} for none + */ + public GenaiInteractionUsageToolCallUsage setServerExecutedCount(java.lang.Integer serverExecutedCount) { + this.serverExecutedCount = serverExecutedCount; + return this; + } + + /** + * Number of calls to this tool that the model generated. + * @return value or {@code null} for none + */ + public java.lang.Integer getToolCallCount() { + return toolCallCount; + } + + /** + * Number of calls to this tool that the model generated. + * @param toolCallCount toolCallCount or {@code null} for none + */ + public GenaiInteractionUsageToolCallUsage setToolCallCount(java.lang.Integer toolCallCount) { + this.toolCallCount = toolCallCount; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getToolType() { + return toolType; + } + + /** + * @param toolType toolType or {@code null} for none + */ + public GenaiInteractionUsageToolCallUsage setToolType(java.lang.String toolType) { + this.toolType = toolType; + return this; + } + + @Override + public GenaiInteractionUsageToolCallUsage set(String fieldName, Object value) { + return (GenaiInteractionUsageToolCallUsage) super.set(fieldName, value); + } + + @Override + public GenaiInteractionUsageToolCallUsage clone() { + return (GenaiInteractionUsageToolCallUsage) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiListValue.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiListValue.java new file mode 100644 index 00000000000..98d15c0c92c --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiListValue.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * `ListValue` is a wrapper around a repeated field of values. + * + *

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 Platform 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 GenaiListValue extends com.google.api.client.json.GenericJson { + + /** + * Repeated field of dynamically typed values. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List values; + + /** + * Repeated field of dynamically typed values. + * @return value or {@code null} for none + */ + public java.util.List getValues() { + return values; + } + + /** + * Repeated field of dynamically typed values. + * @param values values or {@code null} for none + */ + public GenaiListValue setValues(java.util.List values) { + this.values = values; + return this; + } + + @Override + public GenaiListValue set(String fieldName, Object value) { + return (GenaiListValue) super.set(fieldName, value); + } + + @Override + public GenaiListValue clone() { + return (GenaiListValue) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiLocalEnvironmentConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiLocalEnvironmentConfig.java new file mode 100644 index 00000000000..78ca3875f94 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiLocalEnvironmentConfig.java @@ -0,0 +1,50 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Configuration for an environment that lives on the client connection rather than in a server- + * managed sandbox. When set (via Interaction.local_environment), the agent's filesystem and shell + * are treated as living on the client: the agent's built-in environment operations (e.g. + * reading/listing/editing files and running commands) are suspended on the server and yielded back + * to the client to execute, with their results returned on a subsequent turn. This is mutually + * exclusive with a server-managed `EnvironmentConfig` (remote_environment), since the environment + * is either on the client or in a server sandbox, never both. This governs only the agent's built- + * in environment. Client-declared function tools are always executed on the client regardless of + * this field. + * + *

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 Platform 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 GenaiLocalEnvironmentConfig extends com.google.api.client.json.GenericJson { + + @Override + public GenaiLocalEnvironmentConfig set(String fieldName, Object value) { + return (GenaiLocalEnvironmentConfig) super.set(fieldName, value); + } + + @Override + public GenaiLocalEnvironmentConfig clone() { + return (GenaiLocalEnvironmentConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiMcpServerToolCallDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiMcpServerToolCallDelta.java new file mode 100644 index 00000000000..277bf683341 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiMcpServerToolCallDelta.java @@ -0,0 +1,105 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiMcpServerToolCallDelta. + * + *

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 Platform 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 GenaiMcpServerToolCallDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiStruct arguments; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serverName; + + /** + * @return value or {@code null} for none + */ + public GenaiStruct getArguments() { + return arguments; + } + + /** + * @param arguments arguments or {@code null} for none + */ + public GenaiMcpServerToolCallDelta setArguments(GenaiStruct arguments) { + this.arguments = arguments; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * @param name name or {@code null} for none + */ + public GenaiMcpServerToolCallDelta setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getServerName() { + return serverName; + } + + /** + * @param serverName serverName or {@code null} for none + */ + public GenaiMcpServerToolCallDelta setServerName(java.lang.String serverName) { + this.serverName = serverName; + return this; + } + + @Override + public GenaiMcpServerToolCallDelta set(String fieldName, Object value) { + return (GenaiMcpServerToolCallDelta) super.set(fieldName, value); + } + + @Override + public GenaiMcpServerToolCallDelta clone() { + return (GenaiMcpServerToolCallDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiMcpServerToolCallStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiMcpServerToolCallStep.java new file mode 100644 index 00000000000..1aca067c70f --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiMcpServerToolCallStep.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.aiplatform.v1beta1.model; + +/** + * MCPServer tool call step. + * + *

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 Platform 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 GenaiMcpServerToolCallStep extends com.google.api.client.json.GenericJson { + + /** + * Required. The JSON object of arguments for the function. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiStruct arguments; + + /** + * Required. The name of the tool which was called. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The name of the used MCP server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serverName; + + /** + * Required. The JSON object of arguments for the function. + * @return value or {@code null} for none + */ + public GenaiStruct getArguments() { + return arguments; + } + + /** + * Required. The JSON object of arguments for the function. + * @param arguments arguments or {@code null} for none + */ + public GenaiMcpServerToolCallStep setArguments(GenaiStruct arguments) { + this.arguments = arguments; + return this; + } + + /** + * Required. The name of the tool which was called. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the tool which was called. + * @param name name or {@code null} for none + */ + public GenaiMcpServerToolCallStep setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Required. The name of the used MCP server. + * @return value or {@code null} for none + */ + public java.lang.String getServerName() { + return serverName; + } + + /** + * Required. The name of the used MCP server. + * @param serverName serverName or {@code null} for none + */ + public GenaiMcpServerToolCallStep setServerName(java.lang.String serverName) { + this.serverName = serverName; + return this; + } + + @Override + public GenaiMcpServerToolCallStep set(String fieldName, Object value) { + return (GenaiMcpServerToolCallStep) super.set(fieldName, value); + } + + @Override + public GenaiMcpServerToolCallStep clone() { + return (GenaiMcpServerToolCallStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiMcpServerToolResultDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiMcpServerToolResultDelta.java new file mode 100644 index 00000000000..a38d50b735c --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiMcpServerToolResultDelta.java @@ -0,0 +1,105 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiMcpServerToolResultDelta. + * + *

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 Platform 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 GenaiMcpServerToolResultDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiValue result; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serverName; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * @param name name or {@code null} for none + */ + public GenaiMcpServerToolResultDelta setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiValue getResult() { + return result; + } + + /** + * @param result result or {@code null} for none + */ + public GenaiMcpServerToolResultDelta setResult(GenaiValue result) { + this.result = result; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getServerName() { + return serverName; + } + + /** + * @param serverName serverName or {@code null} for none + */ + public GenaiMcpServerToolResultDelta setServerName(java.lang.String serverName) { + this.serverName = serverName; + return this; + } + + @Override + public GenaiMcpServerToolResultDelta set(String fieldName, Object value) { + return (GenaiMcpServerToolResultDelta) super.set(fieldName, value); + } + + @Override + public GenaiMcpServerToolResultDelta clone() { + return (GenaiMcpServerToolResultDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiMcpServerToolResultStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiMcpServerToolResultStep.java new file mode 100644 index 00000000000..4f3d1207c53 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiMcpServerToolResultStep.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.aiplatform.v1beta1.model; + +/** + * MCPServer tool result step. + * + *

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 Platform 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 GenaiMcpServerToolResultStep extends com.google.api.client.json.GenericJson { + + /** + * Name of the tool which is called for this specific tool call. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The output from the MCP server call. Can be simple text or rich content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiValue result; + + /** + * The name of the used MCP server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serverName; + + /** + * Name of the tool which is called for this specific tool call. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the tool which is called for this specific tool call. + * @param name name or {@code null} for none + */ + public GenaiMcpServerToolResultStep setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Required. The output from the MCP server call. Can be simple text or rich content. + * @return value or {@code null} for none + */ + public GenaiValue getResult() { + return result; + } + + /** + * Required. The output from the MCP server call. Can be simple text or rich content. + * @param result result or {@code null} for none + */ + public GenaiMcpServerToolResultStep setResult(GenaiValue result) { + this.result = result; + return this; + } + + /** + * The name of the used MCP server. + * @return value or {@code null} for none + */ + public java.lang.String getServerName() { + return serverName; + } + + /** + * The name of the used MCP server. + * @param serverName serverName or {@code null} for none + */ + public GenaiMcpServerToolResultStep setServerName(java.lang.String serverName) { + this.serverName = serverName; + return this; + } + + @Override + public GenaiMcpServerToolResultStep set(String fieldName, Object value) { + return (GenaiMcpServerToolResultStep) super.set(fieldName, value); + } + + @Override + public GenaiMcpServerToolResultStep clone() { + return (GenaiMcpServerToolResultStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiModelOutputStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiModelOutputStep.java new file mode 100644 index 00000000000..6bfcc6fa0fc --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiModelOutputStep.java @@ -0,0 +1,93 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Output generated by the model. + * + *

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 Platform 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 GenaiModelOutputStep extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List content; + + static { + // hack to force ProGuard to consider GenaiContent used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiContent.class); + } + + /** + * The error result of the operation in case of failure or cancellation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleRpcStatus error; + + /** + * @return value or {@code null} for none + */ + public java.util.List getContent() { + return content; + } + + /** + * @param content content or {@code null} for none + */ + public GenaiModelOutputStep setContent(java.util.List content) { + this.content = content; + return this; + } + + /** + * The error result of the operation in case of failure or cancellation. + * @return value or {@code null} for none + */ + public GoogleRpcStatus getError() { + return error; + } + + /** + * The error result of the operation in case of failure or cancellation. + * @param error error or {@code null} for none + */ + public GenaiModelOutputStep setError(GoogleRpcStatus error) { + this.error = error; + return this; + } + + @Override + public GenaiModelOutputStep set(String fieldName, Object value) { + return (GenaiModelOutputStep) super.set(fieldName, value); + } + + @Override + public GenaiModelOutputStep clone() { + return (GenaiModelOutputStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiPlaceCitation.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiPlaceCitation.java new file mode 100644 index 00000000000..a6f4cfa0da7 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiPlaceCitation.java @@ -0,0 +1,141 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A place citation annotation. + * + *

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 Platform 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 GenaiPlaceCitation extends com.google.api.client.json.GenericJson { + + /** + * Title of the place. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The ID of the place, in `places/{place_id}` format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String placeId; + + /** + * Snippets of reviews that are used to generate answers about the features of a given place in + * Google Maps. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List reviewSnippets; + + /** + * URI reference of the place. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * Title of the place. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Title of the place. + * @param name name or {@code null} for none + */ + public GenaiPlaceCitation setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The ID of the place, in `places/{place_id}` format. + * @return value or {@code null} for none + */ + public java.lang.String getPlaceId() { + return placeId; + } + + /** + * The ID of the place, in `places/{place_id}` format. + * @param placeId placeId or {@code null} for none + */ + public GenaiPlaceCitation setPlaceId(java.lang.String placeId) { + this.placeId = placeId; + return this; + } + + /** + * Snippets of reviews that are used to generate answers about the features of a given place in + * Google Maps. + * @return value or {@code null} for none + */ + public java.util.List getReviewSnippets() { + return reviewSnippets; + } + + /** + * Snippets of reviews that are used to generate answers about the features of a given place in + * Google Maps. + * @param reviewSnippets reviewSnippets or {@code null} for none + */ + public GenaiPlaceCitation setReviewSnippets(java.util.List reviewSnippets) { + this.reviewSnippets = reviewSnippets; + return this; + } + + /** + * URI reference of the place. + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * URI reference of the place. + * @param url url or {@code null} for none + */ + public GenaiPlaceCitation setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public GenaiPlaceCitation set(String fieldName, Object value) { + return (GenaiPlaceCitation) super.set(fieldName, value); + } + + @Override + public GenaiPlaceCitation clone() { + return (GenaiPlaceCitation) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiProcessingCallDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiProcessingCallDelta.java new file mode 100644 index 00000000000..f97fe3d0f58 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiProcessingCallDelta.java @@ -0,0 +1,42 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Streaming delta for a server-initiated media processing step. + * + *

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 Platform 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 GenaiProcessingCallDelta extends com.google.api.client.json.GenericJson { + + @Override + public GenaiProcessingCallDelta set(String fieldName, Object value) { + return (GenaiProcessingCallDelta) super.set(fieldName, value); + } + + @Override + public GenaiProcessingCallDelta clone() { + return (GenaiProcessingCallDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiProcessingCallStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiProcessingCallStep.java new file mode 100644 index 00000000000..a5309a048a1 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiProcessingCallStep.java @@ -0,0 +1,42 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A server-initiated processing step for media analysis (e.g. video understanding). + * + *

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 Platform 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 GenaiProcessingCallStep extends com.google.api.client.json.GenericJson { + + @Override + public GenaiProcessingCallStep set(String fieldName, Object value) { + return (GenaiProcessingCallStep) super.set(fieldName, value); + } + + @Override + public GenaiProcessingCallStep clone() { + return (GenaiProcessingCallStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiProcessingResultDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiProcessingResultDelta.java new file mode 100644 index 00000000000..159155d3326 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiProcessingResultDelta.java @@ -0,0 +1,42 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Streaming delta for the result of a server-initiated media processing step. + * + *

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 Platform 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 GenaiProcessingResultDelta extends com.google.api.client.json.GenericJson { + + @Override + public GenaiProcessingResultDelta set(String fieldName, Object value) { + return (GenaiProcessingResultDelta) super.set(fieldName, value); + } + + @Override + public GenaiProcessingResultDelta clone() { + return (GenaiProcessingResultDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiProcessingResultStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiProcessingResultStep.java new file mode 100644 index 00000000000..944c551248f --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiProcessingResultStep.java @@ -0,0 +1,42 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * The result of a server-initiated media processing step. + * + *

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 Platform 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 GenaiProcessingResultStep extends com.google.api.client.json.GenericJson { + + @Override + public GenaiProcessingResultStep set(String fieldName, Object value) { + return (GenaiProcessingResultStep) super.set(fieldName, value); + } + + @Override + public GenaiProcessingResultStep clone() { + return (GenaiProcessingResultStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiResponseFormat.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiResponseFormat.java new file mode 100644 index 00000000000..e8f42d34079 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiResponseFormat.java @@ -0,0 +1,150 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiResponseFormat. + * + *

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 Platform 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 GenaiResponseFormat extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiAudioResponseFormat audio; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiImageResponseFormat image; + + /** + * Multi-discriminator values is already enabled in GAOS + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiStruct structValue; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiTextResponseFormat text; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVideoResponseFormat video; + + /** + * @return value or {@code null} for none + */ + public GenaiAudioResponseFormat getAudio() { + return audio; + } + + /** + * @param audio audio or {@code null} for none + */ + public GenaiResponseFormat setAudio(GenaiAudioResponseFormat audio) { + this.audio = audio; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiImageResponseFormat getImage() { + return image; + } + + /** + * @param image image or {@code null} for none + */ + public GenaiResponseFormat setImage(GenaiImageResponseFormat image) { + this.image = image; + return this; + } + + /** + * Multi-discriminator values is already enabled in GAOS + * @return value or {@code null} for none + */ + public GenaiStruct getStructValue() { + return structValue; + } + + /** + * Multi-discriminator values is already enabled in GAOS + * @param structValue structValue or {@code null} for none + */ + public GenaiResponseFormat setStructValue(GenaiStruct structValue) { + this.structValue = structValue; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiTextResponseFormat getText() { + return text; + } + + /** + * @param text text or {@code null} for none + */ + public GenaiResponseFormat setText(GenaiTextResponseFormat text) { + this.text = text; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVideoResponseFormat getVideo() { + return video; + } + + /** + * @param video video or {@code null} for none + */ + public GenaiResponseFormat setVideo(GenaiVideoResponseFormat video) { + this.video = video; + return this; + } + + @Override + public GenaiResponseFormat set(String fieldName, Object value) { + return (GenaiResponseFormat) super.set(fieldName, value); + } + + @Override + public GenaiResponseFormat clone() { + return (GenaiResponseFormat) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiRetrievalCallDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiRetrievalCallDelta.java new file mode 100644 index 00000000000..f5fabcf0106 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiRetrievalCallDelta.java @@ -0,0 +1,91 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search, etc. RetrievalType + * decides which tool is used. + * + *

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 Platform 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 GenaiRetrievalCallDelta extends com.google.api.client.json.GenericJson { + + /** + * Required. The arguments to pass to the Retrieval tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiRetrievalCallStepRetrievalStepArguments arguments; + + /** + * The type of retrieval tools. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String retrievalType; + + /** + * Required. The arguments to pass to the Retrieval tool. + * @return value or {@code null} for none + */ + public GenaiRetrievalCallStepRetrievalStepArguments getArguments() { + return arguments; + } + + /** + * Required. The arguments to pass to the Retrieval tool. + * @param arguments arguments or {@code null} for none + */ + public GenaiRetrievalCallDelta setArguments(GenaiRetrievalCallStepRetrievalStepArguments arguments) { + this.arguments = arguments; + return this; + } + + /** + * The type of retrieval tools. + * @return value or {@code null} for none + */ + public java.lang.String getRetrievalType() { + return retrievalType; + } + + /** + * The type of retrieval tools. + * @param retrievalType retrievalType or {@code null} for none + */ + public GenaiRetrievalCallDelta setRetrievalType(java.lang.String retrievalType) { + this.retrievalType = retrievalType; + return this; + } + + @Override + public GenaiRetrievalCallDelta set(String fieldName, Object value) { + return (GenaiRetrievalCallDelta) super.set(fieldName, value); + } + + @Override + public GenaiRetrievalCallDelta clone() { + return (GenaiRetrievalCallDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiRetrievalCallStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiRetrievalCallStep.java new file mode 100644 index 00000000000..2ea106d83d3 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiRetrievalCallStep.java @@ -0,0 +1,91 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Retrieval call step. Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI + * Search, etc. RetrievalType decides which tool is used. + * + *

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 Platform 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 GenaiRetrievalCallStep extends com.google.api.client.json.GenericJson { + + /** + * Required. The arguments to pass to the retrieval tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiRetrievalCallStepRetrievalStepArguments arguments; + + /** + * The type of retrieval tools. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String retrievalType; + + /** + * Required. The arguments to pass to the retrieval tool. + * @return value or {@code null} for none + */ + public GenaiRetrievalCallStepRetrievalStepArguments getArguments() { + return arguments; + } + + /** + * Required. The arguments to pass to the retrieval tool. + * @param arguments arguments or {@code null} for none + */ + public GenaiRetrievalCallStep setArguments(GenaiRetrievalCallStepRetrievalStepArguments arguments) { + this.arguments = arguments; + return this; + } + + /** + * The type of retrieval tools. + * @return value or {@code null} for none + */ + public java.lang.String getRetrievalType() { + return retrievalType; + } + + /** + * The type of retrieval tools. + * @param retrievalType retrievalType or {@code null} for none + */ + public GenaiRetrievalCallStep setRetrievalType(java.lang.String retrievalType) { + this.retrievalType = retrievalType; + return this; + } + + @Override + public GenaiRetrievalCallStep set(String fieldName, Object value) { + return (GenaiRetrievalCallStep) super.set(fieldName, value); + } + + @Override + public GenaiRetrievalCallStep clone() { + return (GenaiRetrievalCallStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiRetrievalCallStepRetrievalStepArguments.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiRetrievalCallStepRetrievalStepArguments.java new file mode 100644 index 00000000000..f180f953d9e --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiRetrievalCallStepRetrievalStepArguments.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * The arguments to pass to Retrieval tools. + * + *

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 Platform 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 GenaiRetrievalCallStepRetrievalStepArguments extends com.google.api.client.json.GenericJson { + + /** + * Queries for Retrieval information. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List queries; + + /** + * Queries for Retrieval information. + * @return value or {@code null} for none + */ + public java.util.List getQueries() { + return queries; + } + + /** + * Queries for Retrieval information. + * @param queries queries or {@code null} for none + */ + public GenaiRetrievalCallStepRetrievalStepArguments setQueries(java.util.List queries) { + this.queries = queries; + return this; + } + + @Override + public GenaiRetrievalCallStepRetrievalStepArguments set(String fieldName, Object value) { + return (GenaiRetrievalCallStepRetrievalStepArguments) super.set(fieldName, value); + } + + @Override + public GenaiRetrievalCallStepRetrievalStepArguments clone() { + return (GenaiRetrievalCallStepRetrievalStepArguments) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiRetrievalResultDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiRetrievalResultDelta.java new file mode 100644 index 00000000000..c210ba9b22f --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiRetrievalResultDelta.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search, etc. + * + *

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 Platform 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 GenaiRetrievalResultDelta extends com.google.api.client.json.GenericJson { + + /** + * Whether the retrieval resulted in an error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isError; + + /** + * Whether the retrieval resulted in an error. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsError() { + return isError; + } + + /** + * Whether the retrieval resulted in an error. + * @param isError isError or {@code null} for none + */ + public GenaiRetrievalResultDelta setIsError(java.lang.Boolean isError) { + this.isError = isError; + return this; + } + + @Override + public GenaiRetrievalResultDelta set(String fieldName, Object value) { + return (GenaiRetrievalResultDelta) super.set(fieldName, value); + } + + @Override + public GenaiRetrievalResultDelta clone() { + return (GenaiRetrievalResultDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiRetrievalResultStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiRetrievalResultStep.java new file mode 100644 index 00000000000..a79a07a3210 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiRetrievalResultStep.java @@ -0,0 +1,67 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Vertex Retrieval result step. Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex + * AI Search, etc. + * + *

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 Platform 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 GenaiRetrievalResultStep extends com.google.api.client.json.GenericJson { + + /** + * Whether the retrieval resulted in an error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isError; + + /** + * Whether the retrieval resulted in an error. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsError() { + return isError; + } + + /** + * Whether the retrieval resulted in an error. + * @param isError isError or {@code null} for none + */ + public GenaiRetrievalResultStep setIsError(java.lang.Boolean isError) { + this.isError = isError; + return this; + } + + @Override + public GenaiRetrievalResultStep set(String fieldName, Object value) { + return (GenaiRetrievalResultStep) super.set(fieldName, value); + } + + @Override + public GenaiRetrievalResultStep clone() { + return (GenaiRetrievalResultStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiReviewSnippet.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiReviewSnippet.java new file mode 100644 index 00000000000..45ca01738a5 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiReviewSnippet.java @@ -0,0 +1,115 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Encapsulates a snippet of a user review that answers a question about the features of a specific + * place in Google Maps. + * + *

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 Platform 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 GenaiReviewSnippet extends com.google.api.client.json.GenericJson { + + /** + * The ID of the review snippet. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String reviewId; + + /** + * Title of the review. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * A link that corresponds to the user review on Google Maps. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * The ID of the review snippet. + * @return value or {@code null} for none + */ + public java.lang.String getReviewId() { + return reviewId; + } + + /** + * The ID of the review snippet. + * @param reviewId reviewId or {@code null} for none + */ + public GenaiReviewSnippet setReviewId(java.lang.String reviewId) { + this.reviewId = reviewId; + return this; + } + + /** + * Title of the review. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Title of the review. + * @param title title or {@code null} for none + */ + public GenaiReviewSnippet setTitle(java.lang.String title) { + this.title = title; + return this; + } + + /** + * A link that corresponds to the user review on Google Maps. + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * A link that corresponds to the user review on Google Maps. + * @param url url or {@code null} for none + */ + public GenaiReviewSnippet setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public GenaiReviewSnippet set(String fieldName, Object value) { + return (GenaiReviewSnippet) super.set(fieldName, value); + } + + @Override + public GenaiReviewSnippet clone() { + return (GenaiReviewSnippet) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiServerToolCallDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiServerToolCallDelta.java new file mode 100644 index 00000000000..d66c7c096b1 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiServerToolCallDelta.java @@ -0,0 +1,262 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiServerToolCallDelta. + * + *

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 Platform 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 GenaiServerToolCallDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiCodeExecutionCallDelta codeExecutionCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiFileSearchCallDelta fileSearchCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiGoogleMapsCallDelta googleMapsCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiGoogleSearchCallDelta googleSearchCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiMcpServerToolCallDelta mcpServerToolCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiProcessingCallDelta processingCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiRetrievalCallDelta retrievalCall; + + /** + * A signature hash for backend validation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String signature; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiUrlContextCallDelta urlContextCall; + + /** + * @return value or {@code null} for none + */ + public GenaiCodeExecutionCallDelta getCodeExecutionCall() { + return codeExecutionCall; + } + + /** + * @param codeExecutionCall codeExecutionCall or {@code null} for none + */ + public GenaiServerToolCallDelta setCodeExecutionCall(GenaiCodeExecutionCallDelta codeExecutionCall) { + this.codeExecutionCall = codeExecutionCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiFileSearchCallDelta getFileSearchCall() { + return fileSearchCall; + } + + /** + * @param fileSearchCall fileSearchCall or {@code null} for none + */ + public GenaiServerToolCallDelta setFileSearchCall(GenaiFileSearchCallDelta fileSearchCall) { + this.fileSearchCall = fileSearchCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiGoogleMapsCallDelta getGoogleMapsCall() { + return googleMapsCall; + } + + /** + * @param googleMapsCall googleMapsCall or {@code null} for none + */ + public GenaiServerToolCallDelta setGoogleMapsCall(GenaiGoogleMapsCallDelta googleMapsCall) { + this.googleMapsCall = googleMapsCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiGoogleSearchCallDelta getGoogleSearchCall() { + return googleSearchCall; + } + + /** + * @param googleSearchCall googleSearchCall or {@code null} for none + */ + public GenaiServerToolCallDelta setGoogleSearchCall(GenaiGoogleSearchCallDelta googleSearchCall) { + this.googleSearchCall = googleSearchCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiMcpServerToolCallDelta getMcpServerToolCall() { + return mcpServerToolCall; + } + + /** + * @param mcpServerToolCall mcpServerToolCall or {@code null} for none + */ + public GenaiServerToolCallDelta setMcpServerToolCall(GenaiMcpServerToolCallDelta mcpServerToolCall) { + this.mcpServerToolCall = mcpServerToolCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiProcessingCallDelta getProcessingCall() { + return processingCall; + } + + /** + * @param processingCall processingCall or {@code null} for none + */ + public GenaiServerToolCallDelta setProcessingCall(GenaiProcessingCallDelta processingCall) { + this.processingCall = processingCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiRetrievalCallDelta getRetrievalCall() { + return retrievalCall; + } + + /** + * @param retrievalCall retrievalCall or {@code null} for none + */ + public GenaiServerToolCallDelta setRetrievalCall(GenaiRetrievalCallDelta retrievalCall) { + this.retrievalCall = retrievalCall; + return this; + } + + /** + * A signature hash for backend validation. + * @see #decodeSignature() + * @return value or {@code null} for none + */ + public java.lang.String getSignature() { + return signature; + } + + /** + * A signature hash for backend validation. + * @see #getSignature() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeSignature() { + return com.google.api.client.util.Base64.decodeBase64(signature); + } + + /** + * A signature hash for backend validation. + * @see #encodeSignature() + * @param signature signature or {@code null} for none + */ + public GenaiServerToolCallDelta setSignature(java.lang.String signature) { + this.signature = signature; + return this; + } + + /** + * A signature hash for backend validation. + * @see #setSignature() + * + *

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

+ * + * @since 1.14 + */ + public GenaiServerToolCallDelta encodeSignature(byte[] signature) { + this.signature = com.google.api.client.util.Base64.encodeBase64URLSafeString(signature); + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiUrlContextCallDelta getUrlContextCall() { + return urlContextCall; + } + + /** + * @param urlContextCall urlContextCall or {@code null} for none + */ + public GenaiServerToolCallDelta setUrlContextCall(GenaiUrlContextCallDelta urlContextCall) { + this.urlContextCall = urlContextCall; + return this; + } + + @Override + public GenaiServerToolCallDelta set(String fieldName, Object value) { + return (GenaiServerToolCallDelta) super.set(fieldName, value); + } + + @Override + public GenaiServerToolCallDelta clone() { + return (GenaiServerToolCallDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiServerToolResultDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiServerToolResultDelta.java new file mode 100644 index 00000000000..6f7492e92c7 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiServerToolResultDelta.java @@ -0,0 +1,262 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiServerToolResultDelta. + * + *

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 Platform 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 GenaiServerToolResultDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiCodeExecutionResultDelta codeExecutionResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiFileSearchResultDelta fileSearchResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiGoogleMapsResultDelta googleMapsResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiGoogleSearchResultDelta googleSearchResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiMcpServerToolResultDelta mcpServerToolResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiProcessingResultDelta processingResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiRetrievalResultDelta retrievalResult; + + /** + * A signature hash for backend validation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String signature; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiUrlContextResultDelta urlContextResult; + + /** + * @return value or {@code null} for none + */ + public GenaiCodeExecutionResultDelta getCodeExecutionResult() { + return codeExecutionResult; + } + + /** + * @param codeExecutionResult codeExecutionResult or {@code null} for none + */ + public GenaiServerToolResultDelta setCodeExecutionResult(GenaiCodeExecutionResultDelta codeExecutionResult) { + this.codeExecutionResult = codeExecutionResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiFileSearchResultDelta getFileSearchResult() { + return fileSearchResult; + } + + /** + * @param fileSearchResult fileSearchResult or {@code null} for none + */ + public GenaiServerToolResultDelta setFileSearchResult(GenaiFileSearchResultDelta fileSearchResult) { + this.fileSearchResult = fileSearchResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiGoogleMapsResultDelta getGoogleMapsResult() { + return googleMapsResult; + } + + /** + * @param googleMapsResult googleMapsResult or {@code null} for none + */ + public GenaiServerToolResultDelta setGoogleMapsResult(GenaiGoogleMapsResultDelta googleMapsResult) { + this.googleMapsResult = googleMapsResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiGoogleSearchResultDelta getGoogleSearchResult() { + return googleSearchResult; + } + + /** + * @param googleSearchResult googleSearchResult or {@code null} for none + */ + public GenaiServerToolResultDelta setGoogleSearchResult(GenaiGoogleSearchResultDelta googleSearchResult) { + this.googleSearchResult = googleSearchResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiMcpServerToolResultDelta getMcpServerToolResult() { + return mcpServerToolResult; + } + + /** + * @param mcpServerToolResult mcpServerToolResult or {@code null} for none + */ + public GenaiServerToolResultDelta setMcpServerToolResult(GenaiMcpServerToolResultDelta mcpServerToolResult) { + this.mcpServerToolResult = mcpServerToolResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiProcessingResultDelta getProcessingResult() { + return processingResult; + } + + /** + * @param processingResult processingResult or {@code null} for none + */ + public GenaiServerToolResultDelta setProcessingResult(GenaiProcessingResultDelta processingResult) { + this.processingResult = processingResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiRetrievalResultDelta getRetrievalResult() { + return retrievalResult; + } + + /** + * @param retrievalResult retrievalResult or {@code null} for none + */ + public GenaiServerToolResultDelta setRetrievalResult(GenaiRetrievalResultDelta retrievalResult) { + this.retrievalResult = retrievalResult; + return this; + } + + /** + * A signature hash for backend validation. + * @see #decodeSignature() + * @return value or {@code null} for none + */ + public java.lang.String getSignature() { + return signature; + } + + /** + * A signature hash for backend validation. + * @see #getSignature() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeSignature() { + return com.google.api.client.util.Base64.decodeBase64(signature); + } + + /** + * A signature hash for backend validation. + * @see #encodeSignature() + * @param signature signature or {@code null} for none + */ + public GenaiServerToolResultDelta setSignature(java.lang.String signature) { + this.signature = signature; + return this; + } + + /** + * A signature hash for backend validation. + * @see #setSignature() + * + *

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

+ * + * @since 1.14 + */ + public GenaiServerToolResultDelta encodeSignature(byte[] signature) { + this.signature = com.google.api.client.util.Base64.encodeBase64URLSafeString(signature); + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiUrlContextResultDelta getUrlContextResult() { + return urlContextResult; + } + + /** + * @param urlContextResult urlContextResult or {@code null} for none + */ + public GenaiServerToolResultDelta setUrlContextResult(GenaiUrlContextResultDelta urlContextResult) { + this.urlContextResult = urlContextResult; + return this; + } + + @Override + public GenaiServerToolResultDelta set(String fieldName, Object value) { + return (GenaiServerToolResultDelta) super.set(fieldName, value); + } + + @Override + public GenaiServerToolResultDelta clone() { + return (GenaiServerToolResultDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiSpeechAnnotation.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiSpeechAnnotation.java new file mode 100644 index 00000000000..e376309e38e --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiSpeechAnnotation.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.aiplatform.v1beta1.model; + +/** + * Speech annotation for text content. + * + *

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 Platform 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 GenaiSpeechAnnotation extends com.google.api.client.json.GenericJson { + + /** + * The speaker to associate with this turn. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String speaker; + + /** + * Style instruction for the speech synthesis. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String style; + + /** + * The speaker to associate with this turn. + * @return value or {@code null} for none + */ + public java.lang.String getSpeaker() { + return speaker; + } + + /** + * The speaker to associate with this turn. + * @param speaker speaker or {@code null} for none + */ + public GenaiSpeechAnnotation setSpeaker(java.lang.String speaker) { + this.speaker = speaker; + return this; + } + + /** + * Style instruction for the speech synthesis. + * @return value or {@code null} for none + */ + public java.lang.String getStyle() { + return style; + } + + /** + * Style instruction for the speech synthesis. + * @param style style or {@code null} for none + */ + public GenaiSpeechAnnotation setStyle(java.lang.String style) { + this.style = style; + return this; + } + + @Override + public GenaiSpeechAnnotation set(String fieldName, Object value) { + return (GenaiSpeechAnnotation) super.set(fieldName, value); + } + + @Override + public GenaiSpeechAnnotation clone() { + return (GenaiSpeechAnnotation) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiStep.java new file mode 100644 index 00000000000..4384c9def43 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiStep.java @@ -0,0 +1,150 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A step in the interaction. + * + *

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 Platform 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 GenaiStep extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiModelOutputStep modelOutput; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiThoughtStep thought; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiToolCallStep toolCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiToolResultStep toolResult; + + /** + * DO NOT USE -- These are for 3P JSON only + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiUserInputStep userInput; + + /** + * @return value or {@code null} for none + */ + public GenaiModelOutputStep getModelOutput() { + return modelOutput; + } + + /** + * @param modelOutput modelOutput or {@code null} for none + */ + public GenaiStep setModelOutput(GenaiModelOutputStep modelOutput) { + this.modelOutput = modelOutput; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiThoughtStep getThought() { + return thought; + } + + /** + * @param thought thought or {@code null} for none + */ + public GenaiStep setThought(GenaiThoughtStep thought) { + this.thought = thought; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiToolCallStep getToolCall() { + return toolCall; + } + + /** + * @param toolCall toolCall or {@code null} for none + */ + public GenaiStep setToolCall(GenaiToolCallStep toolCall) { + this.toolCall = toolCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiToolResultStep getToolResult() { + return toolResult; + } + + /** + * @param toolResult toolResult or {@code null} for none + */ + public GenaiStep setToolResult(GenaiToolResultStep toolResult) { + this.toolResult = toolResult; + return this; + } + + /** + * DO NOT USE -- These are for 3P JSON only + * @return value or {@code null} for none + */ + public GenaiUserInputStep getUserInput() { + return userInput; + } + + /** + * DO NOT USE -- These are for 3P JSON only + * @param userInput userInput or {@code null} for none + */ + public GenaiStep setUserInput(GenaiUserInputStep userInput) { + this.userInput = userInput; + return this; + } + + @Override + public GenaiStep set(String fieldName, Object value) { + return (GenaiStep) super.set(fieldName, value); + } + + @Override + public GenaiStep clone() { + return (GenaiStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiStepDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiStepDelta.java new file mode 100644 index 00000000000..4b6964ad13c --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiStepDelta.java @@ -0,0 +1,84 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiStepDelta. + * + *

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 Platform 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 GenaiStepDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiStepDeltaData delta; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer index; + + /** + * @return value or {@code null} for none + */ + public GenaiStepDeltaData getDelta() { + return delta; + } + + /** + * @param delta delta or {@code null} for none + */ + public GenaiStepDelta setDelta(GenaiStepDeltaData delta) { + this.delta = delta; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.Integer getIndex() { + return index; + } + + /** + * @param index index or {@code null} for none + */ + public GenaiStepDelta setIndex(java.lang.Integer index) { + this.index = index; + return this; + } + + @Override + public GenaiStepDelta set(String fieldName, Object value) { + return (GenaiStepDelta) super.set(fieldName, value); + } + + @Override + public GenaiStepDelta clone() { + return (GenaiStepDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiStepDeltaData.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiStepDeltaData.java new file mode 100644 index 00000000000..0d60b57908c --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiStepDeltaData.java @@ -0,0 +1,294 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiStepDeltaData. + * + *

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 Platform 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 GenaiStepDeltaData extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiArgumentsDelta argumentsDelta; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiAudioDelta audio; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiDocumentDelta document; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiFunctionResultDelta functionResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiImageDelta image; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiServerToolCallDelta serverToolCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiServerToolResultDelta serverToolResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiTextDelta text; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiTextAnnotationDelta textAnnotationDelta; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiThoughtSignatureDelta thoughtSignature; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiThoughtSummaryDelta thoughtSummary; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVideoDelta video; + + /** + * @return value or {@code null} for none + */ + public GenaiArgumentsDelta getArgumentsDelta() { + return argumentsDelta; + } + + /** + * @param argumentsDelta argumentsDelta or {@code null} for none + */ + public GenaiStepDeltaData setArgumentsDelta(GenaiArgumentsDelta argumentsDelta) { + this.argumentsDelta = argumentsDelta; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiAudioDelta getAudio() { + return audio; + } + + /** + * @param audio audio or {@code null} for none + */ + public GenaiStepDeltaData setAudio(GenaiAudioDelta audio) { + this.audio = audio; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiDocumentDelta getDocument() { + return document; + } + + /** + * @param document document or {@code null} for none + */ + public GenaiStepDeltaData setDocument(GenaiDocumentDelta document) { + this.document = document; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiFunctionResultDelta getFunctionResult() { + return functionResult; + } + + /** + * @param functionResult functionResult or {@code null} for none + */ + public GenaiStepDeltaData setFunctionResult(GenaiFunctionResultDelta functionResult) { + this.functionResult = functionResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiImageDelta getImage() { + return image; + } + + /** + * @param image image or {@code null} for none + */ + public GenaiStepDeltaData setImage(GenaiImageDelta image) { + this.image = image; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiServerToolCallDelta getServerToolCall() { + return serverToolCall; + } + + /** + * @param serverToolCall serverToolCall or {@code null} for none + */ + public GenaiStepDeltaData setServerToolCall(GenaiServerToolCallDelta serverToolCall) { + this.serverToolCall = serverToolCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiServerToolResultDelta getServerToolResult() { + return serverToolResult; + } + + /** + * @param serverToolResult serverToolResult or {@code null} for none + */ + public GenaiStepDeltaData setServerToolResult(GenaiServerToolResultDelta serverToolResult) { + this.serverToolResult = serverToolResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiTextDelta getText() { + return text; + } + + /** + * @param text text or {@code null} for none + */ + public GenaiStepDeltaData setText(GenaiTextDelta text) { + this.text = text; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiTextAnnotationDelta getTextAnnotationDelta() { + return textAnnotationDelta; + } + + /** + * @param textAnnotationDelta textAnnotationDelta or {@code null} for none + */ + public GenaiStepDeltaData setTextAnnotationDelta(GenaiTextAnnotationDelta textAnnotationDelta) { + this.textAnnotationDelta = textAnnotationDelta; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiThoughtSignatureDelta getThoughtSignature() { + return thoughtSignature; + } + + /** + * @param thoughtSignature thoughtSignature or {@code null} for none + */ + public GenaiStepDeltaData setThoughtSignature(GenaiThoughtSignatureDelta thoughtSignature) { + this.thoughtSignature = thoughtSignature; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiThoughtSummaryDelta getThoughtSummary() { + return thoughtSummary; + } + + /** + * @param thoughtSummary thoughtSummary or {@code null} for none + */ + public GenaiStepDeltaData setThoughtSummary(GenaiThoughtSummaryDelta thoughtSummary) { + this.thoughtSummary = thoughtSummary; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVideoDelta getVideo() { + return video; + } + + /** + * @param video video or {@code null} for none + */ + public GenaiStepDeltaData setVideo(GenaiVideoDelta video) { + this.video = video; + return this; + } + + @Override + public GenaiStepDeltaData set(String fieldName, Object value) { + return (GenaiStepDeltaData) super.set(fieldName, value); + } + + @Override + public GenaiStepDeltaData clone() { + return (GenaiStepDeltaData) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiStepStart.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiStepStart.java new file mode 100644 index 00000000000..bbfbc89b5ed --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiStepStart.java @@ -0,0 +1,84 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiStepStart. + * + *

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 Platform 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 GenaiStepStart extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer index; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiStep step; + + /** + * @return value or {@code null} for none + */ + public java.lang.Integer getIndex() { + return index; + } + + /** + * @param index index or {@code null} for none + */ + public GenaiStepStart setIndex(java.lang.Integer index) { + this.index = index; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiStep getStep() { + return step; + } + + /** + * @param step step or {@code null} for none + */ + public GenaiStepStart setStep(GenaiStep step) { + this.step = step; + return this; + } + + @Override + public GenaiStepStart set(String fieldName, Object value) { + return (GenaiStepStart) super.set(fieldName, value); + } + + @Override + public GenaiStepStart clone() { + return (GenaiStepStart) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiStepStop.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiStepStop.java new file mode 100644 index 00000000000..4b458578f86 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiStepStop.java @@ -0,0 +1,111 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiStepStop. + * + *

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 Platform 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 GenaiStepStop extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer index; + + /** + * Model usage stats for this specific step. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiInteractionUsage stepUsage; + + /** + * Cumulative model usage stats from the start of the session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiInteractionUsage usage; + + /** + * @return value or {@code null} for none + */ + public java.lang.Integer getIndex() { + return index; + } + + /** + * @param index index or {@code null} for none + */ + public GenaiStepStop setIndex(java.lang.Integer index) { + this.index = index; + return this; + } + + /** + * Model usage stats for this specific step. + * @return value or {@code null} for none + */ + public GenaiInteractionUsage getStepUsage() { + return stepUsage; + } + + /** + * Model usage stats for this specific step. + * @param stepUsage stepUsage or {@code null} for none + */ + public GenaiStepStop setStepUsage(GenaiInteractionUsage stepUsage) { + this.stepUsage = stepUsage; + return this; + } + + /** + * Cumulative model usage stats from the start of the session. + * @return value or {@code null} for none + */ + public GenaiInteractionUsage getUsage() { + return usage; + } + + /** + * Cumulative model usage stats from the start of the session. + * @param usage usage or {@code null} for none + */ + public GenaiStepStop setUsage(GenaiInteractionUsage usage) { + this.usage = usage; + return this; + } + + @Override + public GenaiStepStop set(String fieldName, Object value) { + return (GenaiStepStop) super.set(fieldName, value); + } + + @Override + public GenaiStepStop clone() { + return (GenaiStepStop) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiStruct.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiStruct.java new file mode 100644 index 00000000000..fe65643b618 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiStruct.java @@ -0,0 +1,76 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * `Struct` represents a structured data value, consisting of fields which map to dynamically typed + * values. + * + *

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 Platform 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 GenaiStruct extends com.google.api.client.json.GenericJson { + + /** + * Dynamically typed fields. List instead of map because LLMs are sensitive to ordering, and we + * want to give users full control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List fields; + + static { + // hack to force ProGuard to consider GenaiField used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiField.class); + } + + /** + * Dynamically typed fields. List instead of map because LLMs are sensitive to ordering, and we + * want to give users full control. + * @return value or {@code null} for none + */ + public java.util.List getFields() { + return fields; + } + + /** + * Dynamically typed fields. List instead of map because LLMs are sensitive to ordering, and we + * want to give users full control. + * @param fields fields or {@code null} for none + */ + public GenaiStruct setFields(java.util.List fields) { + this.fields = fields; + return this; + } + + @Override + public GenaiStruct set(String fieldName, Object value) { + return (GenaiStruct) super.set(fieldName, value); + } + + @Override + public GenaiStruct clone() { + return (GenaiStruct) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiTextAnnotationDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiTextAnnotationDelta.java new file mode 100644 index 00000000000..986ebce5180 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiTextAnnotationDelta.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiTextAnnotationDelta. + * + *

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 Platform 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 GenaiTextAnnotationDelta extends com.google.api.client.json.GenericJson { + + /** + * Citation information for model-generated content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List annotations; + + /** + * Citation information for model-generated content. + * @return value or {@code null} for none + */ + public java.util.List getAnnotations() { + return annotations; + } + + /** + * Citation information for model-generated content. + * @param annotations annotations or {@code null} for none + */ + public GenaiTextAnnotationDelta setAnnotations(java.util.List annotations) { + this.annotations = annotations; + return this; + } + + @Override + public GenaiTextAnnotationDelta set(String fieldName, Object value) { + return (GenaiTextAnnotationDelta) super.set(fieldName, value); + } + + @Override + public GenaiTextAnnotationDelta clone() { + return (GenaiTextAnnotationDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiTextContent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiTextContent.java new file mode 100644 index 00000000000..ba127f09e71 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiTextContent.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.aiplatform.v1beta1.model; + +/** + * A text content block. + * + *

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 Platform 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 GenaiTextContent extends com.google.api.client.json.GenericJson { + + /** + * Citation information for model-generated content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List annotations; + + /** + * Required. The text content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * Citation information for model-generated content. + * @return value or {@code null} for none + */ + public java.util.List getAnnotations() { + return annotations; + } + + /** + * Citation information for model-generated content. + * @param annotations annotations or {@code null} for none + */ + public GenaiTextContent setAnnotations(java.util.List annotations) { + this.annotations = annotations; + return this; + } + + /** + * Required. The text content. + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * Required. The text content. + * @param text text or {@code null} for none + */ + public GenaiTextContent setText(java.lang.String text) { + this.text = text; + return this; + } + + @Override + public GenaiTextContent set(String fieldName, Object value) { + return (GenaiTextContent) super.set(fieldName, value); + } + + @Override + public GenaiTextContent clone() { + return (GenaiTextContent) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiTextContentAnnotation.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiTextContentAnnotation.java new file mode 100644 index 00000000000..7fbaa0103f0 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiTextContentAnnotation.java @@ -0,0 +1,216 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Citation information for model-generated content. + * + *

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 Platform 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 GenaiTextContentAnnotation extends com.google.api.client.json.GenericJson { + + /** + * End of the attributed segment, exclusive. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer endIndex; + + /** + * A file citation annotation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiFileCitation fileCitation; + + /** + * A place citation annotation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiPlaceCitation placeCitation; + + /** + * Speech annotation for text content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiSpeechAnnotation speechMetadata; + + /** + * Start of segment of the response that is attributed to this source. Index indicates the start + * of the segment, measured in bytes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer startIndex; + + /** + * NOTE: We use these instead of the Citation message for historical reasons. A URL citation + * annotation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiUrlCitation urlCitation; + + /** + * Word-level ASR annotation with timing and speaker info. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiWordInfo wordInfo; + + /** + * End of the attributed segment, exclusive. + * @return value or {@code null} for none + */ + public java.lang.Integer getEndIndex() { + return endIndex; + } + + /** + * End of the attributed segment, exclusive. + * @param endIndex endIndex or {@code null} for none + */ + public GenaiTextContentAnnotation setEndIndex(java.lang.Integer endIndex) { + this.endIndex = endIndex; + return this; + } + + /** + * A file citation annotation. + * @return value or {@code null} for none + */ + public GenaiFileCitation getFileCitation() { + return fileCitation; + } + + /** + * A file citation annotation. + * @param fileCitation fileCitation or {@code null} for none + */ + public GenaiTextContentAnnotation setFileCitation(GenaiFileCitation fileCitation) { + this.fileCitation = fileCitation; + return this; + } + + /** + * A place citation annotation. + * @return value or {@code null} for none + */ + public GenaiPlaceCitation getPlaceCitation() { + return placeCitation; + } + + /** + * A place citation annotation. + * @param placeCitation placeCitation or {@code null} for none + */ + public GenaiTextContentAnnotation setPlaceCitation(GenaiPlaceCitation placeCitation) { + this.placeCitation = placeCitation; + return this; + } + + /** + * Speech annotation for text content. + * @return value or {@code null} for none + */ + public GenaiSpeechAnnotation getSpeechMetadata() { + return speechMetadata; + } + + /** + * Speech annotation for text content. + * @param speechMetadata speechMetadata or {@code null} for none + */ + public GenaiTextContentAnnotation setSpeechMetadata(GenaiSpeechAnnotation speechMetadata) { + this.speechMetadata = speechMetadata; + return this; + } + + /** + * Start of segment of the response that is attributed to this source. Index indicates the start + * of the segment, measured in bytes. + * @return value or {@code null} for none + */ + public java.lang.Integer getStartIndex() { + return startIndex; + } + + /** + * Start of segment of the response that is attributed to this source. Index indicates the start + * of the segment, measured in bytes. + * @param startIndex startIndex or {@code null} for none + */ + public GenaiTextContentAnnotation setStartIndex(java.lang.Integer startIndex) { + this.startIndex = startIndex; + return this; + } + + /** + * NOTE: We use these instead of the Citation message for historical reasons. A URL citation + * annotation. + * @return value or {@code null} for none + */ + public GenaiUrlCitation getUrlCitation() { + return urlCitation; + } + + /** + * NOTE: We use these instead of the Citation message for historical reasons. A URL citation + * annotation. + * @param urlCitation urlCitation or {@code null} for none + */ + public GenaiTextContentAnnotation setUrlCitation(GenaiUrlCitation urlCitation) { + this.urlCitation = urlCitation; + return this; + } + + /** + * Word-level ASR annotation with timing and speaker info. + * @return value or {@code null} for none + */ + public GenaiWordInfo getWordInfo() { + return wordInfo; + } + + /** + * Word-level ASR annotation with timing and speaker info. + * @param wordInfo wordInfo or {@code null} for none + */ + public GenaiTextContentAnnotation setWordInfo(GenaiWordInfo wordInfo) { + this.wordInfo = wordInfo; + return this; + } + + @Override + public GenaiTextContentAnnotation set(String fieldName, Object value) { + return (GenaiTextContentAnnotation) super.set(fieldName, value); + } + + @Override + public GenaiTextContentAnnotation clone() { + return (GenaiTextContentAnnotation) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiTextDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiTextDelta.java new file mode 100644 index 00000000000..52b320e7dec --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiTextDelta.java @@ -0,0 +1,63 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiTextDelta. + * + *

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 Platform 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 GenaiTextDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * @param text text or {@code null} for none + */ + public GenaiTextDelta setText(java.lang.String text) { + this.text = text; + return this; + } + + @Override + public GenaiTextDelta set(String fieldName, Object value) { + return (GenaiTextDelta) super.set(fieldName, value); + } + + @Override + public GenaiTextDelta clone() { + return (GenaiTextDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiTextResponseFormat.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiTextResponseFormat.java new file mode 100644 index 00000000000..dfa42890f0e --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiTextResponseFormat.java @@ -0,0 +1,105 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Configuration for text output format. + * + *

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 Platform 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 GenaiTextResponseFormat extends com.google.api.client.json.GenericJson { + + /** + * The MIME type of the text output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeType; + + /** + * The JSON schema that the output should conform to. Only applicable when mime_type is + * application/json. Supports a subset of JSON Schema. `minLength`, `maxLength`, `minProperties`, + * `maxProperties`, `uniqueItems`, `contains`, `minContains`, and `maxContains` are ignored and + * not enforced; validate these in your application. `minItems` and `maxItems` are enforced. + * Schemas that are too complex to enforce (for example, large `maxItems` on nested arrays) return + * a 400 INVALID_ARGUMENT error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiStruct schema; + + /** + * The MIME type of the text output. + * @return value or {@code null} for none + */ + public java.lang.String getMimeType() { + return mimeType; + } + + /** + * The MIME type of the text output. + * @param mimeType mimeType or {@code null} for none + */ + public GenaiTextResponseFormat setMimeType(java.lang.String mimeType) { + this.mimeType = mimeType; + return this; + } + + /** + * The JSON schema that the output should conform to. Only applicable when mime_type is + * application/json. Supports a subset of JSON Schema. `minLength`, `maxLength`, `minProperties`, + * `maxProperties`, `uniqueItems`, `contains`, `minContains`, and `maxContains` are ignored and + * not enforced; validate these in your application. `minItems` and `maxItems` are enforced. + * Schemas that are too complex to enforce (for example, large `maxItems` on nested arrays) return + * a 400 INVALID_ARGUMENT error. + * @return value or {@code null} for none + */ + public GenaiStruct getSchema() { + return schema; + } + + /** + * The JSON schema that the output should conform to. Only applicable when mime_type is + * application/json. Supports a subset of JSON Schema. `minLength`, `maxLength`, `minProperties`, + * `maxProperties`, `uniqueItems`, `contains`, `minContains`, and `maxContains` are ignored and + * not enforced; validate these in your application. `minItems` and `maxItems` are enforced. + * Schemas that are too complex to enforce (for example, large `maxItems` on nested arrays) return + * a 400 INVALID_ARGUMENT error. + * @param schema schema or {@code null} for none + */ + public GenaiTextResponseFormat setSchema(GenaiStruct schema) { + this.schema = schema; + return this; + } + + @Override + public GenaiTextResponseFormat set(String fieldName, Object value) { + return (GenaiTextResponseFormat) super.set(fieldName, value); + } + + @Override + public GenaiTextResponseFormat clone() { + return (GenaiTextResponseFormat) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiThoughtSignatureDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiThoughtSignatureDelta.java new file mode 100644 index 00000000000..c0c493d3a03 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiThoughtSignatureDelta.java @@ -0,0 +1,94 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiThoughtSignatureDelta. + * + *

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 Platform 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 GenaiThoughtSignatureDelta extends com.google.api.client.json.GenericJson { + + /** + * Signature to match the backend source to be part of the generation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String signature; + + /** + * Signature to match the backend source to be part of the generation. + * @see #decodeSignature() + * @return value or {@code null} for none + */ + public java.lang.String getSignature() { + return signature; + } + + /** + * Signature to match the backend source to be part of the generation. + * @see #getSignature() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeSignature() { + return com.google.api.client.util.Base64.decodeBase64(signature); + } + + /** + * Signature to match the backend source to be part of the generation. + * @see #encodeSignature() + * @param signature signature or {@code null} for none + */ + public GenaiThoughtSignatureDelta setSignature(java.lang.String signature) { + this.signature = signature; + return this; + } + + /** + * Signature to match the backend source to be part of the generation. + * @see #setSignature() + * + *

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

+ * + * @since 1.14 + */ + public GenaiThoughtSignatureDelta encodeSignature(byte[] signature) { + this.signature = com.google.api.client.util.Base64.encodeBase64URLSafeString(signature); + return this; + } + + @Override + public GenaiThoughtSignatureDelta set(String fieldName, Object value) { + return (GenaiThoughtSignatureDelta) super.set(fieldName, value); + } + + @Override + public GenaiThoughtSignatureDelta clone() { + return (GenaiThoughtSignatureDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiThoughtStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiThoughtStep.java new file mode 100644 index 00000000000..2ea21bc131b --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiThoughtStep.java @@ -0,0 +1,124 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A thought step. + * + *

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 Platform 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 GenaiThoughtStep extends com.google.api.client.json.GenericJson { + + /** + * A signature hash for backend validation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String signature; + + /** + * A summary of the thought. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List summary; + + static { + // hack to force ProGuard to consider GenaiContent used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiContent.class); + } + + /** + * A signature hash for backend validation. + * @see #decodeSignature() + * @return value or {@code null} for none + */ + public java.lang.String getSignature() { + return signature; + } + + /** + * A signature hash for backend validation. + * @see #getSignature() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeSignature() { + return com.google.api.client.util.Base64.decodeBase64(signature); + } + + /** + * A signature hash for backend validation. + * @see #encodeSignature() + * @param signature signature or {@code null} for none + */ + public GenaiThoughtStep setSignature(java.lang.String signature) { + this.signature = signature; + return this; + } + + /** + * A signature hash for backend validation. + * @see #setSignature() + * + *

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

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

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 Platform 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 GenaiThoughtSummaryDelta extends com.google.api.client.json.GenericJson { + + /** + * A new summary item to be added to the thought. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiContent content; + + /** + * A new summary item to be added to the thought. + * @return value or {@code null} for none + */ + public GenaiContent getContent() { + return content; + } + + /** + * A new summary item to be added to the thought. + * @param content content or {@code null} for none + */ + public GenaiThoughtSummaryDelta setContent(GenaiContent content) { + this.content = content; + return this; + } + + @Override + public GenaiThoughtSummaryDelta set(String fieldName, Object value) { + return (GenaiThoughtSummaryDelta) super.set(fieldName, value); + } + + @Override + public GenaiThoughtSummaryDelta clone() { + return (GenaiThoughtSummaryDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiToolCallStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiToolCallStep.java new file mode 100644 index 00000000000..7f9527ee421 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiToolCallStep.java @@ -0,0 +1,307 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Tool call step. + * + *

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 Platform 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 GenaiToolCallStep extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiCodeExecutionCallStep codeExecutionCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiFileSearchCallStep fileSearchCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiFunctionCallStep functionCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiGoogleMapsCallStep googleMapsCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiGoogleSearchCallStep googleSearchCall; + + /** + * Required. A unique ID for this specific tool call. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiMcpServerToolCallStep mcpServerToolCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiProcessingCallStep processingCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiRetrievalCallStep retrievalCall; + + /** + * A signature hash for backend validation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String signature; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiUrlContextCallStep urlContextCall; + + /** + * @return value or {@code null} for none + */ + public GenaiCodeExecutionCallStep getCodeExecutionCall() { + return codeExecutionCall; + } + + /** + * @param codeExecutionCall codeExecutionCall or {@code null} for none + */ + public GenaiToolCallStep setCodeExecutionCall(GenaiCodeExecutionCallStep codeExecutionCall) { + this.codeExecutionCall = codeExecutionCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiFileSearchCallStep getFileSearchCall() { + return fileSearchCall; + } + + /** + * @param fileSearchCall fileSearchCall or {@code null} for none + */ + public GenaiToolCallStep setFileSearchCall(GenaiFileSearchCallStep fileSearchCall) { + this.fileSearchCall = fileSearchCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiFunctionCallStep getFunctionCall() { + return functionCall; + } + + /** + * @param functionCall functionCall or {@code null} for none + */ + public GenaiToolCallStep setFunctionCall(GenaiFunctionCallStep functionCall) { + this.functionCall = functionCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiGoogleMapsCallStep getGoogleMapsCall() { + return googleMapsCall; + } + + /** + * @param googleMapsCall googleMapsCall or {@code null} for none + */ + public GenaiToolCallStep setGoogleMapsCall(GenaiGoogleMapsCallStep googleMapsCall) { + this.googleMapsCall = googleMapsCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiGoogleSearchCallStep getGoogleSearchCall() { + return googleSearchCall; + } + + /** + * @param googleSearchCall googleSearchCall or {@code null} for none + */ + public GenaiToolCallStep setGoogleSearchCall(GenaiGoogleSearchCallStep googleSearchCall) { + this.googleSearchCall = googleSearchCall; + return this; + } + + /** + * Required. A unique ID for this specific tool call. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Required. A unique ID for this specific tool call. + * @param id id or {@code null} for none + */ + public GenaiToolCallStep setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiMcpServerToolCallStep getMcpServerToolCall() { + return mcpServerToolCall; + } + + /** + * @param mcpServerToolCall mcpServerToolCall or {@code null} for none + */ + public GenaiToolCallStep setMcpServerToolCall(GenaiMcpServerToolCallStep mcpServerToolCall) { + this.mcpServerToolCall = mcpServerToolCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiProcessingCallStep getProcessingCall() { + return processingCall; + } + + /** + * @param processingCall processingCall or {@code null} for none + */ + public GenaiToolCallStep setProcessingCall(GenaiProcessingCallStep processingCall) { + this.processingCall = processingCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiRetrievalCallStep getRetrievalCall() { + return retrievalCall; + } + + /** + * @param retrievalCall retrievalCall or {@code null} for none + */ + public GenaiToolCallStep setRetrievalCall(GenaiRetrievalCallStep retrievalCall) { + this.retrievalCall = retrievalCall; + return this; + } + + /** + * A signature hash for backend validation. + * @see #decodeSignature() + * @return value or {@code null} for none + */ + public java.lang.String getSignature() { + return signature; + } + + /** + * A signature hash for backend validation. + * @see #getSignature() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeSignature() { + return com.google.api.client.util.Base64.decodeBase64(signature); + } + + /** + * A signature hash for backend validation. + * @see #encodeSignature() + * @param signature signature or {@code null} for none + */ + public GenaiToolCallStep setSignature(java.lang.String signature) { + this.signature = signature; + return this; + } + + /** + * A signature hash for backend validation. + * @see #setSignature() + * + *

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

+ * + * @since 1.14 + */ + public GenaiToolCallStep encodeSignature(byte[] signature) { + this.signature = com.google.api.client.util.Base64.encodeBase64URLSafeString(signature); + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiUrlContextCallStep getUrlContextCall() { + return urlContextCall; + } + + /** + * @param urlContextCall urlContextCall or {@code null} for none + */ + public GenaiToolCallStep setUrlContextCall(GenaiUrlContextCallStep urlContextCall) { + this.urlContextCall = urlContextCall; + return this; + } + + @Override + public GenaiToolCallStep set(String fieldName, Object value) { + return (GenaiToolCallStep) super.set(fieldName, value); + } + + @Override + public GenaiToolCallStep clone() { + return (GenaiToolCallStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiToolResultStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiToolResultStep.java new file mode 100644 index 00000000000..61252b5a58e --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiToolResultStep.java @@ -0,0 +1,307 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Tool result step. + * + *

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 Platform 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 GenaiToolResultStep extends com.google.api.client.json.GenericJson { + + /** + * Required. ID to match the ID from the function call block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String callId; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiCodeExecutionResultStep codeExecutionResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiFileSearchResultStep fileSearchResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiFunctionResultStep functionResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiGoogleMapsResultStep googleMapsResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiGoogleSearchResultStep googleSearchResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiMcpServerToolResultStep mcpServerToolResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiProcessingResultStep processingResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiRetrievalResultStep retrievalResult; + + /** + * A signature hash for backend validation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String signature; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiUrlContextResultStep urlContextResult; + + /** + * Required. ID to match the ID from the function call block. + * @return value or {@code null} for none + */ + public java.lang.String getCallId() { + return callId; + } + + /** + * Required. ID to match the ID from the function call block. + * @param callId callId or {@code null} for none + */ + public GenaiToolResultStep setCallId(java.lang.String callId) { + this.callId = callId; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiCodeExecutionResultStep getCodeExecutionResult() { + return codeExecutionResult; + } + + /** + * @param codeExecutionResult codeExecutionResult or {@code null} for none + */ + public GenaiToolResultStep setCodeExecutionResult(GenaiCodeExecutionResultStep codeExecutionResult) { + this.codeExecutionResult = codeExecutionResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiFileSearchResultStep getFileSearchResult() { + return fileSearchResult; + } + + /** + * @param fileSearchResult fileSearchResult or {@code null} for none + */ + public GenaiToolResultStep setFileSearchResult(GenaiFileSearchResultStep fileSearchResult) { + this.fileSearchResult = fileSearchResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiFunctionResultStep getFunctionResult() { + return functionResult; + } + + /** + * @param functionResult functionResult or {@code null} for none + */ + public GenaiToolResultStep setFunctionResult(GenaiFunctionResultStep functionResult) { + this.functionResult = functionResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiGoogleMapsResultStep getGoogleMapsResult() { + return googleMapsResult; + } + + /** + * @param googleMapsResult googleMapsResult or {@code null} for none + */ + public GenaiToolResultStep setGoogleMapsResult(GenaiGoogleMapsResultStep googleMapsResult) { + this.googleMapsResult = googleMapsResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiGoogleSearchResultStep getGoogleSearchResult() { + return googleSearchResult; + } + + /** + * @param googleSearchResult googleSearchResult or {@code null} for none + */ + public GenaiToolResultStep setGoogleSearchResult(GenaiGoogleSearchResultStep googleSearchResult) { + this.googleSearchResult = googleSearchResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiMcpServerToolResultStep getMcpServerToolResult() { + return mcpServerToolResult; + } + + /** + * @param mcpServerToolResult mcpServerToolResult or {@code null} for none + */ + public GenaiToolResultStep setMcpServerToolResult(GenaiMcpServerToolResultStep mcpServerToolResult) { + this.mcpServerToolResult = mcpServerToolResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiProcessingResultStep getProcessingResult() { + return processingResult; + } + + /** + * @param processingResult processingResult or {@code null} for none + */ + public GenaiToolResultStep setProcessingResult(GenaiProcessingResultStep processingResult) { + this.processingResult = processingResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiRetrievalResultStep getRetrievalResult() { + return retrievalResult; + } + + /** + * @param retrievalResult retrievalResult or {@code null} for none + */ + public GenaiToolResultStep setRetrievalResult(GenaiRetrievalResultStep retrievalResult) { + this.retrievalResult = retrievalResult; + return this; + } + + /** + * A signature hash for backend validation. + * @see #decodeSignature() + * @return value or {@code null} for none + */ + public java.lang.String getSignature() { + return signature; + } + + /** + * A signature hash for backend validation. + * @see #getSignature() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeSignature() { + return com.google.api.client.util.Base64.decodeBase64(signature); + } + + /** + * A signature hash for backend validation. + * @see #encodeSignature() + * @param signature signature or {@code null} for none + */ + public GenaiToolResultStep setSignature(java.lang.String signature) { + this.signature = signature; + return this; + } + + /** + * A signature hash for backend validation. + * @see #setSignature() + * + *

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

+ * + * @since 1.14 + */ + public GenaiToolResultStep encodeSignature(byte[] signature) { + this.signature = com.google.api.client.util.Base64.encodeBase64URLSafeString(signature); + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiUrlContextResultStep getUrlContextResult() { + return urlContextResult; + } + + /** + * @param urlContextResult urlContextResult or {@code null} for none + */ + public GenaiToolResultStep setUrlContextResult(GenaiUrlContextResultStep urlContextResult) { + this.urlContextResult = urlContextResult; + return this; + } + + @Override + public GenaiToolResultStep set(String fieldName, Object value) { + return (GenaiToolResultStep) super.set(fieldName, value); + } + + @Override + public GenaiToolResultStep clone() { + return (GenaiToolResultStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlCitation.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlCitation.java new file mode 100644 index 00000000000..9002ea003c4 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlCitation.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.aiplatform.v1beta1.model; + +/** + * A URL citation annotation. + * + *

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 Platform 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 GenaiUrlCitation extends com.google.api.client.json.GenericJson { + + /** + * The title of the URL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * The URL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * The title of the URL. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * The title of the URL. + * @param title title or {@code null} for none + */ + public GenaiUrlCitation setTitle(java.lang.String title) { + this.title = title; + return this; + } + + /** + * The URL. + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * The URL. + * @param url url or {@code null} for none + */ + public GenaiUrlCitation setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public GenaiUrlCitation set(String fieldName, Object value) { + return (GenaiUrlCitation) super.set(fieldName, value); + } + + @Override + public GenaiUrlCitation clone() { + return (GenaiUrlCitation) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlContextCallContentUrlContextCallArguments.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlContextCallContentUrlContextCallArguments.java new file mode 100644 index 00000000000..ceafaa5e4a8 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlContextCallContentUrlContextCallArguments.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * The arguments to pass to the URL context. + * + *

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 Platform 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 GenaiUrlContextCallContentUrlContextCallArguments extends com.google.api.client.json.GenericJson { + + /** + * The URLs to fetch. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List urls; + + /** + * The URLs to fetch. + * @return value or {@code null} for none + */ + public java.util.List getUrls() { + return urls; + } + + /** + * The URLs to fetch. + * @param urls urls or {@code null} for none + */ + public GenaiUrlContextCallContentUrlContextCallArguments setUrls(java.util.List urls) { + this.urls = urls; + return this; + } + + @Override + public GenaiUrlContextCallContentUrlContextCallArguments set(String fieldName, Object value) { + return (GenaiUrlContextCallContentUrlContextCallArguments) super.set(fieldName, value); + } + + @Override + public GenaiUrlContextCallContentUrlContextCallArguments clone() { + return (GenaiUrlContextCallContentUrlContextCallArguments) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlContextCallDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlContextCallDelta.java new file mode 100644 index 00000000000..193258fe946 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlContextCallDelta.java @@ -0,0 +1,63 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiUrlContextCallDelta. + * + *

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 Platform 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 GenaiUrlContextCallDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiUrlContextCallContentUrlContextCallArguments arguments; + + /** + * @return value or {@code null} for none + */ + public GenaiUrlContextCallContentUrlContextCallArguments getArguments() { + return arguments; + } + + /** + * @param arguments arguments or {@code null} for none + */ + public GenaiUrlContextCallDelta setArguments(GenaiUrlContextCallContentUrlContextCallArguments arguments) { + this.arguments = arguments; + return this; + } + + @Override + public GenaiUrlContextCallDelta set(String fieldName, Object value) { + return (GenaiUrlContextCallDelta) super.set(fieldName, value); + } + + @Override + public GenaiUrlContextCallDelta clone() { + return (GenaiUrlContextCallDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlContextCallStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlContextCallStep.java new file mode 100644 index 00000000000..284727a39d8 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlContextCallStep.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * URL context call step. + * + *

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 Platform 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 GenaiUrlContextCallStep extends com.google.api.client.json.GenericJson { + + /** + * Required. The arguments to pass to the URL context. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiUrlContextCallStepUrlContextCallStepArguments arguments; + + /** + * Required. The arguments to pass to the URL context. + * @return value or {@code null} for none + */ + public GenaiUrlContextCallStepUrlContextCallStepArguments getArguments() { + return arguments; + } + + /** + * Required. The arguments to pass to the URL context. + * @param arguments arguments or {@code null} for none + */ + public GenaiUrlContextCallStep setArguments(GenaiUrlContextCallStepUrlContextCallStepArguments arguments) { + this.arguments = arguments; + return this; + } + + @Override + public GenaiUrlContextCallStep set(String fieldName, Object value) { + return (GenaiUrlContextCallStep) super.set(fieldName, value); + } + + @Override + public GenaiUrlContextCallStep clone() { + return (GenaiUrlContextCallStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlContextCallStepUrlContextCallStepArguments.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlContextCallStepUrlContextCallStepArguments.java new file mode 100644 index 00000000000..0d2d5321755 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlContextCallStepUrlContextCallStepArguments.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * The arguments to pass to the URL context. + * + *

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 Platform 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 GenaiUrlContextCallStepUrlContextCallStepArguments extends com.google.api.client.json.GenericJson { + + /** + * The URLs to fetch. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List urls; + + /** + * The URLs to fetch. + * @return value or {@code null} for none + */ + public java.util.List getUrls() { + return urls; + } + + /** + * The URLs to fetch. + * @param urls urls or {@code null} for none + */ + public GenaiUrlContextCallStepUrlContextCallStepArguments setUrls(java.util.List urls) { + this.urls = urls; + return this; + } + + @Override + public GenaiUrlContextCallStepUrlContextCallStepArguments set(String fieldName, Object value) { + return (GenaiUrlContextCallStepUrlContextCallStepArguments) super.set(fieldName, value); + } + + @Override + public GenaiUrlContextCallStepUrlContextCallStepArguments clone() { + return (GenaiUrlContextCallStepUrlContextCallStepArguments) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlContextResultContentUrlContextResult.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlContextResultContentUrlContextResult.java new file mode 100644 index 00000000000..381c10ce5e4 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlContextResultContentUrlContextResult.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.aiplatform.v1beta1.model; + +/** + * The result of the URL context. + * + *

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 Platform 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 GenaiUrlContextResultContentUrlContextResult extends com.google.api.client.json.GenericJson { + + /** + * The status of the URL retrieval. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * The URL that was fetched. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * The status of the URL retrieval. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * The status of the URL retrieval. + * @param status status or {@code null} for none + */ + public GenaiUrlContextResultContentUrlContextResult setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * The URL that was fetched. + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * The URL that was fetched. + * @param url url or {@code null} for none + */ + public GenaiUrlContextResultContentUrlContextResult setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public GenaiUrlContextResultContentUrlContextResult set(String fieldName, Object value) { + return (GenaiUrlContextResultContentUrlContextResult) super.set(fieldName, value); + } + + @Override + public GenaiUrlContextResultContentUrlContextResult clone() { + return (GenaiUrlContextResultContentUrlContextResult) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlContextResultDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlContextResultDelta.java new file mode 100644 index 00000000000..7a5d52a3e24 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlContextResultDelta.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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiUrlContextResultDelta. + * + *

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 Platform 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 GenaiUrlContextResultDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isError; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List result; + + static { + // hack to force ProGuard to consider GenaiUrlContextResultContentUrlContextResult used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiUrlContextResultContentUrlContextResult.class); + } + + /** + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsError() { + return isError; + } + + /** + * @param isError isError or {@code null} for none + */ + public GenaiUrlContextResultDelta setIsError(java.lang.Boolean isError) { + this.isError = isError; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getResult() { + return result; + } + + /** + * @param result result or {@code null} for none + */ + public GenaiUrlContextResultDelta setResult(java.util.List result) { + this.result = result; + return this; + } + + @Override + public GenaiUrlContextResultDelta set(String fieldName, Object value) { + return (GenaiUrlContextResultDelta) super.set(fieldName, value); + } + + @Override + public GenaiUrlContextResultDelta clone() { + return (GenaiUrlContextResultDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlContextResultStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlContextResultStep.java new file mode 100644 index 00000000000..35ccd47db8b --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlContextResultStep.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.aiplatform.v1beta1.model; + +/** + * URL context result step. + * + *

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 Platform 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 GenaiUrlContextResultStep extends com.google.api.client.json.GenericJson { + + /** + * Whether the URL context resulted in an error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isError; + + /** + * Required. The results of the URL context. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List result; + + /** + * Whether the URL context resulted in an error. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsError() { + return isError; + } + + /** + * Whether the URL context resulted in an error. + * @param isError isError or {@code null} for none + */ + public GenaiUrlContextResultStep setIsError(java.lang.Boolean isError) { + this.isError = isError; + return this; + } + + /** + * Required. The results of the URL context. + * @return value or {@code null} for none + */ + public java.util.List getResult() { + return result; + } + + /** + * Required. The results of the URL context. + * @param result result or {@code null} for none + */ + public GenaiUrlContextResultStep setResult(java.util.List result) { + this.result = result; + return this; + } + + @Override + public GenaiUrlContextResultStep set(String fieldName, Object value) { + return (GenaiUrlContextResultStep) super.set(fieldName, value); + } + + @Override + public GenaiUrlContextResultStep clone() { + return (GenaiUrlContextResultStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlContextResultStepUrlContextResultItem.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlContextResultStepUrlContextResultItem.java new file mode 100644 index 00000000000..e2a5392d5fc --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUrlContextResultStepUrlContextResultItem.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.aiplatform.v1beta1.model; + +/** + * The result of the URL context. + * + *

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 Platform 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 GenaiUrlContextResultStepUrlContextResultItem extends com.google.api.client.json.GenericJson { + + /** + * The status of the URL retrieval. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * The URL that was fetched. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * The status of the URL retrieval. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * The status of the URL retrieval. + * @param status status or {@code null} for none + */ + public GenaiUrlContextResultStepUrlContextResultItem setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * The URL that was fetched. + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * The URL that was fetched. + * @param url url or {@code null} for none + */ + public GenaiUrlContextResultStepUrlContextResultItem setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public GenaiUrlContextResultStepUrlContextResultItem set(String fieldName, Object value) { + return (GenaiUrlContextResultStepUrlContextResultItem) super.set(fieldName, value); + } + + @Override + public GenaiUrlContextResultStepUrlContextResultItem clone() { + return (GenaiUrlContextResultStepUrlContextResultItem) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUserInputStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUserInputStep.java new file mode 100644 index 00000000000..fa28776d219 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiUserInputStep.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.aiplatform.v1beta1.model; + +/** + * Input provided by the user. + * + *

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 Platform 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 GenaiUserInputStep extends com.google.api.client.json.GenericJson { + + /** + * The content of the step. An array of Content objects. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiContentList contentList; + + /** + * The content of the step. A single string. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String contentString; + + /** + * The content of the step. An array of Content objects. + * @return value or {@code null} for none + */ + public GenaiContentList getContentList() { + return contentList; + } + + /** + * The content of the step. An array of Content objects. + * @param contentList contentList or {@code null} for none + */ + public GenaiUserInputStep setContentList(GenaiContentList contentList) { + this.contentList = contentList; + return this; + } + + /** + * The content of the step. A single string. + * @return value or {@code null} for none + */ + public java.lang.String getContentString() { + return contentString; + } + + /** + * The content of the step. A single string. + * @param contentString contentString or {@code null} for none + */ + public GenaiUserInputStep setContentString(java.lang.String contentString) { + this.contentString = contentString; + return this; + } + + @Override + public GenaiUserInputStep set(String fieldName, Object value) { + return (GenaiUserInputStep) super.set(fieldName, value); + } + + @Override + public GenaiUserInputStep clone() { + return (GenaiUserInputStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiValue.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiValue.java new file mode 100644 index 00000000000..0a527254655 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiValue.java @@ -0,0 +1,212 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * `Value` represents a dynamically typed value which can be either null, a number, a string, a + * boolean, a recursive struct value, or a list of values. A producer of value is expected to set + * one of these variants. Absence of any variant indicates an error. + * + *

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 Platform 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 GenaiValue extends com.google.api.client.json.GenericJson { + + /** + * Represents a boolean value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean boolValue; + + /** + * Represents rich content (text, image, etc.). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiContent contentValue; + + /** + * Represents a repeated `Value`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiListValue listValue; + + /** + * Represents a null value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nullValue; + + /** + * Represents a double value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double numberValue; + + /** + * Represents a string value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stringValue; + + /** + * Represents a structured value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiStruct structValue; + + /** + * Represents a boolean value. + * @return value or {@code null} for none + */ + public java.lang.Boolean getBoolValue() { + return boolValue; + } + + /** + * Represents a boolean value. + * @param boolValue boolValue or {@code null} for none + */ + public GenaiValue setBoolValue(java.lang.Boolean boolValue) { + this.boolValue = boolValue; + return this; + } + + /** + * Represents rich content (text, image, etc.). + * @return value or {@code null} for none + */ + public GenaiContent getContentValue() { + return contentValue; + } + + /** + * Represents rich content (text, image, etc.). + * @param contentValue contentValue or {@code null} for none + */ + public GenaiValue setContentValue(GenaiContent contentValue) { + this.contentValue = contentValue; + return this; + } + + /** + * Represents a repeated `Value`. + * @return value or {@code null} for none + */ + public GenaiListValue getListValue() { + return listValue; + } + + /** + * Represents a repeated `Value`. + * @param listValue listValue or {@code null} for none + */ + public GenaiValue setListValue(GenaiListValue listValue) { + this.listValue = listValue; + return this; + } + + /** + * Represents a null value. + * @return value or {@code null} for none + */ + public java.lang.String getNullValue() { + return nullValue; + } + + /** + * Represents a null value. + * @param nullValue nullValue or {@code null} for none + */ + public GenaiValue setNullValue(java.lang.String nullValue) { + this.nullValue = nullValue; + return this; + } + + /** + * Represents a double value. + * @return value or {@code null} for none + */ + public java.lang.Double getNumberValue() { + return numberValue; + } + + /** + * Represents a double value. + * @param numberValue numberValue or {@code null} for none + */ + public GenaiValue setNumberValue(java.lang.Double numberValue) { + this.numberValue = numberValue; + return this; + } + + /** + * Represents a string value. + * @return value or {@code null} for none + */ + public java.lang.String getStringValue() { + return stringValue; + } + + /** + * Represents a string value. + * @param stringValue stringValue or {@code null} for none + */ + public GenaiValue setStringValue(java.lang.String stringValue) { + this.stringValue = stringValue; + return this; + } + + /** + * Represents a structured value. + * @return value or {@code null} for none + */ + public GenaiStruct getStructValue() { + return structValue; + } + + /** + * Represents a structured value. + * @param structValue structValue or {@code null} for none + */ + public GenaiValue setStructValue(GenaiStruct structValue) { + this.structValue = structValue; + return this; + } + + @Override + public GenaiValue set(String fieldName, Object value) { + return (GenaiValue) super.set(fieldName, value); + } + + @Override + public GenaiValue clone() { + return (GenaiValue) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Function.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Function.java index 847597f5680..909e40c090e 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Function.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Function.java @@ -44,7 +44,9 @@ public final class GenaiVertexV1beta1Function extends com.google.api.client.json private java.lang.String name; /** - * The JSON Schema for the function's parameters. + * The JSON Schema for the function's parameters. Supports a subset of JSON Schema. `minLength`, + * `maxLength`, `minProperties`, `maxProperties`, `uniqueItems`, `contains`, `minContains`, and + * `maxContains` are ignored and not enforced. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -85,7 +87,9 @@ public GenaiVertexV1beta1Function setName(java.lang.String name) { } /** - * The JSON Schema for the function's parameters. + * The JSON Schema for the function's parameters. Supports a subset of JSON Schema. `minLength`, + * `maxLength`, `minProperties`, `maxProperties`, `uniqueItems`, `contains`, `minContains`, and + * `maxContains` are ignored and not enforced. * @return value or {@code null} for none */ public GenaiVertexV1beta1Value getParameters() { @@ -93,7 +97,9 @@ public GenaiVertexV1beta1Value getParameters() { } /** - * The JSON Schema for the function's parameters. + * The JSON Schema for the function's parameters. Supports a subset of JSON Schema. `minLength`, + * `maxLength`, `minProperties`, `maxProperties`, `uniqueItems`, `contains`, `minContains`, and + * `maxContains` are ignored and not enforced. * @param parameters parameters or {@code null} for none */ public GenaiVertexV1beta1Function setParameters(GenaiVertexV1beta1Value parameters) { diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Interaction.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Interaction.java index be51a26efd4..9c5444d159c 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Interaction.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Interaction.java @@ -43,6 +43,15 @@ public final class GenaiVertexV1beta1Interaction extends com.google.api.client.j @com.google.api.client.util.Key private GenaiVertexV1beta1Content content; + /** + * Opaque token to resume a long decode. Output: set when status is REQUIRES_CONTINUATION and + * decoding can be resumed. Input: pass the latest token back unchanged in CreateInteraction to + * continue decoding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String continuationToken; + /** * Required. Output only. The time at which the response was created in ISO 8601 format (YYYY-MM- * DDThh:mm:ssZ). @@ -258,6 +267,59 @@ public GenaiVertexV1beta1Interaction setContent(GenaiVertexV1beta1Content conten return this; } + /** + * Opaque token to resume a long decode. Output: set when status is REQUIRES_CONTINUATION and + * decoding can be resumed. Input: pass the latest token back unchanged in CreateInteraction to + * continue decoding. + * @see #decodeContinuationToken() + * @return value or {@code null} for none + */ + public java.lang.String getContinuationToken() { + return continuationToken; + } + + /** + * Opaque token to resume a long decode. Output: set when status is REQUIRES_CONTINUATION and + * decoding can be resumed. Input: pass the latest token back unchanged in CreateInteraction to + * continue decoding. + * @see #getContinuationToken() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeContinuationToken() { + return com.google.api.client.util.Base64.decodeBase64(continuationToken); + } + + /** + * Opaque token to resume a long decode. Output: set when status is REQUIRES_CONTINUATION and + * decoding can be resumed. Input: pass the latest token back unchanged in CreateInteraction to + * continue decoding. + * @see #encodeContinuationToken() + * @param continuationToken continuationToken or {@code null} for none + */ + public GenaiVertexV1beta1Interaction setContinuationToken(java.lang.String continuationToken) { + this.continuationToken = continuationToken; + return this; + } + + /** + * Opaque token to resume a long decode. Output: set when status is REQUIRES_CONTINUATION and + * decoding can be resumed. Input: pass the latest token back unchanged in CreateInteraction to + * continue decoding. + * @see #setContinuationToken() + * + *

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

+ * + * @since 1.14 + */ + public GenaiVertexV1beta1Interaction encodeContinuationToken(byte[] continuationToken) { + this.continuationToken = com.google.api.client.util.Base64.encodeBase64URLSafeString(continuationToken); + return this; + } + /** * Required. Output only. The time at which the response was created in ISO 8601 format (YYYY-MM- * DDThh:mm:ssZ). diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1InteractionUsage.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1InteractionUsage.java index 64a78f34e2a..d3788885d65 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1InteractionUsage.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1InteractionUsage.java @@ -43,6 +43,13 @@ public final class GenaiVertexV1beta1InteractionUsage extends com.google.api.cli @com.google.api.client.util.Key private java.util.List groundingToolCount; + /** + * Number of input tokens used in the first turn of this interaction. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer initialInputTokens; + /** * A breakdown of input token usage by modality. * The value may be {@code null}. @@ -140,6 +147,23 @@ public GenaiVertexV1beta1InteractionUsage setGroundingToolCount(java.util.List 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 Platform 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 GenaiVideoContent extends com.google.api.client.json.GenericJson { + + /** + * The video content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String data; + + /** + * Flexible MIME type string of the video, superseding mime_type = 1. Note: Bespoke logic in the + * GAOS parser/serializer maps this to the "mime_type" JSON key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeTypeString; + + /** + * A user-defined name for this content block. Can be referenced by the model in the final + * response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVideoContentMediaProcessing processingConfig; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String processingType; + + /** + * The resolution of the media. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resolution; + + /** + * The URI of the video. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * The video content. + * @see #decodeData() + * @return value or {@code null} for none + */ + public java.lang.String getData() { + return data; + } + + /** + * The video content. + * @see #getData() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeData() { + return com.google.api.client.util.Base64.decodeBase64(data); + } + + /** + * The video content. + * @see #encodeData() + * @param data data or {@code null} for none + */ + public GenaiVideoContent setData(java.lang.String data) { + this.data = data; + return this; + } + + /** + * The video content. + * @see #setData() + * + *

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

+ * + * @since 1.14 + */ + public GenaiVideoContent encodeData(byte[] data) { + this.data = com.google.api.client.util.Base64.encodeBase64URLSafeString(data); + return this; + } + + /** + * Flexible MIME type string of the video, superseding mime_type = 1. Note: Bespoke logic in the + * GAOS parser/serializer maps this to the "mime_type" JSON key. + * @return value or {@code null} for none + */ + public java.lang.String getMimeTypeString() { + return mimeTypeString; + } + + /** + * Flexible MIME type string of the video, superseding mime_type = 1. Note: Bespoke logic in the + * GAOS parser/serializer maps this to the "mime_type" JSON key. + * @param mimeTypeString mimeTypeString or {@code null} for none + */ + public GenaiVideoContent setMimeTypeString(java.lang.String mimeTypeString) { + this.mimeTypeString = mimeTypeString; + return this; + } + + /** + * A user-defined name for this content block. Can be referenced by the model in the final + * response. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * A user-defined name for this content block. Can be referenced by the model in the final + * response. + * @param name name or {@code null} for none + */ + public GenaiVideoContent setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVideoContentMediaProcessing getProcessingConfig() { + return processingConfig; + } + + /** + * @param processingConfig processingConfig or {@code null} for none + */ + public GenaiVideoContent setProcessingConfig(GenaiVideoContentMediaProcessing processingConfig) { + this.processingConfig = processingConfig; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getProcessingType() { + return processingType; + } + + /** + * @param processingType processingType or {@code null} for none + */ + public GenaiVideoContent setProcessingType(java.lang.String processingType) { + this.processingType = processingType; + return this; + } + + /** + * The resolution of the media. + * @return value or {@code null} for none + */ + public java.lang.String getResolution() { + return resolution; + } + + /** + * The resolution of the media. + * @param resolution resolution or {@code null} for none + */ + public GenaiVideoContent setResolution(java.lang.String resolution) { + this.resolution = resolution; + return this; + } + + /** + * The URI of the video. + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * The URI of the video. + * @param uri uri or {@code null} for none + */ + public GenaiVideoContent setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public GenaiVideoContent set(String fieldName, Object value) { + return (GenaiVideoContent) super.set(fieldName, value); + } + + @Override + public GenaiVideoContent clone() { + return (GenaiVideoContent) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVideoContentMediaProcessing.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVideoContentMediaProcessing.java new file mode 100644 index 00000000000..29cae48d95c --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVideoContentMediaProcessing.java @@ -0,0 +1,63 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiVideoContentMediaProcessing. + * + *

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 Platform 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 GenaiVideoContentMediaProcessing extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("static") + private GenaiVideoContentStaticMediaProcessing static__; + + /** + * @return value or {@code null} for none + */ + public GenaiVideoContentStaticMediaProcessing getStatic() { + return static__; + } + + /** + * @param static__ static__ or {@code null} for none + */ + public GenaiVideoContentMediaProcessing setStatic(GenaiVideoContentStaticMediaProcessing static__) { + this.static__ = static__; + return this; + } + + @Override + public GenaiVideoContentMediaProcessing set(String fieldName, Object value) { + return (GenaiVideoContentMediaProcessing) super.set(fieldName, value); + } + + @Override + public GenaiVideoContentMediaProcessing clone() { + return (GenaiVideoContentMediaProcessing) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVideoContentStaticMediaProcessing.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVideoContentStaticMediaProcessing.java new file mode 100644 index 00000000000..36491f5e18e --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVideoContentStaticMediaProcessing.java @@ -0,0 +1,120 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiVideoContentStaticMediaProcessing. + * + *

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 Platform 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 GenaiVideoContentStaticMediaProcessing extends com.google.api.client.json.GenericJson { + + /** + * Optional. Segment end time. Specified as a decimal number of seconds followed by an 's' suffix, + * e.g., "30s". Must be non-negative and greater than `start_offset` if `start_offset` is set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endOffset; + + /** + * Optional. Video frame-rate sampling density. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double fps; + + /** + * Optional. Segment start time. Specified as a decimal number of seconds followed by an 's' + * suffix, e.g., "10.5s". Must be non-negative. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startOffset; + + /** + * Optional. Segment end time. Specified as a decimal number of seconds followed by an 's' suffix, + * e.g., "30s". Must be non-negative and greater than `start_offset` if `start_offset` is set. + * @return value or {@code null} for none + */ + public String getEndOffset() { + return endOffset; + } + + /** + * Optional. Segment end time. Specified as a decimal number of seconds followed by an 's' suffix, + * e.g., "30s". Must be non-negative and greater than `start_offset` if `start_offset` is set. + * @param endOffset endOffset or {@code null} for none + */ + public GenaiVideoContentStaticMediaProcessing setEndOffset(String endOffset) { + this.endOffset = endOffset; + return this; + } + + /** + * Optional. Video frame-rate sampling density. + * @return value or {@code null} for none + */ + public java.lang.Double getFps() { + return fps; + } + + /** + * Optional. Video frame-rate sampling density. + * @param fps fps or {@code null} for none + */ + public GenaiVideoContentStaticMediaProcessing setFps(java.lang.Double fps) { + this.fps = fps; + return this; + } + + /** + * Optional. Segment start time. Specified as a decimal number of seconds followed by an 's' + * suffix, e.g., "10.5s". Must be non-negative. + * @return value or {@code null} for none + */ + public String getStartOffset() { + return startOffset; + } + + /** + * Optional. Segment start time. Specified as a decimal number of seconds followed by an 's' + * suffix, e.g., "10.5s". Must be non-negative. + * @param startOffset startOffset or {@code null} for none + */ + public GenaiVideoContentStaticMediaProcessing setStartOffset(String startOffset) { + this.startOffset = startOffset; + return this; + } + + @Override + public GenaiVideoContentStaticMediaProcessing set(String fieldName, Object value) { + return (GenaiVideoContentStaticMediaProcessing) super.set(fieldName, value); + } + + @Override + public GenaiVideoContentStaticMediaProcessing clone() { + return (GenaiVideoContentStaticMediaProcessing) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVideoDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVideoDelta.java new file mode 100644 index 00000000000..cf593f29346 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVideoDelta.java @@ -0,0 +1,157 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Model definition for GenaiVideoDelta. + * + *

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 Platform 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 GenaiVideoDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String data; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeType; + + /** + * The resolution of the media. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resolution; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * @see #decodeData() + * @return value or {@code null} for none + */ + public java.lang.String getData() { + return data; + } + + /** + + * @see #getData() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeData() { + return com.google.api.client.util.Base64.decodeBase64(data); + } + + /** + * @see #encodeData() + * @param data data or {@code null} for none + */ + public GenaiVideoDelta setData(java.lang.String data) { + this.data = data; + return this; + } + + /** + + * @see #setData() + * + *

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

+ * + * @since 1.14 + */ + public GenaiVideoDelta encodeData(byte[] data) { + this.data = com.google.api.client.util.Base64.encodeBase64URLSafeString(data); + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getMimeType() { + return mimeType; + } + + /** + * @param mimeType mimeType or {@code null} for none + */ + public GenaiVideoDelta setMimeType(java.lang.String mimeType) { + this.mimeType = mimeType; + return this; + } + + /** + * The resolution of the media. + * @return value or {@code null} for none + */ + public java.lang.String getResolution() { + return resolution; + } + + /** + * The resolution of the media. + * @param resolution resolution or {@code null} for none + */ + public GenaiVideoDelta setResolution(java.lang.String resolution) { + this.resolution = resolution; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * @param uri uri or {@code null} for none + */ + public GenaiVideoDelta setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public GenaiVideoDelta set(String fieldName, Object value) { + return (GenaiVideoDelta) super.set(fieldName, value); + } + + @Override + public GenaiVideoDelta clone() { + return (GenaiVideoDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVideoResponseFormat.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVideoResponseFormat.java new file mode 100644 index 00000000000..91ab3329fbf --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVideoResponseFormat.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.aiplatform.v1beta1.model; + +/** + * Configuration for video output format. + * + *

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 Platform 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 GenaiVideoResponseFormat extends com.google.api.client.json.GenericJson { + + /** + * The aspect ratio for the video output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String aspectRatio; + + /** + * The delivery mode for the video output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String delivery; + + /** + * The duration for the video output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String duration; + + /** + * The Cloud Storage URI to store the video output. Required for Vertex if delivery mode is URI. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gcsUri; + + /** + * The video output resolution. Defaults to 720p. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resolution; + + /** + * The aspect ratio for the video output. + * @return value or {@code null} for none + */ + public java.lang.String getAspectRatio() { + return aspectRatio; + } + + /** + * The aspect ratio for the video output. + * @param aspectRatio aspectRatio or {@code null} for none + */ + public GenaiVideoResponseFormat setAspectRatio(java.lang.String aspectRatio) { + this.aspectRatio = aspectRatio; + return this; + } + + /** + * The delivery mode for the video output. + * @return value or {@code null} for none + */ + public java.lang.String getDelivery() { + return delivery; + } + + /** + * The delivery mode for the video output. + * @param delivery delivery or {@code null} for none + */ + public GenaiVideoResponseFormat setDelivery(java.lang.String delivery) { + this.delivery = delivery; + return this; + } + + /** + * The duration for the video output. + * @return value or {@code null} for none + */ + public String getDuration() { + return duration; + } + + /** + * The duration for the video output. + * @param duration duration or {@code null} for none + */ + public GenaiVideoResponseFormat setDuration(String duration) { + this.duration = duration; + return this; + } + + /** + * The Cloud Storage URI to store the video output. Required for Vertex if delivery mode is URI. + * @return value or {@code null} for none + */ + public java.lang.String getGcsUri() { + return gcsUri; + } + + /** + * The Cloud Storage URI to store the video output. Required for Vertex if delivery mode is URI. + * @param gcsUri gcsUri or {@code null} for none + */ + public GenaiVideoResponseFormat setGcsUri(java.lang.String gcsUri) { + this.gcsUri = gcsUri; + return this; + } + + /** + * The video output resolution. Defaults to 720p. + * @return value or {@code null} for none + */ + public java.lang.String getResolution() { + return resolution; + } + + /** + * The video output resolution. Defaults to 720p. + * @param resolution resolution or {@code null} for none + */ + public GenaiVideoResponseFormat setResolution(java.lang.String resolution) { + this.resolution = resolution; + return this; + } + + @Override + public GenaiVideoResponseFormat set(String fieldName, Object value) { + return (GenaiVideoResponseFormat) super.set(fieldName, value); + } + + @Override + public GenaiVideoResponseFormat clone() { + return (GenaiVideoResponseFormat) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiWordInfo.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiWordInfo.java new file mode 100644 index 00000000000..4e991726d9d --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiWordInfo.java @@ -0,0 +1,148 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Word-level ASR annotation for transcription output. Carries the word text, optional timing, and + * optional speaker attribution. + * + *

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 Platform 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 GenaiWordInfo extends com.google.api.client.json.GenericJson { + + /** + * End offset in time of the word relative to the start of the audio. Present when + * timestamp_granularities contains "word". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endOffset; + + /** + * Optional. Speaker label for this word (e.g. "spk_1", "spk_2"). Present when diarization_mode is + * set in TranscriptionConfig. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String speaker; + + /** + * Start offset in time of the word relative to the start of the audio. Present when + * timestamp_granularities contains "word". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startOffset; + + /** + * The transcribed word. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * End offset in time of the word relative to the start of the audio. Present when + * timestamp_granularities contains "word". + * @return value or {@code null} for none + */ + public String getEndOffset() { + return endOffset; + } + + /** + * End offset in time of the word relative to the start of the audio. Present when + * timestamp_granularities contains "word". + * @param endOffset endOffset or {@code null} for none + */ + public GenaiWordInfo setEndOffset(String endOffset) { + this.endOffset = endOffset; + return this; + } + + /** + * Optional. Speaker label for this word (e.g. "spk_1", "spk_2"). Present when diarization_mode is + * set in TranscriptionConfig. + * @return value or {@code null} for none + */ + public java.lang.String getSpeaker() { + return speaker; + } + + /** + * Optional. Speaker label for this word (e.g. "spk_1", "spk_2"). Present when diarization_mode is + * set in TranscriptionConfig. + * @param speaker speaker or {@code null} for none + */ + public GenaiWordInfo setSpeaker(java.lang.String speaker) { + this.speaker = speaker; + return this; + } + + /** + * Start offset in time of the word relative to the start of the audio. Present when + * timestamp_granularities contains "word". + * @return value or {@code null} for none + */ + public String getStartOffset() { + return startOffset; + } + + /** + * Start offset in time of the word relative to the start of the audio. Present when + * timestamp_granularities contains "word". + * @param startOffset startOffset or {@code null} for none + */ + public GenaiWordInfo setStartOffset(String startOffset) { + this.startOffset = startOffset; + return this; + } + + /** + * The transcribed word. + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * The transcribed word. + * @param text text or {@code null} for none + */ + public GenaiWordInfo setText(java.lang.String text) { + this.text = text; + return this; + } + + @Override + public GenaiWordInfo set(String fieldName, Object value) { + return (GenaiWordInfo) super.set(fieldName, value); + } + + @Override + public GenaiWordInfo clone() { + return (GenaiWordInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AddArtifactRequest.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AddArtifactRequest.java new file mode 100644 index 00000000000..2a7c6578a55 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AddArtifactRequest.java @@ -0,0 +1,126 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Request for ArtifactService.AddArtifact. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1AddArtifactRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The collaborative project to link the file to. Format: + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} Exactly + * one of `task` and `collaborative_project` must be set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String collaborativeProject; + + /** + * Required. The linked entity, stored as its `.link.json` file. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1LinkJsonMetadata linkJsonMetadata; + + /** + * Optional. The task to link the file to. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} Exactly one of `task` and + * `collaborative_project` must be set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String task; + + /** + * Optional. The collaborative project to link the file to. Format: + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} Exactly + * one of `task` and `collaborative_project` must be set. + * @return value or {@code null} for none + */ + public java.lang.String getCollaborativeProject() { + return collaborativeProject; + } + + /** + * Optional. The collaborative project to link the file to. Format: + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} Exactly + * one of `task` and `collaborative_project` must be set. + * @param collaborativeProject collaborativeProject or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AddArtifactRequest setCollaborativeProject(java.lang.String collaborativeProject) { + this.collaborativeProject = collaborativeProject; + return this; + } + + /** + * Required. The linked entity, stored as its `.link.json` file. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1LinkJsonMetadata getLinkJsonMetadata() { + return linkJsonMetadata; + } + + /** + * Required. The linked entity, stored as its `.link.json` file. + * @param linkJsonMetadata linkJsonMetadata or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AddArtifactRequest setLinkJsonMetadata(GoogleCloudAiplatformV1beta1LinkJsonMetadata linkJsonMetadata) { + this.linkJsonMetadata = linkJsonMetadata; + return this; + } + + /** + * Optional. The task to link the file to. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} Exactly one of `task` and + * `collaborative_project` must be set. + * @return value or {@code null} for none + */ + public java.lang.String getTask() { + return task; + } + + /** + * Optional. The task to link the file to. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} Exactly one of `task` and + * `collaborative_project` must be set. + * @param task task or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AddArtifactRequest setTask(java.lang.String task) { + this.task = task; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1AddArtifactRequest set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1AddArtifactRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1AddArtifactRequest clone() { + return (GoogleCloudAiplatformV1beta1AddArtifactRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AddArtifactResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AddArtifactResponse.java new file mode 100644 index 00000000000..2805b026e7d --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AddArtifactResponse.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * Response for ArtifactService.AddArtifact. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1AddArtifactResponse extends com.google.api.client.json.GenericJson { + + /** + * The ID of the added artifact. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String artifactId; + + /** + * The ID of the added artifact. + * @return value or {@code null} for none + */ + public java.lang.String getArtifactId() { + return artifactId; + } + + /** + * The ID of the added artifact. + * @param artifactId artifactId or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AddArtifactResponse setArtifactId(java.lang.String artifactId) { + this.artifactId = artifactId; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1AddArtifactResponse set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1AddArtifactResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1AddArtifactResponse clone() { + return (GoogleCloudAiplatformV1beta1AddArtifactResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Agent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Agent.java index 27a36c1cfdc..f151673f441 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Agent.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Agent.java @@ -29,6 +29,15 @@ @SuppressWarnings("javadoc") public final class GoogleCloudAiplatformV1beta1Agent extends com.google.api.client.json.GenericJson { + /** + * Optional. Immutable. The identity configuration of the agent. Immutable: the agent's own + * identity determines the A2 (CoWorker) archetype and the minted SPIFFE, so it cannot change + * after creation (no A1<->A2 transition). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1AgentIdentity agentIdentity; + /** * Output only. The resource name of the AI Application provisioned for this agent. Format: * `projects/{project}/locations/{location}/aiApplications/{ai_application}`. @@ -37,6 +46,15 @@ public final class GoogleCloudAiplatformV1beta1Agent extends com.google.api.clie @com.google.api.client.util.Key private java.lang.String aiApplication; + /** + * Optional. The identities this agent is allowed to contact outbound (for example over Gmail or + * Chat). Stored on the agent and always returned by `GetAgent`; see the field comments on + * `AllowedTeammates`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1AllowedTeammates allowedTeammates; + /** * Required. Immutable. The base agent for the agent. Supported values: * `antigravity- * preview-05-2026` Immutable: `UpdateAgent` rejects a change, including clearing it. The kind of @@ -77,6 +95,15 @@ public final class GoogleCloudAiplatformV1beta1Agent extends com.google.api.clie @com.google.api.client.util.Key private java.lang.String effectiveIdentity; + /** + * Optional. Immutable. Customer-managed encryption key spec for an Agent. If set, this agent's + * user data will be secured by this key; if not set, it is secured by a Google-managed key. + * Cannot be changed after the agent is created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1EncryptionSpec encryptionSpec; + /** * Immutable. The user-specified ID for the agent. This ID becomes the final component of the * agent resource name. If not provided, Vertex AI will generate a value for this ID. The ID can @@ -86,6 +113,13 @@ public final class GoogleCloudAiplatformV1beta1Agent extends com.google.api.clie @com.google.api.client.util.Key private java.lang.String id; + /** + * Optional. Memory settings for the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1AgentMemoryConfig memoryConfig; + /** * Optional. The metadata for the agent. * The value may be {@code null}. @@ -123,6 +157,38 @@ public final class GoogleCloudAiplatformV1beta1Agent extends com.google.api.clie @com.google.api.client.util.Key private GoogleCloudAiplatformV1beta1ObservabilityConfig observabilityConfig; + /** + * Optional. The human owner (principal) the agent acts on behalf of (A1 Personal). Mutable by + * design: ownership is meant to be reassignable (e.g. by an admin). On create an A1 (Personal) + * agent may omit it and the control plane defaults it to the caller; an A2 (CoWorker) agent must + * set it explicitly. `owner.id` must be an *obfuscated* Gaia id. A raw Gaia id is rejected with + * INVALID_ARGUMENT naming the rule -- both forms are strings of decimal digits, so the surface + * would otherwise have two indistinguishable spellings of one identity. Not yet: `UpdateAgent` + * currently rejects a change to this field. The control plane authorizes every agent method + * against the owner Gaia id it persists internally at create time, and the update path does not + * maintain that copy — so a field write here would move the reported owner without moving the one + * access control uses. The guard comes out once reassignment moves both, along with the Workspace + * identity provisioned under the owner. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1Principal owner; + + /** + * Optional. The persona (presentation) of the agent. Mutable: presentation only, not an + * archetype-derivation signal. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1Persona persona; + + /** + * Output only. The current operational state of the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1AgentStatus status; + /** * Optional. The instructions for the agent to follow. These instructions are passed to the LLM as * a system instruction. @@ -145,6 +211,27 @@ public final class GoogleCloudAiplatformV1beta1Agent extends com.google.api.clie @com.google.api.client.util.Key private String updated; + /** + * Optional. Immutable. The identity configuration of the agent. Immutable: the agent's own + * identity determines the A2 (CoWorker) archetype and the minted SPIFFE, so it cannot change + * after creation (no A1<->A2 transition). + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AgentIdentity getAgentIdentity() { + return agentIdentity; + } + + /** + * Optional. Immutable. The identity configuration of the agent. Immutable: the agent's own + * identity determines the A2 (CoWorker) archetype and the minted SPIFFE, so it cannot change + * after creation (no A1<->A2 transition). + * @param agentIdentity agentIdentity or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Agent setAgentIdentity(GoogleCloudAiplatformV1beta1AgentIdentity agentIdentity) { + this.agentIdentity = agentIdentity; + return this; + } + /** * Output only. The resource name of the AI Application provisioned for this agent. Format: * `projects/{project}/locations/{location}/aiApplications/{ai_application}`. @@ -164,6 +251,27 @@ public GoogleCloudAiplatformV1beta1Agent setAiApplication(java.lang.String aiApp return this; } + /** + * Optional. The identities this agent is allowed to contact outbound (for example over Gmail or + * Chat). Stored on the agent and always returned by `GetAgent`; see the field comments on + * `AllowedTeammates`. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AllowedTeammates getAllowedTeammates() { + return allowedTeammates; + } + + /** + * Optional. The identities this agent is allowed to contact outbound (for example over Gmail or + * Chat). Stored on the agent and always returned by `GetAgent`; see the field comments on + * `AllowedTeammates`. + * @param allowedTeammates allowedTeammates or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Agent setAllowedTeammates(GoogleCloudAiplatformV1beta1AllowedTeammates allowedTeammates) { + this.allowedTeammates = allowedTeammates; + return this; + } + /** * Required. Immutable. The base agent for the agent. Supported values: * `antigravity- * preview-05-2026` Immutable: `UpdateAgent` rejects a change, including clearing it. The kind of @@ -259,6 +367,27 @@ public GoogleCloudAiplatformV1beta1Agent setEffectiveIdentity(java.lang.String e return this; } + /** + * Optional. Immutable. Customer-managed encryption key spec for an Agent. If set, this agent's + * user data will be secured by this key; if not set, it is secured by a Google-managed key. + * Cannot be changed after the agent is created. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EncryptionSpec getEncryptionSpec() { + return encryptionSpec; + } + + /** + * Optional. Immutable. Customer-managed encryption key spec for an Agent. If set, this agent's + * user data will be secured by this key; if not set, it is secured by a Google-managed key. + * Cannot be changed after the agent is created. + * @param encryptionSpec encryptionSpec or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Agent setEncryptionSpec(GoogleCloudAiplatformV1beta1EncryptionSpec encryptionSpec) { + this.encryptionSpec = encryptionSpec; + return this; + } + /** * Immutable. The user-specified ID for the agent. This ID becomes the final component of the * agent resource name. If not provided, Vertex AI will generate a value for this ID. The ID can @@ -280,6 +409,23 @@ public GoogleCloudAiplatformV1beta1Agent setId(java.lang.String id) { return this; } + /** + * Optional. Memory settings for the agent. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AgentMemoryConfig getMemoryConfig() { + return memoryConfig; + } + + /** + * Optional. Memory settings for the agent. + * @param memoryConfig memoryConfig or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Agent setMemoryConfig(GoogleCloudAiplatformV1beta1AgentMemoryConfig memoryConfig) { + this.memoryConfig = memoryConfig; + return this; + } + /** * Optional. The metadata for the agent. * @return value or {@code null} for none @@ -369,6 +515,79 @@ public GoogleCloudAiplatformV1beta1Agent setObservabilityConfig(GoogleCloudAipla return this; } + /** + * Optional. The human owner (principal) the agent acts on behalf of (A1 Personal). Mutable by + * design: ownership is meant to be reassignable (e.g. by an admin). On create an A1 (Personal) + * agent may omit it and the control plane defaults it to the caller; an A2 (CoWorker) agent must + * set it explicitly. `owner.id` must be an *obfuscated* Gaia id. A raw Gaia id is rejected with + * INVALID_ARGUMENT naming the rule -- both forms are strings of decimal digits, so the surface + * would otherwise have two indistinguishable spellings of one identity. Not yet: `UpdateAgent` + * currently rejects a change to this field. The control plane authorizes every agent method + * against the owner Gaia id it persists internally at create time, and the update path does not + * maintain that copy — so a field write here would move the reported owner without moving the one + * access control uses. The guard comes out once reassignment moves both, along with the Workspace + * identity provisioned under the owner. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Principal getOwner() { + return owner; + } + + /** + * Optional. The human owner (principal) the agent acts on behalf of (A1 Personal). Mutable by + * design: ownership is meant to be reassignable (e.g. by an admin). On create an A1 (Personal) + * agent may omit it and the control plane defaults it to the caller; an A2 (CoWorker) agent must + * set it explicitly. `owner.id` must be an *obfuscated* Gaia id. A raw Gaia id is rejected with + * INVALID_ARGUMENT naming the rule -- both forms are strings of decimal digits, so the surface + * would otherwise have two indistinguishable spellings of one identity. Not yet: `UpdateAgent` + * currently rejects a change to this field. The control plane authorizes every agent method + * against the owner Gaia id it persists internally at create time, and the update path does not + * maintain that copy — so a field write here would move the reported owner without moving the one + * access control uses. The guard comes out once reassignment moves both, along with the Workspace + * identity provisioned under the owner. + * @param owner owner or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Agent setOwner(GoogleCloudAiplatformV1beta1Principal owner) { + this.owner = owner; + return this; + } + + /** + * Optional. The persona (presentation) of the agent. Mutable: presentation only, not an + * archetype-derivation signal. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Persona getPersona() { + return persona; + } + + /** + * Optional. The persona (presentation) of the agent. Mutable: presentation only, not an + * archetype-derivation signal. + * @param persona persona or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Agent setPersona(GoogleCloudAiplatformV1beta1Persona persona) { + this.persona = persona; + return this; + } + + /** + * Output only. The current operational state of the agent. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AgentStatus getStatus() { + return status; + } + + /** + * Output only. The current operational state of the agent. + * @param status status or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Agent setStatus(GoogleCloudAiplatformV1beta1AgentStatus status) { + this.status = status; + return this; + } + /** * Optional. The instructions for the agent to follow. These instructions are passed to the LLM as * a system instruction. diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentIdentity.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentIdentity.java new file mode 100644 index 00000000000..155220a03ca --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentIdentity.java @@ -0,0 +1,135 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Identity configuration for an agent. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1AgentIdentity extends com.google.api.client.json.GenericJson { + + /** + * Optional. The email address representing the agent's principal identity. For Google Workspace + * agents, the email should be on a verified customer domain. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String email; + + /** + * Output only. The agent's own obfuscated Gaia id. Set only for an A2 (CoWorker) agent, which is + * the only kind that has a first-class Gaia account of its own. An A1 (Personal) agent has no + * `AgentIdentity` at all: it acts on behalf of its owner, so the identity it runs as is + * `Agent.owner`, and there is no separate Gaia account to name. Populated asynchronously once the + * agent identity is provisioned, so it may be absent from the `CreateAgent` LRO response and + * present on `GetAgent`/`ListAgents`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gaiaId; + + /** + * Optional. The tenant / customer context under which this agent runs. For Google Workspace , + * this is the obfuscated Customer ID (e.g. "C0123abcd"). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1Tenant tenant; + + /** + * Optional. The email address representing the agent's principal identity. For Google Workspace + * agents, the email should be on a verified customer domain. + * @return value or {@code null} for none + */ + public java.lang.String getEmail() { + return email; + } + + /** + * Optional. The email address representing the agent's principal identity. For Google Workspace + * agents, the email should be on a verified customer domain. + * @param email email or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AgentIdentity setEmail(java.lang.String email) { + this.email = email; + return this; + } + + /** + * Output only. The agent's own obfuscated Gaia id. Set only for an A2 (CoWorker) agent, which is + * the only kind that has a first-class Gaia account of its own. An A1 (Personal) agent has no + * `AgentIdentity` at all: it acts on behalf of its owner, so the identity it runs as is + * `Agent.owner`, and there is no separate Gaia account to name. Populated asynchronously once the + * agent identity is provisioned, so it may be absent from the `CreateAgent` LRO response and + * present on `GetAgent`/`ListAgents`. + * @return value or {@code null} for none + */ + public java.lang.String getGaiaId() { + return gaiaId; + } + + /** + * Output only. The agent's own obfuscated Gaia id. Set only for an A2 (CoWorker) agent, which is + * the only kind that has a first-class Gaia account of its own. An A1 (Personal) agent has no + * `AgentIdentity` at all: it acts on behalf of its owner, so the identity it runs as is + * `Agent.owner`, and there is no separate Gaia account to name. Populated asynchronously once the + * agent identity is provisioned, so it may be absent from the `CreateAgent` LRO response and + * present on `GetAgent`/`ListAgents`. + * @param gaiaId gaiaId or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AgentIdentity setGaiaId(java.lang.String gaiaId) { + this.gaiaId = gaiaId; + return this; + } + + /** + * Optional. The tenant / customer context under which this agent runs. For Google Workspace , + * this is the obfuscated Customer ID (e.g. "C0123abcd"). + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Tenant getTenant() { + return tenant; + } + + /** + * Optional. The tenant / customer context under which this agent runs. For Google Workspace , + * this is the obfuscated Customer ID (e.g. "C0123abcd"). + * @param tenant tenant or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AgentIdentity setTenant(GoogleCloudAiplatformV1beta1Tenant tenant) { + this.tenant = tenant; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1AgentIdentity set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1AgentIdentity) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1AgentIdentity clone() { + return (GoogleCloudAiplatformV1beta1AgentIdentity) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentMemoryConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentMemoryConfig.java new file mode 100644 index 00000000000..d16f3d8229e --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentMemoryConfig.java @@ -0,0 +1,93 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Agent-level memory settings. These apply across every task the agent runs and every user of the + * agent: this is an agent-wide control, not a per-user one. To turn memory off for a single end + * user of a shared agent, the calling surface sets `TaskSpec.scope.memory_config.disable_memory` on + * that user's tasks. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1AgentMemoryConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. If true, memory is disabled for the agent as a whole: across every task it runs, the + * agent neither reads existing memories into the prompt nor forms new ones. Memory is on by + * default, and this is the setting that wins. A task may turn memory off for itself alone with + * `TaskSpec.scope.memory_config.disable_memory`, but cannot turn it back on while this is true; + * the two are OR'ed. This level wins because it is the mutable one. Turning it on has to cover + * the tasks that already exist, whose stored specs still say whatever they were created with, so + * the agent's current value is re-applied every time a session opens, including on a resume. + * Memories already stored are retained and stay readable by the agent's users; this governs only + * whether the agent can access and modify them. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disableMemory; + + /** + * Optional. If true, memory is disabled for the agent as a whole: across every task it runs, the + * agent neither reads existing memories into the prompt nor forms new ones. Memory is on by + * default, and this is the setting that wins. A task may turn memory off for itself alone with + * `TaskSpec.scope.memory_config.disable_memory`, but cannot turn it back on while this is true; + * the two are OR'ed. This level wins because it is the mutable one. Turning it on has to cover + * the tasks that already exist, whose stored specs still say whatever they were created with, so + * the agent's current value is re-applied every time a session opens, including on a resume. + * Memories already stored are retained and stay readable by the agent's users; this governs only + * whether the agent can access and modify them. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisableMemory() { + return disableMemory; + } + + /** + * Optional. If true, memory is disabled for the agent as a whole: across every task it runs, the + * agent neither reads existing memories into the prompt nor forms new ones. Memory is on by + * default, and this is the setting that wins. A task may turn memory off for itself alone with + * `TaskSpec.scope.memory_config.disable_memory`, but cannot turn it back on while this is true; + * the two are OR'ed. This level wins because it is the mutable one. Turning it on has to cover + * the tasks that already exist, whose stored specs still say whatever they were created with, so + * the agent's current value is re-applied every time a session opens, including on a resume. + * Memories already stored are retained and stay readable by the agent's users; this governs only + * whether the agent can access and modify them. + * @param disableMemory disableMemory or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AgentMemoryConfig setDisableMemory(java.lang.Boolean disableMemory) { + this.disableMemory = disableMemory; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1AgentMemoryConfig set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1AgentMemoryConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1AgentMemoryConfig clone() { + return (GoogleCloudAiplatformV1beta1AgentMemoryConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentStatus.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentStatus.java new file mode 100644 index 00000000000..ce23f4526c5 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentStatus.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.aiplatform.v1beta1.model; + +/** + * Operational state of the agent. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1AgentStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time at which the agent was soft-deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String deleteTime; + + /** + * Output only. The current state of the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. Context about the current active suspension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1AgentStatusSuspensionReason suspensionReason; + + /** + * Output only. The time at which the agent was soft-deleted. + * @return value or {@code null} for none + */ + public String getDeleteTime() { + return deleteTime; + } + + /** + * Output only. The time at which the agent was soft-deleted. + * @param deleteTime deleteTime or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AgentStatus setDeleteTime(String deleteTime) { + this.deleteTime = deleteTime; + return this; + } + + /** + * Output only. The current state of the agent. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The current state of the agent. + * @param state state or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AgentStatus setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. Context about the current active suspension. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AgentStatusSuspensionReason getSuspensionReason() { + return suspensionReason; + } + + /** + * Output only. Context about the current active suspension. + * @param suspensionReason suspensionReason or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AgentStatus setSuspensionReason(GoogleCloudAiplatformV1beta1AgentStatusSuspensionReason suspensionReason) { + this.suspensionReason = suspensionReason; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1AgentStatus set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1AgentStatus) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1AgentStatus clone() { + return (GoogleCloudAiplatformV1beta1AgentStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentStatusSuspensionReason.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentStatusSuspensionReason.java new file mode 100644 index 00000000000..ad351155990 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentStatusSuspensionReason.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.aiplatform.v1beta1.model; + +/** + * Details about the active suspension. This message is only populated if the state is SUSPENDED. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1AgentStatusSuspensionReason extends com.google.api.client.json.GenericJson { + + /** + * Output only. The reason for the current suspension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String reason; + + /** + * Output only. The time when the current suspension was applied. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String suspensionTime; + + /** + * Output only. The reason for the current suspension. + * @return value or {@code null} for none + */ + public java.lang.String getReason() { + return reason; + } + + /** + * Output only. The reason for the current suspension. + * @param reason reason or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AgentStatusSuspensionReason setReason(java.lang.String reason) { + this.reason = reason; + return this; + } + + /** + * Output only. The time when the current suspension was applied. + * @return value or {@code null} for none + */ + public String getSuspensionTime() { + return suspensionTime; + } + + /** + * Output only. The time when the current suspension was applied. + * @param suspensionTime suspensionTime or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AgentStatusSuspensionReason setSuspensionTime(String suspensionTime) { + this.suspensionTime = suspensionTime; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1AgentStatusSuspensionReason set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1AgentStatusSuspensionReason) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1AgentStatusSuspensionReason clone() { + return (GoogleCloudAiplatformV1beta1AgentStatusSuspensionReason) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentTool.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentTool.java index aafb8aa04ef..233b598f26e 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentTool.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentTool.java @@ -50,8 +50,9 @@ public final class GoogleCloudAiplatformV1beta1AgentTool extends com.google.api. private java.lang.String name; /** - * Required. The type of the tool. Supported types: * `code_execution` * `endpoint` * `filesystem` - * * `google_search` * `mcp_server` * `url_context` + * Required. The type of the tool. Supported types: * `audio_generation` * `code_execution` * + * `endpoint` * `filesystem` * `google_search` * `image_generation` * `mcp_server` * + * `speech_generation` * `url_context` * `video_generation` * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,8 +111,9 @@ public GoogleCloudAiplatformV1beta1AgentTool setName(java.lang.String name) { } /** - * Required. The type of the tool. Supported types: * `code_execution` * `endpoint` * `filesystem` - * * `google_search` * `mcp_server` * `url_context` + * Required. The type of the tool. Supported types: * `audio_generation` * `code_execution` * + * `endpoint` * `filesystem` * `google_search` * `image_generation` * `mcp_server` * + * `speech_generation` * `url_context` * `video_generation` * @return value or {@code null} for none */ public java.lang.String getType() { @@ -119,8 +121,9 @@ public java.lang.String getType() { } /** - * Required. The type of the tool. Supported types: * `code_execution` * `endpoint` * `filesystem` - * * `google_search` * `mcp_server` * `url_context` + * Required. The type of the tool. Supported types: * `audio_generation` * `code_execution` * + * `endpoint` * `filesystem` * `google_search` * `image_generation` * `mcp_server` * + * `speech_generation` * `url_context` * `video_generation` * @param type type or {@code null} for none */ public GoogleCloudAiplatformV1beta1AgentTool setType(java.lang.String type) { diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AllowedTeammates.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AllowedTeammates.java new file mode 100644 index 00000000000..d7fc95fd07e --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AllowedTeammates.java @@ -0,0 +1,83 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * The set of identities an agent is allowed to contact outbound -- who the agent may talk to, not + * who may talk to the agent (that is IAM's job). The membership is stored on the agent, so the + * Agents API is authoritative for what this field reports. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1AllowedTeammates extends com.google.api.client.json.GenericJson { + + /** + * Optional. The teammates the agent is permitted to contact. At most 500. OUTPUT: always + * returned. An empty list means the agent has no teammates, not that the field went unread. + * INPUT: the complete desired set, not a delta -- teammates absent from it are removed. The + * backing roster is updated asynchronously and best-effort after the write returns, so it may + * briefly lag what `GetAgent` reports. What the agent is actually able to reach follows the + * roster, not this field, until the two converge. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List teammates; + + /** + * Optional. The teammates the agent is permitted to contact. At most 500. OUTPUT: always + * returned. An empty list means the agent has no teammates, not that the field went unread. + * INPUT: the complete desired set, not a delta -- teammates absent from it are removed. The + * backing roster is updated asynchronously and best-effort after the write returns, so it may + * briefly lag what `GetAgent` reports. What the agent is actually able to reach follows the + * roster, not this field, until the two converge. + * @return value or {@code null} for none + */ + public java.util.List getTeammates() { + return teammates; + } + + /** + * Optional. The teammates the agent is permitted to contact. At most 500. OUTPUT: always + * returned. An empty list means the agent has no teammates, not that the field went unread. + * INPUT: the complete desired set, not a delta -- teammates absent from it are removed. The + * backing roster is updated asynchronously and best-effort after the write returns, so it may + * briefly lag what `GetAgent` reports. What the agent is actually able to reach follows the + * roster, not this field, until the two converge. + * @param teammates teammates or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AllowedTeammates setTeammates(java.util.List teammates) { + this.teammates = teammates; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1AllowedTeammates set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1AllowedTeammates) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1AllowedTeammates clone() { + return (GoogleCloudAiplatformV1beta1AllowedTeammates) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary.java index 8c092df829c..c29c68c8f17 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary.java @@ -29,6 +29,15 @@ @SuppressWarnings("javadoc") public final class GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary extends com.google.api.client.json.GenericJson { + /** + * Output only. The display names of the customer-defined detectors in `detector_ids`, keyed by + * detector ID. A detector ID with no entry -- a Google-managed detector, or a customer-defined + * detector that has since been deleted -- has no display name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map detectorDisplayNames; + /** * The list of detectors summaries for this severity level. * The value may be {@code null}. @@ -53,6 +62,27 @@ public final class GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary ex @com.google.api.client.util.Key private java.lang.String severityLevel; + /** + * Output only. The display names of the customer-defined detectors in `detector_ids`, keyed by + * detector ID. A detector ID with no entry -- a Google-managed detector, or a customer-defined + * detector that has since been deleted -- has no display name. + * @return value or {@code null} for none + */ + public java.util.Map getDetectorDisplayNames() { + return detectorDisplayNames; + } + + /** + * Output only. The display names of the customer-defined detectors in `detector_ids`, keyed by + * detector ID. A detector ID with no entry -- a Google-managed detector, or a customer-defined + * detector that has since been deleted -- has no display name. + * @param detectorDisplayNames detectorDisplayNames or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary setDetectorDisplayNames(java.util.Map detectorDisplayNames) { + this.detectorDisplayNames = detectorDisplayNames; + return this; + } + /** * The list of detectors summaries for this severity level. * @return value or {@code null} for none diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AudioTranscriptionConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AudioTranscriptionConfig.java index 3b9cc0e87d6..7b8f41ca1f9 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AudioTranscriptionConfig.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AudioTranscriptionConfig.java @@ -87,6 +87,15 @@ public final class GoogleCloudAiplatformV1beta1AudioTranscriptionConfig extends @com.google.api.client.util.Key private java.lang.String mode; + /** + * Optional. The source text to be edited or rewritten via voice instructions. When provided in + * `SMART` mode, the model evaluates the audio input against this text and emits the complete + * replacement text in the candidate response rather than appending to it. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceText; + /** * Optional. Configures word-level timestamp generation. * The value may be {@code null}. @@ -231,6 +240,27 @@ public GoogleCloudAiplatformV1beta1AudioTranscriptionConfig setMode(java.lang.St return this; } + /** + * Optional. The source text to be edited or rewritten via voice instructions. When provided in + * `SMART` mode, the model evaluates the audio input against this text and emits the complete + * replacement text in the candidate response rather than appending to it. + * @return value or {@code null} for none + */ + public java.lang.String getSourceText() { + return sourceText; + } + + /** + * Optional. The source text to be edited or rewritten via voice instructions. When provided in + * `SMART` mode, the model evaluates the audio input against this text and emits the complete + * replacement text in the candidate response rather than appending to it. + * @param sourceText sourceText or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AudioTranscriptionConfig setSourceText(java.lang.String sourceText) { + this.sourceText = sourceText; + return this; + } + /** * Optional. Configures word-level timestamp generation. * @return value or {@code null} for none diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AutoVerification.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AutoVerification.java new file mode 100644 index 00000000000..8797d4412d8 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AutoVerification.java @@ -0,0 +1,44 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Judges the goal against its own `spec`, with no separate criterion to write. List it more than + * once to run that many independent judgements of the same objective; as with any verifier, every + * `required` one must pass for the goal to succeed. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1AutoVerification extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudAiplatformV1beta1AutoVerification set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1AutoVerification) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1AutoVerification clone() { + return (GoogleCloudAiplatformV1beta1AutoVerification) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Budget.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Budget.java new file mode 100644 index 00000000000..e4b118ee5c6 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Budget.java @@ -0,0 +1,117 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Holistic resource caps metered across the entire task. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1Budget extends com.google.api.client.json.GenericJson { + + /** + * Optional. Maximum total tool calls across the whole task. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long maxToolCalls; + + /** + * Optional. Maximum total model tokens across the whole task. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long maxTotalTokens; + + /** + * Optional. Maximum wall-clock duration for the task. Counts only time spent in `WORKING` or + * `REQUIRES_ACTION`; `IDLE`, `QUEUED`, and `SUSPENDED` do not accrue. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String maxWallclock; + + /** + * Optional. Maximum total tool calls across the whole task. + * @return value or {@code null} for none + */ + public java.lang.Long getMaxToolCalls() { + return maxToolCalls; + } + + /** + * Optional. Maximum total tool calls across the whole task. + * @param maxToolCalls maxToolCalls or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Budget setMaxToolCalls(java.lang.Long maxToolCalls) { + this.maxToolCalls = maxToolCalls; + return this; + } + + /** + * Optional. Maximum total model tokens across the whole task. + * @return value or {@code null} for none + */ + public java.lang.Long getMaxTotalTokens() { + return maxTotalTokens; + } + + /** + * Optional. Maximum total model tokens across the whole task. + * @param maxTotalTokens maxTotalTokens or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Budget setMaxTotalTokens(java.lang.Long maxTotalTokens) { + this.maxTotalTokens = maxTotalTokens; + return this; + } + + /** + * Optional. Maximum wall-clock duration for the task. Counts only time spent in `WORKING` or + * `REQUIRES_ACTION`; `IDLE`, `QUEUED`, and `SUSPENDED` do not accrue. + * @return value or {@code null} for none + */ + public String getMaxWallclock() { + return maxWallclock; + } + + /** + * Optional. Maximum wall-clock duration for the task. Counts only time spent in `WORKING` or + * `REQUIRES_ACTION`; `IDLE`, `QUEUED`, and `SUSPENDED` do not accrue. + * @param maxWallclock maxWallclock or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Budget setMaxWallclock(String maxWallclock) { + this.maxWallclock = maxWallclock; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1Budget set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1Budget) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1Budget clone() { + return (GoogleCloudAiplatformV1beta1Budget) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1BudgetConsumptionDetail.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1BudgetConsumptionDetail.java new file mode 100644 index 00000000000..3ed1cb05fa6 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1BudgetConsumptionDetail.java @@ -0,0 +1,120 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Observability snapshot of budget consumption for a Task . + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1BudgetConsumptionDetail extends com.google.api.client.json.GenericJson { + + /** + * Output only. Spend broken down by consumer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List attributions; + + /** + * Output only. Token budget status. This is only populated if the Task has a token limit Budget + * set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1BudgetConsumptionDetailConsumption tokenConsumption; + + /** + * Output only. Tool-call budget status. This is only populated if the Task has a tool call Budget + * limit set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1BudgetConsumptionDetailConsumption toolCallConsumption; + + /** + * Output only. Spend broken down by consumer. + * @return value or {@code null} for none + */ + public java.util.List getAttributions() { + return attributions; + } + + /** + * Output only. Spend broken down by consumer. + * @param attributions attributions or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetail setAttributions(java.util.List attributions) { + this.attributions = attributions; + return this; + } + + /** + * Output only. Token budget status. This is only populated if the Task has a token limit Budget + * set. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetailConsumption getTokenConsumption() { + return tokenConsumption; + } + + /** + * Output only. Token budget status. This is only populated if the Task has a token limit Budget + * set. + * @param tokenConsumption tokenConsumption or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetail setTokenConsumption(GoogleCloudAiplatformV1beta1BudgetConsumptionDetailConsumption tokenConsumption) { + this.tokenConsumption = tokenConsumption; + return this; + } + + /** + * Output only. Tool-call budget status. This is only populated if the Task has a tool call Budget + * limit set. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetailConsumption getToolCallConsumption() { + return toolCallConsumption; + } + + /** + * Output only. Tool-call budget status. This is only populated if the Task has a tool call Budget + * limit set. + * @param toolCallConsumption toolCallConsumption or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetail setToolCallConsumption(GoogleCloudAiplatformV1beta1BudgetConsumptionDetailConsumption toolCallConsumption) { + this.toolCallConsumption = toolCallConsumption; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetail set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1BudgetConsumptionDetail) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetail clone() { + return (GoogleCloudAiplatformV1beta1BudgetConsumptionDetail) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttribution.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttribution.java new file mode 100644 index 00000000000..78c3bf23555 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttribution.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.aiplatform.v1beta1.model; + +/** + * Per-consumer attribution: which unit of the Task tree incurred the spend. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttribution extends com.google.api.client.json.GenericJson { + + /** + * Output only. The root Task's own spend. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionRoot root; + + /** + * Output only. This consumer's spend, per dimension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionSpend spent; + + /** + * Output only. A spawned sub-Task's spend. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionSubTask subTask; + + /** + * Output only. The root Task's own spend. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionRoot getRoot() { + return root; + } + + /** + * Output only. The root Task's own spend. + * @param root root or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttribution setRoot(GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionRoot root) { + this.root = root; + return this; + } + + /** + * Output only. This consumer's spend, per dimension. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionSpend getSpent() { + return spent; + } + + /** + * Output only. This consumer's spend, per dimension. + * @param spent spent or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttribution setSpent(GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionSpend spent) { + this.spent = spent; + return this; + } + + /** + * Output only. A spawned sub-Task's spend. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionSubTask getSubTask() { + return subTask; + } + + /** + * Output only. A spawned sub-Task's spend. + * @param subTask subTask or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttribution setSubTask(GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionSubTask subTask) { + this.subTask = subTask; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttribution set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttribution) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttribution clone() { + return (GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttribution) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionRoot.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionRoot.java new file mode 100644 index 00000000000..c7ab423b5c8 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionRoot.java @@ -0,0 +1,42 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * The root (owning) Task's own spend. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionRoot extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionRoot set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionRoot) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionRoot clone() { + return (GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionRoot) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionSpend.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionSpend.java new file mode 100644 index 00000000000..cb9225b3ddf --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionSpend.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.aiplatform.v1beta1.model; + +/** + * A consumer's spend, per Budget dimension. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionSpend extends com.google.api.client.json.GenericJson { + + /** + * Output only. Tokens spent by this consumer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long tokenCount; + + /** + * Output only. Tool calls spent by this consumer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long toolCallCount; + + /** + * Output only. Tokens spent by this consumer. + * @return value or {@code null} for none + */ + public java.lang.Long getTokenCount() { + return tokenCount; + } + + /** + * Output only. Tokens spent by this consumer. + * @param tokenCount tokenCount or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionSpend setTokenCount(java.lang.Long tokenCount) { + this.tokenCount = tokenCount; + return this; + } + + /** + * Output only. Tool calls spent by this consumer. + * @return value or {@code null} for none + */ + public java.lang.Long getToolCallCount() { + return toolCallCount; + } + + /** + * Output only. Tool calls spent by this consumer. + * @param toolCallCount toolCallCount or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionSpend setToolCallCount(java.lang.Long toolCallCount) { + this.toolCallCount = toolCallCount; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionSpend set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionSpend) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionSpend clone() { + return (GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionSpend) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionSubTask.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionSubTask.java new file mode 100644 index 00000000000..f28e100f99f --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionSubTask.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * A spawned sub-Task's spend. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionSubTask extends com.google.api.client.json.GenericJson { + + /** + * Output only. Resource name of the sub-Task that incurred the spend. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String task; + + /** + * Output only. Resource name of the sub-Task that incurred the spend. + * @return value or {@code null} for none + */ + public java.lang.String getTask() { + return task; + } + + /** + * Output only. Resource name of the sub-Task that incurred the spend. + * @param task task or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionSubTask setTask(java.lang.String task) { + this.task = task; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionSubTask set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionSubTask) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionSubTask clone() { + return (GoogleCloudAiplatformV1beta1BudgetConsumptionDetailAttributionSubTask) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1BudgetConsumptionDetailConsumption.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1BudgetConsumptionDetailConsumption.java new file mode 100644 index 00000000000..f292890bd8b --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1BudgetConsumptionDetailConsumption.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.aiplatform.v1beta1.model; + +/** + * Consumption for one budget dimension. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1BudgetConsumptionDetailConsumption extends com.google.api.client.json.GenericJson { + + /** + * Output only. The cap from `TaskSpec.budget` for this dimension's consumption. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long limit; + + /** + * Output only. Amount consumed so far. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long spent; + + /** + * Output only. The cap from `TaskSpec.budget` for this dimension's consumption. + * @return value or {@code null} for none + */ + public java.lang.Long getLimit() { + return limit; + } + + /** + * Output only. The cap from `TaskSpec.budget` for this dimension's consumption. + * @param limit limit or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetailConsumption setLimit(java.lang.Long limit) { + this.limit = limit; + return this; + } + + /** + * Output only. Amount consumed so far. + * @return value or {@code null} for none + */ + public java.lang.Long getSpent() { + return spent; + } + + /** + * Output only. Amount consumed so far. + * @param spent spent or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetailConsumption setSpent(java.lang.Long spent) { + this.spent = spent; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetailConsumption set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1BudgetConsumptionDetailConsumption) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetailConsumption clone() { + return (GoogleCloudAiplatformV1beta1BudgetConsumptionDetailConsumption) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CancelTaskRequest.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CancelTaskRequest.java new file mode 100644 index 00000000000..209ab1aacf6 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CancelTaskRequest.java @@ -0,0 +1,84 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Request for TaskService.CancelTask. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1CancelTaskRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether to skip cascading cancellation to all descendant subtasks. Defaults to false + * (cascades to all descendants by default). Matches + * google.cloud.aiplatform.master.SuspendTaskRequest.operate_on_self. Behavior for CancelTaskLro + * (cascade semantics do not apply to the deprecated sync CancelTask method, which is always self- + * only): UNSET or false ⇒ cascade to non-terminal descendants (gated by Mendel flag + * sobi_enable_cascading_cancel_task; returns FAILED_PRECONDITION when the flag is OFF and the + * task has non-terminal children). true ⇒ cancel this task only. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean operateOnSelf; + + /** + * Optional. Whether to skip cascading cancellation to all descendant subtasks. Defaults to false + * (cascades to all descendants by default). Matches + * google.cloud.aiplatform.master.SuspendTaskRequest.operate_on_self. Behavior for CancelTaskLro + * (cascade semantics do not apply to the deprecated sync CancelTask method, which is always self- + * only): UNSET or false ⇒ cascade to non-terminal descendants (gated by Mendel flag + * sobi_enable_cascading_cancel_task; returns FAILED_PRECONDITION when the flag is OFF and the + * task has non-terminal children). true ⇒ cancel this task only. + * @return value or {@code null} for none + */ + public java.lang.Boolean getOperateOnSelf() { + return operateOnSelf; + } + + /** + * Optional. Whether to skip cascading cancellation to all descendant subtasks. Defaults to false + * (cascades to all descendants by default). Matches + * google.cloud.aiplatform.master.SuspendTaskRequest.operate_on_self. Behavior for CancelTaskLro + * (cascade semantics do not apply to the deprecated sync CancelTask method, which is always self- + * only): UNSET or false ⇒ cascade to non-terminal descendants (gated by Mendel flag + * sobi_enable_cascading_cancel_task; returns FAILED_PRECONDITION when the flag is OFF and the + * task has non-terminal children). true ⇒ cancel this task only. + * @param operateOnSelf operateOnSelf or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CancelTaskRequest setOperateOnSelf(java.lang.Boolean operateOnSelf) { + this.operateOnSelf = operateOnSelf; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1CancelTaskRequest set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1CancelTaskRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1CancelTaskRequest clone() { + return (GoogleCloudAiplatformV1beta1CancelTaskRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CollaborativeProject.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CollaborativeProject.java new file mode 100644 index 00000000000..8a1fd64ca25 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CollaborativeProject.java @@ -0,0 +1,220 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A shared workspace for a user's related tasks . A CollaborativeProject is a top-level resource. + * Only the user who created it can read or change it. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1CollaborativeProject extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time the project was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Required. The user-visible name of the project. At most 256 characters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Optional. The emoji shown as the project's icon. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String emoji; + + /** + * Optional. The full path of the local folder that backs the project, for a project created in + * the desktop app. Empty for a project created anywhere else. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String folder; + + /** + * Identifier. The resource name of the project. The service assigns the final ID segment. Format: + * `projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. Unordered list. The participants granted access to the project. Each + * `(participant_type, identifier)` pair can appear at most once. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List trustedParticipants; + + /** + * Output only. The time the project was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. The time the project was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the project was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CollaborativeProject setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Required. The user-visible name of the project. At most 256 characters. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. The user-visible name of the project. At most 256 characters. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CollaborativeProject setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Optional. The emoji shown as the project's icon. + * @return value or {@code null} for none + */ + public java.lang.String getEmoji() { + return emoji; + } + + /** + * Optional. The emoji shown as the project's icon. + * @param emoji emoji or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CollaborativeProject setEmoji(java.lang.String emoji) { + this.emoji = emoji; + return this; + } + + /** + * Optional. The full path of the local folder that backs the project, for a project created in + * the desktop app. Empty for a project created anywhere else. + * @return value or {@code null} for none + */ + public java.lang.String getFolder() { + return folder; + } + + /** + * Optional. The full path of the local folder that backs the project, for a project created in + * the desktop app. Empty for a project created anywhere else. + * @param folder folder or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CollaborativeProject setFolder(java.lang.String folder) { + this.folder = folder; + return this; + } + + /** + * Identifier. The resource name of the project. The service assigns the final ID segment. Format: + * `projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project}`. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the project. The service assigns the final ID segment. Format: + * `projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project}`. + * @param name name or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CollaborativeProject setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. Unordered list. The participants granted access to the project. Each + * `(participant_type, identifier)` pair can appear at most once. + * @return value or {@code null} for none + */ + public java.util.List getTrustedParticipants() { + return trustedParticipants; + } + + /** + * Optional. Unordered list. The participants granted access to the project. Each + * `(participant_type, identifier)` pair can appear at most once. + * @param trustedParticipants trustedParticipants or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CollaborativeProject setTrustedParticipants(java.util.List trustedParticipants) { + this.trustedParticipants = trustedParticipants; + return this; + } + + /** + * Output only. The time the project was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The time the project was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CollaborativeProject setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1CollaborativeProject set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1CollaborativeProject) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1CollaborativeProject clone() { + return (GoogleCloudAiplatformV1beta1CollaborativeProject) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CollaborativeProjectConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CollaborativeProjectConfig.java new file mode 100644 index 00000000000..51b0ebdd72e --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CollaborativeProjectConfig.java @@ -0,0 +1,88 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Scopes a task to a `CollaborativeProject` . Starts with the collaborative project resource + * reference; extensible with per-task collaborative project settings without a breaking change. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1CollaborativeProjectConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The resource name of the `CollaborativeProject` this task is scoped to: + * `projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project}` The + * `{project}` segment must match the task's own Google Cloud project. Empty when the task is not + * scoped to a collaborative project. Only a root task (`parent_task_id` unset) may set or update + * this field; when `parent_task_id` is set, the subtask automatically inherits its root task's + * collaborative project (setting a different value is rejected with `INVALID_ARGUMENT`). Updating + * or clearing this field via `UpdateTask` is only allowed while the task is in the `IDLE` state + * (attempts in any other state are rejected with `FAILED_PRECONDITION`). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String collaborativeProject; + + /** + * Optional. The resource name of the `CollaborativeProject` this task is scoped to: + * `projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project}` The + * `{project}` segment must match the task's own Google Cloud project. Empty when the task is not + * scoped to a collaborative project. Only a root task (`parent_task_id` unset) may set or update + * this field; when `parent_task_id` is set, the subtask automatically inherits its root task's + * collaborative project (setting a different value is rejected with `INVALID_ARGUMENT`). Updating + * or clearing this field via `UpdateTask` is only allowed while the task is in the `IDLE` state + * (attempts in any other state are rejected with `FAILED_PRECONDITION`). + * @return value or {@code null} for none + */ + public java.lang.String getCollaborativeProject() { + return collaborativeProject; + } + + /** + * Optional. The resource name of the `CollaborativeProject` this task is scoped to: + * `projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project}` The + * `{project}` segment must match the task's own Google Cloud project. Empty when the task is not + * scoped to a collaborative project. Only a root task (`parent_task_id` unset) may set or update + * this field; when `parent_task_id` is set, the subtask automatically inherits its root task's + * collaborative project (setting a different value is rejected with `INVALID_ARGUMENT`). Updating + * or clearing this field via `UpdateTask` is only allowed while the task is in the `IDLE` state + * (attempts in any other state are rejected with `FAILED_PRECONDITION`). + * @param collaborativeProject collaborativeProject or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CollaborativeProjectConfig setCollaborativeProject(java.lang.String collaborativeProject) { + this.collaborativeProject = collaborativeProject; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1CollaborativeProjectConfig set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1CollaborativeProjectConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1CollaborativeProjectConfig clone() { + return (GoogleCloudAiplatformV1beta1CollaborativeProjectConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ContextScope.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ContextScope.java new file mode 100644 index 00000000000..6c15836d4fd --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ContextScope.java @@ -0,0 +1,303 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * The scoped context a task runs within. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1ContextScope extends com.google.api.client.json.GenericJson { + + /** + * Keep only these tools from the agent's inherited set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1ToolRefs allowedTools; + + /** + * Optional. Optional collaborative project configuration for this task. Only a root task + * (`parent_task_id` unset) may set or update this field; when `parent_task_id` is set, the + * subtask automatically inherits its root task's collaborative project (setting a different value + * is rejected with `INVALID_ARGUMENT`). Updating or clearing this field via `UpdateTask` is only + * allowed while the task is in the `IDLE` state (attempts in any other state are rejected with + * `FAILED_PRECONDITION`). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1CollaborativeProjectConfig collaborativeProject; + + /** + * Optional. Data connector configuration for this task. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1DataConnectorConfig dataConnectorConfig; + + /** + * Optional. Optional server-managed sandbox environment for the task: skills and tools mounted + * into the sandbox plus the egress policy. Reuses the Interactions EnvironmentConfig (e.g. + * SKILL_REGISTRY sources to mount skills, network egress allowlist). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiEnvironmentConfig environment; + + /** + * Remove these tools from the agent's inherited set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1ToolRefs excludedTools; + + /** + * Optional. Optional browser on the connecting client that the task's browser actions run on, + * instead of a browser in a server-managed sandbox. Supported with `environment`, + * `no_environment`, or no `environment_config`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1ExternalBrowser externalBrowser; + + /** + * Optional. Optional directory on the connecting client mounted into the task's server-managed + * environment. File operations under its `mount_path` are relayed to the client. Supported only + * when `environment` is set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1ExternalMount externalMount; + + /** + * Optional. Optional client-side ("local") environment: the agent's built-in filesystem/shell + * operations are yielded to the connecting client (e.g. the gogo desktop client) to execute + * locally, instead of running in a server-managed sandbox. Mirrors Interaction.local_environment + * and is mutually exclusive with `environment`. (Independent of any client-declared function + * tools, which are always executed on the client regardless of this field.) + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiLocalEnvironmentConfig localEnvironment; + + /** + * Optional. Memory settings for this task. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1TaskMemoryConfig memoryConfig; + + /** + * Keep only these tools from the agent's inherited set. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ToolRefs getAllowedTools() { + return allowedTools; + } + + /** + * Keep only these tools from the agent's inherited set. + * @param allowedTools allowedTools or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ContextScope setAllowedTools(GoogleCloudAiplatformV1beta1ToolRefs allowedTools) { + this.allowedTools = allowedTools; + return this; + } + + /** + * Optional. Optional collaborative project configuration for this task. Only a root task + * (`parent_task_id` unset) may set or update this field; when `parent_task_id` is set, the + * subtask automatically inherits its root task's collaborative project (setting a different value + * is rejected with `INVALID_ARGUMENT`). Updating or clearing this field via `UpdateTask` is only + * allowed while the task is in the `IDLE` state (attempts in any other state are rejected with + * `FAILED_PRECONDITION`). + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CollaborativeProjectConfig getCollaborativeProject() { + return collaborativeProject; + } + + /** + * Optional. Optional collaborative project configuration for this task. Only a root task + * (`parent_task_id` unset) may set or update this field; when `parent_task_id` is set, the + * subtask automatically inherits its root task's collaborative project (setting a different value + * is rejected with `INVALID_ARGUMENT`). Updating or clearing this field via `UpdateTask` is only + * allowed while the task is in the `IDLE` state (attempts in any other state are rejected with + * `FAILED_PRECONDITION`). + * @param collaborativeProject collaborativeProject or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ContextScope setCollaborativeProject(GoogleCloudAiplatformV1beta1CollaborativeProjectConfig collaborativeProject) { + this.collaborativeProject = collaborativeProject; + return this; + } + + /** + * Optional. Data connector configuration for this task. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1DataConnectorConfig getDataConnectorConfig() { + return dataConnectorConfig; + } + + /** + * Optional. Data connector configuration for this task. + * @param dataConnectorConfig dataConnectorConfig or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ContextScope setDataConnectorConfig(GoogleCloudAiplatformV1beta1DataConnectorConfig dataConnectorConfig) { + this.dataConnectorConfig = dataConnectorConfig; + return this; + } + + /** + * Optional. Optional server-managed sandbox environment for the task: skills and tools mounted + * into the sandbox plus the egress policy. Reuses the Interactions EnvironmentConfig (e.g. + * SKILL_REGISTRY sources to mount skills, network egress allowlist). + * @return value or {@code null} for none + */ + public GenaiEnvironmentConfig getEnvironment() { + return environment; + } + + /** + * Optional. Optional server-managed sandbox environment for the task: skills and tools mounted + * into the sandbox plus the egress policy. Reuses the Interactions EnvironmentConfig (e.g. + * SKILL_REGISTRY sources to mount skills, network egress allowlist). + * @param environment environment or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ContextScope setEnvironment(GenaiEnvironmentConfig environment) { + this.environment = environment; + return this; + } + + /** + * Remove these tools from the agent's inherited set. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ToolRefs getExcludedTools() { + return excludedTools; + } + + /** + * Remove these tools from the agent's inherited set. + * @param excludedTools excludedTools or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ContextScope setExcludedTools(GoogleCloudAiplatformV1beta1ToolRefs excludedTools) { + this.excludedTools = excludedTools; + return this; + } + + /** + * Optional. Optional browser on the connecting client that the task's browser actions run on, + * instead of a browser in a server-managed sandbox. Supported with `environment`, + * `no_environment`, or no `environment_config`. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ExternalBrowser getExternalBrowser() { + return externalBrowser; + } + + /** + * Optional. Optional browser on the connecting client that the task's browser actions run on, + * instead of a browser in a server-managed sandbox. Supported with `environment`, + * `no_environment`, or no `environment_config`. + * @param externalBrowser externalBrowser or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ContextScope setExternalBrowser(GoogleCloudAiplatformV1beta1ExternalBrowser externalBrowser) { + this.externalBrowser = externalBrowser; + return this; + } + + /** + * Optional. Optional directory on the connecting client mounted into the task's server-managed + * environment. File operations under its `mount_path` are relayed to the client. Supported only + * when `environment` is set. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ExternalMount getExternalMount() { + return externalMount; + } + + /** + * Optional. Optional directory on the connecting client mounted into the task's server-managed + * environment. File operations under its `mount_path` are relayed to the client. Supported only + * when `environment` is set. + * @param externalMount externalMount or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ContextScope setExternalMount(GoogleCloudAiplatformV1beta1ExternalMount externalMount) { + this.externalMount = externalMount; + return this; + } + + /** + * Optional. Optional client-side ("local") environment: the agent's built-in filesystem/shell + * operations are yielded to the connecting client (e.g. the gogo desktop client) to execute + * locally, instead of running in a server-managed sandbox. Mirrors Interaction.local_environment + * and is mutually exclusive with `environment`. (Independent of any client-declared function + * tools, which are always executed on the client regardless of this field.) + * @return value or {@code null} for none + */ + public GenaiLocalEnvironmentConfig getLocalEnvironment() { + return localEnvironment; + } + + /** + * Optional. Optional client-side ("local") environment: the agent's built-in filesystem/shell + * operations are yielded to the connecting client (e.g. the gogo desktop client) to execute + * locally, instead of running in a server-managed sandbox. Mirrors Interaction.local_environment + * and is mutually exclusive with `environment`. (Independent of any client-declared function + * tools, which are always executed on the client regardless of this field.) + * @param localEnvironment localEnvironment or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ContextScope setLocalEnvironment(GenaiLocalEnvironmentConfig localEnvironment) { + this.localEnvironment = localEnvironment; + return this; + } + + /** + * Optional. Memory settings for this task. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskMemoryConfig getMemoryConfig() { + return memoryConfig; + } + + /** + * Optional. Memory settings for this task. + * @param memoryConfig memoryConfig or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ContextScope setMemoryConfig(GoogleCloudAiplatformV1beta1TaskMemoryConfig memoryConfig) { + this.memoryConfig = memoryConfig; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1ContextScope set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1ContextScope) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1ContextScope clone() { + return (GoogleCloudAiplatformV1beta1ContextScope) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CronSchedule.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CronSchedule.java new file mode 100644 index 00000000000..c6c3d7a4d9b --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CronSchedule.java @@ -0,0 +1,105 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A recurring cron trigger. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1CronSchedule extends com.google.api.client.json.GenericJson { + + /** + * Required. The cron expression, e.g. "0 8 * * MON-FRI". Any field may also be `?` or `?/step` to + * let the service pick the value, so that schedules do not all fire at the same moment: `?` picks + * one value in the field's range, and `?/step` picks a start within the first step and repeats + * every step from there. The pick is made once, when the schedule is created or updated, and the + * expression is stored with the picked values in place of `?` (e.g. "?/30 * * * *" is stored as + * "17-59/30 * * * *"); sending a `?` again picks new values. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String expression; + + /** + * Optional. Optional IANA time zone name, e.g. "America/Los_Angeles". Defaults to UTC. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String timeZone; + + /** + * Required. The cron expression, e.g. "0 8 * * MON-FRI". Any field may also be `?` or `?/step` to + * let the service pick the value, so that schedules do not all fire at the same moment: `?` picks + * one value in the field's range, and `?/step` picks a start within the first step and repeats + * every step from there. The pick is made once, when the schedule is created or updated, and the + * expression is stored with the picked values in place of `?` (e.g. "?/30 * * * *" is stored as + * "17-59/30 * * * *"); sending a `?` again picks new values. + * @return value or {@code null} for none + */ + public java.lang.String getExpression() { + return expression; + } + + /** + * Required. The cron expression, e.g. "0 8 * * MON-FRI". Any field may also be `?` or `?/step` to + * let the service pick the value, so that schedules do not all fire at the same moment: `?` picks + * one value in the field's range, and `?/step` picks a start within the first step and repeats + * every step from there. The pick is made once, when the schedule is created or updated, and the + * expression is stored with the picked values in place of `?` (e.g. "?/30 * * * *" is stored as + * "17-59/30 * * * *"); sending a `?` again picks new values. + * @param expression expression or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CronSchedule setExpression(java.lang.String expression) { + this.expression = expression; + return this; + } + + /** + * Optional. Optional IANA time zone name, e.g. "America/Los_Angeles". Defaults to UTC. + * @return value or {@code null} for none + */ + public java.lang.String getTimeZone() { + return timeZone; + } + + /** + * Optional. Optional IANA time zone name, e.g. "America/Los_Angeles". Defaults to UTC. + * @param timeZone timeZone or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CronSchedule setTimeZone(java.lang.String timeZone) { + this.timeZone = timeZone; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1CronSchedule set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1CronSchedule) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1CronSchedule clone() { + return (GoogleCloudAiplatformV1beta1CronSchedule) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CustomDetectorConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CustomDetectorConfig.java new file mode 100644 index 00000000000..d222bc97199 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CustomDetectorConfig.java @@ -0,0 +1,130 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * The detection logic of a customer-defined detector: deterministic Filters, an LLM-evaluated + * AnomalyAnalysis, or both. At least one must be set. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1CustomDetectorConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The anomaly criterion evaluated by an LLM against the sessions the filters admitted, + * or against every session when no filter is set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1CustomDetectorConfigAnomalyAnalysis anomalyAnalysis; + + /** + * Optional. How the entries in `filters` combine, as a join over their 1-based positions, for + * example "1 AND 2" or "1 OR 2 OR 3". The operators are uppercase "AND" and "OR", and each level + * uses only one of them. To combine both, put one inside parentheses, as in "(1 AND 2) OR 3". + * Parentheses nest at most one level, and every filter must appear. Required when `filters` holds + * more than one entry, and validated whenever set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filterCombination; + + /** + * Optional. Deterministic predicates a session must satisfy. At most five. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List filters; + + /** + * Optional. The anomaly criterion evaluated by an LLM against the sessions the filters admitted, + * or against every session when no filter is set. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CustomDetectorConfigAnomalyAnalysis getAnomalyAnalysis() { + return anomalyAnalysis; + } + + /** + * Optional. The anomaly criterion evaluated by an LLM against the sessions the filters admitted, + * or against every session when no filter is set. + * @param anomalyAnalysis anomalyAnalysis or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CustomDetectorConfig setAnomalyAnalysis(GoogleCloudAiplatformV1beta1CustomDetectorConfigAnomalyAnalysis anomalyAnalysis) { + this.anomalyAnalysis = anomalyAnalysis; + return this; + } + + /** + * Optional. How the entries in `filters` combine, as a join over their 1-based positions, for + * example "1 AND 2" or "1 OR 2 OR 3". The operators are uppercase "AND" and "OR", and each level + * uses only one of them. To combine both, put one inside parentheses, as in "(1 AND 2) OR 3". + * Parentheses nest at most one level, and every filter must appear. Required when `filters` holds + * more than one entry, and validated whenever set. + * @return value or {@code null} for none + */ + public java.lang.String getFilterCombination() { + return filterCombination; + } + + /** + * Optional. How the entries in `filters` combine, as a join over their 1-based positions, for + * example "1 AND 2" or "1 OR 2 OR 3". The operators are uppercase "AND" and "OR", and each level + * uses only one of them. To combine both, put one inside parentheses, as in "(1 AND 2) OR 3". + * Parentheses nest at most one level, and every filter must appear. Required when `filters` holds + * more than one entry, and validated whenever set. + * @param filterCombination filterCombination or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CustomDetectorConfig setFilterCombination(java.lang.String filterCombination) { + this.filterCombination = filterCombination; + return this; + } + + /** + * Optional. Deterministic predicates a session must satisfy. At most five. + * @return value or {@code null} for none + */ + public java.util.List getFilters() { + return filters; + } + + /** + * Optional. Deterministic predicates a session must satisfy. At most five. + * @param filters filters or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CustomDetectorConfig setFilters(java.util.List filters) { + this.filters = filters; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1CustomDetectorConfig set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1CustomDetectorConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1CustomDetectorConfig clone() { + return (GoogleCloudAiplatformV1beta1CustomDetectorConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CustomDetectorConfigAnomalyAnalysis.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CustomDetectorConfigAnomalyAnalysis.java new file mode 100644 index 00000000000..37bf46fa0bd --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CustomDetectorConfigAnomalyAnalysis.java @@ -0,0 +1,69 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A customer-authored description of the anomaly to detect, evaluated by an LLM. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1CustomDetectorConfigAnomalyAnalysis extends com.google.api.client.json.GenericJson { + + /** + * Required. What the detector should flag, written as a description of the anomaly rather than as + * instructions to the model. Evaluated against each session's transcript. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String prompt; + + /** + * Required. What the detector should flag, written as a description of the anomaly rather than as + * instructions to the model. Evaluated against each session's transcript. + * @return value or {@code null} for none + */ + public java.lang.String getPrompt() { + return prompt; + } + + /** + * Required. What the detector should flag, written as a description of the anomaly rather than as + * instructions to the model. Evaluated against each session's transcript. + * @param prompt prompt or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CustomDetectorConfigAnomalyAnalysis setPrompt(java.lang.String prompt) { + this.prompt = prompt; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1CustomDetectorConfigAnomalyAnalysis set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1CustomDetectorConfigAnomalyAnalysis) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1CustomDetectorConfigAnomalyAnalysis clone() { + return (GoogleCloudAiplatformV1beta1CustomDetectorConfigAnomalyAnalysis) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CustomDetectorConfigFilter.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CustomDetectorConfigFilter.java new file mode 100644 index 00000000000..4cce7bdd2c0 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CustomDetectorConfigFilter.java @@ -0,0 +1,145 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * One deterministic predicate over a session: `(field, operation, value)`. A config may carry + * several; `CustomDetectorConfig.filter_combination` says how they join. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1CustomDetectorConfigFilter extends com.google.api.client.json.GenericJson { + + /** + * Optional. How to interpret the field and value. Required for TOOL_CALL_ARGS and + * TOOL_CALL_RESPONSE, whose underlying values are untyped; must be unset for every other field + * type, whose type the field itself determines. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dataType; + + /** + * Required. What the filter observes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterField field; + + /** + * Required. How `field` is compared against `value`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterOperation operation; + + /** + * Required. The literal compared against `field`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterValue value; + + /** + * Optional. How to interpret the field and value. Required for TOOL_CALL_ARGS and + * TOOL_CALL_RESPONSE, whose underlying values are untyped; must be unset for every other field + * type, whose type the field itself determines. + * @return value or {@code null} for none + */ + public java.lang.String getDataType() { + return dataType; + } + + /** + * Optional. How to interpret the field and value. Required for TOOL_CALL_ARGS and + * TOOL_CALL_RESPONSE, whose underlying values are untyped; must be unset for every other field + * type, whose type the field itself determines. + * @param dataType dataType or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CustomDetectorConfigFilter setDataType(java.lang.String dataType) { + this.dataType = dataType; + return this; + } + + /** + * Required. What the filter observes. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterField getField() { + return field; + } + + /** + * Required. What the filter observes. + * @param field field or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CustomDetectorConfigFilter setField(GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterField field) { + this.field = field; + return this; + } + + /** + * Required. How `field` is compared against `value`. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterOperation getOperation() { + return operation; + } + + /** + * Required. How `field` is compared against `value`. + * @param operation operation or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CustomDetectorConfigFilter setOperation(GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterOperation operation) { + this.operation = operation; + return this; + } + + /** + * Required. The literal compared against `field`. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterValue getValue() { + return value; + } + + /** + * Required. The literal compared against `field`. + * @param value value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CustomDetectorConfigFilter setValue(GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterValue value) { + this.value = value; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1CustomDetectorConfigFilter set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1CustomDetectorConfigFilter) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1CustomDetectorConfigFilter clone() { + return (GoogleCloudAiplatformV1beta1CustomDetectorConfigFilter) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterField.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterField.java new file mode 100644 index 00000000000..bed538f338d --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterField.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.aiplatform.v1beta1.model; + +/** + * What the filter observes. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterField extends com.google.api.client.json.GenericJson { + + /** + * Optional. Additional context for `type`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterFieldQualifiers qualifiers; + + /** + * Required. The observable property. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Optional. Additional context for `type`. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterFieldQualifiers getQualifiers() { + return qualifiers; + } + + /** + * Optional. Additional context for `type`. + * @param qualifiers qualifiers or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterField setQualifiers(GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterFieldQualifiers qualifiers) { + this.qualifiers = qualifiers; + return this; + } + + /** + * Required. The observable property. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Required. The observable property. + * @param type type or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterField setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterField set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterField) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterField clone() { + return (GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterField) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterFieldQualifiers.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterFieldQualifiers.java new file mode 100644 index 00000000000..5a198707477 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterFieldQualifiers.java @@ -0,0 +1,97 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Additional context for a field type. One shared message covers every type; which members are + * required, optional, or rejected depends on `type`, and is validated on write. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterFieldQualifiers extends com.google.api.client.json.GenericJson { + + /** + * Optional. The tool this field refers to. Required for TOOL_CALL_COUNT, TOOL_CALL_ARGS and + * TOOL_CALL_RESPONSE; enforced on write. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String toolName; + + /** + * Optional. The tool parameter whose argument this field refers to. Required for TOOL_CALL_ARGS; + * enforced on write. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String toolParameterName; + + /** + * Optional. The tool this field refers to. Required for TOOL_CALL_COUNT, TOOL_CALL_ARGS and + * TOOL_CALL_RESPONSE; enforced on write. + * @return value or {@code null} for none + */ + public java.lang.String getToolName() { + return toolName; + } + + /** + * Optional. The tool this field refers to. Required for TOOL_CALL_COUNT, TOOL_CALL_ARGS and + * TOOL_CALL_RESPONSE; enforced on write. + * @param toolName toolName or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterFieldQualifiers setToolName(java.lang.String toolName) { + this.toolName = toolName; + return this; + } + + /** + * Optional. The tool parameter whose argument this field refers to. Required for TOOL_CALL_ARGS; + * enforced on write. + * @return value or {@code null} for none + */ + public java.lang.String getToolParameterName() { + return toolParameterName; + } + + /** + * Optional. The tool parameter whose argument this field refers to. Required for TOOL_CALL_ARGS; + * enforced on write. + * @param toolParameterName toolParameterName or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterFieldQualifiers setToolParameterName(java.lang.String toolParameterName) { + this.toolParameterName = toolParameterName; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterFieldQualifiers set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterFieldQualifiers) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterFieldQualifiers clone() { + return (GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterFieldQualifiers) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterOperation.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterOperation.java new file mode 100644 index 00000000000..316871f5d20 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterOperation.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * How the field is compared against the value. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterOperation extends com.google.api.client.json.GenericJson { + + /** + * Required. The comparison to apply. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Required. The comparison to apply. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Required. The comparison to apply. + * @param type type or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterOperation setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterOperation set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterOperation) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterOperation clone() { + return (GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterOperation) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterValue.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterValue.java new file mode 100644 index 00000000000..d3b186c8b0a --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterValue.java @@ -0,0 +1,69 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * The literal compared against the field. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterValue extends com.google.api.client.json.GenericJson { + + /** + * Required. The literal, always carried as a string. `Field.Type` determines how it is + * interpreted, except for TOOL_CALL_ARGS and TOOL_CALL_RESPONSE, where `Filter.data_type` does. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String literal; + + /** + * Required. The literal, always carried as a string. `Field.Type` determines how it is + * interpreted, except for TOOL_CALL_ARGS and TOOL_CALL_RESPONSE, where `Filter.data_type` does. + * @return value or {@code null} for none + */ + public java.lang.String getLiteral() { + return literal; + } + + /** + * Required. The literal, always carried as a string. `Field.Type` determines how it is + * interpreted, except for TOOL_CALL_ARGS and TOOL_CALL_RESPONSE, where `Filter.data_type` does. + * @param literal literal or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterValue setLiteral(java.lang.String literal) { + this.literal = literal; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterValue set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterValue) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterValue clone() { + return (GoogleCloudAiplatformV1beta1CustomDetectorConfigFilterValue) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1DataAgentConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1DataAgentConfig.java new file mode 100644 index 00000000000..5ef0b70404f --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1DataAgentConfig.java @@ -0,0 +1,72 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Config for scraping a Gemini Data Analytics data agent. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1DataAgentConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. The resource name of the Gemini Data Analytics data agent. Format: + * `projects/{project}/locations/{location}/dataAgents/{data_agent}`. For example: + * `projects/123/locations/us-central1/dataAgents/my-agent`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dataAgent; + + /** + * Required. The resource name of the Gemini Data Analytics data agent. Format: + * `projects/{project}/locations/{location}/dataAgents/{data_agent}`. For example: + * `projects/123/locations/us-central1/dataAgents/my-agent`. + * @return value or {@code null} for none + */ + public java.lang.String getDataAgent() { + return dataAgent; + } + + /** + * Required. The resource name of the Gemini Data Analytics data agent. Format: + * `projects/{project}/locations/{location}/dataAgents/{data_agent}`. For example: + * `projects/123/locations/us-central1/dataAgents/my-agent`. + * @param dataAgent dataAgent or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1DataAgentConfig setDataAgent(java.lang.String dataAgent) { + this.dataAgent = dataAgent; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1DataAgentConfig set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1DataAgentConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1DataAgentConfig clone() { + return (GoogleCloudAiplatformV1beta1DataAgentConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1DataConnectorConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1DataConnectorConfig.java new file mode 100644 index 00000000000..17e3bfc1068 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1DataConnectorConfig.java @@ -0,0 +1,105 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Configuration for Gemini Enterprise MCP data connectors scoped to this task. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1DataConnectorConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Map of active connector short name / data_source (e.g., "jira", "servicenow") to its + * full DataConnector resource name (e.g., + * "projects/{project}/locations/{location}/collections/{collection}/dataConnector"). If multiple + * connectors share a data_source, the first configured connector for that data_source is + * retained. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map dataConnectors; + + /** + * Optional. Full resource name of the Discovery Engine Engine (e.g., + * "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}"). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String engineResourceName; + + /** + * Optional. Map of active connector short name / data_source (e.g., "jira", "servicenow") to its + * full DataConnector resource name (e.g., + * "projects/{project}/locations/{location}/collections/{collection}/dataConnector"). If multiple + * connectors share a data_source, the first configured connector for that data_source is + * retained. + * @return value or {@code null} for none + */ + public java.util.Map getDataConnectors() { + return dataConnectors; + } + + /** + * Optional. Map of active connector short name / data_source (e.g., "jira", "servicenow") to its + * full DataConnector resource name (e.g., + * "projects/{project}/locations/{location}/collections/{collection}/dataConnector"). If multiple + * connectors share a data_source, the first configured connector for that data_source is + * retained. + * @param dataConnectors dataConnectors or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1DataConnectorConfig setDataConnectors(java.util.Map dataConnectors) { + this.dataConnectors = dataConnectors; + return this; + } + + /** + * Optional. Full resource name of the Discovery Engine Engine (e.g., + * "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}"). + * @return value or {@code null} for none + */ + public java.lang.String getEngineResourceName() { + return engineResourceName; + } + + /** + * Optional. Full resource name of the Discovery Engine Engine (e.g., + * "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}"). + * @param engineResourceName engineResourceName or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1DataConnectorConfig setEngineResourceName(java.lang.String engineResourceName) { + this.engineResourceName = engineResourceName; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1DataConnectorConfig set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1DataConnectorConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1DataConnectorConfig clone() { + return (GoogleCloudAiplatformV1beta1DataConnectorConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1DeleteTaskArtifactRequest.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1DeleteTaskArtifactRequest.java new file mode 100644 index 00000000000..bcb4dd87123 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1DeleteTaskArtifactRequest.java @@ -0,0 +1,93 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Request for TaskService.DeleteTaskArtifact. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1DeleteTaskArtifactRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. If set to true, and the file is not found, the request will succeed without error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean allowMissing; + + /** + * Required. Absolute path of the file to delete, e.g. "/workspace/userdata/input.csv". Must be + * under "/workspace/userdata/", at most 1024 characters, and not contain a ".." segment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** + * Optional. If set to true, and the file is not found, the request will succeed without error. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAllowMissing() { + return allowMissing; + } + + /** + * Optional. If set to true, and the file is not found, the request will succeed without error. + * @param allowMissing allowMissing or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1DeleteTaskArtifactRequest setAllowMissing(java.lang.Boolean allowMissing) { + this.allowMissing = allowMissing; + return this; + } + + /** + * Required. Absolute path of the file to delete, e.g. "/workspace/userdata/input.csv". Must be + * under "/workspace/userdata/", at most 1024 characters, and not contain a ".." segment. + * @return value or {@code null} for none + */ + public java.lang.String getPath() { + return path; + } + + /** + * Required. Absolute path of the file to delete, e.g. "/workspace/userdata/input.csv". Must be + * under "/workspace/userdata/", at most 1024 characters, and not contain a ".." segment. + * @param path path or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1DeleteTaskArtifactRequest setPath(java.lang.String path) { + this.path = path; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1DeleteTaskArtifactRequest set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1DeleteTaskArtifactRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1DeleteTaskArtifactRequest clone() { + return (GoogleCloudAiplatformV1beta1DeleteTaskArtifactRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1DeleteTaskArtifactResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1DeleteTaskArtifactResponse.java new file mode 100644 index 00000000000..6db7e8261b4 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1DeleteTaskArtifactResponse.java @@ -0,0 +1,42 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Response for TaskService.DeleteTaskArtifact. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1DeleteTaskArtifactResponse extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudAiplatformV1beta1DeleteTaskArtifactResponse set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1DeleteTaskArtifactResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1DeleteTaskArtifactResponse clone() { + return (GoogleCloudAiplatformV1beta1DeleteTaskArtifactResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1DeployRequestDeployConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1DeployRequestDeployConfig.java index d5503619e9e..6dbbce93948 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1DeployRequestDeployConfig.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1DeployRequestDeployConfig.java @@ -44,6 +44,16 @@ public final class GoogleCloudAiplatformV1beta1DeployRequestDeployConfig extends @com.google.api.client.util.Key private java.lang.Boolean fastTryoutEnabled; + /** + * Optional. The service account that the container of the deployed model runs as. Specify the + * email address of the service account. If not specified, the container runs as a service account + * that has no access to the resource project. Users deploying the model must have the + * `iam.serviceAccounts.actAs` permission on this service account. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serviceAccount; + /** * Optional. System labels for Model Garden deployments. These labels are managed by Google and * for tracking purposes only. @@ -88,6 +98,29 @@ public GoogleCloudAiplatformV1beta1DeployRequestDeployConfig setFastTryoutEnable return this; } + /** + * Optional. The service account that the container of the deployed model runs as. Specify the + * email address of the service account. If not specified, the container runs as a service account + * that has no access to the resource project. Users deploying the model must have the + * `iam.serviceAccounts.actAs` permission on this service account. + * @return value or {@code null} for none + */ + public java.lang.String getServiceAccount() { + return serviceAccount; + } + + /** + * Optional. The service account that the container of the deployed model runs as. Specify the + * email address of the service account. If not specified, the container runs as a service account + * that has no access to the resource project. Users deploying the model must have the + * `iam.serviceAccounts.actAs` permission on this service account. + * @param serviceAccount serviceAccount or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1DeployRequestDeployConfig setServiceAccount(java.lang.String serviceAccount) { + this.serviceAccount = serviceAccount; + return this; + } + /** * Optional. System labels for Model Garden deployments. These labels are managed by Google and * for tracking purposes only. diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Detector.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Detector.java new file mode 100644 index 00000000000..03c94987a5f --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Detector.java @@ -0,0 +1,249 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Represents a security rule or LLM-as-a-judge entity that scans agent interactions for anomalies. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1Detector extends com.google.api.client.json.GenericJson { + + /** + * Optional. The detection logic for a customer-defined detector. Unset on Google-managed + * detectors, whose logic is not customer visible. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1CustomDetectorConfig customDetectorConfig; + + /** + * Optional. A description of what the detector scans for. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. The human-readable name of the detector. Example: "Large refund issued". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Identifier. The resource name of the detector. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. When this revision was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String revisionCreateTime; + + /** + * Output only. The revision id of the configuration in this response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String revisionId; + + /** + * Output only. The revision that runs when this detector is ACTIVE. Set whatever the state, + * because the selected revision is kept through a disable. May differ from `revision_id`: an edit + * does not change the selected revision, so `revision_id != selected_revision_id` means this + * detector is holding an edit that enabling it would not apply. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selectedRevisionId; + + /** + * Output only. The state of the detector. Only an ACTIVE detector scans. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Optional. The detection logic for a customer-defined detector. Unset on Google-managed + * detectors, whose logic is not customer visible. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CustomDetectorConfig getCustomDetectorConfig() { + return customDetectorConfig; + } + + /** + * Optional. The detection logic for a customer-defined detector. Unset on Google-managed + * detectors, whose logic is not customer visible. + * @param customDetectorConfig customDetectorConfig or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Detector setCustomDetectorConfig(GoogleCloudAiplatformV1beta1CustomDetectorConfig customDetectorConfig) { + this.customDetectorConfig = customDetectorConfig; + return this; + } + + /** + * Optional. A description of what the detector scans for. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. A description of what the detector scans for. + * @param description description or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Detector setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. The human-readable name of the detector. Example: "Large refund issued". + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. The human-readable name of the detector. Example: "Large refund issued". + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Detector setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Identifier. The resource name of the detector. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the detector. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` + * @param name name or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Detector setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. When this revision was created. + * @return value or {@code null} for none + */ + public String getRevisionCreateTime() { + return revisionCreateTime; + } + + /** + * Output only. When this revision was created. + * @param revisionCreateTime revisionCreateTime or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Detector setRevisionCreateTime(String revisionCreateTime) { + this.revisionCreateTime = revisionCreateTime; + return this; + } + + /** + * Output only. The revision id of the configuration in this response. + * @return value or {@code null} for none + */ + public java.lang.String getRevisionId() { + return revisionId; + } + + /** + * Output only. The revision id of the configuration in this response. + * @param revisionId revisionId or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Detector setRevisionId(java.lang.String revisionId) { + this.revisionId = revisionId; + return this; + } + + /** + * Output only. The revision that runs when this detector is ACTIVE. Set whatever the state, + * because the selected revision is kept through a disable. May differ from `revision_id`: an edit + * does not change the selected revision, so `revision_id != selected_revision_id` means this + * detector is holding an edit that enabling it would not apply. + * @return value or {@code null} for none + */ + public java.lang.String getSelectedRevisionId() { + return selectedRevisionId; + } + + /** + * Output only. The revision that runs when this detector is ACTIVE. Set whatever the state, + * because the selected revision is kept through a disable. May differ from `revision_id`: an edit + * does not change the selected revision, so `revision_id != selected_revision_id` means this + * detector is holding an edit that enabling it would not apply. + * @param selectedRevisionId selectedRevisionId or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Detector setSelectedRevisionId(java.lang.String selectedRevisionId) { + this.selectedRevisionId = selectedRevisionId; + return this; + } + + /** + * Output only. The state of the detector. Only an ACTIVE detector scans. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The state of the detector. Only an ACTIVE detector scans. + * @param state state or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Detector setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1Detector set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1Detector) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1Detector clone() { + return (GoogleCloudAiplatformV1beta1Detector) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1DisableDetectorRequest.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1DisableDetectorRequest.java new file mode 100644 index 00000000000..e1a9528fc83 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1DisableDetectorRequest.java @@ -0,0 +1,42 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Request message for AgentAnomalyDetectionService.DisableDetector. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1DisableDetectorRequest extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudAiplatformV1beta1DisableDetectorRequest set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1DisableDetectorRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1DisableDetectorRequest clone() { + return (GoogleCloudAiplatformV1beta1DisableDetectorRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EnableDetectorRequest.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EnableDetectorRequest.java new file mode 100644 index 00000000000..2a6cf30f1d0 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EnableDetectorRequest.java @@ -0,0 +1,69 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Request message for AgentAnomalyDetectionService.EnableDetector. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1EnableDetectorRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The revision to run. Unset enables the detector's latest revision, which is the + * common case: publish what I just wrote. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String revisionId; + + /** + * Optional. The revision to run. Unset enables the detector's latest revision, which is the + * common case: publish what I just wrote. + * @return value or {@code null} for none + */ + public java.lang.String getRevisionId() { + return revisionId; + } + + /** + * Optional. The revision to run. Unset enables the detector's latest revision, which is the + * common case: publish what I just wrote. + * @param revisionId revisionId or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EnableDetectorRequest setRevisionId(java.lang.String revisionId) { + this.revisionId = revisionId; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1EnableDetectorRequest set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1EnableDetectorRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1EnableDetectorRequest clone() { + return (GoogleCloudAiplatformV1beta1EnableDetectorRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationItem.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationItem.java index fa48a910ca1..2ef8b760f8c 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationItem.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationItem.java @@ -80,6 +80,14 @@ public final class GoogleCloudAiplatformV1beta1EvaluationItem extends com.google @com.google.api.client.util.Key private java.lang.String gcsUri; + /** + * Output only. A Harbor task. Populated when evaluation_item_type == HARBOR_TASK. HARBOR_TASK + * items are created by ImportEvaluationSet and can't be created or updated directly. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1HarborTask harborTask; + /** * Optional. Labels for the EvaluationItem. * The value may be {@code null}. @@ -221,6 +229,25 @@ public GoogleCloudAiplatformV1beta1EvaluationItem setGcsUri(java.lang.String gcs return this; } + /** + * Output only. A Harbor task. Populated when evaluation_item_type == HARBOR_TASK. HARBOR_TASK + * items are created by ImportEvaluationSet and can't be created or updated directly. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1HarborTask getHarborTask() { + return harborTask; + } + + /** + * Output only. A Harbor task. Populated when evaluation_item_type == HARBOR_TASK. HARBOR_TASK + * items are created by ImportEvaluationSet and can't be created or updated directly. + * @param harborTask harborTask or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EvaluationItem setHarborTask(GoogleCloudAiplatformV1beta1HarborTask harborTask) { + this.harborTask = harborTask; + return this; + } + /** * Optional. Labels for the EvaluationItem. * @return value or {@code null} for none diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationItemRevision.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationItemRevision.java new file mode 100644 index 00000000000..8e5d6cfcac3 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationItemRevision.java @@ -0,0 +1,122 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * An immutable snapshot of an EvaluationItem. Item revisions are created by + * CreateEvaluationSetRevision and cannot be updated. An item revision is deleted when no + * EvaluationSetRevision references it anymore. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1EvaluationItemRevision extends com.google.api.client.json.GenericJson { + + /** + * Output only. Timestamp when this revision was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Identifier. The resource name of the EvaluationItemRevision. Format: `projects/{project}/locati + * ons/{location}/evaluationItems/{evaluation_item}/revisions/{revision}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. A copy of the EvaluationItem at the time the revision was created, including its + * payload. `snapshot.name` is the name of the source EvaluationItem. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1EvaluationItem snapshot; + + /** + * Output only. Timestamp when this revision was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when this revision was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EvaluationItemRevision setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Identifier. The resource name of the EvaluationItemRevision. Format: `projects/{project}/locati + * ons/{location}/evaluationItems/{evaluation_item}/revisions/{revision}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the EvaluationItemRevision. Format: `projects/{project}/locati + * ons/{location}/evaluationItems/{evaluation_item}/revisions/{revision}` + * @param name name or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EvaluationItemRevision setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. A copy of the EvaluationItem at the time the revision was created, including its + * payload. `snapshot.name` is the name of the source EvaluationItem. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EvaluationItem getSnapshot() { + return snapshot; + } + + /** + * Output only. A copy of the EvaluationItem at the time the revision was created, including its + * payload. `snapshot.name` is the name of the source EvaluationItem. + * @param snapshot snapshot or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EvaluationItemRevision setSnapshot(GoogleCloudAiplatformV1beta1EvaluationItem snapshot) { + this.snapshot = snapshot; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1EvaluationItemRevision set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1EvaluationItemRevision) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1EvaluationItemRevision clone() { + return (GoogleCloudAiplatformV1beta1EvaluationItemRevision) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationResult.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationResult.java index 3ea1fe2a6ab..49339bddff8 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationResult.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationResult.java @@ -50,6 +50,15 @@ public final class GoogleCloudAiplatformV1beta1EvaluationResult extends com.goog @com.google.api.client.util.Key private java.lang.String evaluationRequest; + /** + * Output only. The EvaluationItemRevision that was evaluated, set when the evaluation run's data + * source is an EvaluationSetRevision. Format: `projects/{project}/locations/{location}/evaluation + * Items/{evaluation_item}/revisions/{revision}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String evaluationRequestRevision; + /** * Required. The evaluation run that was used to generate the result. Format: * projects/{project}/locations/{location}/evaluationRuns/{evaluation_run} @@ -115,6 +124,27 @@ public GoogleCloudAiplatformV1beta1EvaluationResult setEvaluationRequest(java.la return this; } + /** + * Output only. The EvaluationItemRevision that was evaluated, set when the evaluation run's data + * source is an EvaluationSetRevision. Format: `projects/{project}/locations/{location}/evaluation + * Items/{evaluation_item}/revisions/{revision}`. + * @return value or {@code null} for none + */ + public java.lang.String getEvaluationRequestRevision() { + return evaluationRequestRevision; + } + + /** + * Output only. The EvaluationItemRevision that was evaluated, set when the evaluation run's data + * source is an EvaluationSetRevision. Format: `projects/{project}/locations/{location}/evaluation + * Items/{evaluation_item}/revisions/{revision}`. + * @param evaluationRequestRevision evaluationRequestRevision or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EvaluationResult setEvaluationRequestRevision(java.lang.String evaluationRequestRevision) { + this.evaluationRequestRevision = evaluationRequestRevision; + return this; + } + /** * Required. The evaluation run that was used to generate the result. Format: * projects/{project}/locations/{location}/evaluationRuns/{evaluation_run} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRun.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRun.java index 042d4177a2e..252670a7909 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRun.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRun.java @@ -139,6 +139,19 @@ public final class GoogleCloudAiplatformV1beta1EvaluationRun extends com.google. @com.google.api.client.util.Key private java.lang.String name; + /** + * Optional. The service account to run the evaluation run as. If set, the run uses this service + * account to access Google Cloud resources. Access is limited to the IAM permissions that you + * grant to the service account. Must be provided if an inference config sets `harbor_run_config`, + * `data_agent_config`. If no inference config requires this field, setting it returns an error. + * The caller must have the `iam.serviceAccounts.actAs` permission on this service account, and + * the project's [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access- + * control#service-agents) must have the `roles/iam.serviceAccountTokenCreator` role on it. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serviceAccount; + /** * Output only. The state of the evaluation run. * The value may be {@code null}. @@ -406,6 +419,35 @@ public GoogleCloudAiplatformV1beta1EvaluationRun setName(java.lang.String name) return this; } + /** + * Optional. The service account to run the evaluation run as. If set, the run uses this service + * account to access Google Cloud resources. Access is limited to the IAM permissions that you + * grant to the service account. Must be provided if an inference config sets `harbor_run_config`, + * `data_agent_config`. If no inference config requires this field, setting it returns an error. + * The caller must have the `iam.serviceAccounts.actAs` permission on this service account, and + * the project's [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access- + * control#service-agents) must have the `roles/iam.serviceAccountTokenCreator` role on it. + * @return value or {@code null} for none + */ + public java.lang.String getServiceAccount() { + return serviceAccount; + } + + /** + * Optional. The service account to run the evaluation run as. If set, the run uses this service + * account to access Google Cloud resources. Access is limited to the IAM permissions that you + * grant to the service account. Must be provided if an inference config sets `harbor_run_config`, + * `data_agent_config`. If no inference config requires this field, setting it returns an error. + * The caller must have the `iam.serviceAccounts.actAs` permission on this service account, and + * the project's [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access- + * control#service-agents) must have the `roles/iam.serviceAccountTokenCreator` role on it. + * @param serviceAccount serviceAccount or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EvaluationRun setServiceAccount(java.lang.String serviceAccount) { + this.serviceAccount = serviceAccount; + return this; + } + /** * Output only. The state of the evaluation run. * @return value or {@code null} for none diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRunDataSource.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRunDataSource.java index 794c96c5532..e251d82264a 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRunDataSource.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRunDataSource.java @@ -44,6 +44,16 @@ public final class GoogleCloudAiplatformV1beta1EvaluationRunDataSource extends c @com.google.api.client.util.Key private java.lang.String evaluationSet; + /** + * The EvaluationSetRevision resource name. The run evaluates the item revisions frozen in the + * revision, so later changes to the EvaluationSet and its EvaluationItems do not affect it. + * Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}/revisions/{revision}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String evaluationSetRevision; + /** * Evaluation data in bigquery. * @return value or {@code null} for none @@ -80,6 +90,29 @@ public GoogleCloudAiplatformV1beta1EvaluationRunDataSource setEvaluationSet(java return this; } + /** + * The EvaluationSetRevision resource name. The run evaluates the item revisions frozen in the + * revision, so later changes to the EvaluationSet and its EvaluationItems do not affect it. + * Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}/revisions/{revision}` + * @return value or {@code null} for none + */ + public java.lang.String getEvaluationSetRevision() { + return evaluationSetRevision; + } + + /** + * The EvaluationSetRevision resource name. The run evaluates the item revisions frozen in the + * revision, so later changes to the EvaluationSet and its EvaluationItems do not affect it. + * Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}/revisions/{revision}` + * @param evaluationSetRevision evaluationSetRevision or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EvaluationRunDataSource setEvaluationSetRevision(java.lang.String evaluationSetRevision) { + this.evaluationSetRevision = evaluationSetRevision; + return this; + } + @Override public GoogleCloudAiplatformV1beta1EvaluationRunDataSource set(String fieldName, Object value) { return (GoogleCloudAiplatformV1beta1EvaluationRunDataSource) super.set(fieldName, value); diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfig.java index 27cee464d77..3234406d00e 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfig.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfig.java @@ -68,6 +68,17 @@ public final class GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfig exte @com.google.api.client.util.Key private GoogleCloudAiplatformV1beta1GenerationConfig generationConfig; + /** + * Optional. Config for running an agent on tasks in Harbor format in a sandboxed batch + * environment. Its presence routes the run to the Harbor batch inference path; which datasets and + * tasks run is carried by the `harbor_task` of each evaluation item. If this field is set, the + * evaluation run must set `service_account`. The Harbor task run in sandbox will use the service + * account. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1HarborRunConfig harborRunConfig; + /** * Optional. The fully qualified name of the publisher model or endpoint to use. Anthropic and * Llama third-party models are also supported through Model Garden. Publisher model format: @@ -97,6 +108,13 @@ public final class GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfig exte @com.google.api.client.util.Key private GoogleCloudAiplatformV1beta1EvaluationRunEvaluationConfigPromptTemplate promptTemplate; + /** + * Optional. The destination for the raw, unconverted agent trajectory data the run produces. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigRawAgentTrajectoryDestination rawAgentTrajectoryDestination; + /** * Optional. Deprecated: Use `agents` instead. Agent config used to generate responses. * @return value or {@code null} for none @@ -167,6 +185,31 @@ public GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfig setGenerationCon return this; } + /** + * Optional. Config for running an agent on tasks in Harbor format in a sandboxed batch + * environment. Its presence routes the run to the Harbor batch inference path; which datasets and + * tasks run is carried by the `harbor_task` of each evaluation item. If this field is set, the + * evaluation run must set `service_account`. The Harbor task run in sandbox will use the service + * account. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1HarborRunConfig getHarborRunConfig() { + return harborRunConfig; + } + + /** + * Optional. Config for running an agent on tasks in Harbor format in a sandboxed batch + * environment. Its presence routes the run to the Harbor batch inference path; which datasets and + * tasks run is carried by the `harbor_task` of each evaluation item. If this field is set, the + * evaluation run must set `service_account`. The Harbor task run in sandbox will use the service + * account. + * @param harborRunConfig harborRunConfig or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfig setHarborRunConfig(GoogleCloudAiplatformV1beta1HarborRunConfig harborRunConfig) { + this.harborRunConfig = harborRunConfig; + return this; + } + /** * Optional. The fully qualified name of the publisher model or endpoint to use. Anthropic and * Llama third-party models are also supported through Model Garden. Publisher model format: @@ -234,6 +277,23 @@ public GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfig setPromptTemplat return this; } + /** + * Optional. The destination for the raw, unconverted agent trajectory data the run produces. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigRawAgentTrajectoryDestination getRawAgentTrajectoryDestination() { + return rawAgentTrajectoryDestination; + } + + /** + * Optional. The destination for the raw, unconverted agent trajectory data the run produces. + * @param rawAgentTrajectoryDestination rawAgentTrajectoryDestination or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfig setRawAgentTrajectoryDestination(GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigRawAgentTrajectoryDestination rawAgentTrajectoryDestination) { + this.rawAgentTrajectoryDestination = rawAgentTrajectoryDestination; + return this; + } + @Override public GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfig set(String fieldName, Object value) { return (GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfig) super.set(fieldName, value); diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigAgentRunConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigAgentRunConfig.java index 2f94e63e9f5..82891ae1214 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigAgentRunConfig.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigAgentRunConfig.java @@ -38,6 +38,14 @@ public final class GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigAgent @com.google.api.client.util.Key private java.lang.String agentEngine; + /** + * Optional. Config for scraping a Gemini Data Analytics data agent. The scraping service runs the + * agent via the DataChatService Chat API and returns the resulting trajectory for evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1DataAgentConfig dataAgentConfig; + /** * Optional. Config for scraping a Discovery Engine Assistant. The scraping service runs the * assistant via the Discovery Engine AssistantService and returns the resulting trajectory for @@ -92,6 +100,25 @@ public GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigAgentRunConfig se return this; } + /** + * Optional. Config for scraping a Gemini Data Analytics data agent. The scraping service runs the + * agent via the DataChatService Chat API and returns the resulting trajectory for evaluation. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1DataAgentConfig getDataAgentConfig() { + return dataAgentConfig; + } + + /** + * Optional. Config for scraping a Gemini Data Analytics data agent. The scraping service runs the + * agent via the DataChatService Chat API and returns the resulting trajectory for evaluation. + * @param dataAgentConfig dataAgentConfig or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigAgentRunConfig setDataAgentConfig(GoogleCloudAiplatformV1beta1DataAgentConfig dataAgentConfig) { + this.dataAgentConfig = dataAgentConfig; + return this; + } + /** * Optional. Config for scraping a Discovery Engine Assistant. The scraping service runs the * assistant via the Discovery Engine AssistantService and returns the resulting trajectory for diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigRawAgentTrajectoryDestination.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigRawAgentTrajectoryDestination.java new file mode 100644 index 00000000000..4ded6cd68e5 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigRawAgentTrajectoryDestination.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.aiplatform.v1beta1.model; + +/** + * The destination for the raw, unconverted agent trace data the run produces. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigRawAgentTrajectoryDestination extends com.google.api.client.json.GenericJson { + + /** + * BigQuery destination for the raw agent trace data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1BigQueryDestination bigqueryDestination; + + /** + * Cloud Storage destination for the raw agent trace data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1GcsDestination gcsDestination; + + /** + * BigQuery destination for the raw agent trace data. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1BigQueryDestination getBigqueryDestination() { + return bigqueryDestination; + } + + /** + * BigQuery destination for the raw agent trace data. + * @param bigqueryDestination bigqueryDestination or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigRawAgentTrajectoryDestination setBigqueryDestination(GoogleCloudAiplatformV1beta1BigQueryDestination bigqueryDestination) { + this.bigqueryDestination = bigqueryDestination; + return this; + } + + /** + * Cloud Storage destination for the raw agent trace data. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1GcsDestination getGcsDestination() { + return gcsDestination; + } + + /** + * Cloud Storage destination for the raw agent trace data. + * @param gcsDestination gcsDestination or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigRawAgentTrajectoryDestination setGcsDestination(GoogleCloudAiplatformV1beta1GcsDestination gcsDestination) { + this.gcsDestination = gcsDestination; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigRawAgentTrajectoryDestination set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigRawAgentTrajectoryDestination) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigRawAgentTrajectoryDestination clone() { + return (GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigRawAgentTrajectoryDestination) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationSet.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationSet.java index e467f545edc..90c1e2d6814 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationSet.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationSet.java @@ -73,6 +73,13 @@ public final class GoogleCloudAiplatformV1beta1EvaluationSet extends com.google. @com.google.api.client.util.Key private java.util.List evaluationItems; + /** + * Output only. Set when the items were imported from a Harbor dataset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1HarborDataset harborDataset; + /** * Optional. Metadata for the EvaluationSet. * The value may be {@code null}. @@ -186,6 +193,23 @@ public GoogleCloudAiplatformV1beta1EvaluationSet setEvaluationItems(java.util.Li return this; } + /** + * Output only. Set when the items were imported from a Harbor dataset. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1HarborDataset getHarborDataset() { + return harborDataset; + } + + /** + * Output only. Set when the items were imported from a Harbor dataset. + * @param harborDataset harborDataset or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EvaluationSet setHarborDataset(GoogleCloudAiplatformV1beta1HarborDataset harborDataset) { + this.harborDataset = harborDataset; + return this; + } + /** * Optional. Metadata for the EvaluationSet. * @return value or {@code null} for none diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationSetRevision.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationSetRevision.java new file mode 100644 index 00000000000..d0566f90675 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationSetRevision.java @@ -0,0 +1,127 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * An immutable snapshot of an EvaluationSet and its EvaluationItems. Evaluation runs on a revision + * are reproducible because the revision and its item revisions cannot change. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1EvaluationSetRevision extends com.google.api.client.json.GenericJson { + + /** + * Output only. Timestamp when this revision was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Identifier. The resource name of the EvaluationSetRevision. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}/revisions/{revision}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. A copy of the EvaluationSet at the time the revision was created. Only + * `display_name`, `metadata` and `labels` are copied from the source set; `agent_configs` is not. + * `snapshot.name` is the name of the source EvaluationSet, and `snapshot.evaluation_items` + * contains EvaluationItemRevision resource names instead of EvaluationItem resource names. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1EvaluationSet snapshot; + + /** + * Output only. Timestamp when this revision was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when this revision was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EvaluationSetRevision setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Identifier. The resource name of the EvaluationSetRevision. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}/revisions/{revision}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the EvaluationSetRevision. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}/revisions/{revision}` + * @param name name or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EvaluationSetRevision setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. A copy of the EvaluationSet at the time the revision was created. Only + * `display_name`, `metadata` and `labels` are copied from the source set; `agent_configs` is not. + * `snapshot.name` is the name of the source EvaluationSet, and `snapshot.evaluation_items` + * contains EvaluationItemRevision resource names instead of EvaluationItem resource names. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EvaluationSet getSnapshot() { + return snapshot; + } + + /** + * Output only. A copy of the EvaluationSet at the time the revision was created. Only + * `display_name`, `metadata` and `labels` are copied from the source set; `agent_configs` is not. + * `snapshot.name` is the name of the source EvaluationSet, and `snapshot.evaluation_items` + * contains EvaluationItemRevision resource names instead of EvaluationItem resource names. + * @param snapshot snapshot or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EvaluationSetRevision setSnapshot(GoogleCloudAiplatformV1beta1EvaluationSet snapshot) { + this.snapshot = snapshot; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1EvaluationSetRevision set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1EvaluationSetRevision) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1EvaluationSetRevision clone() { + return (GoogleCloudAiplatformV1beta1EvaluationSetRevision) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EventSchedule.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EventSchedule.java new file mode 100644 index 00000000000..dcc5939401a --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EventSchedule.java @@ -0,0 +1,69 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * An event-driven trigger. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1EventSchedule extends com.google.api.client.json.GenericJson { + + /** + * Required. Identifier of a registered event source / webhook subscription whose events fire the + * task. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String eventSource; + + /** + * Required. Identifier of a registered event source / webhook subscription whose events fire the + * task. + * @return value or {@code null} for none + */ + public java.lang.String getEventSource() { + return eventSource; + } + + /** + * Required. Identifier of a registered event source / webhook subscription whose events fire the + * task. + * @param eventSource eventSource or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EventSchedule setEventSource(java.lang.String eventSource) { + this.eventSource = eventSource; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1EventSchedule set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1EventSchedule) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1EventSchedule clone() { + return (GoogleCloudAiplatformV1beta1EventSchedule) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ExternalBrowser.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ExternalBrowser.java new file mode 100644 index 00000000000..c455aa93c48 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ExternalBrowser.java @@ -0,0 +1,45 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A browser on the connecting client (e.g. the user's own, signed-in Chrome) that a task's browser + * actions run on. The actions are relayed to the client, so the client must stay connected while + * they happen. The task's other operations (files, commands) still run where `environment_config` + * puts them. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1ExternalBrowser extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudAiplatformV1beta1ExternalBrowser set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1ExternalBrowser) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1ExternalBrowser clone() { + return (GoogleCloudAiplatformV1beta1ExternalBrowser) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ExternalMount.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ExternalMount.java new file mode 100644 index 00000000000..cf29ed12ce6 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ExternalMount.java @@ -0,0 +1,106 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A directory on the connecting client (e.g. the user's local machine) mounted into a task's + * server-managed environment. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1ExternalMount extends com.google.api.client.json.GenericJson { + + /** + * Optional. Absolute path in the environment where the directory is mounted. Empty means + * `/workspace/desktop`. When set, must be `/workspace/{name}`, where `{name}` is 1-63 lowercase + * letters, digits, `_` or `-`, starts with a letter or digit, and is not one of the names other + * mounts own under `/workspace`: `skills`, `core`, `memory`, `inputs`, `artifacts`, + * `deliverables` or `userdata`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mountPath; + + /** + * Optional. Absolute path of the folder on the connecting client (the mount source). Interpreted + * only by the client; the server never resolves it. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourcePath; + + /** + * Optional. Absolute path in the environment where the directory is mounted. Empty means + * `/workspace/desktop`. When set, must be `/workspace/{name}`, where `{name}` is 1-63 lowercase + * letters, digits, `_` or `-`, starts with a letter or digit, and is not one of the names other + * mounts own under `/workspace`: `skills`, `core`, `memory`, `inputs`, `artifacts`, + * `deliverables` or `userdata`. + * @return value or {@code null} for none + */ + public java.lang.String getMountPath() { + return mountPath; + } + + /** + * Optional. Absolute path in the environment where the directory is mounted. Empty means + * `/workspace/desktop`. When set, must be `/workspace/{name}`, where `{name}` is 1-63 lowercase + * letters, digits, `_` or `-`, starts with a letter or digit, and is not one of the names other + * mounts own under `/workspace`: `skills`, `core`, `memory`, `inputs`, `artifacts`, + * `deliverables` or `userdata`. + * @param mountPath mountPath or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ExternalMount setMountPath(java.lang.String mountPath) { + this.mountPath = mountPath; + return this; + } + + /** + * Optional. Absolute path of the folder on the connecting client (the mount source). Interpreted + * only by the client; the server never resolves it. + * @return value or {@code null} for none + */ + public java.lang.String getSourcePath() { + return sourcePath; + } + + /** + * Optional. Absolute path of the folder on the connecting client (the mount source). Interpreted + * only by the client; the server never resolves it. + * @param sourcePath sourcePath or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ExternalMount setSourcePath(java.lang.String sourcePath) { + this.sourcePath = sourcePath; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1ExternalMount set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1ExternalMount) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1ExternalMount clone() { + return (GoogleCloudAiplatformV1beta1ExternalMount) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Goal.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Goal.java new file mode 100644 index 00000000000..ec62c5f6582 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Goal.java @@ -0,0 +1,172 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A goal is an objective a Task works toward. A Task may pursue several concurrent goals . A goal + * could have one or more Verifiers as independent judges to validate the completion of it. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1Goal extends com.google.api.client.json.GenericJson { + + /** + * Optional. A human-readable title specifiable to the goal. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. Server-assigned identifier, stable across the goal's lifetime. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Required. The goal's objective. This is the "goal" and what the agent should pursue. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String spec; + + /** + * Output only. The goal's state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Optional. The verifier(s) that judge whether this goal is achieved. When all `required` + * verifiers pass, the goal will be marked `SUCCEEDED` in its `state`. If empty, the work is still + * checked against criteria written from the goal's `spec`, but the goal stays `ACTIVE`; add a + * required `auto_verification` to have it complete. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List verifiers; + + /** + * Optional. A human-readable title specifiable to the goal. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. A human-readable title specifiable to the goal. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Goal setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. Server-assigned identifier, stable across the goal's lifetime. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Output only. Server-assigned identifier, stable across the goal's lifetime. + * @param id id or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Goal setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Required. The goal's objective. This is the "goal" and what the agent should pursue. + * @return value or {@code null} for none + */ + public java.lang.String getSpec() { + return spec; + } + + /** + * Required. The goal's objective. This is the "goal" and what the agent should pursue. + * @param spec spec or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Goal setSpec(java.lang.String spec) { + this.spec = spec; + return this; + } + + /** + * Output only. The goal's state. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The goal's state. + * @param state state or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Goal setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Optional. The verifier(s) that judge whether this goal is achieved. When all `required` + * verifiers pass, the goal will be marked `SUCCEEDED` in its `state`. If empty, the work is still + * checked against criteria written from the goal's `spec`, but the goal stays `ACTIVE`; add a + * required `auto_verification` to have it complete. + * @return value or {@code null} for none + */ + public java.util.List getVerifiers() { + return verifiers; + } + + /** + * Optional. The verifier(s) that judge whether this goal is achieved. When all `required` + * verifiers pass, the goal will be marked `SUCCEEDED` in its `state`. If empty, the work is still + * checked against criteria written from the goal's `spec`, but the goal stays `ACTIVE`; add a + * required `auto_verification` to have it complete. + * @param verifiers verifiers or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Goal setVerifiers(java.util.List verifiers) { + this.verifiers = verifiers; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1Goal set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1Goal) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1Goal clone() { + return (GoogleCloudAiplatformV1beta1Goal) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1HarborDataset.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1HarborDataset.java new file mode 100644 index 00000000000..fe65d91d1a9 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1HarborDataset.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * Metadata for a Harbor dataset. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1HarborDataset extends com.google.api.client.json.GenericJson { + + /** + * Optional. The GCS folder containing the Harbor dataset, e.g. "gs://BUCKET/PATH". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gcsUri; + + /** + * Optional. The GCS folder containing the Harbor dataset, e.g. "gs://BUCKET/PATH". + * @return value or {@code null} for none + */ + public java.lang.String getGcsUri() { + return gcsUri; + } + + /** + * Optional. The GCS folder containing the Harbor dataset, e.g. "gs://BUCKET/PATH". + * @param gcsUri gcsUri or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1HarborDataset setGcsUri(java.lang.String gcsUri) { + this.gcsUri = gcsUri; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1HarborDataset set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1HarborDataset) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1HarborDataset clone() { + return (GoogleCloudAiplatformV1beta1HarborDataset) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1HarborRunConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1HarborRunConfig.java new file mode 100644 index 00000000000..6b3e8613406 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1HarborRunConfig.java @@ -0,0 +1,97 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Config for running an agent (a coding or custom agent) on a dataset in Harbor format in a + * sandboxed batch environment. Run metrics (`evaluation_config.metrics`) are optional for runs over + * Harbor tasks. Each metric scores a task's agent trajectory; the prompt and the response are + * empty. Predefined metrics that build their rubrics from the trajectory, such as + * `multi_turn_task_success_v1`, `multi_turn_trajectory_quality_v1` and + * `multi_turn_tool_use_quality_v1`, are supported. `evaluation_config.rubric_configs`, rubric-based + * metrics, and LLM-based metrics with a rubrics source are rejected. Metrics that need a text + * response or a reference, such as computation-based metrics, are accepted but fail on each task. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1HarborRunConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Configuration for the VM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1HarborRunConfigBatchJobConfig batchJobConfig; + + /** + * The coding agent to run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1HarborRunConfigCodingAgent codingAgent; + + /** + * Optional. Configuration for the VM. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1HarborRunConfigBatchJobConfig getBatchJobConfig() { + return batchJobConfig; + } + + /** + * Optional. Configuration for the VM. + * @param batchJobConfig batchJobConfig or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1HarborRunConfig setBatchJobConfig(GoogleCloudAiplatformV1beta1HarborRunConfigBatchJobConfig batchJobConfig) { + this.batchJobConfig = batchJobConfig; + return this; + } + + /** + * The coding agent to run. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1HarborRunConfigCodingAgent getCodingAgent() { + return codingAgent; + } + + /** + * The coding agent to run. + * @param codingAgent codingAgent or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1HarborRunConfig setCodingAgent(GoogleCloudAiplatformV1beta1HarborRunConfigCodingAgent codingAgent) { + this.codingAgent = codingAgent; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1HarborRunConfig set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1HarborRunConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1HarborRunConfig clone() { + return (GoogleCloudAiplatformV1beta1HarborRunConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1HarborRunConfigBatchJobConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1HarborRunConfigBatchJobConfig.java new file mode 100644 index 00000000000..decd1c86a5c --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1HarborRunConfigBatchJobConfig.java @@ -0,0 +1,75 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Configuration for the VM that runs the Harbor tasks. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1HarborRunConfigBatchJobConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Network settings for the VM. If unset, the VM uses the project's default network with + * an external IP address, so it can reach Google APIs and the internet. To turn off internet + * access, set a network and a subnetwork that has Private Google Access, so that the VM can still + * reach Cloud Storage, Artifact Registry, and Vertex AI. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1NetworkSpec networkSpec; + + /** + * Optional. Network settings for the VM. If unset, the VM uses the project's default network with + * an external IP address, so it can reach Google APIs and the internet. To turn off internet + * access, set a network and a subnetwork that has Private Google Access, so that the VM can still + * reach Cloud Storage, Artifact Registry, and Vertex AI. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1NetworkSpec getNetworkSpec() { + return networkSpec; + } + + /** + * Optional. Network settings for the VM. If unset, the VM uses the project's default network with + * an external IP address, so it can reach Google APIs and the internet. To turn off internet + * access, set a network and a subnetwork that has Private Google Access, so that the VM can still + * reach Cloud Storage, Artifact Registry, and Vertex AI. + * @param networkSpec networkSpec or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1HarborRunConfigBatchJobConfig setNetworkSpec(GoogleCloudAiplatformV1beta1NetworkSpec networkSpec) { + this.networkSpec = networkSpec; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1HarborRunConfigBatchJobConfig set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1HarborRunConfigBatchJobConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1HarborRunConfigBatchJobConfig clone() { + return (GoogleCloudAiplatformV1beta1HarborRunConfigBatchJobConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1HarborRunConfigCodingAgent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1HarborRunConfigCodingAgent.java new file mode 100644 index 00000000000..fef8fd285a6 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1HarborRunConfigCodingAgent.java @@ -0,0 +1,135 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A coding agent to run against the Harbor dataset. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1HarborRunConfigCodingAgent extends com.google.api.client.json.GenericJson { + + /** + * The coding agent to run, e.g. "antigravity-cli". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agent; + + /** + * Optional. The Vertex AI model the coding agent calls. Only Gemini based Vertex AI models are + * supported. Accepts the full Vertex AI model resource name of the form + * projects/{project}/locations/{location}/publishers/{publisher}/models/{model} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agentModel; + + /** + * Optional. Generation settings of the model that the coding agent calls. If you do not set this + * field, the coding agent uses its default settings. Only `thinking_config.thinking_level` is + * supported. The valid levels are `MINIMAL`, `LOW`, `MEDIUM` and `HIGH`. `antigravity-cli` does + * not accept a level for Gemini 2.5 models. It accepts `MINIMAL` and `MEDIUM` only for Gemini + * Flash models. If you set a level that is not valid for the coding agent and the model, + * inference fails for the candidate. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1GenerationConfig agentModelConfig; + + /** + * The coding agent to run, e.g. "antigravity-cli". + * @return value or {@code null} for none + */ + public java.lang.String getAgent() { + return agent; + } + + /** + * The coding agent to run, e.g. "antigravity-cli". + * @param agent agent or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1HarborRunConfigCodingAgent setAgent(java.lang.String agent) { + this.agent = agent; + return this; + } + + /** + * Optional. The Vertex AI model the coding agent calls. Only Gemini based Vertex AI models are + * supported. Accepts the full Vertex AI model resource name of the form + * projects/{project}/locations/{location}/publishers/{publisher}/models/{model} + * @return value or {@code null} for none + */ + public java.lang.String getAgentModel() { + return agentModel; + } + + /** + * Optional. The Vertex AI model the coding agent calls. Only Gemini based Vertex AI models are + * supported. Accepts the full Vertex AI model resource name of the form + * projects/{project}/locations/{location}/publishers/{publisher}/models/{model} + * @param agentModel agentModel or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1HarborRunConfigCodingAgent setAgentModel(java.lang.String agentModel) { + this.agentModel = agentModel; + return this; + } + + /** + * Optional. Generation settings of the model that the coding agent calls. If you do not set this + * field, the coding agent uses its default settings. Only `thinking_config.thinking_level` is + * supported. The valid levels are `MINIMAL`, `LOW`, `MEDIUM` and `HIGH`. `antigravity-cli` does + * not accept a level for Gemini 2.5 models. It accepts `MINIMAL` and `MEDIUM` only for Gemini + * Flash models. If you set a level that is not valid for the coding agent and the model, + * inference fails for the candidate. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1GenerationConfig getAgentModelConfig() { + return agentModelConfig; + } + + /** + * Optional. Generation settings of the model that the coding agent calls. If you do not set this + * field, the coding agent uses its default settings. Only `thinking_config.thinking_level` is + * supported. The valid levels are `MINIMAL`, `LOW`, `MEDIUM` and `HIGH`. `antigravity-cli` does + * not accept a level for Gemini 2.5 models. It accepts `MINIMAL` and `MEDIUM` only for Gemini + * Flash models. If you set a level that is not valid for the coding agent and the model, + * inference fails for the candidate. + * @param agentModelConfig agentModelConfig or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1HarborRunConfigCodingAgent setAgentModelConfig(GoogleCloudAiplatformV1beta1GenerationConfig agentModelConfig) { + this.agentModelConfig = agentModelConfig; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1HarborRunConfigCodingAgent set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1HarborRunConfigCodingAgent) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1HarborRunConfigCodingAgent clone() { + return (GoogleCloudAiplatformV1beta1HarborRunConfigCodingAgent) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1HarborTask.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1HarborTask.java new file mode 100644 index 00000000000..701a265e7d8 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1HarborTask.java @@ -0,0 +1,117 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Represents a Harbor task. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1HarborTask extends com.google.api.client.json.GenericJson { + + /** + * Required. Harbor dataset name this task belongs to, in `org/name` format without a version, + * e.g. "my-org/swebench-verified". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dataset; + + /** + * The GCS folder containing the Harbor task, e.g. "gs://BUCKET/PATH". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gcsUri; + + /** + * Required. The Harbor task name, e.g. "django__django-15098". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String task; + + /** + * Required. Harbor dataset name this task belongs to, in `org/name` format without a version, + * e.g. "my-org/swebench-verified". + * @return value or {@code null} for none + */ + public java.lang.String getDataset() { + return dataset; + } + + /** + * Required. Harbor dataset name this task belongs to, in `org/name` format without a version, + * e.g. "my-org/swebench-verified". + * @param dataset dataset or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1HarborTask setDataset(java.lang.String dataset) { + this.dataset = dataset; + return this; + } + + /** + * The GCS folder containing the Harbor task, e.g. "gs://BUCKET/PATH". + * @return value or {@code null} for none + */ + public java.lang.String getGcsUri() { + return gcsUri; + } + + /** + * The GCS folder containing the Harbor task, e.g. "gs://BUCKET/PATH". + * @param gcsUri gcsUri or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1HarborTask setGcsUri(java.lang.String gcsUri) { + this.gcsUri = gcsUri; + return this; + } + + /** + * Required. The Harbor task name, e.g. "django__django-15098". + * @return value or {@code null} for none + */ + public java.lang.String getTask() { + return task; + } + + /** + * Required. The Harbor task name, e.g. "django__django-15098". + * @param task task or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1HarborTask setTask(java.lang.String task) { + this.task = task; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1HarborTask set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1HarborTask) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1HarborTask clone() { + return (GoogleCloudAiplatformV1beta1HarborTask) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ImportEvaluationSetRequest.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ImportEvaluationSetRequest.java index 6b895ee2826..469caa35837 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ImportEvaluationSetRequest.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ImportEvaluationSetRequest.java @@ -59,8 +59,8 @@ public final class GoogleCloudAiplatformV1beta1ImportEvaluationSetRequest extend private GoogleCloudAiplatformV1beta1EvaluationSet evaluationSet; /** - * Required. The Cloud Storage location where the resulting EvaluationItem payloads will be - * stored. + * Optional. The Cloud Storage location where the resulting EvaluationItem payloads will be + * stored. Required for every source except `harbor_dataset`, which must not set it. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,6 +73,21 @@ public final class GoogleCloudAiplatformV1beta1ImportEvaluationSetRequest extend @com.google.api.client.util.Key private GoogleCloudAiplatformV1beta1ImportEvaluationSetRequestGcsSource gcsSource; + /** + * A Harbor dataset source. `gcs_destination` must not be set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1HarborDataset harborDataset; + + /** + * Optional. If set, `evaluation_set.name` selects an existing EvaluationSet to import into, and + * its other fields are ignored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String importMode; + /** * Inline source for small payloads (< 4MB). * The value may be {@code null}. @@ -158,8 +173,8 @@ public GoogleCloudAiplatformV1beta1ImportEvaluationSetRequest setEvaluationSet(G } /** - * Required. The Cloud Storage location where the resulting EvaluationItem payloads will be - * stored. + * Optional. The Cloud Storage location where the resulting EvaluationItem payloads will be + * stored. Required for every source except `harbor_dataset`, which must not set it. * @return value or {@code null} for none */ public GoogleCloudAiplatformV1beta1GcsDestination getGcsDestination() { @@ -167,8 +182,8 @@ public GoogleCloudAiplatformV1beta1GcsDestination getGcsDestination() { } /** - * Required. The Cloud Storage location where the resulting EvaluationItem payloads will be - * stored. + * Optional. The Cloud Storage location where the resulting EvaluationItem payloads will be + * stored. Required for every source except `harbor_dataset`, which must not set it. * @param gcsDestination gcsDestination or {@code null} for none */ public GoogleCloudAiplatformV1beta1ImportEvaluationSetRequest setGcsDestination(GoogleCloudAiplatformV1beta1GcsDestination gcsDestination) { @@ -193,6 +208,42 @@ public GoogleCloudAiplatformV1beta1ImportEvaluationSetRequest setGcsSource(Googl return this; } + /** + * A Harbor dataset source. `gcs_destination` must not be set. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1HarborDataset getHarborDataset() { + return harborDataset; + } + + /** + * A Harbor dataset source. `gcs_destination` must not be set. + * @param harborDataset harborDataset or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ImportEvaluationSetRequest setHarborDataset(GoogleCloudAiplatformV1beta1HarborDataset harborDataset) { + this.harborDataset = harborDataset; + return this; + } + + /** + * Optional. If set, `evaluation_set.name` selects an existing EvaluationSet to import into, and + * its other fields are ignored. + * @return value or {@code null} for none + */ + public java.lang.String getImportMode() { + return importMode; + } + + /** + * Optional. If set, `evaluation_set.name` selects an existing EvaluationSet to import into, and + * its other fields are ignored. + * @param importMode importMode or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ImportEvaluationSetRequest setImportMode(java.lang.String importMode) { + this.importMode = importMode; + return this; + } + /** * Inline source for small payloads (< 4MB). * @return value or {@code null} for none diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1KnowledgeCatalogConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1KnowledgeCatalogConfig.java new file mode 100644 index 00000000000..69449932c0b --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1KnowledgeCatalogConfig.java @@ -0,0 +1,117 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Configuration for enterprise Knowledge Catalog metadata discovery. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1KnowledgeCatalogConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Filter list of system/connector technology names (e.g., "bigquery", "looker", + * "spanner"). If empty, all indexed catalog connectors are searched. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List enabledConnectors; + + /** + * Optional. If true, enables searching enterprise metadata in Google Cloud Knowledge Catalog. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean knowledgeCatalogEnabled; + + /** + * Optional. GCP project ID to scope Knowledge Catalog searches. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String projectId; + + /** + * Optional. Filter list of system/connector technology names (e.g., "bigquery", "looker", + * "spanner"). If empty, all indexed catalog connectors are searched. + * @return value or {@code null} for none + */ + public java.util.List getEnabledConnectors() { + return enabledConnectors; + } + + /** + * Optional. Filter list of system/connector technology names (e.g., "bigquery", "looker", + * "spanner"). If empty, all indexed catalog connectors are searched. + * @param enabledConnectors enabledConnectors or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1KnowledgeCatalogConfig setEnabledConnectors(java.util.List enabledConnectors) { + this.enabledConnectors = enabledConnectors; + return this; + } + + /** + * Optional. If true, enables searching enterprise metadata in Google Cloud Knowledge Catalog. + * @return value or {@code null} for none + */ + public java.lang.Boolean getKnowledgeCatalogEnabled() { + return knowledgeCatalogEnabled; + } + + /** + * Optional. If true, enables searching enterprise metadata in Google Cloud Knowledge Catalog. + * @param knowledgeCatalogEnabled knowledgeCatalogEnabled or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1KnowledgeCatalogConfig setKnowledgeCatalogEnabled(java.lang.Boolean knowledgeCatalogEnabled) { + this.knowledgeCatalogEnabled = knowledgeCatalogEnabled; + return this; + } + + /** + * Optional. GCP project ID to scope Knowledge Catalog searches. + * @return value or {@code null} for none + */ + public java.lang.String getProjectId() { + return projectId; + } + + /** + * Optional. GCP project ID to scope Knowledge Catalog searches. + * @param projectId projectId or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1KnowledgeCatalogConfig setProjectId(java.lang.String projectId) { + this.projectId = projectId; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1KnowledgeCatalogConfig set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1KnowledgeCatalogConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1KnowledgeCatalogConfig clone() { + return (GoogleCloudAiplatformV1beta1KnowledgeCatalogConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1LinkJsonMetadata.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1LinkJsonMetadata.java new file mode 100644 index 00000000000..330ea4d4adb --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1LinkJsonMetadata.java @@ -0,0 +1,279 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A file, folder, site or other item in a first-party or third-party store, as its `.link.json` + * file in the workspace records it. A link file is this message as proto JSON with the field names + * below, e.g. `{"source_artifact_id":"1AbC","provider":"GOOGLE_DRIVE","artifact_type": + * "GOOGLE_DRIVE_FILE","uri":"https://drive.google.com/file/d/1AbC/view"}`. A link file may hold + * fields this message does not have; they are ignored. `path` and `update_time` are not part of a + * link file: the service sets both on a link it lists, from the link file it read the link from, + * and `AddArtifact` clears both from a request. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1LinkJsonMetadata extends com.google.api.client.json.GenericJson { + + /** + * Optional. The provider-specific kind of entity, in upper snake case. Known values are + * GOOGLE_DRIVE_DOC, GOOGLE_DRIVE_SHEET, GOOGLE_DRIVE_SLIDES, GOOGLE_DRIVE_FILE, + * GOOGLE_DRIVE_FOLDER, ONE_DRIVE_FILE, ONE_DRIVE_FOLDER, SHAREPOINT_FILE, SHAREPOINT_FOLDER and + * SHAREPOINT_SITE; a connector may use others. Must match `A-Z*`. At most 64 characters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String artifactType; + + /** + * Optional. The entity's media type, e.g. "application/vnd.ms-excel". Empty for an entity that + * has none, such as a SharePoint site. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeType; + + /** + * Output only. Absolute path of the link file in the workspace, e.g. + * `/workspace/userdata/{artifact_id}.link.json` in a task or + * `/workspace/project/{artifact_id}.link.json` in a collaborative project. Always under + * `/workspace` and never contains `..`. Set by `ArtifactService.ListWorkspaceArtifacts`. + * `ArtifactService.AddArtifact` clears it from a request, so it is never written to the link + * file. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** + * Required. The store that holds the entity. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String provider; + + /** + * Optional. The entity's ID in its store, unique within `provider`: a Drive file ID, a Jira issue + * ID, or, for OneDrive and SharePoint, whose item IDs are unique only within a drive, the drive + * ID and the drive item ID, e.g. "{drive-id}/{item-id}". At most 1024 characters. With + * `provider`, it identifies the entity: it names the link file and is the idempotency key for + * `AddArtifact`. When it is unset, `uri` takes its place, so two URIs of one entity, such as a + * Drive file's /view and /edit URIs, are two entities. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceArtifactId; + + /** + * Output only. Last modification time of the link file at `path`, as + * `ArtifactService.ListWorkspaceArtifacts` read it. Not part of a link file. It is what tells two + * listings of one entity apart after the entity was updated in place. Such an update leaves every + * other field alone -- the entity keeps its `uri` and its `source_artifact_id`, so the link file + * keeps its name -- and it leaves the link file's bytes alone too, because a link file records + * WHICH entity is linked and not what state that entity is in. The time the file was rewritten is + * the only thing that moves. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Required. URI of the entity, e.g. "https://drive.google.com/file/d/FILE_ID/view". At most 2048 + * characters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * Optional. The provider-specific kind of entity, in upper snake case. Known values are + * GOOGLE_DRIVE_DOC, GOOGLE_DRIVE_SHEET, GOOGLE_DRIVE_SLIDES, GOOGLE_DRIVE_FILE, + * GOOGLE_DRIVE_FOLDER, ONE_DRIVE_FILE, ONE_DRIVE_FOLDER, SHAREPOINT_FILE, SHAREPOINT_FOLDER and + * SHAREPOINT_SITE; a connector may use others. Must match `A-Z*`. At most 64 characters. + * @return value or {@code null} for none + */ + public java.lang.String getArtifactType() { + return artifactType; + } + + /** + * Optional. The provider-specific kind of entity, in upper snake case. Known values are + * GOOGLE_DRIVE_DOC, GOOGLE_DRIVE_SHEET, GOOGLE_DRIVE_SLIDES, GOOGLE_DRIVE_FILE, + * GOOGLE_DRIVE_FOLDER, ONE_DRIVE_FILE, ONE_DRIVE_FOLDER, SHAREPOINT_FILE, SHAREPOINT_FOLDER and + * SHAREPOINT_SITE; a connector may use others. Must match `A-Z*`. At most 64 characters. + * @param artifactType artifactType or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1LinkJsonMetadata setArtifactType(java.lang.String artifactType) { + this.artifactType = artifactType; + return this; + } + + /** + * Optional. The entity's media type, e.g. "application/vnd.ms-excel". Empty for an entity that + * has none, such as a SharePoint site. + * @return value or {@code null} for none + */ + public java.lang.String getMimeType() { + return mimeType; + } + + /** + * Optional. The entity's media type, e.g. "application/vnd.ms-excel". Empty for an entity that + * has none, such as a SharePoint site. + * @param mimeType mimeType or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1LinkJsonMetadata setMimeType(java.lang.String mimeType) { + this.mimeType = mimeType; + return this; + } + + /** + * Output only. Absolute path of the link file in the workspace, e.g. + * `/workspace/userdata/{artifact_id}.link.json` in a task or + * `/workspace/project/{artifact_id}.link.json` in a collaborative project. Always under + * `/workspace` and never contains `..`. Set by `ArtifactService.ListWorkspaceArtifacts`. + * `ArtifactService.AddArtifact` clears it from a request, so it is never written to the link + * file. + * @return value or {@code null} for none + */ + public java.lang.String getPath() { + return path; + } + + /** + * Output only. Absolute path of the link file in the workspace, e.g. + * `/workspace/userdata/{artifact_id}.link.json` in a task or + * `/workspace/project/{artifact_id}.link.json` in a collaborative project. Always under + * `/workspace` and never contains `..`. Set by `ArtifactService.ListWorkspaceArtifacts`. + * `ArtifactService.AddArtifact` clears it from a request, so it is never written to the link + * file. + * @param path path or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1LinkJsonMetadata setPath(java.lang.String path) { + this.path = path; + return this; + } + + /** + * Required. The store that holds the entity. + * @return value or {@code null} for none + */ + public java.lang.String getProvider() { + return provider; + } + + /** + * Required. The store that holds the entity. + * @param provider provider or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1LinkJsonMetadata setProvider(java.lang.String provider) { + this.provider = provider; + return this; + } + + /** + * Optional. The entity's ID in its store, unique within `provider`: a Drive file ID, a Jira issue + * ID, or, for OneDrive and SharePoint, whose item IDs are unique only within a drive, the drive + * ID and the drive item ID, e.g. "{drive-id}/{item-id}". At most 1024 characters. With + * `provider`, it identifies the entity: it names the link file and is the idempotency key for + * `AddArtifact`. When it is unset, `uri` takes its place, so two URIs of one entity, such as a + * Drive file's /view and /edit URIs, are two entities. + * @return value or {@code null} for none + */ + public java.lang.String getSourceArtifactId() { + return sourceArtifactId; + } + + /** + * Optional. The entity's ID in its store, unique within `provider`: a Drive file ID, a Jira issue + * ID, or, for OneDrive and SharePoint, whose item IDs are unique only within a drive, the drive + * ID and the drive item ID, e.g. "{drive-id}/{item-id}". At most 1024 characters. With + * `provider`, it identifies the entity: it names the link file and is the idempotency key for + * `AddArtifact`. When it is unset, `uri` takes its place, so two URIs of one entity, such as a + * Drive file's /view and /edit URIs, are two entities. + * @param sourceArtifactId sourceArtifactId or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1LinkJsonMetadata setSourceArtifactId(java.lang.String sourceArtifactId) { + this.sourceArtifactId = sourceArtifactId; + return this; + } + + /** + * Output only. Last modification time of the link file at `path`, as + * `ArtifactService.ListWorkspaceArtifacts` read it. Not part of a link file. It is what tells two + * listings of one entity apart after the entity was updated in place. Such an update leaves every + * other field alone -- the entity keeps its `uri` and its `source_artifact_id`, so the link file + * keeps its name -- and it leaves the link file's bytes alone too, because a link file records + * WHICH entity is linked and not what state that entity is in. The time the file was rewritten is + * the only thing that moves. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Last modification time of the link file at `path`, as + * `ArtifactService.ListWorkspaceArtifacts` read it. Not part of a link file. It is what tells two + * listings of one entity apart after the entity was updated in place. Such an update leaves every + * other field alone -- the entity keeps its `uri` and its `source_artifact_id`, so the link file + * keeps its name -- and it leaves the link file's bytes alone too, because a link file records + * WHICH entity is linked and not what state that entity is in. The time the file was rewritten is + * the only thing that moves. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1LinkJsonMetadata setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * Required. URI of the entity, e.g. "https://drive.google.com/file/d/FILE_ID/view". At most 2048 + * characters. + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * Required. URI of the entity, e.g. "https://drive.google.com/file/d/FILE_ID/view". At most 2048 + * characters. + * @param uri uri or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1LinkJsonMetadata setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1LinkJsonMetadata set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1LinkJsonMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1LinkJsonMetadata clone() { + return (GoogleCloudAiplatformV1beta1LinkJsonMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListCollaborativeProjectsResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListCollaborativeProjectsResponse.java new file mode 100644 index 00000000000..da1a93eb6d8 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListCollaborativeProjectsResponse.java @@ -0,0 +1,96 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * Response message for CollaborativeProjectService.ListCollaborativeProjects. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1ListCollaborativeProjectsResponse extends com.google.api.client.json.GenericJson { + + /** + * The caller's projects, most recently created first. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List collaborativeProjects; + + static { + // hack to force ProGuard to consider GoogleCloudAiplatformV1beta1CollaborativeProject used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudAiplatformV1beta1CollaborativeProject.class); + } + + /** + * A token for the next page. Empty if there are no more pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The caller's projects, most recently created first. + * @return value or {@code null} for none + */ + public java.util.List getCollaborativeProjects() { + return collaborativeProjects; + } + + /** + * The caller's projects, most recently created first. + * @param collaborativeProjects collaborativeProjects or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListCollaborativeProjectsResponse setCollaborativeProjects(java.util.List collaborativeProjects) { + this.collaborativeProjects = collaborativeProjects; + return this; + } + + /** + * A token for the next page. Empty if there are no more pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token for the next page. Empty if there are no more pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListCollaborativeProjectsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1ListCollaborativeProjectsResponse set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1ListCollaborativeProjectsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1ListCollaborativeProjectsResponse clone() { + return (GoogleCloudAiplatformV1beta1ListCollaborativeProjectsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListDetectorRevisionsResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListDetectorRevisionsResponse.java new file mode 100644 index 00000000000..5e1d0581279 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListDetectorRevisionsResponse.java @@ -0,0 +1,96 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * Response message for AgentAnomalyDetectionService.ListDetectorRevisions. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1ListDetectorRevisionsResponse extends com.google.api.client.json.GenericJson { + + /** + * The detector as configured at each revision, newest first. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List detectors; + + static { + // hack to force ProGuard to consider GoogleCloudAiplatformV1beta1Detector used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudAiplatformV1beta1Detector.class); + } + + /** + * A token to retrieve the next page of results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The detector as configured at each revision, newest first. + * @return value or {@code null} for none + */ + public java.util.List getDetectors() { + return detectors; + } + + /** + * The detector as configured at each revision, newest first. + * @param detectors detectors or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListDetectorRevisionsResponse setDetectors(java.util.List detectors) { + this.detectors = detectors; + return this; + } + + /** + * A token to retrieve the next page of results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token to retrieve the next page of results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListDetectorRevisionsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1ListDetectorRevisionsResponse set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1ListDetectorRevisionsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1ListDetectorRevisionsResponse clone() { + return (GoogleCloudAiplatformV1beta1ListDetectorRevisionsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListDetectorsResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListDetectorsResponse.java new file mode 100644 index 00000000000..8b471f74c54 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListDetectorsResponse.java @@ -0,0 +1,96 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * Response message for AgentAnomalyDetectionService.ListDetectors. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1ListDetectorsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of detectors. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List detectors; + + static { + // hack to force ProGuard to consider GoogleCloudAiplatformV1beta1Detector used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudAiplatformV1beta1Detector.class); + } + + /** + * A token to retrieve the next page of results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of detectors. + * @return value or {@code null} for none + */ + public java.util.List getDetectors() { + return detectors; + } + + /** + * The list of detectors. + * @param detectors detectors or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListDetectorsResponse setDetectors(java.util.List detectors) { + this.detectors = detectors; + return this; + } + + /** + * A token to retrieve the next page of results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token to retrieve the next page of results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListDetectorsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1ListDetectorsResponse set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1ListDetectorsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1ListDetectorsResponse clone() { + return (GoogleCloudAiplatformV1beta1ListDetectorsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListEvaluationSetRevisionsResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListEvaluationSetRevisionsResponse.java new file mode 100644 index 00000000000..270242369c4 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListEvaluationSetRevisionsResponse.java @@ -0,0 +1,96 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * Response message for EvaluationManagementService.ListEvaluationSetRevisions. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1ListEvaluationSetRevisionsResponse extends com.google.api.client.json.GenericJson { + + /** + * List of EvaluationSetRevisions in the requested page, newest first. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List evaluationSetRevisions; + + static { + // hack to force ProGuard to consider GoogleCloudAiplatformV1beta1EvaluationSetRevision used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudAiplatformV1beta1EvaluationSetRevision.class); + } + + /** + * A token to retrieve the next page of results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * List of EvaluationSetRevisions in the requested page, newest first. + * @return value or {@code null} for none + */ + public java.util.List getEvaluationSetRevisions() { + return evaluationSetRevisions; + } + + /** + * List of EvaluationSetRevisions in the requested page, newest first. + * @param evaluationSetRevisions evaluationSetRevisions or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListEvaluationSetRevisionsResponse setEvaluationSetRevisions(java.util.List evaluationSetRevisions) { + this.evaluationSetRevisions = evaluationSetRevisions; + return this; + } + + /** + * A token to retrieve the next page of results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token to retrieve the next page of results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListEvaluationSetRevisionsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1ListEvaluationSetRevisionsResponse set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1ListEvaluationSetRevisionsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1ListEvaluationSetRevisionsResponse clone() { + return (GoogleCloudAiplatformV1beta1ListEvaluationSetRevisionsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListTaskArtifactsResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListTaskArtifactsResponse.java new file mode 100644 index 00000000000..7668a82d5a2 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListTaskArtifactsResponse.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.aiplatform.v1beta1.model; + +/** + * Response for TaskService.ListTaskArtifacts. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1ListTaskArtifactsResponse extends com.google.api.client.json.GenericJson { + + /** + * The entries under the requested directory. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List artifacts; + + /** + * A token to retrieve the next page; empty if there are no more pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The entries under the requested directory. + * @return value or {@code null} for none + */ + public java.util.List getArtifacts() { + return artifacts; + } + + /** + * The entries under the requested directory. + * @param artifacts artifacts or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListTaskArtifactsResponse setArtifacts(java.util.List artifacts) { + this.artifacts = artifacts; + return this; + } + + /** + * A token to retrieve the next page; empty if there are no more pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token to retrieve the next page; empty if there are no more pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListTaskArtifactsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1ListTaskArtifactsResponse set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1ListTaskArtifactsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1ListTaskArtifactsResponse clone() { + return (GoogleCloudAiplatformV1beta1ListTaskArtifactsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListTasksResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListTasksResponse.java new file mode 100644 index 00000000000..90641dfb3d7 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListTasksResponse.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.aiplatform.v1beta1.model; + +/** + * Response for TaskService.ListTasks. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1ListTasksResponse extends com.google.api.client.json.GenericJson { + + /** + * A token to retrieve the next page; empty if there are no more pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The tasks from the requested collection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List tasks; + + /** + * A token to retrieve the next page; empty if there are no more pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token to retrieve the next page; empty if there are no more pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListTasksResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The tasks from the requested collection. + * @return value or {@code null} for none + */ + public java.util.List getTasks() { + return tasks; + } + + /** + * The tasks from the requested collection. + * @param tasks tasks or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListTasksResponse setTasks(java.util.List tasks) { + this.tasks = tasks; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1ListTasksResponse set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1ListTasksResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1ListTasksResponse clone() { + return (GoogleCloudAiplatformV1beta1ListTasksResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListWorkspaceArtifactsResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListWorkspaceArtifactsResponse.java new file mode 100644 index 00000000000..9b4217b3bbf --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListWorkspaceArtifactsResponse.java @@ -0,0 +1,96 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * Response for ArtifactService.ListWorkspaceArtifacts. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1ListWorkspaceArtifactsResponse extends com.google.api.client.json.GenericJson { + + /** + * A token to retrieve the next page; empty if there are no more pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The artifacts under the requested directory that match `filter`. Each is a file or directory in + * the workspace, or a link to an entity in a first-party or third-party store, such as Google + * Drive or OneDrive. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List workspaceArtifacts; + + /** + * A token to retrieve the next page; empty if there are no more pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token to retrieve the next page; empty if there are no more pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListWorkspaceArtifactsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The artifacts under the requested directory that match `filter`. Each is a file or directory in + * the workspace, or a link to an entity in a first-party or third-party store, such as Google + * Drive or OneDrive. + * @return value or {@code null} for none + */ + public java.util.List getWorkspaceArtifacts() { + return workspaceArtifacts; + } + + /** + * The artifacts under the requested directory that match `filter`. Each is a file or directory in + * the workspace, or a link to an entity in a first-party or third-party store, such as Google + * Drive or OneDrive. + * @param workspaceArtifacts workspaceArtifacts or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListWorkspaceArtifactsResponse setWorkspaceArtifacts(java.util.List workspaceArtifacts) { + this.workspaceArtifacts = workspaceArtifacts; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1ListWorkspaceArtifactsResponse set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1ListWorkspaceArtifactsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1ListWorkspaceArtifactsResponse clone() { + return (GoogleCloudAiplatformV1beta1ListWorkspaceArtifactsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Metric.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Metric.java index e31e71b7207..cb93ccf6208 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Metric.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Metric.java @@ -106,6 +106,13 @@ public final class GoogleCloudAiplatformV1beta1Metric extends com.google.api.cli @com.google.api.client.util.Key private GoogleCloudAiplatformV1beta1RougeSpec rougeSpec; + /** + * Spec for a step-based LLM metric. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpec stepBasedLlmMetricSpec; + /** * Optional. The aggregation metrics to use. * @return value or {@code null} for none @@ -293,6 +300,23 @@ public GoogleCloudAiplatformV1beta1Metric setRougeSpec(GoogleCloudAiplatformV1be return this; } + /** + * Spec for a step-based LLM metric. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpec getStepBasedLlmMetricSpec() { + return stepBasedLlmMetricSpec; + } + + /** + * Spec for a step-based LLM metric. + * @param stepBasedLlmMetricSpec stepBasedLlmMetricSpec or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Metric setStepBasedLlmMetricSpec(GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpec stepBasedLlmMetricSpec) { + this.stepBasedLlmMetricSpec = stepBasedLlmMetricSpec; + return this; + } + @Override public GoogleCloudAiplatformV1beta1Metric set(String fieldName, Object value) { return (GoogleCloudAiplatformV1beta1Metric) super.set(fieldName, value); diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1NlCriteria.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1NlCriteria.java new file mode 100644 index 00000000000..e69b94173e2 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1NlCriteria.java @@ -0,0 +1,71 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * An automated natural-language criterion evaluated by an autorater/agent. Wrapped in a message + * (rather than a bare string) so evaluation parameters (e.g. model, temperature, language) can be + * added without a breaking change. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1NlCriteria extends com.google.api.client.json.GenericJson { + + /** + * Required. The rubric to evaluate (e.g. "Every unread high-priority thread has a summary and a + * draft"). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String criteria; + + /** + * Required. The rubric to evaluate (e.g. "Every unread high-priority thread has a summary and a + * draft"). + * @return value or {@code null} for none + */ + public java.lang.String getCriteria() { + return criteria; + } + + /** + * Required. The rubric to evaluate (e.g. "Every unread high-priority thread has a summary and a + * draft"). + * @param criteria criteria or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1NlCriteria setCriteria(java.lang.String criteria) { + this.criteria = criteria; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1NlCriteria set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1NlCriteria) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1NlCriteria clone() { + return (GoogleCloudAiplatformV1beta1NlCriteria) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1OneOffSchedule.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1OneOffSchedule.java new file mode 100644 index 00000000000..e0a810b23b7 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1OneOffSchedule.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.aiplatform.v1beta1.model; + +/** + * A one-off (single) run trigger. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1OneOffSchedule extends com.google.api.client.json.GenericJson { + + /** + * Relative delay before the single run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String delay; + + /** + * Absolute time to run at (e.g. 8 PM today). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String runAt; + + /** + * Relative delay before the single run. + * @return value or {@code null} for none + */ + public String getDelay() { + return delay; + } + + /** + * Relative delay before the single run. + * @param delay delay or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1OneOffSchedule setDelay(String delay) { + this.delay = delay; + return this; + } + + /** + * Absolute time to run at (e.g. 8 PM today). + * @return value or {@code null} for none + */ + public String getRunAt() { + return runAt; + } + + /** + * Absolute time to run at (e.g. 8 PM today). + * @param runAt runAt or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1OneOffSchedule setRunAt(String runAt) { + this.runAt = runAt; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1OneOffSchedule set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1OneOffSchedule) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1OneOffSchedule clone() { + return (GoogleCloudAiplatformV1beta1OneOffSchedule) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Persona.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Persona.java new file mode 100644 index 00000000000..d616bc716ee --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Persona.java @@ -0,0 +1,138 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * The persona (presentation) of an agent. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1Persona extends com.google.api.client.json.GenericJson { + + /** + * Optional. The URL of the agent's avatar. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String avatarUrl; + + /** + * Required. The display name of the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Optional. The personality style or behavioral trait of the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String personality; + + /** + * Optional. The role of the agent (e.g., "Financial Analyst"). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String role; + + /** + * Optional. The URL of the agent's avatar. + * @return value or {@code null} for none + */ + public java.lang.String getAvatarUrl() { + return avatarUrl; + } + + /** + * Optional. The URL of the agent's avatar. + * @param avatarUrl avatarUrl or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Persona setAvatarUrl(java.lang.String avatarUrl) { + this.avatarUrl = avatarUrl; + return this; + } + + /** + * Required. The display name of the agent. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. The display name of the agent. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Persona setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Optional. The personality style or behavioral trait of the agent. + * @return value or {@code null} for none + */ + public java.lang.String getPersonality() { + return personality; + } + + /** + * Optional. The personality style or behavioral trait of the agent. + * @param personality personality or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Persona setPersonality(java.lang.String personality) { + this.personality = personality; + return this; + } + + /** + * Optional. The role of the agent (e.g., "Financial Analyst"). + * @return value or {@code null} for none + */ + public java.lang.String getRole() { + return role; + } + + /** + * Optional. The role of the agent (e.g., "Financial Analyst"). + * @param role role or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Persona setRole(java.lang.String role) { + this.role = role; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1Persona set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1Persona) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1Persona clone() { + return (GoogleCloudAiplatformV1beta1Persona) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Principal.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Principal.java new file mode 100644 index 00000000000..8bd0223e197 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Principal.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.aiplatform.v1beta1.model; + +/** + * Represents an identity principal (user or service). + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1Principal extends com.google.api.client.json.GenericJson { + + /** + * Optional. The system unique identifier of the principal. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Optional. The type of the principal. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Optional. The system unique identifier of the principal. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Optional. The system unique identifier of the principal. + * @param id id or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Principal setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Optional. The type of the principal. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Optional. The type of the principal. + * @param type type or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Principal setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1Principal set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1Principal) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1Principal clone() { + return (GoogleCloudAiplatformV1beta1Principal) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpec.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpec.java index 429df5aecba..dc47235147e 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpec.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpec.java @@ -43,6 +43,13 @@ public final class GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpec @com.google.api.client.util.Key private GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecDeveloperConnectSource developerConnectSource; + /** + * Source code is in a public Git repository. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecGitSource gitSource; + /** * Optional. Configuration for building an image with custom config file. * The value may be {@code null}. @@ -98,6 +105,23 @@ public GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpec setDevelope return this; } + /** + * Source code is in a public Git repository. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecGitSource getGitSource() { + return gitSource; + } + + /** + * Source code is in a public Git repository. + * @param gitSource gitSource or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpec setGitSource(GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecGitSource gitSource) { + this.gitSource = gitSource; + return this; + } + /** * Optional. Configuration for building an image with custom config file. * @return value or {@code null} for none diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecGitSource.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecGitSource.java new file mode 100644 index 00000000000..67599eaa49b --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecGitSource.java @@ -0,0 +1,117 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Specifies source code to be fetched from a public Git repository. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecGitSource extends com.google.api.client.json.GenericJson { + + /** + * Optional. Directory, relative to the source root, in which to run the build. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dir; + + /** + * Required. The revision to fetch from the Git repository: a branch, a tag, or a full commit SHA. + * Abbreviated commit SHAs are not supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String revision; + + /** + * Required. The HTTPS URL of the public Git repository to clone. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * Optional. Directory, relative to the source root, in which to run the build. + * @return value or {@code null} for none + */ + public java.lang.String getDir() { + return dir; + } + + /** + * Optional. Directory, relative to the source root, in which to run the build. + * @param dir dir or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecGitSource setDir(java.lang.String dir) { + this.dir = dir; + return this; + } + + /** + * Required. The revision to fetch from the Git repository: a branch, a tag, or a full commit SHA. + * Abbreviated commit SHAs are not supported. + * @return value or {@code null} for none + */ + public java.lang.String getRevision() { + return revision; + } + + /** + * Required. The revision to fetch from the Git repository: a branch, a tag, or a full commit SHA. + * Abbreviated commit SHAs are not supported. + * @param revision revision or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecGitSource setRevision(java.lang.String revision) { + this.revision = revision; + return this; + } + + /** + * Required. The HTTPS URL of the public Git repository to clone. + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * Required. The HTTPS URL of the public Git repository to clone. + * @param url url or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecGitSource setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecGitSource set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecGitSource) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecGitSource clone() { + return (GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecGitSource) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1RecurringSchedule.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1RecurringSchedule.java new file mode 100644 index 00000000000..190619f58dc --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1RecurringSchedule.java @@ -0,0 +1,186 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Defines a recurring schedule logic for repeated task executions. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1RecurringSchedule extends com.google.api.client.json.GenericJson { + + /** + * The cron expression, e.g. "0 8 * * MON-FRI". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1CronSchedule cron; + + /** + * Optional. Do not fire after this time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Identifier of a registered event source / webhook subscription whose events fire the task. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1EventSchedule eventSource; + + /** + * Optional. Max total number of firings. Unset means unbounded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long maxRunCount; + + /** + * Optional. What to do when a firing is due while a prior run is still active. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String overlapPolicy; + + /** + * Optional. Do not fire before this time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * The cron expression, e.g. "0 8 * * MON-FRI". + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CronSchedule getCron() { + return cron; + } + + /** + * The cron expression, e.g. "0 8 * * MON-FRI". + * @param cron cron or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1RecurringSchedule setCron(GoogleCloudAiplatformV1beta1CronSchedule cron) { + this.cron = cron; + return this; + } + + /** + * Optional. Do not fire after this time. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Optional. Do not fire after this time. + * @param endTime endTime or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1RecurringSchedule setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Identifier of a registered event source / webhook subscription whose events fire the task. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EventSchedule getEventSource() { + return eventSource; + } + + /** + * Identifier of a registered event source / webhook subscription whose events fire the task. + * @param eventSource eventSource or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1RecurringSchedule setEventSource(GoogleCloudAiplatformV1beta1EventSchedule eventSource) { + this.eventSource = eventSource; + return this; + } + + /** + * Optional. Max total number of firings. Unset means unbounded. + * @return value or {@code null} for none + */ + public java.lang.Long getMaxRunCount() { + return maxRunCount; + } + + /** + * Optional. Max total number of firings. Unset means unbounded. + * @param maxRunCount maxRunCount or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1RecurringSchedule setMaxRunCount(java.lang.Long maxRunCount) { + this.maxRunCount = maxRunCount; + return this; + } + + /** + * Optional. What to do when a firing is due while a prior run is still active. + * @return value or {@code null} for none + */ + public java.lang.String getOverlapPolicy() { + return overlapPolicy; + } + + /** + * Optional. What to do when a firing is due while a prior run is still active. + * @param overlapPolicy overlapPolicy or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1RecurringSchedule setOverlapPolicy(java.lang.String overlapPolicy) { + this.overlapPolicy = overlapPolicy; + return this; + } + + /** + * Optional. Do not fire before this time. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * Optional. Do not fire before this time. + * @param startTime startTime or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1RecurringSchedule setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1RecurringSchedule set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1RecurringSchedule) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1RecurringSchedule clone() { + return (GoogleCloudAiplatformV1beta1RecurringSchedule) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactRequest.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactRequest.java new file mode 100644 index 00000000000..a6bf247b72f --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactRequest.java @@ -0,0 +1,96 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * Request for ArtifactService.RemoveWorkspaceArtifact. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. If `true`, deleting a file that does not exist succeeds and changes nothing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean allowMissing; + + /** + * Required. Absolute path of the file to delete, e.g. `/workspace/userdata/input.csv`, or, for a + * collaborative project, under `/workspace/project`, e.g. `/workspace/project/report.md`. Must be + * under `/workspace/`, at most 1024 characters, and not contain a `..` segment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** + * Optional. If `true`, deleting a file that does not exist succeeds and changes nothing. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAllowMissing() { + return allowMissing; + } + + /** + * Optional. If `true`, deleting a file that does not exist succeeds and changes nothing. + * @param allowMissing allowMissing or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactRequest setAllowMissing(java.lang.Boolean allowMissing) { + this.allowMissing = allowMissing; + return this; + } + + /** + * Required. Absolute path of the file to delete, e.g. `/workspace/userdata/input.csv`, or, for a + * collaborative project, under `/workspace/project`, e.g. `/workspace/project/report.md`. Must be + * under `/workspace/`, at most 1024 characters, and not contain a `..` segment. + * @return value or {@code null} for none + */ + public java.lang.String getPath() { + return path; + } + + /** + * Required. Absolute path of the file to delete, e.g. `/workspace/userdata/input.csv`, or, for a + * collaborative project, under `/workspace/project`, e.g. `/workspace/project/report.md`. Must be + * under `/workspace/`, at most 1024 characters, and not contain a `..` segment. + * @param path path or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactRequest setPath(java.lang.String path) { + this.path = path; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactRequest set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactRequest clone() { + return (GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactResponse.java new file mode 100644 index 00000000000..a92a682657d --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactResponse.java @@ -0,0 +1,42 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Response for ArtifactService.RemoveWorkspaceArtifact. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactResponse extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactResponse set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactResponse clone() { + return (GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ResourceRef.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ResourceRef.java new file mode 100644 index 00000000000..0659774a1ff --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ResourceRef.java @@ -0,0 +1,150 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A specific resource boundary restricting an agent's access to designated entities. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1ResourceRef extends com.google.api.client.json.GenericJson { + + /** + * Optional. Optional recipients email boundaries for communication tools. Example: + * ["alice@gmail.com", "bob@google.com"]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List recipients; + + /** + * Optional. The specific resource identifier (e.g. thread_id, doc_id, repo name). Examples: * + * GMAIL_THREAD: "18df123456789abc" * GOOGLE_CHAT_THREAD: "spaces/AAA/threads/BBB" * + * GITHUB_REPOSITORY: "GoogleCloudPlatform/kubectl" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** + * Required. The type of resource being scoped. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resourceType; + + /** + * Optional. For cold outreach / outbound threads when resource_id doesn't exist. Grants access + * ONLY to resources created by this task instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean selfCreated; + + /** + * Optional. Optional recipients email boundaries for communication tools. Example: + * ["alice@gmail.com", "bob@google.com"]. + * @return value or {@code null} for none + */ + public java.util.List getRecipients() { + return recipients; + } + + /** + * Optional. Optional recipients email boundaries for communication tools. Example: + * ["alice@gmail.com", "bob@google.com"]. + * @param recipients recipients or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ResourceRef setRecipients(java.util.List recipients) { + this.recipients = recipients; + return this; + } + + /** + * Optional. The specific resource identifier (e.g. thread_id, doc_id, repo name). Examples: * + * GMAIL_THREAD: "18df123456789abc" * GOOGLE_CHAT_THREAD: "spaces/AAA/threads/BBB" * + * GITHUB_REPOSITORY: "GoogleCloudPlatform/kubectl" + * @return value or {@code null} for none + */ + public java.lang.String getResource() { + return resource; + } + + /** + * Optional. The specific resource identifier (e.g. thread_id, doc_id, repo name). Examples: * + * GMAIL_THREAD: "18df123456789abc" * GOOGLE_CHAT_THREAD: "spaces/AAA/threads/BBB" * + * GITHUB_REPOSITORY: "GoogleCloudPlatform/kubectl" + * @param resource resource or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ResourceRef setResource(java.lang.String resource) { + this.resource = resource; + return this; + } + + /** + * Required. The type of resource being scoped. + * @return value or {@code null} for none + */ + public java.lang.String getResourceType() { + return resourceType; + } + + /** + * Required. The type of resource being scoped. + * @param resourceType resourceType or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ResourceRef setResourceType(java.lang.String resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + * Optional. For cold outreach / outbound threads when resource_id doesn't exist. Grants access + * ONLY to resources created by this task instance. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSelfCreated() { + return selfCreated; + } + + /** + * Optional. For cold outreach / outbound threads when resource_id doesn't exist. Grants access + * ONLY to resources created by this task instance. + * @param selfCreated selfCreated or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ResourceRef setSelfCreated(java.lang.Boolean selfCreated) { + this.selfCreated = selfCreated; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1ResourceRef set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1ResourceRef) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1ResourceRef clone() { + return (GoogleCloudAiplatformV1beta1ResourceRef) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ResumeTaskRequest.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ResumeTaskRequest.java new file mode 100644 index 00000000000..a6416f5aea1 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ResumeTaskRequest.java @@ -0,0 +1,72 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Request for TaskService.ResumeTask. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1ResumeTaskRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. Additional budget to append to the task upon resumption. Used when resuming a task + * that was `SUSPENDED` due to reaching its budget limits. Not required (or desired) when resuming + * tasks suspended for other reasons (e.g., via an explicit `SuspendTask` call). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1Budget additionalBudget; + + /** + * Optional. Additional budget to append to the task upon resumption. Used when resuming a task + * that was `SUSPENDED` due to reaching its budget limits. Not required (or desired) when resuming + * tasks suspended for other reasons (e.g., via an explicit `SuspendTask` call). + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Budget getAdditionalBudget() { + return additionalBudget; + } + + /** + * Optional. Additional budget to append to the task upon resumption. Used when resuming a task + * that was `SUSPENDED` due to reaching its budget limits. Not required (or desired) when resuming + * tasks suspended for other reasons (e.g., via an explicit `SuspendTask` call). + * @param additionalBudget additionalBudget or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ResumeTaskRequest setAdditionalBudget(GoogleCloudAiplatformV1beta1Budget additionalBudget) { + this.additionalBudget = additionalBudget; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1ResumeTaskRequest set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1ResumeTaskRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1ResumeTaskRequest clone() { + return (GoogleCloudAiplatformV1beta1ResumeTaskRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplate.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplate.java index 0c448328aab..05e34ae8172 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplate.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplate.java @@ -119,6 +119,13 @@ public final class GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplate extend @com.google.api.client.util.Key private java.lang.Boolean useGkeTd; + /** + * Optional. The configuration for the warm pool of this template. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateWarmPoolConfig warmPoolConfig; + /** * Output only. The timestamp when this SandboxEnvironmentTemplate was created. * @return value or {@code null} for none @@ -330,6 +337,23 @@ public GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplate setUseGkeTd(java.l return this; } + /** + * Optional. The configuration for the warm pool of this template. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateWarmPoolConfig getWarmPoolConfig() { + return warmPoolConfig; + } + + /** + * Optional. The configuration for the warm pool of this template. + * @param warmPoolConfig warmPoolConfig or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplate setWarmPoolConfig(GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateWarmPoolConfig warmPoolConfig) { + this.warmPoolConfig = warmPoolConfig; + return this; + } + @Override public GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplate set(String fieldName, Object value) { return (GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplate) super.set(fieldName, value); diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateWarmPoolConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateWarmPoolConfig.java new file mode 100644 index 00000000000..6fcb28b794e --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateWarmPoolConfig.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.aiplatform.v1beta1.model; + +/** + * Configuration for a warm pool of sandbox instances. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateWarmPoolConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The target number of pre-warmed instances to maintain. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer targetInstanceCount; + + /** + * Optional. The strategy for updating warm pool instances when the template is updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String updateStrategy; + + /** + * Optional. The target number of pre-warmed instances to maintain. + * @return value or {@code null} for none + */ + public java.lang.Integer getTargetInstanceCount() { + return targetInstanceCount; + } + + /** + * Optional. The target number of pre-warmed instances to maintain. + * @param targetInstanceCount targetInstanceCount or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateWarmPoolConfig setTargetInstanceCount(java.lang.Integer targetInstanceCount) { + this.targetInstanceCount = targetInstanceCount; + return this; + } + + /** + * Optional. The strategy for updating warm pool instances when the template is updated. + * @return value or {@code null} for none + */ + public java.lang.String getUpdateStrategy() { + return updateStrategy; + } + + /** + * Optional. The strategy for updating warm pool instances when the template is updated. + * @param updateStrategy updateStrategy or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateWarmPoolConfig setUpdateStrategy(java.lang.String updateStrategy) { + this.updateStrategy = updateStrategy; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateWarmPoolConfig set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateWarmPoolConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateWarmPoolConfig clone() { + return (GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateWarmPoolConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessage.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessage.java index 99d127ee973..f3583a0f658 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessage.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessage.java @@ -59,6 +59,13 @@ public final class GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessage ext @com.google.api.client.util.Key private java.lang.String model; + /** + * Optional. Configuration for persisting output assets to external storage. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessageOutputConfig outputConfig; + /** * Per request settings for blocking unsafe content. Enforced on * GenerateContentResponse.candidates. @@ -152,6 +159,23 @@ public GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessage setModel(java.l return this; } + /** + * Optional. Configuration for persisting output assets to external storage. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessageOutputConfig getOutputConfig() { + return outputConfig; + } + + /** + * Optional. Configuration for persisting output assets to external storage. + * @param outputConfig outputConfig or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessage setOutputConfig(GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessageOutputConfig outputConfig) { + this.outputConfig = outputConfig; + return this; + } + /** * Per request settings for blocking unsafe content. Enforced on * GenerateContentResponse.candidates. diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessageOutputConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessageOutputConfig.java new file mode 100644 index 00000000000..73e78aee0b4 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessageOutputConfig.java @@ -0,0 +1,69 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Configuration for persisting output assets to external storage. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessageOutputConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The Cloud Storage URI prefix or directory where generated media assets should be + * written (e.g. `gs://my-bucket/prefix/`). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String outputUriPrefix; + + /** + * Optional. The Cloud Storage URI prefix or directory where generated media assets should be + * written (e.g. `gs://my-bucket/prefix/`). + * @return value or {@code null} for none + */ + public java.lang.String getOutputUriPrefix() { + return outputUriPrefix; + } + + /** + * Optional. The Cloud Storage URI prefix or directory where generated media assets should be + * written (e.g. `gs://my-bucket/prefix/`). + * @param outputUriPrefix outputUriPrefix or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessageOutputConfig setOutputUriPrefix(java.lang.String outputUriPrefix) { + this.outputUriPrefix = outputUriPrefix; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessageOutputConfig set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessageOutputConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessageOutputConfig clone() { + return (GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessageOutputConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SetDefaultNotebookRuntimeTemplateRequest.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SetDefaultNotebookRuntimeTemplateRequest.java new file mode 100644 index 00000000000..6142d7a4a19 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SetDefaultNotebookRuntimeTemplateRequest.java @@ -0,0 +1,69 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Request message for NotebookService.SetDefaultNotebookRuntimeTemplate. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1SetDefaultNotebookRuntimeTemplateRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The resource name of the NotebookRuntimeTemplate to set as default. Format: + * `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The resource name of the NotebookRuntimeTemplate to set as default. Format: + * `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the NotebookRuntimeTemplate to set as default. Format: + * `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}` + * @param name name or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1SetDefaultNotebookRuntimeTemplateRequest setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1SetDefaultNotebookRuntimeTemplateRequest set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1SetDefaultNotebookRuntimeTemplateRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1SetDefaultNotebookRuntimeTemplateRequest clone() { + return (GoogleCloudAiplatformV1beta1SetDefaultNotebookRuntimeTemplateRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SetDefaultNotebookRuntimeTemplateResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SetDefaultNotebookRuntimeTemplateResponse.java new file mode 100644 index 00000000000..0d656fc57aa --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SetDefaultNotebookRuntimeTemplateResponse.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * Response message for NotebookService.SetDefaultNotebookRuntimeTemplate. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1SetDefaultNotebookRuntimeTemplateResponse extends com.google.api.client.json.GenericJson { + + /** + * The NotebookRuntimeTemplate that was set as default. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate notebookRuntimeTemplate; + + /** + * The NotebookRuntimeTemplate that was set as default. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate getNotebookRuntimeTemplate() { + return notebookRuntimeTemplate; + } + + /** + * The NotebookRuntimeTemplate that was set as default. + * @param notebookRuntimeTemplate notebookRuntimeTemplate or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1SetDefaultNotebookRuntimeTemplateResponse setNotebookRuntimeTemplate(GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate notebookRuntimeTemplate) { + this.notebookRuntimeTemplate = notebookRuntimeTemplate; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1SetDefaultNotebookRuntimeTemplateResponse set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1SetDefaultNotebookRuntimeTemplateResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1SetDefaultNotebookRuntimeTemplateResponse clone() { + return (GoogleCloudAiplatformV1beta1SetDefaultNotebookRuntimeTemplateResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpec.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpec.java new file mode 100644 index 00000000000..ae45da9fc4f --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpec.java @@ -0,0 +1,108 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Spec for a configurable multi-step LLM autorater. This spec runs an optional `AgentData` + * preprocessor followed by an ordered list of LLM steps, where each step can reference the outputs + * of earlier steps. To evaluate a multi-agent system at the system, main-agent, or sub-agent level, + * use one spec per level with a different `preprocessor`. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpec extends com.google.api.client.json.GenericJson { + + /** + * Optional. Preprocessing applied once to the `AgentData` trace before any step runs. If unset, + * every step sees the full trace. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecAgentDataPreprocessor preprocessor; + + /** + * Required. Steps, run sequentially in the given order. A step can reference the output of an + * earlier step in its `prompt_template` as `{step..output}`. Each step calls the judge model + * `autorater_config.sampling_count` times, and its `response_parser_config` parses and aggregates + * the sampled responses into the step's output. `{step..output}` is that aggregated output, and + * the last step's output is the metric score. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List steps; + + /** + * Optional. Preprocessing applied once to the `AgentData` trace before any step runs. If unset, + * every step sees the full trace. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecAgentDataPreprocessor getPreprocessor() { + return preprocessor; + } + + /** + * Optional. Preprocessing applied once to the `AgentData` trace before any step runs. If unset, + * every step sees the full trace. + * @param preprocessor preprocessor or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpec setPreprocessor(GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecAgentDataPreprocessor preprocessor) { + this.preprocessor = preprocessor; + return this; + } + + /** + * Required. Steps, run sequentially in the given order. A step can reference the output of an + * earlier step in its `prompt_template` as `{step..output}`. Each step calls the judge model + * `autorater_config.sampling_count` times, and its `response_parser_config` parses and aggregates + * the sampled responses into the step's output. `{step..output}` is that aggregated output, and + * the last step's output is the metric score. + * @return value or {@code null} for none + */ + public java.util.List getSteps() { + return steps; + } + + /** + * Required. Steps, run sequentially in the given order. A step can reference the output of an + * earlier step in its `prompt_template` as `{step..output}`. Each step calls the judge model + * `autorater_config.sampling_count` times, and its `response_parser_config` parses and aggregates + * the sampled responses into the step's output. `{step..output}` is that aggregated output, and + * the last step's output is the metric score. + * @param steps steps or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpec setSteps(java.util.List steps) { + this.steps = steps; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpec set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpec) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpec clone() { + return (GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpec) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecAgentDataPreprocessor.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecAgentDataPreprocessor.java new file mode 100644 index 00000000000..58e906acf6f --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecAgentDataPreprocessor.java @@ -0,0 +1,93 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Preprocessing applied to an `AgentData` trace before any step runs. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecAgentDataPreprocessor extends com.google.api.client.json.GenericJson { + + /** + * Custom Python preprocessing, for logic that `filter_config` cannot express, such as extracting + * the turns of a specific agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecCodePreprocessorConfig codeConfig; + + /** + * Config-driven filtering and compression. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecFilterPreprocessorConfig filterConfig; + + /** + * Custom Python preprocessing, for logic that `filter_config` cannot express, such as extracting + * the turns of a specific agent. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecCodePreprocessorConfig getCodeConfig() { + return codeConfig; + } + + /** + * Custom Python preprocessing, for logic that `filter_config` cannot express, such as extracting + * the turns of a specific agent. + * @param codeConfig codeConfig or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecAgentDataPreprocessor setCodeConfig(GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecCodePreprocessorConfig codeConfig) { + this.codeConfig = codeConfig; + return this; + } + + /** + * Config-driven filtering and compression. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecFilterPreprocessorConfig getFilterConfig() { + return filterConfig; + } + + /** + * Config-driven filtering and compression. + * @param filterConfig filterConfig or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecAgentDataPreprocessor setFilterConfig(GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecFilterPreprocessorConfig filterConfig) { + this.filterConfig = filterConfig; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecAgentDataPreprocessor set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecAgentDataPreprocessor) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecAgentDataPreprocessor clone() { + return (GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecAgentDataPreprocessor) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecCodePreprocessorConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecCodePreprocessorConfig.java new file mode 100644 index 00000000000..21d3e49af6e --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecCodePreprocessorConfig.java @@ -0,0 +1,78 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Custom Python preprocessing of an `AgentData` trace. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecCodePreprocessorConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. Python code that defines a `preprocess` function. The function receives the + * instance's `AgentData` trace and returns the preprocessed trace as a dict with the same + * structure as `AgentData`, for example `{"agents": {...}, "turns": [...]}`. Every step then uses + * the returned trace instead of the original. Expected signature: def preprocess(agent_data: + * AgentData) -> dict[str, Any]: + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * Required. Python code that defines a `preprocess` function. The function receives the + * instance's `AgentData` trace and returns the preprocessed trace as a dict with the same + * structure as `AgentData`, for example `{"agents": {...}, "turns": [...]}`. Every step then uses + * the returned trace instead of the original. Expected signature: def preprocess(agent_data: + * AgentData) -> dict[str, Any]: + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * Required. Python code that defines a `preprocess` function. The function receives the + * instance's `AgentData` trace and returns the preprocessed trace as a dict with the same + * structure as `AgentData`, for example `{"agents": {...}, "turns": [...]}`. Every step then uses + * the returned trace instead of the original. Expected signature: def preprocess(agent_data: + * AgentData) -> dict[str, Any]: + * @param code code or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecCodePreprocessorConfig setCode(java.lang.String code) { + this.code = code; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecCodePreprocessorConfig set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecCodePreprocessorConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecCodePreprocessorConfig clone() { + return (GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecCodePreprocessorConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecFilterPreprocessorConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecFilterPreprocessorConfig.java new file mode 100644 index 00000000000..e8511d026fe --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecFilterPreprocessorConfig.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * Config-driven preprocessing of an `AgentData` trace. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecFilterPreprocessorConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Compression to apply to the trace. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecFilterPreprocessorConfigTraceCompressionConfig traceCompressionConfig; + + /** + * Optional. Compression to apply to the trace. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecFilterPreprocessorConfigTraceCompressionConfig getTraceCompressionConfig() { + return traceCompressionConfig; + } + + /** + * Optional. Compression to apply to the trace. + * @param traceCompressionConfig traceCompressionConfig or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecFilterPreprocessorConfig setTraceCompressionConfig(GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecFilterPreprocessorConfigTraceCompressionConfig traceCompressionConfig) { + this.traceCompressionConfig = traceCompressionConfig; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecFilterPreprocessorConfig set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecFilterPreprocessorConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecFilterPreprocessorConfig clone() { + return (GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecFilterPreprocessorConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecFilterPreprocessorConfigTraceCompressionConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecFilterPreprocessorConfigTraceCompressionConfig.java new file mode 100644 index 00000000000..9be69e30c34 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecFilterPreprocessorConfigTraceCompressionConfig.java @@ -0,0 +1,93 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Compression for long traces. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecFilterPreprocessorConfigTraceCompressionConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. If set, keeps only the last `max_turn_count` turns. Must be positive. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxTurnCount; + + /** + * Optional. If `true`, removes events whose content parts are all thoughts (`Part.thought` is + * `true`). Events with tool calls or user-directed content are kept. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean thoughtsFiltered; + + /** + * Optional. If set, keeps only the last `max_turn_count` turns. Must be positive. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxTurnCount() { + return maxTurnCount; + } + + /** + * Optional. If set, keeps only the last `max_turn_count` turns. Must be positive. + * @param maxTurnCount maxTurnCount or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecFilterPreprocessorConfigTraceCompressionConfig setMaxTurnCount(java.lang.Integer maxTurnCount) { + this.maxTurnCount = maxTurnCount; + return this; + } + + /** + * Optional. If `true`, removes events whose content parts are all thoughts (`Part.thought` is + * `true`). Events with tool calls or user-directed content are kept. + * @return value or {@code null} for none + */ + public java.lang.Boolean getThoughtsFiltered() { + return thoughtsFiltered; + } + + /** + * Optional. If `true`, removes events whose content parts are all thoughts (`Part.thought` is + * `true`). Events with tool calls or user-directed content are kept. + * @param thoughtsFiltered thoughtsFiltered or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecFilterPreprocessorConfigTraceCompressionConfig setThoughtsFiltered(java.lang.Boolean thoughtsFiltered) { + this.thoughtsFiltered = thoughtsFiltered; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecFilterPreprocessorConfigTraceCompressionConfig set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecFilterPreprocessorConfigTraceCompressionConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecFilterPreprocessorConfigTraceCompressionConfig clone() { + return (GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecFilterPreprocessorConfigTraceCompressionConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecStep.java new file mode 100644 index 00000000000..c0ac8263ecb --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecStep.java @@ -0,0 +1,157 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A single step in the pipeline. The step calls the judge model with its `prompt_template`, parses + * the responses with `response_parser_config`, and stores the result for later steps. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecStep extends com.google.api.client.json.GenericJson { + + /** + * Optional. Judge model configuration for this step. If unset, the request-level + * `autorater_config` is used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1AutoraterConfig autoraterConfig; + + /** + * Required. Prompt template for this step. Variables are written in braces, for example + * `{response}`, and are filled from: - Fields of the `EvaluationInstance` by name, such as + * `{prompt}`, `{response}`, `{reference}`, and keys of `other_data`. `{agent_eval_data}` is the + * agent trace after `preprocessor` runs. - Outputs of earlier steps, as `{step..output}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String promptTemplate; + + /** + * Optional. How to parse this step's LLM response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1EvaluationParserConfig responseParserConfig; + + /** + * Required. Identifier of this step, unique within the spec. Must start with a lowercase letter + * and contain only lowercase letters, digits, and underscores. Later steps reference its output + * as `{step..output}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stepId; + + /** + * Optional. Judge model configuration for this step. If unset, the request-level + * `autorater_config` is used. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AutoraterConfig getAutoraterConfig() { + return autoraterConfig; + } + + /** + * Optional. Judge model configuration for this step. If unset, the request-level + * `autorater_config` is used. + * @param autoraterConfig autoraterConfig or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecStep setAutoraterConfig(GoogleCloudAiplatformV1beta1AutoraterConfig autoraterConfig) { + this.autoraterConfig = autoraterConfig; + return this; + } + + /** + * Required. Prompt template for this step. Variables are written in braces, for example + * `{response}`, and are filled from: - Fields of the `EvaluationInstance` by name, such as + * `{prompt}`, `{response}`, `{reference}`, and keys of `other_data`. `{agent_eval_data}` is the + * agent trace after `preprocessor` runs. - Outputs of earlier steps, as `{step..output}`. + * @return value or {@code null} for none + */ + public java.lang.String getPromptTemplate() { + return promptTemplate; + } + + /** + * Required. Prompt template for this step. Variables are written in braces, for example + * `{response}`, and are filled from: - Fields of the `EvaluationInstance` by name, such as + * `{prompt}`, `{response}`, `{reference}`, and keys of `other_data`. `{agent_eval_data}` is the + * agent trace after `preprocessor` runs. - Outputs of earlier steps, as `{step..output}`. + * @param promptTemplate promptTemplate or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecStep setPromptTemplate(java.lang.String promptTemplate) { + this.promptTemplate = promptTemplate; + return this; + } + + /** + * Optional. How to parse this step's LLM response. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EvaluationParserConfig getResponseParserConfig() { + return responseParserConfig; + } + + /** + * Optional. How to parse this step's LLM response. + * @param responseParserConfig responseParserConfig or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecStep setResponseParserConfig(GoogleCloudAiplatformV1beta1EvaluationParserConfig responseParserConfig) { + this.responseParserConfig = responseParserConfig; + return this; + } + + /** + * Required. Identifier of this step, unique within the spec. Must start with a lowercase letter + * and contain only lowercase letters, digits, and underscores. Later steps reference its output + * as `{step..output}`. + * @return value or {@code null} for none + */ + public java.lang.String getStepId() { + return stepId; + } + + /** + * Required. Identifier of this step, unique within the spec. Must start with a lowercase letter + * and contain only lowercase letters, digits, and underscores. Later steps reference its output + * as `{step..output}`. + * @param stepId stepId or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecStep setStepId(java.lang.String stepId) { + this.stepId = stepId; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecStep set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecStep) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecStep clone() { + return (GoogleCloudAiplatformV1beta1StepBasedLlmMetricSpecStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SuspendTaskRequest.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SuspendTaskRequest.java new file mode 100644 index 00000000000..3d007a4d2b4 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SuspendTaskRequest.java @@ -0,0 +1,93 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Request for TaskService.SuspendTask. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1SuspendTaskRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether to skip cascade suspension to all descendant subtasks. Defaults to false + * (cascades to all descendants by default). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean operateOnSelf; + + /** + * Optional. Machine-readable reason and detail for the suspension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1TaskStatusDetail statusDetail; + + /** + * Optional. Whether to skip cascade suspension to all descendant subtasks. Defaults to false + * (cascades to all descendants by default). + * @return value or {@code null} for none + */ + public java.lang.Boolean getOperateOnSelf() { + return operateOnSelf; + } + + /** + * Optional. Whether to skip cascade suspension to all descendant subtasks. Defaults to false + * (cascades to all descendants by default). + * @param operateOnSelf operateOnSelf or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1SuspendTaskRequest setOperateOnSelf(java.lang.Boolean operateOnSelf) { + this.operateOnSelf = operateOnSelf; + return this; + } + + /** + * Optional. Machine-readable reason and detail for the suspension. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskStatusDetail getStatusDetail() { + return statusDetail; + } + + /** + * Optional. Machine-readable reason and detail for the suspension. + * @param statusDetail statusDetail or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1SuspendTaskRequest setStatusDetail(GoogleCloudAiplatformV1beta1TaskStatusDetail statusDetail) { + this.statusDetail = statusDetail; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1SuspendTaskRequest set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1SuspendTaskRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1SuspendTaskRequest clone() { + return (GoogleCloudAiplatformV1beta1SuspendTaskRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Task.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Task.java new file mode 100644 index 00000000000..5b26afc83fd --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Task.java @@ -0,0 +1,590 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A durable, addressable unit of work: scoped context + a goal with verifiers, assigned to an + * agent, and executed as a trajectory of steps. A Task is the resource users open, list, and + * manage. It is a light "header" (status, title, summary, outcome). The executed trajectory (steps) + * is not stored inline -- it is streamed live over CreateTaskBidiStream (fetched from the runtime), + * so a long-running/re-firing task carries no unbounded blob. Resource name (canonical): + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} Task is a sub-resource of + * Agent. A short alias projects/{project}/locations/{location}/tasks/{task} is also accepted (dual- + * path); the task id is unique within a project+location, so both forms resolve the same task. The + * short form is retained intentionally : * GetTask/ListTasks support both (dual) resource paths. * + * Subtasks store the short form in parent_task_id, so that reassignment of the parent task to + * another agent later will not require updating the subtasks, and the rendering of the task tree + * will not imply the agent relationships. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1Task extends com.google.api.client.json.GenericJson { + + /** + * Output only. The resource name of the `Agent` this task is assigned to, in the format + * `projects/{project}/locations/{location}/agents/{agent}`. It is derived from the create parent; + * any value set by the client is ignored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String assignedAgent; + + /** + * Output only. The resolved Agent Identity (SPIFFE ID) of the `Agent` this task is assigned to. + * Populated on single-task RPCs (`CreateTask`, `GetTask`, `UpdateTask`, `SuspendTask`, + * `ResumeTask`, `CancelTask`); not populated by `ListTasks`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String assignedAgentIdentity; + + /** + * Output only. Current budget consumption detail of the Task. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1BudgetConsumptionDetail budgetConsumptionDetail; + + /** + * Output only. The time the task was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. Goals of the Task, including both active and completed/failed. A Task may pursue + * several concurrently active goals . + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List goals; + + static { + // hack to force ProGuard to consider GoogleCloudAiplatformV1beta1Goal used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudAiplatformV1beta1Goal.class); + } + + /** + * Optional. Optional caller-supplied labels. Must follow the unified cloud labels spec + * (keys/values lowercase `[a-z0-9_-]`, <=63 chars). Stored as-is and returned verbatim on + * Get/ListTask, so the caller owns what goes in and reads back. Label names starting with `goog-` + * or `google-` are reserved for predefined labels. Besides user-defined billing/reporting labels, + * callers may stamp non-PII operational traffic annotations here under the reserved prefix + * (persisted on the task, so they apply to every turn and survive reconnection). Predefined: + * `goog-golden-query-id`: stable golden-query / CUJ id (e.g. `hello-world`); absent for organic + * traffic. Lets per-CUJ latency be trended independently. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Identifier. Resource name of the task. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Next scheduled firing of a recurring template. Unset once the template is + * `SCHEDULE_FINISHED`, and for cron-less (event) schedules. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String nextRunTime; + + /** + * Optional. If this task is a subtask, the parent task's short-form, agent-independent resource + * name: projects/{project}/locations/{location}/tasks/{task} The short form is used here on + * purpose (NOT the agent-scoped .../agents/{agent}/tasks/{task}): it stays stable when the parent + * is reassigned to another agent, so subtasks never need rewriting, and the task tree does not + * imply agent relationships . + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String parentTaskId; + + /** + * Output only. Lineage group key: the root of this task's tree, materialized from + * `parent_task_id` (a root task's own short-form name). Same short form, and for the same reason, + * as `parent_task_id`. One `ListTasks(filter: "root_task_id=")` returns the whole tree as a flat, + * paginated collection, instead of a level-by-level walk that costs one round trip per depth. The + * client reassembles the tree from `parent_task_id`; a page may therefore contain a task whose + * parent lands on a later page. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String rootTaskId; + + /** + * Output only. Runs minted so far by a recurring template, so a client can show progress against + * `RecurringSchedule.max_run_count`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long runCount; + + /** + * Output only. Scheduling lifecycle of a recurring template. Unset unless + * `spec.schedule.recurring` is set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String scheduleState; + + /** + * Required. The full specification of what to do, how to run it, and how to know it is done. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1TaskSpec spec; + + /** + * Output only. The coarse, durable status of the task. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Output only. Explanation for the current state, when the state alone is not enough to act on + * (today: `SUSPENDED`). Cleared when the task leaves that state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1TaskStatusDetail statusDetail; + + /** + * Output only. The time the task's status was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String statusUpdateTime; + + /** + * Output only. A rolling, system-generated summary of the task's progress/result. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String summary; + + /** + * Optional. Optional human-readable title for listing surfaces. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * Output only. The time the task was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. The resource name of the `Agent` this task is assigned to, in the format + * `projects/{project}/locations/{location}/agents/{agent}`. It is derived from the create parent; + * any value set by the client is ignored. + * @return value or {@code null} for none + */ + public java.lang.String getAssignedAgent() { + return assignedAgent; + } + + /** + * Output only. The resource name of the `Agent` this task is assigned to, in the format + * `projects/{project}/locations/{location}/agents/{agent}`. It is derived from the create parent; + * any value set by the client is ignored. + * @param assignedAgent assignedAgent or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Task setAssignedAgent(java.lang.String assignedAgent) { + this.assignedAgent = assignedAgent; + return this; + } + + /** + * Output only. The resolved Agent Identity (SPIFFE ID) of the `Agent` this task is assigned to. + * Populated on single-task RPCs (`CreateTask`, `GetTask`, `UpdateTask`, `SuspendTask`, + * `ResumeTask`, `CancelTask`); not populated by `ListTasks`. + * @return value or {@code null} for none + */ + public java.lang.String getAssignedAgentIdentity() { + return assignedAgentIdentity; + } + + /** + * Output only. The resolved Agent Identity (SPIFFE ID) of the `Agent` this task is assigned to. + * Populated on single-task RPCs (`CreateTask`, `GetTask`, `UpdateTask`, `SuspendTask`, + * `ResumeTask`, `CancelTask`); not populated by `ListTasks`. + * @param assignedAgentIdentity assignedAgentIdentity or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Task setAssignedAgentIdentity(java.lang.String assignedAgentIdentity) { + this.assignedAgentIdentity = assignedAgentIdentity; + return this; + } + + /** + * Output only. Current budget consumption detail of the Task. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1BudgetConsumptionDetail getBudgetConsumptionDetail() { + return budgetConsumptionDetail; + } + + /** + * Output only. Current budget consumption detail of the Task. + * @param budgetConsumptionDetail budgetConsumptionDetail or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Task setBudgetConsumptionDetail(GoogleCloudAiplatformV1beta1BudgetConsumptionDetail budgetConsumptionDetail) { + this.budgetConsumptionDetail = budgetConsumptionDetail; + return this; + } + + /** + * Output only. The time the task was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the task was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Task setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. Goals of the Task, including both active and completed/failed. A Task may pursue + * several concurrently active goals . + * @return value or {@code null} for none + */ + public java.util.List getGoals() { + return goals; + } + + /** + * Output only. Goals of the Task, including both active and completed/failed. A Task may pursue + * several concurrently active goals . + * @param goals goals or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Task setGoals(java.util.List goals) { + this.goals = goals; + return this; + } + + /** + * Optional. Optional caller-supplied labels. Must follow the unified cloud labels spec + * (keys/values lowercase `[a-z0-9_-]`, <=63 chars). Stored as-is and returned verbatim on + * Get/ListTask, so the caller owns what goes in and reads back. Label names starting with `goog-` + * or `google-` are reserved for predefined labels. Besides user-defined billing/reporting labels, + * callers may stamp non-PII operational traffic annotations here under the reserved prefix + * (persisted on the task, so they apply to every turn and survive reconnection). Predefined: + * `goog-golden-query-id`: stable golden-query / CUJ id (e.g. `hello-world`); absent for organic + * traffic. Lets per-CUJ latency be trended independently. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Optional. Optional caller-supplied labels. Must follow the unified cloud labels spec + * (keys/values lowercase `[a-z0-9_-]`, <=63 chars). Stored as-is and returned verbatim on + * Get/ListTask, so the caller owns what goes in and reads back. Label names starting with `goog-` + * or `google-` are reserved for predefined labels. Besides user-defined billing/reporting labels, + * callers may stamp non-PII operational traffic annotations here under the reserved prefix + * (persisted on the task, so they apply to every turn and survive reconnection). Predefined: + * `goog-golden-query-id`: stable golden-query / CUJ id (e.g. `hello-world`); absent for organic + * traffic. Lets per-CUJ latency be trended independently. + * @param labels labels or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Task setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Identifier. Resource name of the task. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Resource name of the task. + * @param name name or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Task setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Next scheduled firing of a recurring template. Unset once the template is + * `SCHEDULE_FINISHED`, and for cron-less (event) schedules. + * @return value or {@code null} for none + */ + public String getNextRunTime() { + return nextRunTime; + } + + /** + * Output only. Next scheduled firing of a recurring template. Unset once the template is + * `SCHEDULE_FINISHED`, and for cron-less (event) schedules. + * @param nextRunTime nextRunTime or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Task setNextRunTime(String nextRunTime) { + this.nextRunTime = nextRunTime; + return this; + } + + /** + * Optional. If this task is a subtask, the parent task's short-form, agent-independent resource + * name: projects/{project}/locations/{location}/tasks/{task} The short form is used here on + * purpose (NOT the agent-scoped .../agents/{agent}/tasks/{task}): it stays stable when the parent + * is reassigned to another agent, so subtasks never need rewriting, and the task tree does not + * imply agent relationships . + * @return value or {@code null} for none + */ + public java.lang.String getParentTaskId() { + return parentTaskId; + } + + /** + * Optional. If this task is a subtask, the parent task's short-form, agent-independent resource + * name: projects/{project}/locations/{location}/tasks/{task} The short form is used here on + * purpose (NOT the agent-scoped .../agents/{agent}/tasks/{task}): it stays stable when the parent + * is reassigned to another agent, so subtasks never need rewriting, and the task tree does not + * imply agent relationships . + * @param parentTaskId parentTaskId or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Task setParentTaskId(java.lang.String parentTaskId) { + this.parentTaskId = parentTaskId; + return this; + } + + /** + * Output only. Lineage group key: the root of this task's tree, materialized from + * `parent_task_id` (a root task's own short-form name). Same short form, and for the same reason, + * as `parent_task_id`. One `ListTasks(filter: "root_task_id=")` returns the whole tree as a flat, + * paginated collection, instead of a level-by-level walk that costs one round trip per depth. The + * client reassembles the tree from `parent_task_id`; a page may therefore contain a task whose + * parent lands on a later page. + * @return value or {@code null} for none + */ + public java.lang.String getRootTaskId() { + return rootTaskId; + } + + /** + * Output only. Lineage group key: the root of this task's tree, materialized from + * `parent_task_id` (a root task's own short-form name). Same short form, and for the same reason, + * as `parent_task_id`. One `ListTasks(filter: "root_task_id=")` returns the whole tree as a flat, + * paginated collection, instead of a level-by-level walk that costs one round trip per depth. The + * client reassembles the tree from `parent_task_id`; a page may therefore contain a task whose + * parent lands on a later page. + * @param rootTaskId rootTaskId or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Task setRootTaskId(java.lang.String rootTaskId) { + this.rootTaskId = rootTaskId; + return this; + } + + /** + * Output only. Runs minted so far by a recurring template, so a client can show progress against + * `RecurringSchedule.max_run_count`. + * @return value or {@code null} for none + */ + public java.lang.Long getRunCount() { + return runCount; + } + + /** + * Output only. Runs minted so far by a recurring template, so a client can show progress against + * `RecurringSchedule.max_run_count`. + * @param runCount runCount or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Task setRunCount(java.lang.Long runCount) { + this.runCount = runCount; + return this; + } + + /** + * Output only. Scheduling lifecycle of a recurring template. Unset unless + * `spec.schedule.recurring` is set. + * @return value or {@code null} for none + */ + public java.lang.String getScheduleState() { + return scheduleState; + } + + /** + * Output only. Scheduling lifecycle of a recurring template. Unset unless + * `spec.schedule.recurring` is set. + * @param scheduleState scheduleState or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Task setScheduleState(java.lang.String scheduleState) { + this.scheduleState = scheduleState; + return this; + } + + /** + * Required. The full specification of what to do, how to run it, and how to know it is done. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSpec getSpec() { + return spec; + } + + /** + * Required. The full specification of what to do, how to run it, and how to know it is done. + * @param spec spec or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Task setSpec(GoogleCloudAiplatformV1beta1TaskSpec spec) { + this.spec = spec; + return this; + } + + /** + * Output only. The coarse, durable status of the task. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. The coarse, durable status of the task. + * @param status status or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Task setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * Output only. Explanation for the current state, when the state alone is not enough to act on + * (today: `SUSPENDED`). Cleared when the task leaves that state. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskStatusDetail getStatusDetail() { + return statusDetail; + } + + /** + * Output only. Explanation for the current state, when the state alone is not enough to act on + * (today: `SUSPENDED`). Cleared when the task leaves that state. + * @param statusDetail statusDetail or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Task setStatusDetail(GoogleCloudAiplatformV1beta1TaskStatusDetail statusDetail) { + this.statusDetail = statusDetail; + return this; + } + + /** + * Output only. The time the task's status was last updated. + * @return value or {@code null} for none + */ + public String getStatusUpdateTime() { + return statusUpdateTime; + } + + /** + * Output only. The time the task's status was last updated. + * @param statusUpdateTime statusUpdateTime or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Task setStatusUpdateTime(String statusUpdateTime) { + this.statusUpdateTime = statusUpdateTime; + return this; + } + + /** + * Output only. A rolling, system-generated summary of the task's progress/result. + * @return value or {@code null} for none + */ + public java.lang.String getSummary() { + return summary; + } + + /** + * Output only. A rolling, system-generated summary of the task's progress/result. + * @param summary summary or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Task setSummary(java.lang.String summary) { + this.summary = summary; + return this; + } + + /** + * Optional. Optional human-readable title for listing surfaces. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Optional. Optional human-readable title for listing surfaces. + * @param title title or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Task setTitle(java.lang.String title) { + this.title = title; + return this; + } + + /** + * Output only. The time the task was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The time the task was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Task setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1Task set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1Task) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1Task clone() { + return (GoogleCloudAiplatformV1beta1Task) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskArtifactFile.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskArtifactFile.java new file mode 100644 index 00000000000..56e8f5082a2 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskArtifactFile.java @@ -0,0 +1,171 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A file or directory in a task's workspace. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1TaskArtifactFile extends com.google.api.client.json.GenericJson { + + /** + * Output only. The detected media type. Empty for directories. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeType; + + /** + * Output only. Absolute path in the task's sandbox, e.g. "/workspace/userdata/input.csv" or + * "/workspace/report.md". Always under "/workspace" and never contains "..". Can be passed as-is + * to DownloadTaskArtifact. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** + * Output only. Size of the file in bytes. Zero for directories. + * 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. Whether this entry is a file or a directory. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. Last modification time of the file as it was read: the sandbox's when read from a + * running sandbox, otherwise the stored object's. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. The detected media type. Empty for directories. + * @return value or {@code null} for none + */ + public java.lang.String getMimeType() { + return mimeType; + } + + /** + * Output only. The detected media type. Empty for directories. + * @param mimeType mimeType or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskArtifactFile setMimeType(java.lang.String mimeType) { + this.mimeType = mimeType; + return this; + } + + /** + * Output only. Absolute path in the task's sandbox, e.g. "/workspace/userdata/input.csv" or + * "/workspace/report.md". Always under "/workspace" and never contains "..". Can be passed as-is + * to DownloadTaskArtifact. + * @return value or {@code null} for none + */ + public java.lang.String getPath() { + return path; + } + + /** + * Output only. Absolute path in the task's sandbox, e.g. "/workspace/userdata/input.csv" or + * "/workspace/report.md". Always under "/workspace" and never contains "..". Can be passed as-is + * to DownloadTaskArtifact. + * @param path path or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskArtifactFile setPath(java.lang.String path) { + this.path = path; + return this; + } + + /** + * Output only. Size of the file in bytes. Zero for directories. + * @return value or {@code null} for none + */ + public java.lang.Long getSizeBytes() { + return sizeBytes; + } + + /** + * Output only. Size of the file in bytes. Zero for directories. + * @param sizeBytes sizeBytes or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskArtifactFile setSizeBytes(java.lang.Long sizeBytes) { + this.sizeBytes = sizeBytes; + return this; + } + + /** + * Output only. Whether this entry is a file or a directory. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Output only. Whether this entry is a file or a directory. + * @param type type or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskArtifactFile setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * Output only. Last modification time of the file as it was read: the sandbox's when read from a + * running sandbox, otherwise the stored object's. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Last modification time of the file as it was read: the sandbox's when read from a + * running sandbox, otherwise the stored object's. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskArtifactFile setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1TaskArtifactFile set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1TaskArtifactFile) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1TaskArtifactFile clone() { + return (GoogleCloudAiplatformV1beta1TaskArtifactFile) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskCompletedEvent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskCompletedEvent.java new file mode 100644 index 00000000000..ea8ab9c1803 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskCompletedEvent.java @@ -0,0 +1,42 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Signals that the task reached a terminal status. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1TaskCompletedEvent extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudAiplatformV1beta1TaskCompletedEvent set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1TaskCompletedEvent) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1TaskCompletedEvent clone() { + return (GoogleCloudAiplatformV1beta1TaskCompletedEvent) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskCreatedEvent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskCreatedEvent.java new file mode 100644 index 00000000000..b5803d7f7f9 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskCreatedEvent.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.aiplatform.v1beta1.model; + +/** + * Server reply confirming a new task was created. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1TaskCreatedEvent extends com.google.api.client.json.GenericJson { + + /** + * The client identifier bound to this stream connection (either echoed from CreateTaskEvent or + * server-generated). Use this ID in SubscribeTaskEvent to resume after a disconnect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientId; + + /** + * Resource name of the created task. The client uses this id to reconnect (via a subscribe_task + * connect request) after a dropped stream. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String task; + + /** + * The client identifier bound to this stream connection (either echoed from CreateTaskEvent or + * server-generated). Use this ID in SubscribeTaskEvent to resume after a disconnect. + * @return value or {@code null} for none + */ + public java.lang.String getClientId() { + return clientId; + } + + /** + * The client identifier bound to this stream connection (either echoed from CreateTaskEvent or + * server-generated). Use this ID in SubscribeTaskEvent to resume after a disconnect. + * @param clientId clientId or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskCreatedEvent setClientId(java.lang.String clientId) { + this.clientId = clientId; + return this; + } + + /** + * Resource name of the created task. The client uses this id to reconnect (via a subscribe_task + * connect request) after a dropped stream. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @return value or {@code null} for none + */ + public java.lang.String getTask() { + return task; + } + + /** + * Resource name of the created task. The client uses this id to reconnect (via a subscribe_task + * connect request) after a dropped stream. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @param task task or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskCreatedEvent setTask(java.lang.String task) { + this.task = task; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1TaskCreatedEvent set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1TaskCreatedEvent) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1TaskCreatedEvent clone() { + return (GoogleCloudAiplatformV1beta1TaskCreatedEvent) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskMemoryConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskMemoryConfig.java new file mode 100644 index 00000000000..724c6153b4d --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskMemoryConfig.java @@ -0,0 +1,127 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Task-level memory settings: which sources memory draws from, and whether memory is active for + * this task at all. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1TaskMemoryConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. If true, the agent neither reads existing memories into the prompt nor forms new ones + * from this task. Memory is on by default, and this can only turn it off, never back on: * Agent + * memory enabled, this true: off for this task. * Agent memory enabled, this false or unset: on. + * * Agent memory disabled: off, whatever this says. Because a task belongs to a single end user's + * interaction, a surface that knows the user can use this to turn memory off for one user of a + * shared agent; memory keeps working for the agent's other users. + * `Agent.memory_config.disable_memory` wins because it is the mutable one. It can be turned on + * after tasks have already been created, and a stored task spec keeps whatever it was created + * with — so if a spec could re-enable memory, the agent-level switch would be unable to cover the + * tasks that already exist. The two are therefore OR'ed, and the agent's current value is re- + * applied every time a session opens, including on a resume. Scoped to this task. Memories + * already stored for the agent are retained and stay readable by the agent's users; this governs + * only whether this task can access and modify them. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disableMemory; + + /** + * Optional. Configuration for enterprise Knowledge Catalog search. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1KnowledgeCatalogConfig knowledgeCatalogConfig; + + /** + * Optional. If true, the agent neither reads existing memories into the prompt nor forms new ones + * from this task. Memory is on by default, and this can only turn it off, never back on: * Agent + * memory enabled, this true: off for this task. * Agent memory enabled, this false or unset: on. + * * Agent memory disabled: off, whatever this says. Because a task belongs to a single end user's + * interaction, a surface that knows the user can use this to turn memory off for one user of a + * shared agent; memory keeps working for the agent's other users. + * `Agent.memory_config.disable_memory` wins because it is the mutable one. It can be turned on + * after tasks have already been created, and a stored task spec keeps whatever it was created + * with — so if a spec could re-enable memory, the agent-level switch would be unable to cover the + * tasks that already exist. The two are therefore OR'ed, and the agent's current value is re- + * applied every time a session opens, including on a resume. Scoped to this task. Memories + * already stored for the agent are retained and stay readable by the agent's users; this governs + * only whether this task can access and modify them. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisableMemory() { + return disableMemory; + } + + /** + * Optional. If true, the agent neither reads existing memories into the prompt nor forms new ones + * from this task. Memory is on by default, and this can only turn it off, never back on: * Agent + * memory enabled, this true: off for this task. * Agent memory enabled, this false or unset: on. + * * Agent memory disabled: off, whatever this says. Because a task belongs to a single end user's + * interaction, a surface that knows the user can use this to turn memory off for one user of a + * shared agent; memory keeps working for the agent's other users. + * `Agent.memory_config.disable_memory` wins because it is the mutable one. It can be turned on + * after tasks have already been created, and a stored task spec keeps whatever it was created + * with — so if a spec could re-enable memory, the agent-level switch would be unable to cover the + * tasks that already exist. The two are therefore OR'ed, and the agent's current value is re- + * applied every time a session opens, including on a resume. Scoped to this task. Memories + * already stored for the agent are retained and stay readable by the agent's users; this governs + * only whether this task can access and modify them. + * @param disableMemory disableMemory or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskMemoryConfig setDisableMemory(java.lang.Boolean disableMemory) { + this.disableMemory = disableMemory; + return this; + } + + /** + * Optional. Configuration for enterprise Knowledge Catalog search. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1KnowledgeCatalogConfig getKnowledgeCatalogConfig() { + return knowledgeCatalogConfig; + } + + /** + * Optional. Configuration for enterprise Knowledge Catalog search. + * @param knowledgeCatalogConfig knowledgeCatalogConfig or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskMemoryConfig setKnowledgeCatalogConfig(GoogleCloudAiplatformV1beta1KnowledgeCatalogConfig knowledgeCatalogConfig) { + this.knowledgeCatalogConfig = knowledgeCatalogConfig; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1TaskMemoryConfig set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1TaskMemoryConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1TaskMemoryConfig clone() { + return (GoogleCloudAiplatformV1beta1TaskMemoryConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskServerEvent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskServerEvent.java new file mode 100644 index 00000000000..7c396a10707 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskServerEvent.java @@ -0,0 +1,527 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A single Server -> Client event. There is intentionally no non-terminal error/notice branch. + * Transient, retriable failures (tool-fetch retry, rate-limit, scheduler retry) are handled by + * runtime retry (bounded by TaskSpec.max_retries) and, if surfaced at all, appear as trajectory + * steps; the terminal error is reported once via TaskCompletedEvent.outcome.status + * (google.rpc.Status). This follows the Interactions events.proto, which deprecated its dedicated + * non-terminal InteractionPausedEvent and reports terminal status on InteractionCompletedEvent. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1TaskServerEvent extends com.google.api.client.json.GenericJson { + + /** + * Optional. Opaque resume cursor covering everything delivered through this event, inclusive. A + * client that keeps the token from the last event it processed and passes it back on + * SubscribeTaskEvent.continuation_token or StreamTaskRequest.continuation_token resumes at the + * next event, with no gap and no duplicate. Opaque: the encoding is a server implementation + * detail and may change without notice. Do not parse it, compare two of them, or derive ordering + * from it -- order by `seq_num`. Carries no task id, because every RPC that redeems a token + * already names the task it applies to. It is a position, not a capability: it grants no access + * on its own, and the task's IAM check is what authorizes the read. This is the resume cursor. + * Resuming by number (next_step_seq_num on SubscribeTaskEvent and StreamTaskRequest) is slated + * for deprecation: a number cannot address a position inside a streamed step, while the token + * can, so a reconnect mid-answer does not re-send the part of that answer the client already + * rendered. `seq_num` remains for ordering only. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String continuationToken; + + /** + * Optional. The TaskClientEvent.event_id this event was derived from, echoed back verbatim. Set + * only on the events that carry a client input back out: the `step` echoing the input, and the + * `step_start` of a streamed step the input opened. Empty everywhere else -- on model-generated + * steps the server produced on its own, on the step_delta/step_stop frames continuing a run + * (correlate those by `index` with their step_start), and on any event whose client input carried + * no event_id. Purely a correlation handle: it does not order or acknowledge anything, and the + * server never derives behavior from it. Since the server does not enforce uniqueness, a client + * that reuses an id sees it on every echo it produced. Delivered to every client subscribed to + * the task, not just the one that sent the input, including on a later replay from storage. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String eventId; + + /** + * Required. 1-based, non-decreasing sequence number within the server direction, stable across + * reconnects, so it can be used to resume: a given event carries the same number however the + * stream is (re)connected. Gapless on a stream delivered from the beginning. Clients acknowledge + * receipt via ack_output_seq_num and resume via SubscribeTaskEvent.next_step_seq_num. A resume + * with next_step_seq_num = 0 (or unset) restarts from the first still available step. A number + * identifies a resume point, not an event, so it is not unique: consecutive events can share one. + * An event derived from another (an artifacts_changed delta carrying the plan its step just + * wrote) repeats its source's number rather than taking the next, which keeps the numbering a + * function of the stream alone and guarantees a cursor never lands between the two. Acknowledging + * a number acknowledges every event carrying it. A resume can begin AFTER the requested number. + * next_step_seq_num counts events, but a streamed step spans several of them, so a cursor can + * point inside a run; the server then suppresses that run's remaining step_delta/step_stop rather + * than deliver frames for a step the client never saw opened, and resumes at the next step + * boundary. Numbering is unchanged by that suppression -- keeping it stable is what makes a + * cursor meaningful across connections -- so the first delivered event may be a later number than + * asked for. Treat the sequence as monotonic, not densely contiguous, when resuming. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long seqNum; + + /** + * A coarse status transition (e.g. WORKING -> REQUIRES_ACTION when the task is waiting on a human + * response). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1TaskStatusEvent statusChanged; + + /** + * A trajectory output step (thought, tool call, content, elicitation_call, etc.). Human-in-the- + * loop requests are just steps: the server emits an ElicitationCallStep (for an approval / + * choice) or a ToolCallStep (for a client-executed tool), and the client responds with the + * matching ElicitationResultStep / ToolResultStep, correlated by elicitation_id / call_id. The + * kind of action required is inferred from the step's type, so there is no separate "action + * required" event. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiStep step; + + /** + * One chunk of a streamed step, carrying only the content generated since the previous chunk. + * Chunks sharing an `index` belong to one step and concatenate in the order received. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiStepDelta stepDelta; + + /** + * Opens a streamed step. Emitted only under `TaskSpec.delta_streaming`, which documents the two + * delivery modes in full. Under `delta_streaming` EVERY step arrives as a `step_start` / + * `step_delta`* / `step_stop` run sharing an `index`, and a bare `step` is never emitted. + * Reassembling a run yields the same Step that `step` above would otherwise have delivered. What + * follows a `step_start` depends on whether the content is generated progressively. Assistant + * text (and the citations on it) and thoughts stream across the run's `step_delta`s as they are + * produced, so for those this field carries the step's shape (role, type) with its generated + * content left empty. A step that arrives whole -- tool calls, tool results, elicitations, user- + * input echoes, errors -- carries no `step_delta` at all: the COMPLETE step rides this field, and + * `step_stop` closes the run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiStepStart stepStart; + + /** + * Closes a streamed step, carrying its token usage. No further `step_delta` arrives for this + * `index`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiStepStop stepStop; + + /** + * Optional. Token usage for one model call. Populated on at most one event per model call + * regardless of `TaskSpec.delta_streaming`, and absent on non-model events (tool results, user- + * input echoes, status changes). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiInteractionUsage stepUsage; + + /** + * A change to the task's details. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1TaskUpdateEvent taskUpdate; + + /** + * Strictly increasing generation timestamp, in unix micros. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long timestampMicros; + + /** + * Optional. The runtime trajectory UUID that produced this event's step, e.g. + * "e9df8df3-d63a-4747-ad00-eaef837d7d31". A debugging correlation handle and the join key to the + * runtime's per-step trajectory record (for Sobi, the Trajectory Store viewer at + * sobi.corp.google.com/trajectory/). Set on the step-bearing events (`step` and the `step_start` + * of a streamed step); empty on status_changed / artifacts_changed and on the + * step_delta/step_stop frames continuing a run (correlate those by `index` with their + * step_start). Also empty on steps the Sobi converter did not build: the actor delivers + * `elicitation_call` as a native `Step` payload with no field 110, and `Session::ReadConverted` + * forwards it unchanged (`jetski_to_interaction_stream_converter.cc:1101-1104`), so a HITL turn + * reaches the client on `step` with `trajectory_id` empty even though a trajectory does exist for + * it. A whole turn shares one trajectory id. The server never derives behavior from it. See + * b/552010818. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String trajectoryId; + + /** + * Optional. Opaque resume cursor covering everything delivered through this event, inclusive. A + * client that keeps the token from the last event it processed and passes it back on + * SubscribeTaskEvent.continuation_token or StreamTaskRequest.continuation_token resumes at the + * next event, with no gap and no duplicate. Opaque: the encoding is a server implementation + * detail and may change without notice. Do not parse it, compare two of them, or derive ordering + * from it -- order by `seq_num`. Carries no task id, because every RPC that redeems a token + * already names the task it applies to. It is a position, not a capability: it grants no access + * on its own, and the task's IAM check is what authorizes the read. This is the resume cursor. + * Resuming by number (next_step_seq_num on SubscribeTaskEvent and StreamTaskRequest) is slated + * for deprecation: a number cannot address a position inside a streamed step, while the token + * can, so a reconnect mid-answer does not re-send the part of that answer the client already + * rendered. `seq_num` remains for ordering only. + * @return value or {@code null} for none + */ + public java.lang.String getContinuationToken() { + return continuationToken; + } + + /** + * Optional. Opaque resume cursor covering everything delivered through this event, inclusive. A + * client that keeps the token from the last event it processed and passes it back on + * SubscribeTaskEvent.continuation_token or StreamTaskRequest.continuation_token resumes at the + * next event, with no gap and no duplicate. Opaque: the encoding is a server implementation + * detail and may change without notice. Do not parse it, compare two of them, or derive ordering + * from it -- order by `seq_num`. Carries no task id, because every RPC that redeems a token + * already names the task it applies to. It is a position, not a capability: it grants no access + * on its own, and the task's IAM check is what authorizes the read. This is the resume cursor. + * Resuming by number (next_step_seq_num on SubscribeTaskEvent and StreamTaskRequest) is slated + * for deprecation: a number cannot address a position inside a streamed step, while the token + * can, so a reconnect mid-answer does not re-send the part of that answer the client already + * rendered. `seq_num` remains for ordering only. + * @param continuationToken continuationToken or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskServerEvent setContinuationToken(java.lang.String continuationToken) { + this.continuationToken = continuationToken; + return this; + } + + /** + * Optional. The TaskClientEvent.event_id this event was derived from, echoed back verbatim. Set + * only on the events that carry a client input back out: the `step` echoing the input, and the + * `step_start` of a streamed step the input opened. Empty everywhere else -- on model-generated + * steps the server produced on its own, on the step_delta/step_stop frames continuing a run + * (correlate those by `index` with their step_start), and on any event whose client input carried + * no event_id. Purely a correlation handle: it does not order or acknowledge anything, and the + * server never derives behavior from it. Since the server does not enforce uniqueness, a client + * that reuses an id sees it on every echo it produced. Delivered to every client subscribed to + * the task, not just the one that sent the input, including on a later replay from storage. + * @return value or {@code null} for none + */ + public java.lang.String getEventId() { + return eventId; + } + + /** + * Optional. The TaskClientEvent.event_id this event was derived from, echoed back verbatim. Set + * only on the events that carry a client input back out: the `step` echoing the input, and the + * `step_start` of a streamed step the input opened. Empty everywhere else -- on model-generated + * steps the server produced on its own, on the step_delta/step_stop frames continuing a run + * (correlate those by `index` with their step_start), and on any event whose client input carried + * no event_id. Purely a correlation handle: it does not order or acknowledge anything, and the + * server never derives behavior from it. Since the server does not enforce uniqueness, a client + * that reuses an id sees it on every echo it produced. Delivered to every client subscribed to + * the task, not just the one that sent the input, including on a later replay from storage. + * @param eventId eventId or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskServerEvent setEventId(java.lang.String eventId) { + this.eventId = eventId; + return this; + } + + /** + * Required. 1-based, non-decreasing sequence number within the server direction, stable across + * reconnects, so it can be used to resume: a given event carries the same number however the + * stream is (re)connected. Gapless on a stream delivered from the beginning. Clients acknowledge + * receipt via ack_output_seq_num and resume via SubscribeTaskEvent.next_step_seq_num. A resume + * with next_step_seq_num = 0 (or unset) restarts from the first still available step. A number + * identifies a resume point, not an event, so it is not unique: consecutive events can share one. + * An event derived from another (an artifacts_changed delta carrying the plan its step just + * wrote) repeats its source's number rather than taking the next, which keeps the numbering a + * function of the stream alone and guarantees a cursor never lands between the two. Acknowledging + * a number acknowledges every event carrying it. A resume can begin AFTER the requested number. + * next_step_seq_num counts events, but a streamed step spans several of them, so a cursor can + * point inside a run; the server then suppresses that run's remaining step_delta/step_stop rather + * than deliver frames for a step the client never saw opened, and resumes at the next step + * boundary. Numbering is unchanged by that suppression -- keeping it stable is what makes a + * cursor meaningful across connections -- so the first delivered event may be a later number than + * asked for. Treat the sequence as monotonic, not densely contiguous, when resuming. + * @return value or {@code null} for none + */ + public java.lang.Long getSeqNum() { + return seqNum; + } + + /** + * Required. 1-based, non-decreasing sequence number within the server direction, stable across + * reconnects, so it can be used to resume: a given event carries the same number however the + * stream is (re)connected. Gapless on a stream delivered from the beginning. Clients acknowledge + * receipt via ack_output_seq_num and resume via SubscribeTaskEvent.next_step_seq_num. A resume + * with next_step_seq_num = 0 (or unset) restarts from the first still available step. A number + * identifies a resume point, not an event, so it is not unique: consecutive events can share one. + * An event derived from another (an artifacts_changed delta carrying the plan its step just + * wrote) repeats its source's number rather than taking the next, which keeps the numbering a + * function of the stream alone and guarantees a cursor never lands between the two. Acknowledging + * a number acknowledges every event carrying it. A resume can begin AFTER the requested number. + * next_step_seq_num counts events, but a streamed step spans several of them, so a cursor can + * point inside a run; the server then suppresses that run's remaining step_delta/step_stop rather + * than deliver frames for a step the client never saw opened, and resumes at the next step + * boundary. Numbering is unchanged by that suppression -- keeping it stable is what makes a + * cursor meaningful across connections -- so the first delivered event may be a later number than + * asked for. Treat the sequence as monotonic, not densely contiguous, when resuming. + * @param seqNum seqNum or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskServerEvent setSeqNum(java.lang.Long seqNum) { + this.seqNum = seqNum; + return this; + } + + /** + * A coarse status transition (e.g. WORKING -> REQUIRES_ACTION when the task is waiting on a human + * response). + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskStatusEvent getStatusChanged() { + return statusChanged; + } + + /** + * A coarse status transition (e.g. WORKING -> REQUIRES_ACTION when the task is waiting on a human + * response). + * @param statusChanged statusChanged or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskServerEvent setStatusChanged(GoogleCloudAiplatformV1beta1TaskStatusEvent statusChanged) { + this.statusChanged = statusChanged; + return this; + } + + /** + * A trajectory output step (thought, tool call, content, elicitation_call, etc.). Human-in-the- + * loop requests are just steps: the server emits an ElicitationCallStep (for an approval / + * choice) or a ToolCallStep (for a client-executed tool), and the client responds with the + * matching ElicitationResultStep / ToolResultStep, correlated by elicitation_id / call_id. The + * kind of action required is inferred from the step's type, so there is no separate "action + * required" event. + * @return value or {@code null} for none + */ + public GenaiStep getStep() { + return step; + } + + /** + * A trajectory output step (thought, tool call, content, elicitation_call, etc.). Human-in-the- + * loop requests are just steps: the server emits an ElicitationCallStep (for an approval / + * choice) or a ToolCallStep (for a client-executed tool), and the client responds with the + * matching ElicitationResultStep / ToolResultStep, correlated by elicitation_id / call_id. The + * kind of action required is inferred from the step's type, so there is no separate "action + * required" event. + * @param step step or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskServerEvent setStep(GenaiStep step) { + this.step = step; + return this; + } + + /** + * One chunk of a streamed step, carrying only the content generated since the previous chunk. + * Chunks sharing an `index` belong to one step and concatenate in the order received. + * @return value or {@code null} for none + */ + public GenaiStepDelta getStepDelta() { + return stepDelta; + } + + /** + * One chunk of a streamed step, carrying only the content generated since the previous chunk. + * Chunks sharing an `index` belong to one step and concatenate in the order received. + * @param stepDelta stepDelta or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskServerEvent setStepDelta(GenaiStepDelta stepDelta) { + this.stepDelta = stepDelta; + return this; + } + + /** + * Opens a streamed step. Emitted only under `TaskSpec.delta_streaming`, which documents the two + * delivery modes in full. Under `delta_streaming` EVERY step arrives as a `step_start` / + * `step_delta`* / `step_stop` run sharing an `index`, and a bare `step` is never emitted. + * Reassembling a run yields the same Step that `step` above would otherwise have delivered. What + * follows a `step_start` depends on whether the content is generated progressively. Assistant + * text (and the citations on it) and thoughts stream across the run's `step_delta`s as they are + * produced, so for those this field carries the step's shape (role, type) with its generated + * content left empty. A step that arrives whole -- tool calls, tool results, elicitations, user- + * input echoes, errors -- carries no `step_delta` at all: the COMPLETE step rides this field, and + * `step_stop` closes the run. + * @return value or {@code null} for none + */ + public GenaiStepStart getStepStart() { + return stepStart; + } + + /** + * Opens a streamed step. Emitted only under `TaskSpec.delta_streaming`, which documents the two + * delivery modes in full. Under `delta_streaming` EVERY step arrives as a `step_start` / + * `step_delta`* / `step_stop` run sharing an `index`, and a bare `step` is never emitted. + * Reassembling a run yields the same Step that `step` above would otherwise have delivered. What + * follows a `step_start` depends on whether the content is generated progressively. Assistant + * text (and the citations on it) and thoughts stream across the run's `step_delta`s as they are + * produced, so for those this field carries the step's shape (role, type) with its generated + * content left empty. A step that arrives whole -- tool calls, tool results, elicitations, user- + * input echoes, errors -- carries no `step_delta` at all: the COMPLETE step rides this field, and + * `step_stop` closes the run. + * @param stepStart stepStart or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskServerEvent setStepStart(GenaiStepStart stepStart) { + this.stepStart = stepStart; + return this; + } + + /** + * Closes a streamed step, carrying its token usage. No further `step_delta` arrives for this + * `index`. + * @return value or {@code null} for none + */ + public GenaiStepStop getStepStop() { + return stepStop; + } + + /** + * Closes a streamed step, carrying its token usage. No further `step_delta` arrives for this + * `index`. + * @param stepStop stepStop or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskServerEvent setStepStop(GenaiStepStop stepStop) { + this.stepStop = stepStop; + return this; + } + + /** + * Optional. Token usage for one model call. Populated on at most one event per model call + * regardless of `TaskSpec.delta_streaming`, and absent on non-model events (tool results, user- + * input echoes, status changes). + * @return value or {@code null} for none + */ + public GenaiInteractionUsage getStepUsage() { + return stepUsage; + } + + /** + * Optional. Token usage for one model call. Populated on at most one event per model call + * regardless of `TaskSpec.delta_streaming`, and absent on non-model events (tool results, user- + * input echoes, status changes). + * @param stepUsage stepUsage or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskServerEvent setStepUsage(GenaiInteractionUsage stepUsage) { + this.stepUsage = stepUsage; + return this; + } + + /** + * A change to the task's details. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskUpdateEvent getTaskUpdate() { + return taskUpdate; + } + + /** + * A change to the task's details. + * @param taskUpdate taskUpdate or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskServerEvent setTaskUpdate(GoogleCloudAiplatformV1beta1TaskUpdateEvent taskUpdate) { + this.taskUpdate = taskUpdate; + return this; + } + + /** + * Strictly increasing generation timestamp, in unix micros. + * @return value or {@code null} for none + */ + public java.lang.Long getTimestampMicros() { + return timestampMicros; + } + + /** + * Strictly increasing generation timestamp, in unix micros. + * @param timestampMicros timestampMicros or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskServerEvent setTimestampMicros(java.lang.Long timestampMicros) { + this.timestampMicros = timestampMicros; + return this; + } + + /** + * Optional. The runtime trajectory UUID that produced this event's step, e.g. + * "e9df8df3-d63a-4747-ad00-eaef837d7d31". A debugging correlation handle and the join key to the + * runtime's per-step trajectory record (for Sobi, the Trajectory Store viewer at + * sobi.corp.google.com/trajectory/). Set on the step-bearing events (`step` and the `step_start` + * of a streamed step); empty on status_changed / artifacts_changed and on the + * step_delta/step_stop frames continuing a run (correlate those by `index` with their + * step_start). Also empty on steps the Sobi converter did not build: the actor delivers + * `elicitation_call` as a native `Step` payload with no field 110, and `Session::ReadConverted` + * forwards it unchanged (`jetski_to_interaction_stream_converter.cc:1101-1104`), so a HITL turn + * reaches the client on `step` with `trajectory_id` empty even though a trajectory does exist for + * it. A whole turn shares one trajectory id. The server never derives behavior from it. See + * b/552010818. + * @return value or {@code null} for none + */ + public java.lang.String getTrajectoryId() { + return trajectoryId; + } + + /** + * Optional. The runtime trajectory UUID that produced this event's step, e.g. + * "e9df8df3-d63a-4747-ad00-eaef837d7d31". A debugging correlation handle and the join key to the + * runtime's per-step trajectory record (for Sobi, the Trajectory Store viewer at + * sobi.corp.google.com/trajectory/). Set on the step-bearing events (`step` and the `step_start` + * of a streamed step); empty on status_changed / artifacts_changed and on the + * step_delta/step_stop frames continuing a run (correlate those by `index` with their + * step_start). Also empty on steps the Sobi converter did not build: the actor delivers + * `elicitation_call` as a native `Step` payload with no field 110, and `Session::ReadConverted` + * forwards it unchanged (`jetski_to_interaction_stream_converter.cc:1101-1104`), so a HITL turn + * reaches the client on `step` with `trajectory_id` empty even though a trajectory does exist for + * it. A whole turn shares one trajectory id. The server never derives behavior from it. See + * b/552010818. + * @param trajectoryId trajectoryId or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskServerEvent setTrajectoryId(java.lang.String trajectoryId) { + this.trajectoryId = trajectoryId; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1TaskServerEvent set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1TaskServerEvent) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1TaskServerEvent clone() { + return (GoogleCloudAiplatformV1beta1TaskServerEvent) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskServerEventBatch.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskServerEventBatch.java new file mode 100644 index 00000000000..355a325bc4c --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskServerEventBatch.java @@ -0,0 +1,203 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Server -> Client message for TaskService.CreateTaskBidiStream. * The first message carries a + * connect_reply (task_created or task_subscribed). * The steady-state pattern is repeated `events` + * (steps, status). * The last message carries an end_signal. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1TaskServerEventBatch extends com.google.api.client.json.GenericJson { + + /** + * Optional. When non-zero, confirms cumulative receipt of client input through this seq_num + * (inclusive). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long ackInputSeqNum; + + /** + * Output only. The resolved Agent Identity (SPIFFE ID) of the `Agent` this task is assigned to. + * Populated on the first message of the stream. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String assignedAgentIdentity; + + /** + * Steady-state events from the server (trajectory steps -- including elicitation/tool-call HITL + * requests -- and status changes). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List events; + + static { + // hack to force ProGuard to consider GoogleCloudAiplatformV1beta1TaskServerEvent used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudAiplatformV1beta1TaskServerEvent.class); + } + + /** + * The task reached a terminal status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1TaskCompletedEvent taskCompleted; + + /** + * Reply to create_task: returns the new task name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1TaskCreatedEvent taskCreated; + + /** + * Reply to subscribe_task. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1TaskSubscribedEvent taskSubscribed; + + /** + * Optional. When non-zero, confirms cumulative receipt of client input through this seq_num + * (inclusive). + * @return value or {@code null} for none + */ + public java.lang.Long getAckInputSeqNum() { + return ackInputSeqNum; + } + + /** + * Optional. When non-zero, confirms cumulative receipt of client input through this seq_num + * (inclusive). + * @param ackInputSeqNum ackInputSeqNum or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskServerEventBatch setAckInputSeqNum(java.lang.Long ackInputSeqNum) { + this.ackInputSeqNum = ackInputSeqNum; + return this; + } + + /** + * Output only. The resolved Agent Identity (SPIFFE ID) of the `Agent` this task is assigned to. + * Populated on the first message of the stream. + * @return value or {@code null} for none + */ + public java.lang.String getAssignedAgentIdentity() { + return assignedAgentIdentity; + } + + /** + * Output only. The resolved Agent Identity (SPIFFE ID) of the `Agent` this task is assigned to. + * Populated on the first message of the stream. + * @param assignedAgentIdentity assignedAgentIdentity or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskServerEventBatch setAssignedAgentIdentity(java.lang.String assignedAgentIdentity) { + this.assignedAgentIdentity = assignedAgentIdentity; + return this; + } + + /** + * Steady-state events from the server (trajectory steps -- including elicitation/tool-call HITL + * requests -- and status changes). + * @return value or {@code null} for none + */ + public java.util.List getEvents() { + return events; + } + + /** + * Steady-state events from the server (trajectory steps -- including elicitation/tool-call HITL + * requests -- and status changes). + * @param events events or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskServerEventBatch setEvents(java.util.List events) { + this.events = events; + return this; + } + + /** + * The task reached a terminal status. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskCompletedEvent getTaskCompleted() { + return taskCompleted; + } + + /** + * The task reached a terminal status. + * @param taskCompleted taskCompleted or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskServerEventBatch setTaskCompleted(GoogleCloudAiplatformV1beta1TaskCompletedEvent taskCompleted) { + this.taskCompleted = taskCompleted; + return this; + } + + /** + * Reply to create_task: returns the new task name. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskCreatedEvent getTaskCreated() { + return taskCreated; + } + + /** + * Reply to create_task: returns the new task name. + * @param taskCreated taskCreated or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskServerEventBatch setTaskCreated(GoogleCloudAiplatformV1beta1TaskCreatedEvent taskCreated) { + this.taskCreated = taskCreated; + return this; + } + + /** + * Reply to subscribe_task. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSubscribedEvent getTaskSubscribed() { + return taskSubscribed; + } + + /** + * Reply to subscribe_task. + * @param taskSubscribed taskSubscribed or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskServerEventBatch setTaskSubscribed(GoogleCloudAiplatformV1beta1TaskSubscribedEvent taskSubscribed) { + this.taskSubscribed = taskSubscribed; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1TaskServerEventBatch set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1TaskServerEventBatch) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1TaskServerEventBatch clone() { + return (GoogleCloudAiplatformV1beta1TaskServerEventBatch) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskSpec.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskSpec.java new file mode 100644 index 00000000000..35914555be9 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskSpec.java @@ -0,0 +1,433 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * The centralized specification of a Task: the scoped context it runs in, when it runs, the + * resource guardrails, and the goal (with verifiers). + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1TaskSpec extends com.google.api.client.json.GenericJson { + + /** + * Optional. Optional holistic budget caps metered across the entire task lifetime. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1Budget budget; + + /** + * Optional. Whether incrementally generated content is delivered as it is produced, rather than + * once the step is finished. The two modes are exact duals. If false (default), every step + * arrives once, complete, in TaskServerEvent.step -- so a client that reads only `step` sees the + * whole conversation. Suited to non-chat callers that consume finished steps. If true, EVERY step + * instead arrives as a `step_start` / `step_delta`* / `step_stop` run sharing an index, so a chat + * client sees one uniform lifecycle and never a bare `step`; reassembling a run yields the same + * step that would otherwise have been delivered. Content the model generates progressively -- + * assistant text (and the citations on it) and thoughts -- streams natively across the run's + * `step_delta`s as it is produced. A step that arrives whole (tool calls, tool results, + * elicitations, user-input echoes, errors) carries no `step_delta`: the complete step rides + * `step_start` and `step_stop` closes the run, since nothing is generated incrementally. The + * field is deliberately not named for text: what streams progressively is an implementation + * detail that may widen, and a client asking for incremental delivery wants it for whatever + * supports it. Note per-step token usage rides `step_stop`, so it is reported only when this is + * true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean deltaStreaming; + + /** + * Optional. Optional structured deliverable contract (reuses the Interactions ResponseFormat). + * When set, the agent's final output must conform to it. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiResponseFormat expectedOutput; + + /** + * Optional. Immutable. Session-level HITL (human-in-the-loop) configuration for this task. Unset + * means every HITL knob takes its default; see `HitlConfig` above for the individual field + * defaults. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1TaskSpecHitlConfig hitlConfig; + + /** + * Optional. The prompt expressed as Interaction steps (e.g. a ContentStep with the user's + * request). Reuses the Interactions step model so the same content flows into the runtime + * unchanged. Required for a scheduled or PRIORITY_DEFERRED task, which starts with no caller + * attached. Otherwise it may be empty: * Unary CreateTask with no inputs creates the task IDLE + * and dispatches nothing. The task starts when a caller subscribes to it on CreateTaskBidiStream + * (`subscribe_task`) and sends the first input. * CreateTaskBidiStream `create_task` with no + * inputs is a connect-only / pre-warm create; the first input is sent later as a client step. + * Recommended pattern for giving a task files before it runs: 1. CreateTask with empty `inputs`. + * The task is IDLE; nothing runs yet. 2. UploadTaskArtifact each file to `/workspace/userdata/`. + * 3. CreateTaskBidiStream with `subscribe_task`, then send the first input, referring to the + * files by their `/workspace/userdata/` paths. This dispatches the task with the uploaded files + * in its workspace. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List inputs; + + static { + // hack to force ProGuard to consider GenaiStep used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiStep.class); + } + + /** + * Optional. Deprecated: tasks are not retried automatically. CreateTask and UpdateTask reject a + * non-zero value with INVALID_ARGUMENT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxRetries; + + /** + * Optional. Optional model configuration override for the task. When set, the task runs on this + * model configuration for its entire lifecycle. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1TaskSpecModelConfig modelConfig; + + /** + * Optional. Optional priority band. Concrete tiers and quota are out of scope and deferred to a + * follow-up. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String priority; + + /** + * Optional. Optional schedule controlling when/how the task runs. If unset, the task runs + * immediately (one-off, now). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1TaskTrigger schedule; + + /** + * Optional. Optional scoped context: skills/tools/memory/artifacts for the task. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1ContextScope scope; + + /** + * Optional. Configuration and limits for subtasks spawned by this task. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1TaskSpecSubtaskConfig subtaskConfig; + + /** + * Optional. Optional standing instruction applied across the whole task. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String systemInstruction; + + /** + * Optional. Optional holistic budget caps metered across the entire task lifetime. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Budget getBudget() { + return budget; + } + + /** + * Optional. Optional holistic budget caps metered across the entire task lifetime. + * @param budget budget or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSpec setBudget(GoogleCloudAiplatformV1beta1Budget budget) { + this.budget = budget; + return this; + } + + /** + * Optional. Whether incrementally generated content is delivered as it is produced, rather than + * once the step is finished. The two modes are exact duals. If false (default), every step + * arrives once, complete, in TaskServerEvent.step -- so a client that reads only `step` sees the + * whole conversation. Suited to non-chat callers that consume finished steps. If true, EVERY step + * instead arrives as a `step_start` / `step_delta`* / `step_stop` run sharing an index, so a chat + * client sees one uniform lifecycle and never a bare `step`; reassembling a run yields the same + * step that would otherwise have been delivered. Content the model generates progressively -- + * assistant text (and the citations on it) and thoughts -- streams natively across the run's + * `step_delta`s as it is produced. A step that arrives whole (tool calls, tool results, + * elicitations, user-input echoes, errors) carries no `step_delta`: the complete step rides + * `step_start` and `step_stop` closes the run, since nothing is generated incrementally. The + * field is deliberately not named for text: what streams progressively is an implementation + * detail that may widen, and a client asking for incremental delivery wants it for whatever + * supports it. Note per-step token usage rides `step_stop`, so it is reported only when this is + * true. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDeltaStreaming() { + return deltaStreaming; + } + + /** + * Optional. Whether incrementally generated content is delivered as it is produced, rather than + * once the step is finished. The two modes are exact duals. If false (default), every step + * arrives once, complete, in TaskServerEvent.step -- so a client that reads only `step` sees the + * whole conversation. Suited to non-chat callers that consume finished steps. If true, EVERY step + * instead arrives as a `step_start` / `step_delta`* / `step_stop` run sharing an index, so a chat + * client sees one uniform lifecycle and never a bare `step`; reassembling a run yields the same + * step that would otherwise have been delivered. Content the model generates progressively -- + * assistant text (and the citations on it) and thoughts -- streams natively across the run's + * `step_delta`s as it is produced. A step that arrives whole (tool calls, tool results, + * elicitations, user-input echoes, errors) carries no `step_delta`: the complete step rides + * `step_start` and `step_stop` closes the run, since nothing is generated incrementally. The + * field is deliberately not named for text: what streams progressively is an implementation + * detail that may widen, and a client asking for incremental delivery wants it for whatever + * supports it. Note per-step token usage rides `step_stop`, so it is reported only when this is + * true. + * @param deltaStreaming deltaStreaming or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSpec setDeltaStreaming(java.lang.Boolean deltaStreaming) { + this.deltaStreaming = deltaStreaming; + return this; + } + + /** + * Optional. Optional structured deliverable contract (reuses the Interactions ResponseFormat). + * When set, the agent's final output must conform to it. + * @return value or {@code null} for none + */ + public GenaiResponseFormat getExpectedOutput() { + return expectedOutput; + } + + /** + * Optional. Optional structured deliverable contract (reuses the Interactions ResponseFormat). + * When set, the agent's final output must conform to it. + * @param expectedOutput expectedOutput or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSpec setExpectedOutput(GenaiResponseFormat expectedOutput) { + this.expectedOutput = expectedOutput; + return this; + } + + /** + * Optional. Immutable. Session-level HITL (human-in-the-loop) configuration for this task. Unset + * means every HITL knob takes its default; see `HitlConfig` above for the individual field + * defaults. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSpecHitlConfig getHitlConfig() { + return hitlConfig; + } + + /** + * Optional. Immutable. Session-level HITL (human-in-the-loop) configuration for this task. Unset + * means every HITL knob takes its default; see `HitlConfig` above for the individual field + * defaults. + * @param hitlConfig hitlConfig or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSpec setHitlConfig(GoogleCloudAiplatformV1beta1TaskSpecHitlConfig hitlConfig) { + this.hitlConfig = hitlConfig; + return this; + } + + /** + * Optional. The prompt expressed as Interaction steps (e.g. a ContentStep with the user's + * request). Reuses the Interactions step model so the same content flows into the runtime + * unchanged. Required for a scheduled or PRIORITY_DEFERRED task, which starts with no caller + * attached. Otherwise it may be empty: * Unary CreateTask with no inputs creates the task IDLE + * and dispatches nothing. The task starts when a caller subscribes to it on CreateTaskBidiStream + * (`subscribe_task`) and sends the first input. * CreateTaskBidiStream `create_task` with no + * inputs is a connect-only / pre-warm create; the first input is sent later as a client step. + * Recommended pattern for giving a task files before it runs: 1. CreateTask with empty `inputs`. + * The task is IDLE; nothing runs yet. 2. UploadTaskArtifact each file to `/workspace/userdata/`. + * 3. CreateTaskBidiStream with `subscribe_task`, then send the first input, referring to the + * files by their `/workspace/userdata/` paths. This dispatches the task with the uploaded files + * in its workspace. + * @return value or {@code null} for none + */ + public java.util.List getInputs() { + return inputs; + } + + /** + * Optional. The prompt expressed as Interaction steps (e.g. a ContentStep with the user's + * request). Reuses the Interactions step model so the same content flows into the runtime + * unchanged. Required for a scheduled or PRIORITY_DEFERRED task, which starts with no caller + * attached. Otherwise it may be empty: * Unary CreateTask with no inputs creates the task IDLE + * and dispatches nothing. The task starts when a caller subscribes to it on CreateTaskBidiStream + * (`subscribe_task`) and sends the first input. * CreateTaskBidiStream `create_task` with no + * inputs is a connect-only / pre-warm create; the first input is sent later as a client step. + * Recommended pattern for giving a task files before it runs: 1. CreateTask with empty `inputs`. + * The task is IDLE; nothing runs yet. 2. UploadTaskArtifact each file to `/workspace/userdata/`. + * 3. CreateTaskBidiStream with `subscribe_task`, then send the first input, referring to the + * files by their `/workspace/userdata/` paths. This dispatches the task with the uploaded files + * in its workspace. + * @param inputs inputs or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSpec setInputs(java.util.List inputs) { + this.inputs = inputs; + return this; + } + + /** + * Optional. Deprecated: tasks are not retried automatically. CreateTask and UpdateTask reject a + * non-zero value with INVALID_ARGUMENT. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxRetries() { + return maxRetries; + } + + /** + * Optional. Deprecated: tasks are not retried automatically. CreateTask and UpdateTask reject a + * non-zero value with INVALID_ARGUMENT. + * @param maxRetries maxRetries or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSpec setMaxRetries(java.lang.Integer maxRetries) { + this.maxRetries = maxRetries; + return this; + } + + /** + * Optional. Optional model configuration override for the task. When set, the task runs on this + * model configuration for its entire lifecycle. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSpecModelConfig getModelConfig() { + return modelConfig; + } + + /** + * Optional. Optional model configuration override for the task. When set, the task runs on this + * model configuration for its entire lifecycle. + * @param modelConfig modelConfig or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSpec setModelConfig(GoogleCloudAiplatformV1beta1TaskSpecModelConfig modelConfig) { + this.modelConfig = modelConfig; + return this; + } + + /** + * Optional. Optional priority band. Concrete tiers and quota are out of scope and deferred to a + * follow-up. + * @return value or {@code null} for none + */ + public java.lang.String getPriority() { + return priority; + } + + /** + * Optional. Optional priority band. Concrete tiers and quota are out of scope and deferred to a + * follow-up. + * @param priority priority or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSpec setPriority(java.lang.String priority) { + this.priority = priority; + return this; + } + + /** + * Optional. Optional schedule controlling when/how the task runs. If unset, the task runs + * immediately (one-off, now). + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskTrigger getSchedule() { + return schedule; + } + + /** + * Optional. Optional schedule controlling when/how the task runs. If unset, the task runs + * immediately (one-off, now). + * @param schedule schedule or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSpec setSchedule(GoogleCloudAiplatformV1beta1TaskTrigger schedule) { + this.schedule = schedule; + return this; + } + + /** + * Optional. Optional scoped context: skills/tools/memory/artifacts for the task. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ContextScope getScope() { + return scope; + } + + /** + * Optional. Optional scoped context: skills/tools/memory/artifacts for the task. + * @param scope scope or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSpec setScope(GoogleCloudAiplatformV1beta1ContextScope scope) { + this.scope = scope; + return this; + } + + /** + * Optional. Configuration and limits for subtasks spawned by this task. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSpecSubtaskConfig getSubtaskConfig() { + return subtaskConfig; + } + + /** + * Optional. Configuration and limits for subtasks spawned by this task. + * @param subtaskConfig subtaskConfig or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSpec setSubtaskConfig(GoogleCloudAiplatformV1beta1TaskSpecSubtaskConfig subtaskConfig) { + this.subtaskConfig = subtaskConfig; + return this; + } + + /** + * Optional. Optional standing instruction applied across the whole task. + * @return value or {@code null} for none + */ + public java.lang.String getSystemInstruction() { + return systemInstruction; + } + + /** + * Optional. Optional standing instruction applied across the whole task. + * @param systemInstruction systemInstruction or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSpec setSystemInstruction(java.lang.String systemInstruction) { + this.systemInstruction = systemInstruction; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1TaskSpec set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1TaskSpec) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1TaskSpec clone() { + return (GoogleCloudAiplatformV1beta1TaskSpec) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskSpecHitlConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskSpecHitlConfig.java new file mode 100644 index 00000000000..b51e8f6f709 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskSpecHitlConfig.java @@ -0,0 +1,74 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Session-level HITL (human-in-the-loop) configuration. Namespaces every HITL knob that a client + * may set at task creation, so new settings (per-tool overrides, timeout, allowed reviewers) can + * land without burning more top-level TaskSpec tags. `approval_mode` carries the wire default as + * its own `APPROVAL_MODE_UNSPECIFIED` enum value, which the server treats as `APPROVAL_MODE_ASK` + * (standard HITL, always prompt a human). That is also the pre-change behavior for every existing + * task. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1TaskSpecHitlConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Immutable. How the client wants elicitations on this task approved. Unset (or + * APPROVAL_MODE_UNSPECIFIED) is treated as APPROVAL_MODE_ASK. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String approvalMode; + + /** + * Optional. Immutable. How the client wants elicitations on this task approved. Unset (or + * APPROVAL_MODE_UNSPECIFIED) is treated as APPROVAL_MODE_ASK. + * @return value or {@code null} for none + */ + public java.lang.String getApprovalMode() { + return approvalMode; + } + + /** + * Optional. Immutable. How the client wants elicitations on this task approved. Unset (or + * APPROVAL_MODE_UNSPECIFIED) is treated as APPROVAL_MODE_ASK. + * @param approvalMode approvalMode or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSpecHitlConfig setApprovalMode(java.lang.String approvalMode) { + this.approvalMode = approvalMode; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1TaskSpecHitlConfig set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1TaskSpecHitlConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1TaskSpecHitlConfig clone() { + return (GoogleCloudAiplatformV1beta1TaskSpecHitlConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskSpecModelConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskSpecModelConfig.java new file mode 100644 index 00000000000..0539fd6f9d5 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskSpecModelConfig.java @@ -0,0 +1,208 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Selects the model the task runs on. Starts with just the model id/alias; extensible with further + * model parameters without a breaking change. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1TaskSpecModelConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Reasoning/thinking depth the model runs at, case-insensitive. Gemini takes "minimal", + * "low", "medium" or "high", and only on models that have a thinking level; other publishers + * define their own set. A value the resolved model does not accept leaves its own default + * standing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String effortLevel; + + /** + * Optional. Maximum number of tokens the model may generate in each call, including any thinking + * tokens it spends before answering. Must not be negative; zero leaves the backend default + * standing. The cap also applies to the calls that summarize the task's history when its context + * is compacted, so a model that thinks at a high effort level may need a larger value to return a + * summary at all. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxOutputTokens; + + /** + * Optional. Publisher model resource name (an `aiplatform.googleapis.com/PublisherModel`) of the + * form "publishers/{publisher}/models/{model}", e.g. "publishers/anthropic/models/claude- + * opus-4-8" or "publishers/google/models/gemini-3-flash". The project-qualified form + * "projects/{project}/locations/{location}/publishers/{publisher}/models/{model}" is also + * accepted. When it is used, the project and location it carries take precedence over both + * dynamic project/location resolution and the actor config defaults. Model selection cannot be + * updated after task creation right now though it might be supported in the future. Empty means + * the actor's default gemini model. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String model; + + /** + * Optional. How the model in `model` was selected. Ignored when set on `LiveConfig.model_config`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String modelSelectionMode; + + /** + * Optional. Sampling temperature for the model's generation config (valid range (0.0, 2.0]); a + * value outside that range leaves the backend default standing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float temperature; + + /** + * Optional. Reasoning/thinking depth the model runs at, case-insensitive. Gemini takes "minimal", + * "low", "medium" or "high", and only on models that have a thinking level; other publishers + * define their own set. A value the resolved model does not accept leaves its own default + * standing. + * @return value or {@code null} for none + */ + public java.lang.String getEffortLevel() { + return effortLevel; + } + + /** + * Optional. Reasoning/thinking depth the model runs at, case-insensitive. Gemini takes "minimal", + * "low", "medium" or "high", and only on models that have a thinking level; other publishers + * define their own set. A value the resolved model does not accept leaves its own default + * standing. + * @param effortLevel effortLevel or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSpecModelConfig setEffortLevel(java.lang.String effortLevel) { + this.effortLevel = effortLevel; + return this; + } + + /** + * Optional. Maximum number of tokens the model may generate in each call, including any thinking + * tokens it spends before answering. Must not be negative; zero leaves the backend default + * standing. The cap also applies to the calls that summarize the task's history when its context + * is compacted, so a model that thinks at a high effort level may need a larger value to return a + * summary at all. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxOutputTokens() { + return maxOutputTokens; + } + + /** + * Optional. Maximum number of tokens the model may generate in each call, including any thinking + * tokens it spends before answering. Must not be negative; zero leaves the backend default + * standing. The cap also applies to the calls that summarize the task's history when its context + * is compacted, so a model that thinks at a high effort level may need a larger value to return a + * summary at all. + * @param maxOutputTokens maxOutputTokens or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSpecModelConfig setMaxOutputTokens(java.lang.Integer maxOutputTokens) { + this.maxOutputTokens = maxOutputTokens; + return this; + } + + /** + * Optional. Publisher model resource name (an `aiplatform.googleapis.com/PublisherModel`) of the + * form "publishers/{publisher}/models/{model}", e.g. "publishers/anthropic/models/claude- + * opus-4-8" or "publishers/google/models/gemini-3-flash". The project-qualified form + * "projects/{project}/locations/{location}/publishers/{publisher}/models/{model}" is also + * accepted. When it is used, the project and location it carries take precedence over both + * dynamic project/location resolution and the actor config defaults. Model selection cannot be + * updated after task creation right now though it might be supported in the future. Empty means + * the actor's default gemini model. + * @return value or {@code null} for none + */ + public java.lang.String getModel() { + return model; + } + + /** + * Optional. Publisher model resource name (an `aiplatform.googleapis.com/PublisherModel`) of the + * form "publishers/{publisher}/models/{model}", e.g. "publishers/anthropic/models/claude- + * opus-4-8" or "publishers/google/models/gemini-3-flash". The project-qualified form + * "projects/{project}/locations/{location}/publishers/{publisher}/models/{model}" is also + * accepted. When it is used, the project and location it carries take precedence over both + * dynamic project/location resolution and the actor config defaults. Model selection cannot be + * updated after task creation right now though it might be supported in the future. Empty means + * the actor's default gemini model. + * @param model model or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSpecModelConfig setModel(java.lang.String model) { + this.model = model; + return this; + } + + /** + * Optional. How the model in `model` was selected. Ignored when set on `LiveConfig.model_config`. + * @return value or {@code null} for none + */ + public java.lang.String getModelSelectionMode() { + return modelSelectionMode; + } + + /** + * Optional. How the model in `model` was selected. Ignored when set on `LiveConfig.model_config`. + * @param modelSelectionMode modelSelectionMode or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSpecModelConfig setModelSelectionMode(java.lang.String modelSelectionMode) { + this.modelSelectionMode = modelSelectionMode; + return this; + } + + /** + * Optional. Sampling temperature for the model's generation config (valid range (0.0, 2.0]); a + * value outside that range leaves the backend default standing. + * @return value or {@code null} for none + */ + public java.lang.Float getTemperature() { + return temperature; + } + + /** + * Optional. Sampling temperature for the model's generation config (valid range (0.0, 2.0]); a + * value outside that range leaves the backend default standing. + * @param temperature temperature or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSpecModelConfig setTemperature(java.lang.Float temperature) { + this.temperature = temperature; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1TaskSpecModelConfig set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1TaskSpecModelConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1TaskSpecModelConfig clone() { + return (GoogleCloudAiplatformV1beta1TaskSpecModelConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskSpecSubtaskConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskSpecSubtaskConfig.java new file mode 100644 index 00000000000..6534ac1d61d --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskSpecSubtaskConfig.java @@ -0,0 +1,75 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Configuration and limits for subtasks spawned by this task. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1TaskSpecSubtaskConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The maximum depth of subtask hierarchy allowed under this task. Must be between 0 and + * 5, inclusive. When unset on a root task, defaults to 5. For a subtask, it is clamped to at most + * parent.max_depth - 1 (defaulting to parent.max_depth - 1 if unspecified). A value of 0 means + * this task cannot spawn any subtasks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxDepth; + + /** + * Optional. The maximum depth of subtask hierarchy allowed under this task. Must be between 0 and + * 5, inclusive. When unset on a root task, defaults to 5. For a subtask, it is clamped to at most + * parent.max_depth - 1 (defaulting to parent.max_depth - 1 if unspecified). A value of 0 means + * this task cannot spawn any subtasks. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxDepth() { + return maxDepth; + } + + /** + * Optional. The maximum depth of subtask hierarchy allowed under this task. Must be between 0 and + * 5, inclusive. When unset on a root task, defaults to 5. For a subtask, it is clamped to at most + * parent.max_depth - 1 (defaulting to parent.max_depth - 1 if unspecified). A value of 0 means + * this task cannot spawn any subtasks. + * @param maxDepth maxDepth or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSpecSubtaskConfig setMaxDepth(java.lang.Integer maxDepth) { + this.maxDepth = maxDepth; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1TaskSpecSubtaskConfig set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1TaskSpecSubtaskConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1TaskSpecSubtaskConfig clone() { + return (GoogleCloudAiplatformV1beta1TaskSpecSubtaskConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskStatusDetail.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskStatusDetail.java new file mode 100644 index 00000000000..bd4eb2d9a62 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskStatusDetail.java @@ -0,0 +1,105 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Why a task is in its current status, when the status alone is not enough to act on (today: + * `SUSPENDED`). Clients MUST treat an unrecognized `StatusReason` as an opaque block. Copied to the + * DB mirror by name and number, so a field or enum value added here without the matching DB-side + * addition is silently dropped on write. LINT.IfChange(status_detail) + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1TaskStatusDetail extends com.google.api.client.json.GenericJson { + + /** + * Optional human-readable explanation, so a surface can render something without its own + * StatusReason -> string table. Not localized; clients needing localization should render from + * `reason` instead. Not a `google.rpc.Status`: RPC codes do not map onto lifecycle states, and + * `TaskOutcome.status` already covers terminal failures. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String detail; + + /** + * Machine-readable reason. Clients switch on this to pick a recovery affordance (upsell CTA, + * admin contact, retry). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String reason; + + /** + * Optional human-readable explanation, so a surface can render something without its own + * StatusReason -> string table. Not localized; clients needing localization should render from + * `reason` instead. Not a `google.rpc.Status`: RPC codes do not map onto lifecycle states, and + * `TaskOutcome.status` already covers terminal failures. + * @return value or {@code null} for none + */ + public java.lang.String getDetail() { + return detail; + } + + /** + * Optional human-readable explanation, so a surface can render something without its own + * StatusReason -> string table. Not localized; clients needing localization should render from + * `reason` instead. Not a `google.rpc.Status`: RPC codes do not map onto lifecycle states, and + * `TaskOutcome.status` already covers terminal failures. + * @param detail detail or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskStatusDetail setDetail(java.lang.String detail) { + this.detail = detail; + return this; + } + + /** + * Machine-readable reason. Clients switch on this to pick a recovery affordance (upsell CTA, + * admin contact, retry). + * @return value or {@code null} for none + */ + public java.lang.String getReason() { + return reason; + } + + /** + * Machine-readable reason. Clients switch on this to pick a recovery affordance (upsell CTA, + * admin contact, retry). + * @param reason reason or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskStatusDetail setReason(java.lang.String reason) { + this.reason = reason; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1TaskStatusDetail set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1TaskStatusDetail) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1TaskStatusDetail clone() { + return (GoogleCloudAiplatformV1beta1TaskStatusDetail) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskStatusEvent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskStatusEvent.java new file mode 100644 index 00000000000..caccd4ec553 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskStatusEvent.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.aiplatform.v1beta1.model; + +/** + * Signals a task status transition. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1TaskStatusEvent extends com.google.api.client.json.GenericJson { + + /** + * Machine-readable reason and details for why the task entered this status (e.g. `SUSPENDED`). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1TaskStatusDetail statusDetail; + + /** + * The new coarse task status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String taskStatus; + + /** + * Machine-readable reason and details for why the task entered this status (e.g. `SUSPENDED`). + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskStatusDetail getStatusDetail() { + return statusDetail; + } + + /** + * Machine-readable reason and details for why the task entered this status (e.g. `SUSPENDED`). + * @param statusDetail statusDetail or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskStatusEvent setStatusDetail(GoogleCloudAiplatformV1beta1TaskStatusDetail statusDetail) { + this.statusDetail = statusDetail; + return this; + } + + /** + * The new coarse task status. + * @return value or {@code null} for none + */ + public java.lang.String getTaskStatus() { + return taskStatus; + } + + /** + * The new coarse task status. + * @param taskStatus taskStatus or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskStatusEvent setTaskStatus(java.lang.String taskStatus) { + this.taskStatus = taskStatus; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1TaskStatusEvent set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1TaskStatusEvent) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1TaskStatusEvent clone() { + return (GoogleCloudAiplatformV1beta1TaskStatusEvent) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskSubscribedEvent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskSubscribedEvent.java new file mode 100644 index 00000000000..30f5b6dd9d0 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskSubscribedEvent.java @@ -0,0 +1,132 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Server reply confirming subscription to an existing task. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1TaskSubscribedEvent extends com.google.api.client.json.GenericJson { + + /** + * The client identifier bound to this stream connection (either echoed from SubscribeTaskEvent or + * server-generated). Use this ID in subsequent SubscribeTaskEvent messages to maintain sequence + * continuity. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientId; + + /** + * The next step sequence number the server will send: the position it resolved to from the + * subscribe request. The mirror of the same-named field on SubscribeTaskEvent -- there it is what + * the client asks for, here it is what the server settled on. Zero means no cursor was resolved: + * the request supplied neither next_step_seq_num nor ack_output_seq_num, so output replays from + * the oldest retained step. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long nextStepSeqNum; + + /** + * The current coarse status of the task at subscription time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * The client identifier bound to this stream connection (either echoed from SubscribeTaskEvent or + * server-generated). Use this ID in subsequent SubscribeTaskEvent messages to maintain sequence + * continuity. + * @return value or {@code null} for none + */ + public java.lang.String getClientId() { + return clientId; + } + + /** + * The client identifier bound to this stream connection (either echoed from SubscribeTaskEvent or + * server-generated). Use this ID in subsequent SubscribeTaskEvent messages to maintain sequence + * continuity. + * @param clientId clientId or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSubscribedEvent setClientId(java.lang.String clientId) { + this.clientId = clientId; + return this; + } + + /** + * The next step sequence number the server will send: the position it resolved to from the + * subscribe request. The mirror of the same-named field on SubscribeTaskEvent -- there it is what + * the client asks for, here it is what the server settled on. Zero means no cursor was resolved: + * the request supplied neither next_step_seq_num nor ack_output_seq_num, so output replays from + * the oldest retained step. + * @return value or {@code null} for none + */ + public java.lang.Long getNextStepSeqNum() { + return nextStepSeqNum; + } + + /** + * The next step sequence number the server will send: the position it resolved to from the + * subscribe request. The mirror of the same-named field on SubscribeTaskEvent -- there it is what + * the client asks for, here it is what the server settled on. Zero means no cursor was resolved: + * the request supplied neither next_step_seq_num nor ack_output_seq_num, so output replays from + * the oldest retained step. + * @param nextStepSeqNum nextStepSeqNum or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSubscribedEvent setNextStepSeqNum(java.lang.Long nextStepSeqNum) { + this.nextStepSeqNum = nextStepSeqNum; + return this; + } + + /** + * The current coarse status of the task at subscription time. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * The current coarse status of the task at subscription time. + * @param status status or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskSubscribedEvent setStatus(java.lang.String status) { + this.status = status; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1TaskSubscribedEvent set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1TaskSubscribedEvent) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1TaskSubscribedEvent clone() { + return (GoogleCloudAiplatformV1beta1TaskSubscribedEvent) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskTrigger.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskTrigger.java new file mode 100644 index 00000000000..0ddbc4373ba --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskTrigger.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.aiplatform.v1beta1.model; + +/** + * Defines when and how a task runs. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1TaskTrigger extends com.google.api.client.json.GenericJson { + + /** + * Run exactly once (at an absolute time or after a delay). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1OneOffSchedule oneOff; + + /** + * Run the task spec repeatedly. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1RecurringSchedule recurring; + + /** + * Run exactly once (at an absolute time or after a delay). + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1OneOffSchedule getOneOff() { + return oneOff; + } + + /** + * Run exactly once (at an absolute time or after a delay). + * @param oneOff oneOff or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskTrigger setOneOff(GoogleCloudAiplatformV1beta1OneOffSchedule oneOff) { + this.oneOff = oneOff; + return this; + } + + /** + * Run the task spec repeatedly. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1RecurringSchedule getRecurring() { + return recurring; + } + + /** + * Run the task spec repeatedly. + * @param recurring recurring or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskTrigger setRecurring(GoogleCloudAiplatformV1beta1RecurringSchedule recurring) { + this.recurring = recurring; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1TaskTrigger set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1TaskTrigger) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1TaskTrigger clone() { + return (GoogleCloudAiplatformV1beta1TaskTrigger) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskUpdateEvent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskUpdateEvent.java new file mode 100644 index 00000000000..3ec03b3eb33 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskUpdateEvent.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * A change to a task's details. Surfaces out the Task resource fields that change during execution. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1TaskUpdateEvent extends com.google.api.client.json.GenericJson { + + /** + * The task detail changes carried by this event. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List updates; + + /** + * The task detail changes carried by this event. + * @return value or {@code null} for none + */ + public java.util.List getUpdates() { + return updates; + } + + /** + * The task detail changes carried by this event. + * @param updates updates or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskUpdateEvent setUpdates(java.util.List updates) { + this.updates = updates; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1TaskUpdateEvent set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1TaskUpdateEvent) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1TaskUpdateEvent clone() { + return (GoogleCloudAiplatformV1beta1TaskUpdateEvent) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskUpdateEventTaskUpdate.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskUpdateEventTaskUpdate.java new file mode 100644 index 00000000000..1073ca9dc79 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TaskUpdateEventTaskUpdate.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.aiplatform.v1beta1.model; + +/** + * A single task detail change. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1TaskUpdateEventTaskUpdate extends com.google.api.client.json.GenericJson { + + /** + * Rolling progress/outcome summary. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String summary; + + /** + * Concise title. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * Rolling progress/outcome summary. + * @return value or {@code null} for none + */ + public java.lang.String getSummary() { + return summary; + } + + /** + * Rolling progress/outcome summary. + * @param summary summary or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskUpdateEventTaskUpdate setSummary(java.lang.String summary) { + this.summary = summary; + return this; + } + + /** + * Concise title. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Concise title. + * @param title title or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskUpdateEventTaskUpdate setTitle(java.lang.String title) { + this.title = title; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1TaskUpdateEventTaskUpdate set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1TaskUpdateEventTaskUpdate) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1TaskUpdateEventTaskUpdate clone() { + return (GoogleCloudAiplatformV1beta1TaskUpdateEventTaskUpdate) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Teammate.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Teammate.java new file mode 100644 index 00000000000..ba1ab70f8da --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Teammate.java @@ -0,0 +1,124 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * One identity an agent is allowed to contact. A message rather than a bare string so a teammate + * can carry more than an address -- a display name, a group rather than a person, a scope limiting + * which surfaces the agent may reach them on -- without a breaking change to `AllowedTeammates`. + * Every field is optional, but a teammate identifying nobody is meaningless: at least one + * identifier must be set, and `UpdateAgent` rejects a teammate with none. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1Teammate extends com.google.api.client.json.GenericJson { + + /** + * Optional. Email address of the teammate. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String email; + + /** + * Optional. Expansion mode for group or space teammates. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String expansionMode; + + /** + * Optional. Obfuscated Gaia id of the teammate. OBFUSCATED, never a raw Gaia id -- the same form + * as `Principal.id` and every other Gaia id this API surfaces, so the two are comparable. A + * string rather than an int64 for that reason: the obfuscated form is not a number. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gaiaId; + + /** + * Optional. Email address of the teammate. + * @return value or {@code null} for none + */ + public java.lang.String getEmail() { + return email; + } + + /** + * Optional. Email address of the teammate. + * @param email email or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Teammate setEmail(java.lang.String email) { + this.email = email; + return this; + } + + /** + * Optional. Expansion mode for group or space teammates. + * @return value or {@code null} for none + */ + public java.lang.String getExpansionMode() { + return expansionMode; + } + + /** + * Optional. Expansion mode for group or space teammates. + * @param expansionMode expansionMode or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Teammate setExpansionMode(java.lang.String expansionMode) { + this.expansionMode = expansionMode; + return this; + } + + /** + * Optional. Obfuscated Gaia id of the teammate. OBFUSCATED, never a raw Gaia id -- the same form + * as `Principal.id` and every other Gaia id this API surfaces, so the two are comparable. A + * string rather than an int64 for that reason: the obfuscated form is not a number. + * @return value or {@code null} for none + */ + public java.lang.String getGaiaId() { + return gaiaId; + } + + /** + * Optional. Obfuscated Gaia id of the teammate. OBFUSCATED, never a raw Gaia id -- the same form + * as `Principal.id` and every other Gaia id this API surfaces, so the two are comparable. A + * string rather than an int64 for that reason: the obfuscated form is not a number. + * @param gaiaId gaiaId or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Teammate setGaiaId(java.lang.String gaiaId) { + this.gaiaId = gaiaId; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1Teammate set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1Teammate) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1Teammate clone() { + return (GoogleCloudAiplatformV1beta1Teammate) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Tenant.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Tenant.java new file mode 100644 index 00000000000..e0b7716c59d --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Tenant.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.aiplatform.v1beta1.model; + +/** + * Represents an enterprise tenant. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1Tenant extends com.google.api.client.json.GenericJson { + + /** + * Optional. The unique raw ID of the tenant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Optional. The type of the tenant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Optional. The unique raw ID of the tenant. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Optional. The unique raw ID of the tenant. + * @param id id or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Tenant setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Optional. The type of the tenant. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Optional. The type of the tenant. + * @param type type or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Tenant setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1Tenant set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1Tenant) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1Tenant clone() { + return (GoogleCloudAiplatformV1beta1Tenant) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ToolRefs.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ToolRefs.java new file mode 100644 index 00000000000..b35c6660f79 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ToolRefs.java @@ -0,0 +1,156 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A set of tool references, each a tool's GCP resource name + * (`projects/.../mcpServers|endpoints/...`) with optional fine-grained method, CLI tool and + * resource guardrails. Wraps a repeated field so it can be used as an arm of the + * `ContextScope.tool_scope` oneof. LINT.IfChange(tool_refs) + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1ToolRefs extends com.google.api.client.json.GenericJson { + + /** + * Optional. Optional CLI tool scope that the task is restricted to. Unset means all CLI tools are + * allowed. Set with an empty `cli_tools` list means all CLI tools are denied. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1ToolRefsCliToolScope cliToolScope; + + /** + * Optional. Optional fine-grained method selectors for the referenced tools. Format: "/methods/". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List methods; + + /** + * Optional. Optional resource identifiers that the task is restricted to interact with. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List resources; + + static { + // hack to force ProGuard to consider GoogleCloudAiplatformV1beta1ResourceRef used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudAiplatformV1beta1ResourceRef.class); + } + + /** + * Optional. Tool GCP resource names. For example: * MCP server: `projects/my- + * project/locations/us-central1/mcpServers/jira` * Endpoint: `projects/my-project/locations/us- + * central1/endpoints/drive` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List toolNames; + + /** + * Optional. Optional CLI tool scope that the task is restricted to. Unset means all CLI tools are + * allowed. Set with an empty `cli_tools` list means all CLI tools are denied. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ToolRefsCliToolScope getCliToolScope() { + return cliToolScope; + } + + /** + * Optional. Optional CLI tool scope that the task is restricted to. Unset means all CLI tools are + * allowed. Set with an empty `cli_tools` list means all CLI tools are denied. + * @param cliToolScope cliToolScope or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ToolRefs setCliToolScope(GoogleCloudAiplatformV1beta1ToolRefsCliToolScope cliToolScope) { + this.cliToolScope = cliToolScope; + return this; + } + + /** + * Optional. Optional fine-grained method selectors for the referenced tools. Format: "/methods/". + * @return value or {@code null} for none + */ + public java.util.List getMethods() { + return methods; + } + + /** + * Optional. Optional fine-grained method selectors for the referenced tools. Format: "/methods/". + * @param methods methods or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ToolRefs setMethods(java.util.List methods) { + this.methods = methods; + return this; + } + + /** + * Optional. Optional resource identifiers that the task is restricted to interact with. + * @return value or {@code null} for none + */ + public java.util.List getResources() { + return resources; + } + + /** + * Optional. Optional resource identifiers that the task is restricted to interact with. + * @param resources resources or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ToolRefs setResources(java.util.List resources) { + this.resources = resources; + return this; + } + + /** + * Optional. Tool GCP resource names. For example: * MCP server: `projects/my- + * project/locations/us-central1/mcpServers/jira` * Endpoint: `projects/my-project/locations/us- + * central1/endpoints/drive` + * @return value or {@code null} for none + */ + public java.util.List getToolNames() { + return toolNames; + } + + /** + * Optional. Tool GCP resource names. For example: * MCP server: `projects/my- + * project/locations/us-central1/mcpServers/jira` * Endpoint: `projects/my-project/locations/us- + * central1/endpoints/drive` + * @param toolNames toolNames or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ToolRefs setToolNames(java.util.List toolNames) { + this.toolNames = toolNames; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1ToolRefs set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1ToolRefs) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1ToolRefs clone() { + return (GoogleCloudAiplatformV1beta1ToolRefs) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ToolRefsCliToolScope.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ToolRefsCliToolScope.java new file mode 100644 index 00000000000..4d3fd86f1ee --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ToolRefsCliToolScope.java @@ -0,0 +1,69 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A CLI tool boundary restricting a subtask to designated CLI commands. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1ToolRefsCliToolScope extends com.google.api.client.json.GenericJson { + + /** + * Optional. Allowed CLI tools for the task. Example: ["gmail send_message", "calendar + * list_events"]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List cliTools; + + /** + * Optional. Allowed CLI tools for the task. Example: ["gmail send_message", "calendar + * list_events"]. + * @return value or {@code null} for none + */ + public java.util.List getCliTools() { + return cliTools; + } + + /** + * Optional. Allowed CLI tools for the task. Example: ["gmail send_message", "calendar + * list_events"]. + * @param cliTools cliTools or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ToolRefsCliToolScope setCliTools(java.util.List cliTools) { + this.cliTools = cliTools; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1ToolRefsCliToolScope set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1ToolRefsCliToolScope) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1ToolRefsCliToolScope clone() { + return (GoogleCloudAiplatformV1beta1ToolRefsCliToolScope) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TrustedParticipant.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TrustedParticipant.java new file mode 100644 index 00000000000..f5ce94606cc --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1TrustedParticipant.java @@ -0,0 +1,93 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A participant granted access to a CollaborativeProject. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1TrustedParticipant extends com.google.api.client.json.GenericJson { + + /** + * Required. The participant's identity. For `AGENT`, the agent's SPIFFE ID without the + * `principal://` prefix, the same value as the agent's `effective_identity`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String identifier; + + /** + * Required. The type of the participant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String participantType; + + /** + * Required. The participant's identity. For `AGENT`, the agent's SPIFFE ID without the + * `principal://` prefix, the same value as the agent's `effective_identity`. + * @return value or {@code null} for none + */ + public java.lang.String getIdentifier() { + return identifier; + } + + /** + * Required. The participant's identity. For `AGENT`, the agent's SPIFFE ID without the + * `principal://` prefix, the same value as the agent's `effective_identity`. + * @param identifier identifier or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TrustedParticipant setIdentifier(java.lang.String identifier) { + this.identifier = identifier; + return this; + } + + /** + * Required. The type of the participant. + * @return value or {@code null} for none + */ + public java.lang.String getParticipantType() { + return participantType; + } + + /** + * Required. The type of the participant. + * @param participantType participantType or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TrustedParticipant setParticipantType(java.lang.String participantType) { + this.participantType = participantType; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1TrustedParticipant set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1TrustedParticipant) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1TrustedParticipant clone() { + return (GoogleCloudAiplatformV1beta1TrustedParticipant) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1UploadArtifactRequest.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1UploadArtifactRequest.java new file mode 100644 index 00000000000..41703558175 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1UploadArtifactRequest.java @@ -0,0 +1,75 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Request for ArtifactService.UploadArtifact. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1UploadArtifactRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. Absolute destination path in the task's workspace, e.g. + * `/workspace/userdata/input.csv`, or, for a collaborative project, under `/workspace/project`, + * e.g. `/workspace/project/report.md`. Must be under `/workspace` and at most 1024 characters; + * relative paths and paths containing a `..` segment are rejected with `INVALID_ARGUMENT`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** + * Required. Absolute destination path in the task's workspace, e.g. + * `/workspace/userdata/input.csv`, or, for a collaborative project, under `/workspace/project`, + * e.g. `/workspace/project/report.md`. Must be under `/workspace` and at most 1024 characters; + * relative paths and paths containing a `..` segment are rejected with `INVALID_ARGUMENT`. + * @return value or {@code null} for none + */ + public java.lang.String getPath() { + return path; + } + + /** + * Required. Absolute destination path in the task's workspace, e.g. + * `/workspace/userdata/input.csv`, or, for a collaborative project, under `/workspace/project`, + * e.g. `/workspace/project/report.md`. Must be under `/workspace` and at most 1024 characters; + * relative paths and paths containing a `..` segment are rejected with `INVALID_ARGUMENT`. + * @param path path or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1UploadArtifactRequest setPath(java.lang.String path) { + this.path = path; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1UploadArtifactRequest set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1UploadArtifactRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1UploadArtifactRequest clone() { + return (GoogleCloudAiplatformV1beta1UploadArtifactRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1UploadArtifactResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1UploadArtifactResponse.java new file mode 100644 index 00000000000..c5e85f042e2 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1UploadArtifactResponse.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * Response for ArtifactService.UploadArtifact. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1UploadArtifactResponse extends com.google.api.client.json.GenericJson { + + /** + * The file's path in the task's workspace. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** + * The file's path in the task's workspace. + * @return value or {@code null} for none + */ + public java.lang.String getPath() { + return path; + } + + /** + * The file's path in the task's workspace. + * @param path path or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1UploadArtifactResponse setPath(java.lang.String path) { + this.path = path; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1UploadArtifactResponse set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1UploadArtifactResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1UploadArtifactResponse clone() { + return (GoogleCloudAiplatformV1beta1UploadArtifactResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Verifier.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Verifier.java new file mode 100644 index 00000000000..5a821e173ec --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Verifier.java @@ -0,0 +1,171 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * A declarative success criterion for a goal. Harness-agnostic: the runtime follows the description + * to decide pass/fail and to repair on failure. A criterion may be checked automatically + * (`auto_verification`, `nl_criteria`, `command_check`) or by a human (`human_check`, resolved via + * a HITL elicitation at verification time). If `kind` is unset the Verifier carries no criterion + * and is ignored. On a Task with a local environment, verifiers do not access the environment: + * `nl_criteria` and `auto_verification` are judged on the record of the agent's work in the current + * turn, and `command_check` is not allowed. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1Verifier extends com.google.api.client.json.GenericJson { + + /** + * Automated. Judged against the goal's own `spec`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1AutoVerification autoVerification; + + /** + * Optional. Optional label used for reporting (e.g. "tests-green"). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Automated. A customizable natural-language rubric an autorater/agent evaluates. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1NlCriteria nlCriteria; + + /** + * Optional. If true, the goal cannot be marked COMPLETED unless this verifier passes. If false, + * the verifier is advisory (recorded, non-blocking). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean required; + + /** + * Output only. The verifier's latest verdict. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Automated. Judged against the goal's own `spec`. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AutoVerification getAutoVerification() { + return autoVerification; + } + + /** + * Automated. Judged against the goal's own `spec`. + * @param autoVerification autoVerification or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Verifier setAutoVerification(GoogleCloudAiplatformV1beta1AutoVerification autoVerification) { + this.autoVerification = autoVerification; + return this; + } + + /** + * Optional. Optional label used for reporting (e.g. "tests-green"). + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Optional. Optional label used for reporting (e.g. "tests-green"). + * @param name name or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Verifier setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Automated. A customizable natural-language rubric an autorater/agent evaluates. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1NlCriteria getNlCriteria() { + return nlCriteria; + } + + /** + * Automated. A customizable natural-language rubric an autorater/agent evaluates. + * @param nlCriteria nlCriteria or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Verifier setNlCriteria(GoogleCloudAiplatformV1beta1NlCriteria nlCriteria) { + this.nlCriteria = nlCriteria; + return this; + } + + /** + * Optional. If true, the goal cannot be marked COMPLETED unless this verifier passes. If false, + * the verifier is advisory (recorded, non-blocking). + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequired() { + return required; + } + + /** + * Optional. If true, the goal cannot be marked COMPLETED unless this verifier passes. If false, + * the verifier is advisory (recorded, non-blocking). + * @param required required or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Verifier setRequired(java.lang.Boolean required) { + this.required = required; + return this; + } + + /** + * Output only. The verifier's latest verdict. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The verifier's latest verdict. + * @param state state or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Verifier setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1Verifier set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1Verifier) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1Verifier clone() { + return (GoogleCloudAiplatformV1beta1Verifier) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1WorkspaceArtifact.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1WorkspaceArtifact.java new file mode 100644 index 00000000000..49ac734b6c6 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1WorkspaceArtifact.java @@ -0,0 +1,94 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * An artifact listed by ArtifactService.ListWorkspaceArtifacts: a file or directory in the + * workspace, or a link to an entity in a first-party or third-party store. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1WorkspaceArtifact extends com.google.api.client.json.GenericJson { + + /** + * A link to a file, folder or site in a first-party or third-party store, such as Google Drive or + * OneDrive, as passed to ArtifactService.AddArtifact. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1LinkJsonMetadata linkJsonMetadata; + + /** + * A file or directory in the workspace. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1TaskArtifactFile taskArtifactFile; + + /** + * A link to a file, folder or site in a first-party or third-party store, such as Google Drive or + * OneDrive, as passed to ArtifactService.AddArtifact. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1LinkJsonMetadata getLinkJsonMetadata() { + return linkJsonMetadata; + } + + /** + * A link to a file, folder or site in a first-party or third-party store, such as Google Drive or + * OneDrive, as passed to ArtifactService.AddArtifact. + * @param linkJsonMetadata linkJsonMetadata or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1WorkspaceArtifact setLinkJsonMetadata(GoogleCloudAiplatformV1beta1LinkJsonMetadata linkJsonMetadata) { + this.linkJsonMetadata = linkJsonMetadata; + return this; + } + + /** + * A file or directory in the workspace. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1TaskArtifactFile getTaskArtifactFile() { + return taskArtifactFile; + } + + /** + * A file or directory in the workspace. + * @param taskArtifactFile taskArtifactFile or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1WorkspaceArtifact setTaskArtifactFile(GoogleCloudAiplatformV1beta1TaskArtifactFile taskArtifactFile) { + this.taskArtifactFile = taskArtifactFile; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1WorkspaceArtifact set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1WorkspaceArtifact) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1WorkspaceArtifact clone() { + return (GoogleCloudAiplatformV1beta1WorkspaceArtifact) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1XmanagerAuthConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1XmanagerAuthConfig.java new file mode 100644 index 00000000000..49d7083164e --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1XmanagerAuthConfig.java @@ -0,0 +1,123 @@ +/* + * 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.aiplatform.v1beta1.model; + +/** + * Controls who may use an XmanagerInstance, and the OAuth client they sign in with. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1XmanagerAuthConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Email domains whose verified accounts may use the instance, for example + * "example.com". At least one of `allowed_domains` or `allowed_emails` must be specified. A + * maximum of 100 domains can be specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedDomains; + + /** + * Optional. Individual verified emails that may use the instance. A maximum of 1000 emails can be + * specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedEmails; + + /** + * Required. The OAuth client that users sign in with. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1XmanagerAuthConfigOAuthClient oauthClient; + + /** + * Optional. Email domains whose verified accounts may use the instance, for example + * "example.com". At least one of `allowed_domains` or `allowed_emails` must be specified. A + * maximum of 100 domains can be specified. + * @return value or {@code null} for none + */ + public java.util.List getAllowedDomains() { + return allowedDomains; + } + + /** + * Optional. Email domains whose verified accounts may use the instance, for example + * "example.com". At least one of `allowed_domains` or `allowed_emails` must be specified. A + * maximum of 100 domains can be specified. + * @param allowedDomains allowedDomains or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1XmanagerAuthConfig setAllowedDomains(java.util.List allowedDomains) { + this.allowedDomains = allowedDomains; + return this; + } + + /** + * Optional. Individual verified emails that may use the instance. A maximum of 1000 emails can be + * specified. + * @return value or {@code null} for none + */ + public java.util.List getAllowedEmails() { + return allowedEmails; + } + + /** + * Optional. Individual verified emails that may use the instance. A maximum of 1000 emails can be + * specified. + * @param allowedEmails allowedEmails or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1XmanagerAuthConfig setAllowedEmails(java.util.List allowedEmails) { + this.allowedEmails = allowedEmails; + return this; + } + + /** + * Required. The OAuth client that users sign in with. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1XmanagerAuthConfigOAuthClient getOauthClient() { + return oauthClient; + } + + /** + * Required. The OAuth client that users sign in with. + * @param oauthClient oauthClient or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1XmanagerAuthConfig setOauthClient(GoogleCloudAiplatformV1beta1XmanagerAuthConfigOAuthClient oauthClient) { + this.oauthClient = oauthClient; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1XmanagerAuthConfig set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1XmanagerAuthConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1XmanagerAuthConfig clone() { + return (GoogleCloudAiplatformV1beta1XmanagerAuthConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1XmanagerAuthConfigOAuthClient.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1XmanagerAuthConfigOAuthClient.java new file mode 100644 index 00000000000..6d2208e3d53 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1XmanagerAuthConfigOAuthClient.java @@ -0,0 +1,96 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * An OAuth 2.0 client of type "Web application" in the project of the ModelDevelopmentCluster. + * + *

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 Platform 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 GoogleCloudAiplatformV1beta1XmanagerAuthConfigOAuthClient extends com.google.api.client.json.GenericJson { + + /** + * Required. The OAuth client ID, ending in ".apps.googleusercontent.com". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Required. The Secret Manager secret version that holds the OAuth client secret. Format: + * projects/{project}/secrets/{secret}/versions/{secret_version} The secret must be in the project + * of the ModelDevelopmentCluster. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String secretVersion; + + /** + * Required. The OAuth client ID, ending in ".apps.googleusercontent.com". + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Required. The OAuth client ID, ending in ".apps.googleusercontent.com". + * @param id id or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1XmanagerAuthConfigOAuthClient setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Required. The Secret Manager secret version that holds the OAuth client secret. Format: + * projects/{project}/secrets/{secret}/versions/{secret_version} The secret must be in the project + * of the ModelDevelopmentCluster. + * @return value or {@code null} for none + */ + public java.lang.String getSecretVersion() { + return secretVersion; + } + + /** + * Required. The Secret Manager secret version that holds the OAuth client secret. Format: + * projects/{project}/secrets/{secret}/versions/{secret_version} The secret must be in the project + * of the ModelDevelopmentCluster. + * @param secretVersion secretVersion or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1XmanagerAuthConfigOAuthClient setSecretVersion(java.lang.String secretVersion) { + this.secretVersion = secretVersion; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1XmanagerAuthConfigOAuthClient set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1XmanagerAuthConfigOAuthClient) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1XmanagerAuthConfigOAuthClient clone() { + return (GoogleCloudAiplatformV1beta1XmanagerAuthConfigOAuthClient) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1XmanagerInstance.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1XmanagerInstance.java index ec9d15b9421..7cb09b3bdbf 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1XmanagerInstance.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1XmanagerInstance.java @@ -36,6 +36,15 @@ public final class GoogleCloudAiplatformV1beta1XmanagerInstance extends com.goog @com.google.api.client.util.Key private java.lang.String apiEndpoint; + /** + * Optional. Controls authentication for the instance. If set, every caller must sign in as an + * individual user, and only the principals allowed here may use the instance. If unset, the + * instance runs without authentication. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1XmanagerAuthConfig authConfig; + /** * Output only. Creation timestamp. * The value may be {@code null}. @@ -61,6 +70,7 @@ public final class GoogleCloudAiplatformV1beta1XmanagerInstance extends com.goog /** * Output only. The resource names of the ModelDevelopmentClusters registered with this instance. + * A maximum of 100 clusters can be registered. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -119,6 +129,27 @@ public GoogleCloudAiplatformV1beta1XmanagerInstance setApiEndpoint(java.lang.Str return this; } + /** + * Optional. Controls authentication for the instance. If set, every caller must sign in as an + * individual user, and only the principals allowed here may use the instance. If unset, the + * instance runs without authentication. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1XmanagerAuthConfig getAuthConfig() { + return authConfig; + } + + /** + * Optional. Controls authentication for the instance. If set, every caller must sign in as an + * individual user, and only the principals allowed here may use the instance. If unset, the + * instance runs without authentication. + * @param authConfig authConfig or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1XmanagerInstance setAuthConfig(GoogleCloudAiplatformV1beta1XmanagerAuthConfig authConfig) { + this.authConfig = authConfig; + return this; + } + /** * Output only. Creation timestamp. * @return value or {@code null} for none @@ -176,6 +207,7 @@ public GoogleCloudAiplatformV1beta1XmanagerInstance setNetwork(java.lang.String /** * Output only. The resource names of the ModelDevelopmentClusters registered with this instance. + * A maximum of 100 clusters can be registered. * @return value or {@code null} for none */ public java.util.List getRegisteredClusters() { @@ -184,6 +216,7 @@ public java.util.List getRegisteredClusters() { /** * Output only. The resource names of the ModelDevelopmentClusters registered with this instance. + * A maximum of 100 clusters can be registered. * @param registeredClusters registeredClusters or {@code null} for none */ public GoogleCloudAiplatformV1beta1XmanagerInstance setRegisteredClusters(java.util.List registeredClusters) { diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/pom.xml b/clients/google-api-services-aiplatform/v1beta1/2.0.0/pom.xml index 98dd7fd164d..2ec2525a955 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/pom.xml +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-aiplatform - v1beta1-rev20261028-2.9.2 - Agent Platform API v1beta1-rev20261028-2.9.2 + v1beta1-rev20261106-2.9.2 + Agent Platform API v1beta1-rev20261106-2.9.2 jar 2011 diff --git a/clients/google-api-services-aiplatform/v1beta1/README.md b/clients/google-api-services-aiplatform/v1beta1/README.md index 6ad82c4d944..be3f061e6fc 100644 --- a/clients/google-api-services-aiplatform/v1beta1/README.md +++ b/clients/google-api-services-aiplatform/v1beta1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-aiplatform - v1beta1-rev20261028-2.9.2 + v1beta1-rev20261106-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-aiplatform:v1beta1-rev20261028-2.9.2' + implementation 'com.google.apis:google-api-services-aiplatform:v1beta1-rev20261106-2.9.2' } ```